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 192.168.1.94/nextcloud brings up a blank screen. Completely blank. A browser worth of white.space

Visiting 192.168.1.94 shows that apache is working

Visiting 192.168.1.94/tt-rss 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 192.168.1.94/nextcloud/remote.php 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":"192.168.1.76", "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
\OCA\Files_Trashbin\Trashbin::registerHooks();

\OCA\Files\App::getNavigationManager()->add(
array(
    "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/issue_template.md file.

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

PHP Fatal error:
require_once():
Failed opening required '/var/www/nextcloud/lib/private/route/../../../settings/routes.php'
(include_path='/var/www/nextcloud/3rdparty/pear/console_getopt
:/var/www/nextcloud/3rdparty/pear/pear_exception
:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src
:/var/www/nextcloud/3rdparty/pear/archive_tar
:/var/www/nextcloud/3rdparty/phpseclib/phpseclib/phpseclib
:/var/www/nextcloud/lib/private
:/var/www/nextcloud/config
:/var/www/nextcloud/3rdparty
:/var/www/nextcloud/apps
:.
:/usr/share/php
:/usr/share/pear
:/var/www/nextcloud')
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