nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.93k stars 4.02k forks source link

HTTP ERROR 500 after updating from 17.0.3 to 18.0.1 over Webupdater #19801

Closed stoamandl closed 4 years ago

stoamandl commented 4 years ago

Hi, i updatend my nextcloud installation over Webupdater and now i get http error 500. See my logfiles.

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'

Thank you.

Best regards Jan

llebout commented 4 years ago

I met the same bug, but updating through the CLI worked.

e.g.

cd /var/www/nextcloud && sudo -u www-data php occ upgrade
kesselb commented 4 years ago

Delete the files automated tagging app and install again from app store.

stoamandl commented 4 years ago

I met the same bug, but updating through the CLI worked.

e.g.

cd /var/www/nextcloud && sudo -u www-data php occ upgrade

Hi @leo-lb i already try that solution. But i get a lot of DB Con error messages.

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 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(380): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(324): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(683): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/DB/Connection.php(155): Doctrine\DBAL\Connection->setTransactionIsolation()
#5 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(195): OC\DB\Connection->__construct()
#6 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/DB/ConnectionFactory.php(157): Doctrine\DBAL\DriverManager::getConnection()
#7 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(748): OC\DB\ConnectionFactory->getConnection()
#8 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}()
#9 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#10 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
#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 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#13 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(1663): OC\ServerContainer->query()
#14 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(421): OC\Server->getDatabaseConnection()
#15 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}()
#16 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#17 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query()
#18 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass()
#19 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve()
#20 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query()
#21 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(70): OC\ServerContainer->query()
#22 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(100): OC\AppFramework\Utility\SimpleContainer->buildClass()
#23 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(115): OC\AppFramework\Utility\SimpleContainer->resolve()
#24 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(150): OC\AppFramework\Utility\SimpleContainer->query()
#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 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#28 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(433): OC\ServerContainer->query()
#29 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}()
#30 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#31 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
#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 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#34 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(1539): OC\ServerContainer->query()
#35 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(801): OC\Server->getUserSession()
#36 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}()
#37 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#38 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php(162): OC\ServerContainer->query()
#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 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(125): Pimple\Container->offsetGet()
#41 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/Server.php(1834): OC\ServerContainer->query()
#42 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/legacy/app.php(347): OC\Server->getAppManager()
#43 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/legacy/app.php(114): OC_App::getEnabledApps()
#44 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/base.php(645): OC_App::loadApps()
#45 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/base.php(1089): OC::init()
#46 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/console.php(48): require_once('/var/www/vhosts...')
#47 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/occ(11): require_once('/var/www/vhosts...')
* mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-03-06 06:08:14 CET; 8h ago
  Process: 438 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)
  Process: 368 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
 Main PID: 437 (mysqld)
   CGroup: /system.slice/mysql.service
           `-437 /usr/sbin/mysqld
kesselb commented 4 years ago

An exception occurred in driver: could not find driver in

PHP module for the database is missing. That happens usually if people switch to a newer PHP version and forget to install the required modules.

stoamandl commented 4 years ago

Delete the files automated tagging app and install again from app store.

Hi @kesselb,

you mean that i should just delete the hole folder from pimple? This should be the app folder. See my try from https://github.com/nextcloud/server/issues/19801#issuecomment-595777908 Thanks Best Regards

stoamandl commented 4 years ago

An exception occurred in driver: could not find driver in

PHP module for the database is missing. That happens usually if people switch to a newer PHP version and forget to install the required modules.

Okay, i just switched 2 months ago to

PHP 7.3.14 (cli) (built: Jan 24 2020 13:42:57) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.3.2, Copyright (c) 2002-2018, by ionCube Ltd.
    with Zend OPcache v7.3.14, Copyright (c) 1999-2018, by Zend Technologies

How i can get the missing module?

kesselb commented 4 years ago

I don't know. The cron might use a different PHP version than webserver. Probably the people at https://help.nextcloud.com/ are able to figure that out.

stoamandl commented 4 years ago

Okay, i will give a try at help.nextcloud.com I am not really happy with that kind of update. Stuck in the middle of nowhere is ill-conceived. Maybe if you need more information to find out what's up, let me know

Thanks a lot. Best regards

kesselb commented 4 years ago

OK. As starting point I would check if there are more than one PHP version installed and the right one is used by Nextcloud. It happens a lot that people switch the PHP version with their web hosting control panel and forget the change the version used for cli jobs.

stoamandl commented 4 years ago

Ok. A quick view at my plesk Dashboard tell me that my nextcloud domain is using php 7.3.14. php -v on console the same. image

llebout commented 4 years ago

@stoamandl There can be multiple configurations even for the same PHP version, so you really need to look things up with Plesk about that. Environment variables can be different, or the directory of PHP.

stoamandl commented 4 years ago

@stoamandl There can be multiple configurations even for the same PHP version, so you really need to look things up with Plesk about that. Environment variables can be different, or the directory of PHP.

Hi leo-lb,

i checked my plesk dashboard. I have only php 7.3.14 as option. In console i can find no alternative for php. I also linked the plesk php to my /usr/bin with ln -s /opt/plesk/php/7.3/bin/php /usr/bin/php to get shure that this is used. php7.3-mysql is also installed. Now i get with the occ upgrade commmand this errors

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...')

Browser show Internal Server Error

The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the webserver log.

Apache Errors show this

2020-03-07 06:04:51 | Error | 118.173.57.43 | 500 | GET / HTTP/1.1 |   |   | 992 | SSL/TLS-Zugriff für Apache
-- | -- | -- | -- | -- | -- | -- | -- | --
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: 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 |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: 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 |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: 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 |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Class 'Pimple\\Container' not found in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php:44 |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: Stack trace: |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #0 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(444): include() |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #1 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(322): Composer\\Autoload\\includeFile('/var/www/vhosts...') |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #2 [internal function]: Composer\\Autoload\\ClassLoader->loadClass('OC\\\\AppFramework...') |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #3 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/ServerContainer.php(41): spl_autoload_call('OC\\\\AppFramework...') |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #4 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(444): include('/var/www/vhosts...') |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #5 /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/composer/composer/ClassLoader.php(322): Composer\\Autoload\\includeFile('/var/www/vhosts...') |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #6 [internal function]: Composer\\Autoload\\ClassLoader->loadClass('OC\\\\ServerContai...') |   |   |   | Apache-Fehler
2020-03-07 06:04:51 | Warning | 118.173.57.43 |   | mod_fcgid: stderr: #7 /var/www/vhosts/reposrc.de/myclou in /var/www/vhosts/reposrc.de/mycloud.reposrc.de/lib/private/AppFramework/Utility/SimpleContainer.php on line 44 |   |   |   | Apache-Fehler
llebout commented 4 years ago

@stoamandl I'm afraid I can't be of much help then. I would need access to the machine to troubleshoot, it's a bit difficult with just those logs. I have little experience with Plesk and how it manages php modules.

stoamandl commented 4 years ago

Hi @leo-lb,

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?

llebout commented 4 years ago

@stoamandl I don't think this is the issue here. Can you run the occ CLI on that new install?

stoamandl commented 4 years ago

@stoamandl I don't think this is the issue here. Can you run the occ CLI on that new install?

Yes, I ran the occ upgrade command on the new installation. Of course i got the "Nextcloud is already latest version". So php cli seems to work

stoamandl commented 4 years ago

Hi @leo-lb ,

i solved the problem by installing the nc 18.0.1 manual and moved the config and data folder back to the manual installed nc. I think that the webupdater broke something in some php files. Because after that, the occ is running fine. Thanks for the help to the community! In future i will go up with the log level bevor updating, to get more information what is happening.

Best regards

kesselb commented 4 years ago

Seems to be resolved.

llebout commented 4 years ago

@kesselb No it's not! The Web Updater is still buggy. It's @stoamandl that successfully recovered from that Web Updater bug, but that bug isnt fixed.

kesselb commented 4 years ago

Then create a proper bug report by using the issue template and provide all the required information to reproduce the problem. Additionally the updater log would be interesting. I guess something went wrong while update the files automated tagging app (such apps should be disabled by the updater actually) or the opcache is not cleared properly.

stoamandl commented 4 years ago

@leo-lb You are right. If this is a real bug, it is not fixed yet. @kesselb You are also right. Maybe the template will help you to see the problem more clearly. Unfortunately I can only create the current server config for you. Since that was not possible in the broken state. The only thing that is different is the version. Otherwise nothing else should have changed.

Server configuration detail

Operating system: Linux 4.4.0-042stab140.1 #1 SMP Thu Aug 15 13:32:22 MSK 2019 x86_64

Webserver: Apache (fpm-fcgi)

Database: mysql 5.7.29

PHP version: 7.3.15

Modules loaded: Core, date, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, Reflection, session, standard, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, mysqlnd, bcmath, curl, dba, dom, enchant, fileinfo, gd, imagick, imap, intl, json, ldap, exif, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, redis, soap, sodium, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache

Nextcloud version: 18.0.1 - 18.0.1.3

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: unknown

Signing status Array ( )
List of activated apps Enabled: - accessibility: 1.4.0 - activity: 2.11.0 - bookmarks: 2.3.4 - calendar: 2.0.2 - cloud_federation_api: 1.1.0 - comments: 1.8.0 - contacts: 3.2.0 - dav: 1.14.0 - deck: 0.8.0 - documentserver_community: 0.1.5 - drawio: 0.9.5 - external: 3.5.0 - federatedfilesharing: 1.8.0 - federation: 1.8.0 - files: 1.13.1 - files_automatedtagging: 1.8.0 - files_external: 1.9.0 - files_pdfviewer: 1.7.0 - files_rightclick: 0.15.2 - files_sharing: 1.10.1 - files_trashbin: 1.8.0 - files_versions: 1.11.0 - files_videoplayer: 1.7.0 - firstrunwizard: 2.7.0 - logreader: 2.3.0 - lookup_server_connector: 1.6.0 - mail: 1.1.3 - nextcloud_announcements: 1.7.0 - notifications: 2.6.0 - oauth2: 1.6.0 - occweb: 0.0.7 - onlyoffice: 4.1.4 - password_policy: 1.8.0 - passwords: 2020.3.1 - photos: 1.0.0 - privacy: 1.2.0 - provisioning_api: 1.8.0 - recommendations: 0.6.0 - serverinfo: 1.8.0 - settings: 1.0.0 - sharebymail: 1.8.0 - spreed: 8.0.5 - support: 1.1.0 - survey_client: 1.6.0 - suspicious_login: 3.1.0 - systemtags: 1.8.0 - tasks: 0.12.1 - text: 2.0.0 - theming: 1.9.0 - timetracker: 0.0.42 - twofactor_backupcodes: 1.7.0 - updatenotification: 1.8.0 - viewer: 1.2.0 - workflowengine: 2.0.0 Disabled: - admin_audit - encryption - keeporsweep - user_ldap
Configuration (config/config.php) { "config_is_read_only": false, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "mycloud.reposrc.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/mycloud.reposrc.de", "dbtype": "mysql", "version": "18.0.1.3", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "mail_smtpmode": "smtp", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpauth": 1, "mail_smtpport": "587", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpsecure": "tls", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "loglevel": 2, "maintenance": false, "theme": "", "updater.release.channel": "stable", "allowNightlyUpdates": [], "app_install_overwrite": [ "dashboard" ] }

External storages: yes

External storage configuration No mounts configured

Encryption: no

User-backends:

OC\User\Database

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Also here the Updater Log!

2020-03-06T04:29:14+0000 RzumYJ8pCk [info] request to updater
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] currentStep()
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] show HTML page
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] current version: 17.0.3 build time: 2020-01-29T21:23:47+00:00 b6a2f493bba6d372e9a8813041bf3928d54cf74b
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] getUpdateServerResponse()
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] updaterServer: https://updates.nextcloud.com/updater_server/
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] releaseChannel: stable
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] internal version: 17.0.3.1
2020-03-06T04:29:14+0000 RzumYJ8pCk [info] updateURL: https://updates.nextcloud.com/updater_server/?version=17x0x3x1xxxstablexx2020-01-29T21%3A23%3A47%2B00%3A00+b6a2f493bba6d372e9a8813041bf3928d54cf74bx7x3x14
2020-03-06T04:29:15+0000 RzumYJ8pCk [info] getUpdateServerResponse response: Array
(
    [version] => 18.0.1.3
    [versionstring] => Nextcloud 18.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-18.0.1.zip
    [web] => https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=18.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => rW2CcWd2qpHJmHzu4tKNIenxpcGgYNKj87xja0BG38Cu6WcbPj1kDsx7B+MmcPvV
pJcnuTVTpD381L3CxfktNf/yk1ecHEk61XnZWqqQhSqiCBkDOFpcJ3bfnXIfkx20
MEt4YiAtzW2PMnS+MsBD+MQ37H8jEiXyzQajYdQaDeuzkUuxrxq88QgKWBx3HJgb
X/9uwRASAUAfWRCu8ONFzq0ig5KhXIPoTQFojGQcSkSxwrOl3V/6zdvyEXJ/uh88
WX/4+ZolyRljFy7/C38gxg7o3nmZsU6UFJ+rJZv5blDekWQPG3gSijOThhiuh2bZ
N4G2ppYlgquUXqcb6PcLPA==
)

2020-03-06T04:29:15+0000 RzumYJ8pCk [info] checkForUpdate() Array
(
    [version] => 18.0.1.3
    [versionstring] => Nextcloud 18.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-18.0.1.zip
    [web] => https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=18.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => rW2CcWd2qpHJmHzu4tKNIenxpcGgYNKj87xja0BG38Cu6WcbPj1kDsx7B+MmcPvV
pJcnuTVTpD381L3CxfktNf/yk1ecHEk61XnZWqqQhSqiCBkDOFpcJ3bfnXIfkx20
MEt4YiAtzW2PMnS+MsBD+MQ37H8jEiXyzQajYdQaDeuzkUuxrxq88QgKWBx3HJgb
X/9uwRASAUAfWRCu8ONFzq0ig5KhXIPoTQFojGQcSkSxwrOl3V/6zdvyEXJ/uh88
WX/4+ZolyRljFy7/C38gxg7o3nmZsU6UFJ+rJZv5blDekWQPG3gSijOThhiuh2bZ
N4G2ppYlgquUXqcb6PcLPA==
)

2020-03-06T04:29:15+0000 RzumYJ8pCk [info] getChangelogURL()
2020-03-06T04:29:15+0000 RzumYJ8pCk [info] end of checkForUpdate() Update to Nextcloud 18.0.1 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-18.0.1.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#18-0-1" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] request to updater
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] currentStep()
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] POST request for step "1"
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] startStep("1")
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] checkForExpectedFilesAndFolders()
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] end of checkForExpectedFilesAndFolders()
2020-03-06T04:29:28+0000 N3BwzoxDGF [info] endStep("1")
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] request to updater
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] currentStep()
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] Step 1 is in state "end".
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] POST request for step "2"
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] startStep("2")
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] checkWritePermissions()
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] end of checkWritePermissions()
2020-03-06T04:29:30+0000 PWe6yEq9lD [info] endStep("2")
2020-03-06T04:29:31+0000 z7ix9aBa33 [info] request to updater
2020-03-06T04:29:31+0000 z7ix9aBa33 [info] currentStep()
2020-03-06T04:29:31+0000 z7ix9aBa33 [info] Step 2 is in state "end".
2020-03-06T04:29:31+0000 z7ix9aBa33 [info] POST request for step "3"
2020-03-06T04:29:31+0000 z7ix9aBa33 [info] startStep("3")
2020-03-06T04:29:31+0000 z7ix9aBa33 [info] createBackup()
2020-03-06T04:30:54+0000 z7ix9aBa33 [info] end of createBackup()
2020-03-06T04:30:54+0000 z7ix9aBa33 [info] endStep("3")
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] request to updater
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] currentStep()
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] Step 3 is in state "end".
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] POST request for step "4"
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] startStep("4")
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] downloadUpdate()
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] getUpdateServerResponse()
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] updaterServer: https://updates.nextcloud.com/updater_server/
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] releaseChannel: stable
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] internal version: 17.0.3.1
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] updateURL: https://updates.nextcloud.com/updater_server/?version=17x0x3x1xxxstablexx2020-01-29T21%3A23%3A47%2B00%3A00+b6a2f493bba6d372e9a8813041bf3928d54cf74bx7x3x14
2020-03-06T04:30:54+0000 9HT1hDiWhU [info] getUpdateServerResponse response: Array
(
    [version] => 18.0.1.3
    [versionstring] => Nextcloud 18.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-18.0.1.zip
    [web] => https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=18.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => rW2CcWd2qpHJmHzu4tKNIenxpcGgYNKj87xja0BG38Cu6WcbPj1kDsx7B+MmcPvV
pJcnuTVTpD381L3CxfktNf/yk1ecHEk61XnZWqqQhSqiCBkDOFpcJ3bfnXIfkx20
MEt4YiAtzW2PMnS+MsBD+MQ37H8jEiXyzQajYdQaDeuzkUuxrxq88QgKWBx3HJgb
X/9uwRASAUAfWRCu8ONFzq0ig5KhXIPoTQFojGQcSkSxwrOl3V/6zdvyEXJ/uh88
WX/4+ZolyRljFy7/C38gxg7o3nmZsU6UFJ+rJZv5blDekWQPG3gSijOThhiuh2bZ
N4G2ppYlgquUXqcb6PcLPA==
)

2020-03-06T04:30:54+0000 9HT1hDiWhU [info] storage location exists
2020-03-06T04:30:56+0000 9HT1hDiWhU [info] end of downloadUpdate()
2020-03-06T04:30:56+0000 9HT1hDiWhU [info] endStep("4")
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] request to updater
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] currentStep()
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] Step 4 is in state "end".
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] POST request for step "5"
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] startStep("5")
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] verifyIntegrity()
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] getUpdateServerResponse()
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] updaterServer: https://updates.nextcloud.com/updater_server/
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] releaseChannel: stable
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] internal version: 17.0.3.1
2020-03-06T04:30:56+0000 AMWoHHuhGL [info] updateURL: https://updates.nextcloud.com/updater_server/?version=17x0x3x1xxxstablexx2020-01-29T21%3A23%3A47%2B00%3A00+b6a2f493bba6d372e9a8813041bf3928d54cf74bx7x3x14
2020-03-06T04:30:57+0000 AMWoHHuhGL [info] getUpdateServerResponse response: Array
(
    [version] => 18.0.1.3
    [versionstring] => Nextcloud 18.0.1
    [url] => https://download.nextcloud.com/server/releases/nextcloud-18.0.1.zip
    [web] => https://docs.nextcloud.com/server/18/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=18.0.1
    [autoupdater] => 1
    [eol] => 0
    [signature] => rW2CcWd2qpHJmHzu4tKNIenxpcGgYNKj87xja0BG38Cu6WcbPj1kDsx7B+MmcPvV
pJcnuTVTpD381L3CxfktNf/yk1ecHEk61XnZWqqQhSqiCBkDOFpcJ3bfnXIfkx20
MEt4YiAtzW2PMnS+MsBD+MQ37H8jEiXyzQajYdQaDeuzkUuxrxq88QgKWBx3HJgb
X/9uwRASAUAfWRCu8ONFzq0ig5KhXIPoTQFojGQcSkSxwrOl3V/6zdvyEXJ/uh88
WX/4+ZolyRljFy7/C38gxg7o3nmZsU6UFJ+rJZv5blDekWQPG3gSijOThhiuh2bZ
N4G2ppYlgquUXqcb6PcLPA==
)

2020-03-06T04:30:57+0000 AMWoHHuhGL [info] storage location: /var/www/vhosts/reposrc.de/mycloud.reposrc.de/data/updater-oc4u5qxtziwr/downloads/
2020-03-06T04:30:57+0000 AMWoHHuhGL [info] end of verifyIntegrity()
2020-03-06T04:30:57+0000 AMWoHHuhGL [info] endStep("5")
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] request to updater
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] currentStep()
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] Step 5 is in state "end".
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] POST request for step "6"
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] startStep("6")
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] extractDownload()
2020-03-06T04:30:58+0000 YGe7Td4Ae0 [info] storage location: /var/www/vhosts/reposrc.de/mycloud.reposrc.de/data/updater-oc4u5qxtziwr/downloads/
2020-03-06T04:31:10+0000 YGe7Td4Ae0 [info] end of extractDownload()
2020-03-06T04:31:10+0000 YGe7Td4Ae0 [info] endStep("6")
2020-03-06T04:31:11+0000 2CLNfwBCoY [info] request to updater
2020-03-06T04:31:11+0000 2CLNfwBCoY [info] currentStep()
2020-03-06T04:31:11+0000 2CLNfwBCoY [info] Step 6 is in state "end".
2020-03-06T04:31:11+0000 2CLNfwBCoY [info] POST request for step "7"
2020-03-06T04:31:12+0000 2CLNfwBCoY [info] startStep("7")
2020-03-06T04:31:12+0000 2CLNfwBCoY [info] setMaintenanceMode("true")
2020-03-06T04:31:12+0000 2CLNfwBCoY [info] configFileName /var/www/vhosts/reposrc.de/mycloud.reposrc.de/updater/../config/config.php
2020-03-06T04:31:12+0000 2CLNfwBCoY [info] end of setMaintenanceMode()
2020-03-06T04:31:12+0000 2CLNfwBCoY [info] endStep("7")
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] request to updater
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] currentStep()
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] Step 7 is in state "end".
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] POST request for step "8"
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] startStep("8")
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replaceEntryPoints()
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replace index.php
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replace status.php
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replace remote.php
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replace public.php
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replace ocs/v1.php
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] replace ocs/v2.php
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] end of replaceEntryPoints()
2020-03-06T04:31:13+0000 Ppr0cJzsbF [info] endStep("8")
2020-03-06T04:31:14+0000 KJ4ttclICU [info] request to updater
2020-03-06T04:31:14+0000 KJ4ttclICU [info] currentStep()
2020-03-06T04:31:14+0000 KJ4ttclICU [info] Step 8 is in state "end".
2020-03-06T04:31:14+0000 KJ4ttclICU [info] POST request for step "9"
2020-03-06T04:31:14+0000 KJ4ttclICU [info] startStep("9")
2020-03-06T04:31:14+0000 KJ4ttclICU [info] deleteOldFiles()
2020-03-06T04:31:17+0000 KJ4ttclICU [info] config sample exists
2020-03-06T04:31:17+0000 KJ4ttclICU [info] themes README exists
2020-03-06T04:32:23+0000 KJ4ttclICU [info] end of deleteOldFiles()
2020-03-06T04:32:23+0000 KJ4ttclICU [info] endStep("9")
2020-03-06T04:32:24+0000 x33zI9vzYP [info] request to updater
2020-03-06T04:32:24+0000 x33zI9vzYP [info] currentStep()
2020-03-06T04:32:24+0000 x33zI9vzYP [info] Step 9 is in state "end".
2020-03-06T04:32:24+0000 x33zI9vzYP [info] POST request for step "10"
2020-03-06T04:32:24+0000 x33zI9vzYP [info] startStep("10")
2020-03-06T04:32:24+0000 x33zI9vzYP [info] moveNewVersionInPlace()
2020-03-06T04:32:24+0000 x33zI9vzYP [info] storage location: /var/www/vhosts/reposrc.de/mycloud.reposrc.de/data/updater-oc4u5qxtziwr/downloads/nextcloud/
2020-03-06T04:32:37+0000 x33zI9vzYP [info] end of moveNewVersionInPlace()
2020-03-06T04:32:37+0000 x33zI9vzYP [info] endStep("10")
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] request to updater
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] currentStep()
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] Step 10 is in state "end".
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] POST request for step "11"
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] startStep("11")
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] setMaintenanceMode("false")
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] configFileName /var/www/vhosts/reposrc.de/mycloud.reposrc.de/updater/../config/config.php
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] end of setMaintenanceMode()
2020-03-06T04:32:50+0000 Ws8mMQlvml [info] endStep("11")
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] request to updater
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] currentStep()
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] Step 11 is in state "end".
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] POST request for step "12"
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] startStep("12")
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] finalize()
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] storage location: /var/www/vhosts/reposrc.de/mycloud.reposrc.de/data/updater-oc4u5qxtziwr/downloads/nextcloud/
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] call opcache_reset()
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] end of finalize()
2020-03-06T04:32:51+0000 1l2iPQCvqp [info] endStep("12")

If that's okay, you are welcome to reopen the issue.