Server error / Mysql issue?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version: 17.0.2.1
Operating system and version: Ubuntu 16.04.6
Apache or nginx version: Apache 2.4.18
PHP version: 7.0,7.3,7.4

The issue you are facing:
Upgraded to Nextcloud 17.0.2.1. Everything was running smooth. A few minutes later a server error message appeared.

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 server log.

Output of occ status

[root@nfo1 public_html]# sudo -u cloud php7.3 occ status
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'cloud'@'localhost' (using password: YES) in /home/cloud/public_html/lib/private/DB/Connection.php:64
Stack trace:
#0 /home/cloud/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(420): OC\DB\Connection->connect()
#1 /home/cloud/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(380): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /home/cloud/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(324): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /home/cloud/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(683): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /home/cloud/public_html/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /home/cloud/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(195): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /home/cloud/public_html/lib/private/DB/ConnectionFactory.php(156): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /home/cloud/public_html/lib/private/Server.php(635): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#9 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('OCP\\IDBConnecti...')
#10 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query('OCP\\IDBConnecti...')
#11 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#12 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('DatabaseConnect...')
#13 /home/cloud/public_html/lib/private/Server.php(1554): OC\ServerContainer->query('DatabaseConnect...')
#14 /home/cloud/public_html/lib/private/Server.php(362): OC\Server->getDatabaseConnection()
#15 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#16 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('OC\\Authenticati...')
#17 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(69): OC\ServerContainer->query('OC\\Authenticati...', true)
#18 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(99): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#19 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(114): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#20 /home/cloud/public_html/lib/private/ServerContainer.php(145): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...', true)
#21 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(69): OC\ServerContainer->query('OC\\Authenticati...', true)
#22 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(99): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#23 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(114): OC\AppFramework\Utility\SimpleContainer->resolve('OC\\Authenticati...')
#24 /home/cloud/public_html/lib/private/ServerContainer.php(145): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...', true)
#25 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query('OC\\Authenticati...')
#26 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#27 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('OC\\Authenticati...')
#28 /home/cloud/public_html/lib/private/Server.php(374): OC\ServerContainer->query('OC\\Authenticati...')
#29 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#30 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('OC\\User\\Session')
#31 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query('OC\\User\\Session')
#32 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#33 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('UserSession')
#34 /home/cloud/public_html/lib/private/Server.php(1430): OC\ServerContainer->query('UserSession')
#35 /home/cloud/public_html/lib/private/Server.php(688): OC\Server->getUserSession()
#36 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#37 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('OC\\App\\AppManag...')
#38 /home/cloud/public_html/lib/private/AppFramework/Utility/SimpleContainer.php(161): OC\ServerContainer->query('OC\\App\\AppManag...')
#39 /home/cloud/public_html/3rdparty/pimple/pimple/src/Pimple/Container.php(114): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#40 /home/cloud/public_html/lib/private/ServerContainer.php(120): Pimple\Container->offsetGet('AppManager')
#41 /home/cloud/public_html/lib/private/Server.php(1725): OC\ServerContainer->query('AppManager')
#42 /home/cloud/public_html/lib/private/legacy/app.php(346): OC\Server->getAppManager()
#43 /home/cloud/public_html/lib/private/legacy/app.php(114): OC_App::getEnabledApps()
#44 /home/cloud/public_html/lib/base.php(640): OC_App::loadApps(Array)
#45 /home/cloud/public_html/lib/base.php(1078): OC::init()
#46 /home/cloud/public_html/console.php(46): require_once('/home/cloud/pub...')
#47 /home/cloud/public_html/occ(11): require_once('/home/cloud/pub...')
#48 {main}

Is this the first time you’ve seen this error?: Yes

Steps to replicate it:

  1. Upgrade to Nextcloud 17.0.2

The output of your Nextcloud log in Admin > Logging:

Can't access.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '',
  ),
  'datadirectory' => '',
  'dbtype' => 'mysql',
  'version' => '17.0.2.1',
  'overwrite.cli.url' => '',
  'dbname' => '',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'maintenance' => false,
  'mail_smtpmode' => 'sendmail',
  'mail_sendmailmode' => 'smtp',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'has_rebuilt_cache' => true,
  'loglevel' => 2,
  'updater.secret' => '',
  'theme' => '',
);

The output of your Apache/nginx/system log in /var/log/____:

[Fri Jan 17 06:25:15.425265 2020] [mpm_prefork:notice] [pid 27507] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Fri Jan 17 06:25:15.425292 2020] [core:notice] [pid 27507] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 02:55:37.170791 2020] [core:warn] [pid 27507] AH00045: child process 18072 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:37.171442 2020] [core:warn] [pid 27507] AH00045: child process 18289 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:37.171448 2020] [core:warn] [pid 27507] AH00045: child process 11588 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:37.171454 2020] [core:warn] [pid 27507] AH00045: child process 27333 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:37.171467 2020] [core:warn] [pid 27507] AH00045: child process 21231 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:37.171472 2020] [core:warn] [pid 27507] AH00045: child process 11827 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:37.171477 2020] [core:warn] [pid 27507] AH00045: child process 30484 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173576 2020] [core:warn] [pid 27507] AH00045: child process 18072 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173609 2020] [core:warn] [pid 27507] AH00045: child process 18289 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173617 2020] [core:warn] [pid 27507] AH00045: child process 11588 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173621 2020] [core:warn] [pid 27507] AH00045: child process 27333 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173627 2020] [core:warn] [pid 27507] AH00045: child process 21231 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173629 2020] [core:warn] [pid 27507] AH00045: child process 11827 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:39.173635 2020] [core:warn] [pid 27507] AH00045: child process 30484 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175726 2020] [core:warn] [pid 27507] AH00045: child process 18072 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175760 2020] [core:warn] [pid 27507] AH00045: child process 18289 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175765 2020] [core:warn] [pid 27507] AH00045: child process 11588 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175769 2020] [core:warn] [pid 27507] AH00045: child process 27333 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175774 2020] [core:warn] [pid 27507] AH00045: child process 21231 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175778 2020] [core:warn] [pid 27507] AH00045: child process 11827 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:41.175782 2020] [core:warn] [pid 27507] AH00045: child process 30484 still did not exit, sending a SIGTERM
[Sat Jan 18 02:55:43.177741 2020] [mpm_prefork:notice] [pid 27507] AH00169: caught SIGTERM, shutting down
[Sat Jan 18 02:57:09.283855 2020] [suexec:notice] [pid 3197] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Jan 18 02:57:09.356300 2020] [mpm_prefork:notice] [pid 3388] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Jan 18 02:57:09.356323 2020] [core:notice] [pid 3388] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 02:59:32.129836 2020] [fcgid:warn] [pid 3391] mod_fcgid: process 3731 graceful kill fail, sending SIGKILL
[Sat Jan 18 02:59:32.129893 2020] [fcgid:warn] [pid 3391] mod_fcgid: process 3730 graceful kill fail, sending SIGKILL
[Sat Jan 18 02:59:32.129900 2020] [fcgid:warn] [pid 3391] mod_fcgid: process 3729 graceful kill fail, sending SIGKILL
[Sat Jan 18 02:59:32.129912 2020] [fcgid:warn] [pid 3391] mod_fcgid: process 3724 graceful kill fail, sending SIGKILL
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 03:27:58.634078 2020] [mpm_prefork:notice] [pid 3388] AH00171: Graceful restart requested, doing restart
[Sat Jan 18 03:27:59.145923 2020] [mpm_prefork:notice] [pid 3388] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Jan 18 03:27:59.145948 2020] [core:notice] [pid 3388] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 03:37:03.107090 2020] [mpm_prefork:notice] [pid 3388] AH00171: Graceful restart requested, doing restart
[Sat Jan 18 03:37:06.236961 2020] [mpm_prefork:notice] [pid 3388] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Jan 18 03:37:06.236986 2020] [core:notice] [pid 3388] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 03:57:11.408860 2020] [mpm_prefork:notice] [pid 3388] AH00171: Graceful restart requested, doing restart
[Sat Jan 18 03:57:11.574600 2020] [mpm_prefork:notice] [pid 3388] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Jan 18 03:57:11.574626 2020] [core:notice] [pid 3388] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 04:06:22.721112 2020] [mpm_prefork:notice] [pid 3388] AH00169: caught SIGTERM, shutting down
[Sat Jan 18 04:06:24.848845 2020] [suexec:notice] [pid 30821] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Jan 18 04:06:24.894219 2020] [mpm_prefork:notice] [pid 30822] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Jan 18 04:06:24.894246 2020] [core:notice] [pid 30822] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
[Sat Jan 18 04:08:36.711043 2020] [mpm_prefork:notice] [pid 30822] AH00169: caught SIGTERM, shutting down
[Sat Jan 18 04:10:10.218286 2020] [suexec:notice] [pid 2084] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Sat Jan 18 04:11:02.435698 2020] [mpm_prefork:notice] [pid 2146] AH00163: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g configured -- resuming normal operations
[Sat Jan 18 04:11:02.435735 2020] [core:notice] [pid 2146] AH00094: Command line: '/usr/sbin/apache2'
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/gd.so' - /usr/lib/php/20151012/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0

Nothing was changed other than updating Nextcloud. Any help is appreciated.

Uninstall the legacy PHP 7.0 version and make sure that you correctly activate PHP 7.3 for the web server and also for the PHP cli program.It seems that the PHP configuration inconsistent and an old version should be loaded (/usr/lb/php/20151012/…).

Please also use the search function of this forum to find related threads, because this kind of question is asked and answered at least once per week.