HTTP ERROR 500 after updating from 17.0.3 to 18.0.1 over Webupdater

After updating from 17.0.3 to 18.0.1 over Webupdater i run into error 500 and see this error at apache log.

Error | 500 | GET /index.php/apps/bookmarks/public/rest/v2/folder/-1/hash HTTP/1.1 |   |   | 4.67 K | SSL/TLS-Zugriff für Apache

Error | AH01071: Got error 'PHP message: PHP Fatal error: Declaration of OCA\FilesAutomatedTagging\Operation::validateOperation($name, array $checks, $operation) must be compatible with OCP\WorkflowEngine\IOperation::validateOperation(string $name, array $checks, string $operation): void in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/apps/files_automatedtagging/lib/Operation.php on line 35'

Error | 194.25.143.242 | 500 | GET /index.php/apps/bookmarks/public/rest/v2/bookmark?page=0&limit=300 HTTP/1.1 |   |   | 4.67 K | SSL/TLS-Zugriff für Apache

Error | 194.25.143.242 |   | AH01071: Got error 'PHP message: PHP Fatal error: Declaration of OCA\FilesAutomatedTagging\Operation::validateOperation($name, array $checks, $operation) must be compatible with OCP\WorkflowEngine\IOperation::validateOperation(string $name, array $checks, string $operation): void in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/apps/files_automatedtagging/lib/Operation.php on line 35'

I give the OCC a try, but this broke with this error message.

Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: could not find driver in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/DB/Connection.php:68
Stack trace:
#0 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(420): OC\DB\Connection->connect()
[#1](https://github.com/nextcloud/server/issues/1) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(380): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
[#2](https://github.com/nextcloud/server/pull/2) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(324): Doctrine\DBAL\Connection->detectDatabasePlatform()
[#3](https://github.com/nextcloud/server/pull/3) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(683): Doctrine\DBAL\Connection->getDatabasePlatform()
[#4](https://github.com/nextcloud/server/issues/4) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/DB/Connection.php(155): Doctrine\DBAL\Connection->setTransactionIsolation()
[#5](https://github.com/nextcloud/server/issues/5) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(195): OC\DB\Connection->__construct()
[#6](https://github.com/nextcloud/server/issues/6) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/DB/ConnectionFactory.php(157): Doctrine\DBAL\DriverManager::getConnection()
[#7](https://github.com/nextcloud/server/pull/7) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(748): OC\DB\ConnectionFactory->getConnection()
[#8](https://github.com/nextcloud/server/pull/8) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}()
[#9](https://github.com/nextcloud/server/pull/9) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#10](https://github.com/nextcloud/server/pull/10) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
[#11](https://github.com/nextcloud/server/pull/11) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}()
[#12](https://github.com/nextcloud/server/issues/12) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#13](https://github.com/nextcloud/server/pull/13) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(1663): OC\ServerContainer->query()
[#14](https://github.com/nextcloud/server/issues/14) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(421): OC\Server->getDatabaseConnection()
[#15](https://github.com/nextcloud/server/pull/15) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}()
[#16](https://github.com/nextcloud/server/issues/16) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#17](https://github.com/nextcloud/server/pull/17) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query()
[#18](https://github.com/nextcloud/server/issues/18) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass()
[#19](https://github.com/nextcloud/server/pull/19) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve()
[#20](https://github.com/nextcloud/server/pull/20) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query()
[#21](https://github.com/nextcloud/server/pull/21) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query()
[#22](https://github.com/nextcloud/server/pull/22) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass()
[#23](https://github.com/nextcloud/server/pull/23) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve()
[#24](https://github.com/nextcloud/server/pull/24) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query()
[#25](https://github.com/nextcloud/server/pull/25) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
#26 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}()
[#27](https://github.com/nextcloud/server/issues/27) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#28](https://github.com/nextcloud/server/pull/28) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(433): OC\ServerContainer->query()
[#29](https://github.com/nextcloud/server/pull/29) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}()
[#30](https://github.com/nextcloud/server/pull/30) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#31](https://github.com/nextcloud/server/pull/31) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
[#32](https://github.com/nextcloud/server/pull/32) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}()
[#33](https://github.com/nextcloud/server/pull/33) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#34](https://github.com/nextcloud/server/issues/34) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(1539): OC\ServerContainer->query()
[#35](https://github.com/nextcloud/server/issues/35) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(801): OC\Server->getUserSession()
[#36](https://github.com/nextcloud/server/pull/36) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC{closure}()
[#37](https://github.com/nextcloud/server/pull/37) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#38](https://github.com/nextcloud/server/pull/38) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
[#39](https://github.com/nextcloud/server/issues/39) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility{closure}()
[#40](https://github.com/nextcloud/server/pull/40) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
[#41](https://github.com/nextcloud/server/pull/41) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(1834): OC\ServerContainer->query()
[#42](https://github.com/nextcloud/server/issues/42) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/legacy/app.php(347): OC\Server->getAppManager()
[#43](https://github.com/nextcloud/server/pull/43) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/legacy/app.php(114): OC_App::getEnabledApps()
[#44](https://github.com/nextcloud/server/pull/44) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/base.php(645): OC_App::loadApps()
[#45](https://github.com/nextcloud/server/pull/45) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/base.php(1089): OC::init()
[#46](https://github.com/nextcloud/server/pull/46) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/console.php(48): require_once('/var/www/vhosts...')
[#47](https://github.com/nextcloud/server/issues/47) /var/www/vhosts/reposrc.de/mycloud.reposrc.de/occ(11): require_once('/var/www/vhosts...')

[/details]

Nextcloud version: 17.0.3 updating to 18.0.1
Operating system and version : Ubuntu 16.04.6
Apache or nginx version : Apache/2.4.18
PHP version : 7.3.14

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Updating from 17.0.3 to 18.01 over Webupdater

The output of your config.php file:

<?php
$CONFIG = array (
  'config_is_read_only' => false,
  'instanceid' => hide,
  'passwordsalt' => hide,
  'secret' => hide,
  'trusted_domains' =>
  array (
    0 => 'mycloud.reposrc.de',
  ),
  'datadirectory' => '/var/www/vhosts/reposrc.de/mycloud.reposrc.de/data',
  'overwrite.cli.url' => 'https://mycloud.reposrc.de',
  'dbtype' => 'mysql',
  'version' => '17.0.3.1',
  'dbname' => 'mycloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => hide,
  'dbpassword' => hide,
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => hide,
  'mail_domain' => 'reposrc.de',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '587',
  'mail_smtphost' => hide,
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => hide,
  'mail_smtppassword' => hide,
  'loglevel' => 2,
  'maintenance' => false,
  'theme' => '',
  'updater.release.channel' => 'stable',
  'allowNightlyUpdates' =>
  array (
  ),
  'app_install_overwrite' =>
  array (
    0 => 'dashboard',
  ),
  'updater.secret' => hide,
);

I also opend a issue on [github](https://github.com/nextcloud/server/issues/19801)

This seems to suggest that php package to connect to mysql is missing. can you try installing sudo apt install php7.3-mysql and then running the sudo -u www-data php occ upgrade once again?

It was your issue that led me to think in this direction and help me solve mine :slight_smile:

Hi @pubmania,

that was a good point and i really missed the 7.3-mysql. don’t know why!?
But the other packeges are installed.

xml-core is already the newest version (0.13+nmu2).
php7.3-curl is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).
php7.3-gd is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).
php7.3-intl is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).
php7.3-mbstring is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).
php7.3-mysql is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).
php7.3-xml is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).
php7.3-zip is already the newest version (7.3.15-3+ubuntu16.04.1+deb.sury.org+1).

Now get this messages from occ:

root@lvps83-169-36-25:/var/www/vhosts/reposrc.de/mycloud.reposrc.de# sudo -u www-data php occ upgrade                PHP Warning:  include(/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/composer/../pimple/pimple/src/Pimple/Container.php): failed to open stream: No such file or directory in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php on line 444
    PHP Warning:  include(/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/composer/../pimple/pimple/src/Pimple/Container.php): failed to open stream: No such file or directory in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php on line 444
    PHP Warning:  include(): Failed opening '/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/composer/../pimple/pimple/src/Pimple/Container.php' for inclusion (include_path='/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pear/archive_tar:/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pear/console_getopt:/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pear/pear-core-minimal/src:/var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pear/pear_exception:/var/www/vhosts/reposrc.de/mycloud.reposrc.de/apps') in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php on line 444
    An unhandled exception has been thrown:
    Error: Class 'Pimple\Container' not found in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php:44
    Stack trace:
    #0 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(444): include()
    #1 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/vhosts...')
    #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('OC\\AppFramework...')
    #3 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(41): spl_autoload_call('OC\\AppFramework...')
    #4 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(444): include('/var/www/vhosts...')
    #5 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/vhosts...')
    #6 [internal function]: Composer\Autoload\ClassLoader->loadClass('OC\\ServerContai...')
    #7 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(197): spl_autoload_call('OC\\ServerContai...')
    #8 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(444): include('/var/www/vhosts...')
    #9 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/var/www/vhosts...')
    #10 [internal function]: Composer\Autoload\ClassLoader->loadClass('OC\\Server')
    #11 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/base.php(601): spl_autoload_call('OC\\Server')
    #12 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/base.php(1089): OC::init()
    #13 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/console.php(48): require_once('/var/www/vhosts...')
    #14 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/occ(11): require_once('/var/www/vhosts...')

I am a little bit confused about the “Pimple” and “Composer” messages.
Dont know what this is for a 3rdParty app?

Thank you
Best regards
Jan

I think your php 7.3 install is a bit messed up… Perhaps you should try and reinstall it… composer is basically a package manager for the PHP and so the error seems to suggest composer is missing somehow on your machine… you might also want to try and install composer or update it… https://getcomposer.org/doc/00-intro.md

Hi @pubmania ,

My first thought was also that something is wrong with my php installation.
But my NC instance was running before without problems with the php version. Even after restarting the machine no problems.
It was only the update that ruined it for me.
Today I made a quick try on the same server. Identical php settings in plesk.
I installed a new nc instance under a new subdomain with setup-nextcloud.php.
It runs perfectly.
So it does not seem to be due to php.
How do you see that?

Delete everything, except the directory’s with config and data (or the one with a . Before)

Then unzip the nextcloud zip, and upload the directory’s without config

Then run occ upgrade again.

Hmm… then it is something that went wrong during upgrade… if I were you, I would try what @thijssie85 has suggested.

I just had an identical issue, upgraded from v17 to v18.0.1 using the web updater, nextcloud would not load following the upgrade. I had selected to not stay in maintenance mode post upgrade in the web updater.

Connecting to server cli, I confirmed the config.php located in /var/www/nextcloud/config was correct and not the default example. In my case it still listed v17.

Ran the ownership and permissions steps as per the manual upgrade guide.

Ran sudo -u www-data php occ upgrade as per the manual update guide.

Ran sudo systemctl restart apache2.service to restart the web server.

Nextcloud instance is now loading again correctly.

https://docs.nextcloud.com/server/16/admin_manual/maintenance/manual_upgrade.html

Hi @Fellhahn,

the only way that solved my problem was to make a manual installation like you and @thijssie85 described.
I think that the webupdater broke something in some php files.
Now my NC instanz is back and i am happy!

Thanks to the community!