Internal Server Error after upgrade


#1

So I was upgrading OwnCloud this weekend and have since been getting an internal server error when trying to access. At first it was the PHP version error. So I upgraded to php7.0. I’m now at least able to get to what looks like the splash screen, but it’s just the error. From what I can tell it’s related to mysql, but I can’t figure out what. My database is hosted on a remote database (not the same machine). It was 100% working prior to attempting this upgrade…please give me some pointers. I haven’t been able to find anything online.

Steps to reproduce

  1. Navigate to server IP address

Expected behaviour
Should see the normal login splash screen.

Actual behaviour
I see an internal server error screen.

Server configuration
Operating system: Ubuntu 16.04

PHP version: 7.2.5

ownCloud version: Upgraded to 10.0.8

Updated from an older ownCloud or fresh install: Updated from an older version.

Where did you install ownCloud from: Updater on Admin page

The content of config/config.php:

<?php $CONFIG = array ( 'instanceid' => '******', 'passwordsalt' => '******', 'secret' => '******', 'trusted_domains' => array ( 0 => '192.168.1.74', 1 => '******', ), 'datadirectory' => '/var/www/html/andycloud/data', 'overwrite.cli.url' => 'http://192.168.1.74/andycloud', 'dbtype' => 'mysql', 'version' => '9.1.8.2', 'dbname' => 'andycloud', 'dbhost' => '192.168.1.73', 'dbtableprefix' => 'oc_', 'dbuser' => '******', 'dbpassword' => '******', 'logtimezone' => 'UTC', 'installed' => true, 'mail_smtpmode' => 'smtp', 'maintenance' => false, 'updater.secret' => '*****', 'loglevel' => 2, 'htaccess.RewriteBase' => '/andycloud', );

andy@andycloud:/var/www/html/andycloud$ sudo -u www-data php occ config:list system
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/andycloud/lib/private/DB/Connection.php:62
Stack trace:
#0 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/html/andycloud/lib/private/DB/Connection.php(145): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/html/andycloud/lib/private/DB/ConnectionFactory.php(145): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/html/andycloud/lib/private/Server.php(521): OC\DB\ConnectionFactory->getConnection(‘mysql’, Array)
#8 /var/www/html/andycloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#9 /var/www/html/andycloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘DatabaseConnect…’)
#10 /var/www/html/andycloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘DatabaseConnect…’)
#11 /var/www/html/andycloud/lib/private/Server.php(1192): OC\ServerContainer->query(‘DatabaseConnect…’)
#12 /var/www/html/andycloud/lib/private/Server.php(398): OC\Server->getDatabaseConnection()
#13 /var/www/html/andycloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#14 /var/www/html/andycloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘AppConfig’)
#15 /var/www/html/andycloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘AppConfig’)
#16 /var/www/html/andycloud/lib/private/Server.php(1121): OC\ServerContainer->query(‘AppConfig’)
#17 /var/www/html/andycloud/lib/private/Server.php(575): OC\Server->getAppConfig()
#18 /var/www/html/andycloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#19 /var/www/html/andycloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘AppManager’)
#20 /var/www/html/andycloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘AppManager’)
#21 /var/www/html/andycloud/lib/private/Server.php(1391): OC\ServerContainer->query(‘AppManager’)
#22 /var/www/html/andycloud/lib/private/legacy/app.php(346): OC\Server->getAppManager()
#23 /var/www/html/andycloud/lib/private/legacy/app.php(110): OC_App::getEnabledApps()
#24 /var/www/html/andycloud/lib/base.php(579): OC_App::loadApps(Array)
#25 /var/www/html/andycloud/lib/base.php(997): OC::init()
#26 /var/www/html/andycloud/console.php(64): require_once(’/var/www/html/a…’)
#27 /var/www/html/andycloud/occ(11): require_once(’/var/www/html/a…’)
#28 {main}PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/andycloud/lib/private/DB/Connection.php:62
Stack trace:
#0 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/html/andycloud/lib/private/DB/Connection.php(145): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/html/andycloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\ in /var/www/html/andycloud/lib/private/DB/Connection.php on line 62

ownCloud log (data/owncloud.log)

andy@andycloud:/var/www/html/andycloud/data$ tail owncloud.log
{“reqId”:“4f61acd3-2d9b-4402-8df5-3d0f4d4ea572”,“level”:3,“time”:“2018-05-20T22:54:18+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“Error: Call to undefined function OC\App\simplexml_load_file() at /var/www/html/andycloud/lib/private/App/InfoParser.php#41”}
{“reqId”:“4f61acd3-2d9b-4402-8df5-3d0f4d4ea572”,“level”:3,“time”:“2018-05-20T22:54:18+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/html/andycloud/lib/composer/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18”}
{“reqId”:“4ece59aa-8a9f-4193-a207-c6cc85cb550c”,“level”:3,“time”:“2018-05-20T22:54:39+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“Error: Call to undefined function OC\App\simplexml_load_file() at /var/www/html/andycloud/lib/private/App/InfoParser.php#41”}
{“reqId”:“4ece59aa-8a9f-4193-a207-c6cc85cb550c”,“level”:3,“time”:“2018-05-20T22:54:39+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/html/andycloud/lib/composer/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18”}
{“reqId”:“6e4742a3-ade8-40b1-b5a1-6ab53216d663”,“level”:3,“time”:“2018-05-20T22:54:50+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“Error: Call to undefined function OC\App\simplexml_load_file() at /var/www/html/andycloud/lib/private/App/InfoParser.php#41”}
{“reqId”:“6e4742a3-ade8-40b1-b5a1-6ab53216d663”,“level”:3,“time”:“2018-05-20T22:54:50+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/html/andycloud/lib/composer/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18”}
{“reqId”:“0cc3225b-342c-4b8a-8224-2dd3fc615c66”,“level”:3,“time”:“2018-05-20T22:55:11+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“Error: Call to undefined function OC\App\simplexml_load_file() at /var/www/html/andycloud/lib/private/App/InfoParser.php#41”}
{“reqId”:“0cc3225b-342c-4b8a-8224-2dd3fc615c66”,“level”:3,“time”:“2018-05-20T22:55:11+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/html/andycloud/lib/composer/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18”}
{“reqId”:“7593b118-0be4-4fb2-b3d3-901df3667a4c”,“level”:3,“time”:“2018-05-20T22:55:22+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“Error: Call to undefined function OC\App\simplexml_load_file() at /var/www/html/andycloud/lib/private/App/InfoParser.php#41”}
{“reqId”:“7593b118-0be4-4fb2-b3d3-901df3667a4c”,“level”:3,“time”:“2018-05-20T22:55:22+00:00”,“remoteAddr”:“192.168.1.70”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/andycloud/status.php",“message”:“You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at /var/www/html/andycloud/lib/composer/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18”}
andy@andycloud:/var/www/html/andycloud/data$


#2

Hi,

How did you upgrade?


#3

It looks to me that there are some PHP extensions missing. Maybe you can compare the installed ones with the ones listed here:

https://doc.owncloud.org/server/latest/admin_manual/installation/source_installation.html#install-the-required-packages


#4

Dmitry, I upgraded via the updater on the admin page.

tom42, I’ll check out that link. Thank you.