[RESOLVED] Nextcloud instance down after ubuntu upgrade. help

Hello,

I upgraded my nextcloud server from 16.04 today to 18.04 and once that finished I was no longer able to access nextcloud. When I first attempted to go to the page, I get the below, which to me reads…make sure you are on version 5.6 plus, make sure you aren’t on version 7.2+ but doesn’t appear to give me anything usable.

Please help if you can, I like an idiot have no way of recovering the data locked in the encrypted storage.

I’ll provide anything that I can as quickly as I can.

Nextcloud version: 12.05
Operating system and version: 18.04
Apache or nginx version: 2.4.29
PHP version: 5.6.37

* @author Lukas Reschke * @author Morris Jobke * @author Robin Appelman * @author Thomas Müller * @author Vincent Petry * * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see * */ // Show warning if a PHP version below 5.6.0 is used, this has to happen here // because base.php will already use 5.6 syntax. if (version_compare(PHP_VERSION, '5.6.0') === -1) { echo 'This version of Nextcloud requires at least PHP 5.6.0
'; echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; return; } // Show warning if PHP 7.2 is used as Nextcloud is not compatible with PHP 7.2 for now // @see https://github.com/nextcloud/server/pull/5791 if (version_compare(PHP_VERSION, '7.2.0') !== -1) { echo 'This version of Nextcloud is not compatible with PHP 7.2.
'; echo 'You are currently running ' . PHP_VERSION . '.'; return; } try { require_once __DIR__ . '/lib/base.php'; OC::handleRequest(); } catch(\OC\ServiceUnavailableException $ex) { \OC::$server->getLogger()->logException($ex, array('app' => 'index')); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printExceptionErrorPage($ex); } catch (\OC\HintException $ex) { OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); OC_Template::printErrorPage($ex->getMessage(), $ex->getHint()); } catch (\OC\User\LoginException $ex) { OC_Response::setStatus(OC_Response::STATUS_FORBIDDEN); OC_Template::printErrorPage($ex->getMessage(), $ex->getMessage()); } catch (Exception $ex) { \OC::$server->getLogger()->logException($ex, array('app' => 'index')); //show the user a detailed error page OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } catch (Error $ex) { \OC::$server->getLogger()->logException($ex, array('app' => 'index')); OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); OC_Template::printExceptionErrorPage($ex); } 

The output of your Nextcloud log in Admin > Logging:

{"reqId":"ET0IIVwzHpHYvBUgCgXd","level":3,"time":"2018-09-10T01:21:58+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v1.php\/cloud\/capabilities?format=json","message":"Call to undefine$
{"reqId":"5Odcd39kHKZTCjh5OnkZ","level":3,"time":"2018-09-10T01:21:58+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v1.php\/cloud\/user?format=json","message":"Call to undefined functi$
{"reqId":"PFyVjJQdxVPajYDEzRus","level":3,"time":"2018-09-10T01:21:58+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/avatar\/LTHorn\/448","message":"Call to undefined function OC\$
{"reqId":"l4cnpvCBAzNL67QplnEv","level":3,"time":"2018-09-10T01:21:58+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/core\/preview.png?file=%2FInstantUpload%2FCamera%2FIMG_2018051$
{"reqId":"NPqgE9rLGjL2k5hRCZUx","level":3,"time":"2018-09-10T01:21:58+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/status.php","message":"Call to undefined function OC\\App\\simplexml_load$
{"reqId":"XG9bzC5KJAEPnImSxJ8v","level":3,"time":"2018-09-10T01:21:59+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/ocs\/v1.php\/cloud\/user?format=json","message":"Call to undefined functi$
{"reqId":"WwwvQYiuhkjQLwvOEi27","level":3,"time":"2018-09-10T01:21:59+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/avatar\/LTHorn\/448","message":"Call to undefined function OC\$
{"reqId":"h9lacUR2VTzQBKFlIBmY","level":3,"time":"2018-09-10T01:21:59+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"H8HHvTHi8x5AgQJ7KuKs","level":3,"time":"2018-09-10T01:21:59+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"sppyxIeK7RitLqPe33Yv","level":3,"time":"2018-09-10T01:21:59+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"bPcUNnmPmjYDRCViNqq5","level":3,"time":"2018-09-10T01:21:59+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"1aM42tTIXi4sfzCURvF7","level":3,"time":"2018-09-10T01:22:00+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/webdav\/InstantUpload\/Camera\/","message":"Call to unde$
{"reqId":"SFFuNirIJd0hXZqSzanj","level":3,"time":"2018-09-10T01:22:00+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"LJy3zsk1fXeIDHQcmUEC","level":3,"time":"2018-09-10T01:22:00+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"SeL9ezKR0KbrknmbwI82","level":3,"time":"2018-09-10T01:22:00+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"CTZd4VlC1MhniH9AvlJS","level":3,"time":"2018-09-10T01:22:00+00:00","remoteAddr":"192.168.1.1","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/256\/256\/InstantUpload\/Came$
{"reqId":"8BvzZyOSPcJozuZ1Zr8R","level":3,"time":"2018-09-10T01:22:15+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"JNg4SgjvYHZyHafMLkpP","level":3,"time":"2018-09-10T01:28:30+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"PDcmUaLBCECmRUbZ3B2l","level":3,"time":"2018-09-10T01:28:37+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"wukApQFnAaHDHcGU6tU9","level":3,"time":"2018-09-10T01:28:39+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"IEp8XVCnD2ovMbV302lX","level":3,"time":"2018-09-10T01:31:19+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"CIgJPvSa2r4rZpcrqqH7","level":3,"time":"2018-09-10T01:32:05+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"ZwMmaKQvPudQoQREqZSv","level":3,"time":"2018-09-10T01:32:06+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"YhiXu2MHBhJmIt9xvE3e","level":3,"time":"2018-09-10T01:32:57+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"xdAyCqrPhBUKnR3ePlLc","level":3,"time":"2018-09-10T01:35:04+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"nZAXyiFiiPiajT7CRjSj","level":3,"time":"2018-09-10T01:35:05+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"q7qVhvlxcKv9lXA4HIA1","level":3,"time":"2018-09-10T01:35:06+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $
{"reqId":"T3wIN94Chkq7X8t42nBp","level":3,"time":"2018-09-10T01:35:07+00:00","remoteAddr":"192.168.1.100","user":"--","app":"PHP","method":"GET","url":"\/nextcloud\/","message":"Call to undefined function OC\\App\\simplexml_load_file() $

config.php

<?php
$CONFIG = array (
  'instanceid' => 'ocdwea3pj81n',
  'passwordsalt' => '#####',
  'secret' => '#####,
  'trusted_domains' => 
  array (
    0 => '####.com',
    1 => '192.168.1.131',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'https://####.com/nextcloud',
  'dbtype' => 'mysql',
  'version' => '12.0.5.3',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '#####',
  'dbpassword' => '#####',
  'installed' => true,
  'mail_smtpmode' => 'php',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => '#####',
  'mail_domain' => '#####',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
);

apache2 error.log

[Sun Sep 09 20:35:06.501353 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   1. {main}() /var/www/nextcloud/index.php:0
[Sun Sep 09 20:35:06.501356 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   2. require_once() /var/www/nextcloud/index.php:46
[Sun Sep 09 20:35:06.501359 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   3. OC::init() /var/www/nextcloud/lib/base.php:1086
[Sun Sep 09 20:35:06.501362 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   4. OC_App::loadApps() /var/www/nextcloud/lib/base.php:673
[Sun Sep 09 20:35:06.501365 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   5. OC_App::registerAutoloading() /var/www/nextcloud/lib/private/legacy/app.php:116
[Sun Sep 09 20:35:06.501368 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   6. OC\\AppFramework\\App::buildAppNamespace() /var/www/nextcloud/lib/private/legacy/app.php:190
[Sun Sep 09 20:35:06.501371 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   7. OC_App::getAppInfo() /var/www/nextcloud/lib/private/AppFramework/App.php:61
[Sun Sep 09 20:35:06.501373 2018] [:error] [pid 1744] [client 192.168.1.100:44678] PHP   8. OC\\App\\InfoParser->parse() /var/www/nextcloud/lib/private/legacy/app.php:615
[Sun Sep 09 20:35:07.624778 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP Fatal error:  Call to undefined function OC\\App\\simplexml_load_file() in /var/www/nextcloud/lib/private/App/InfoParser.php on line 61
[Sun Sep 09 20:35:07.624793 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP Stack trace:
[Sun Sep 09 20:35:07.624797 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   1. {main}() /var/www/nextcloud/index.php:0
[Sun Sep 09 20:35:07.624800 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   2. require_once() /var/www/nextcloud/index.php:46
[Sun Sep 09 20:35:07.624803 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   3. OC::init() /var/www/nextcloud/lib/base.php:1086
[Sun Sep 09 20:35:07.624806 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   4. OC_App::loadApps() /var/www/nextcloud/lib/base.php:673
[Sun Sep 09 20:35:07.624809 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   5. OC_App::registerAutoloading() /var/www/nextcloud/lib/private/legacy/app.php:116
[Sun Sep 09 20:35:07.624811 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   6. OC\\AppFramework\\App::buildAppNamespace() /var/www/nextcloud/lib/private/legacy/app.php:190
[Sun Sep 09 20:35:07.624814 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   7. OC_App::getAppInfo() /var/www/nextcloud/lib/private/AppFramework/App.php:61
[Sun Sep 09 20:35:07.624817 2018] [:error] [pid 1742] [client 192.168.1.100:44680] PHP   8. OC\\App\\InfoParser->parse() /var/www/nextcloud/lib/private/legacy/app.php:615

I had the same problem last week. I’ve spend a whole day searching for the cause and a solution. I ended up reinstalling Nextcloud. Fortunaly I made some backups for the calendar, contacts and notes. I have a small home install, so I used the same usernames and all the files were connected to the correct uses again.

The problem seemed to be that some php-modules where upgraded to 7.2. At least that was what I could find in the logs.

That’s what it feels like has happend here as well.

Was yours also encrypted before you re-installed?

No, I didn’t have any encryption on my system (except https).

that unfortunately is going to be a problem, if i were to re-install, I would lose everything either way.

I was able to resolve this.

I purged php7.2
made 5.6 main
and went through all of the php reqs one by one and installed them. I located these https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html

1 Like