Could access nextcloud until I rebooted my Pi, now I can't... (php config error?)

installed NC 9 on a Pi2 running DietPi by largely following this guide.

I’m only using it locally so didn’t bother with the DynDNS bits

Installation went perfectly, I loaded up NC from a browser, imported my Calendar, Contacts, got CalDAV sorted on my android phone etc.

Then I had to reboot the Pi as I’d chosen a moderate over-clock

Since then, visiting brings up a blank screen. Completely blank. A browser worth of

Visiting shows that apache is working

Visiting shows my tinytinyRSS install is working

So it’s a nextcloud, not apache problem, right?

The only (?)subdomain that gives me anything on screen in the brower is which shows a ‘path not found’ nextcloud branded page

A variety of errors are shown in /var/www/nextcloud/data/owncloud.log but the most overwhelmingly present is:
{"reqId":"cLxEngCBmzT8sAOln6Lg", "remoteAddr":"", "app":"PHP", "message":"Class 'OCA\\Files\\App' not found at \/var\/www\/nextcloud\/apps\/files_trashbin\/appinfo\/app.php#33", "level":3, "time":"2016-08-07T18:01:19+00:00", "method":"GET", "url":"\/nextcloud\/", "user":"--"}

That error message, up until the method, is repeated time and again. The stuff after method changes, presumably as sometimes it’s me trying to access nextcloud via the browser and sometimes it’s my phone making contact through CalDAV

If i follow the path provided to app.php in that error message I see a file containing this:

$l = \OC::$server->getL10N('files_trashbin');

// register hooks

    "id" => 'trashbin',
    "appname" => 'files_trashbin',
    "script" => 'list.php',
    "order" => 50,
    "name" => $l->t('Deleted files')

I know hee-haw about php so can’t help myself here. Apache error and access logs are empty.

I started working through the questions in the nextcloud/ file.

For example, sudo -u www-data php occ app:list outputs:

PHP Fatal error:
Failed opening required '/var/www/nextcloud/lib/private/route/../../../settings/routes.php'
in /var/www/nextcloud/lib/private/route/router.php on line 155

As do sudo -u www-data php occ config:list system and sudo -u www-data php occ ldap:show-config

This feels like a php issue… mostly because of the whole ‘Fatal error’ thing when running the occ command.

This also feels like a resolve-able issue. Any help would be greatly appreciated! Please ask if you want me to provide more info.

I had the same issue on my pi once (running it on ubuntu snap). Not entirely sure why it broke but this did fix it for me:
apt-get purge php5-curl
apt-get install php5-curl

Thanks, this was really helpful! I’m running smoothly now!

1 Like