Nextcloud version 16.0.3
Operating system and version Docker:latest
Apache 2.4.25
php 7.3.7
The issue you are facing:
Pull latest docker image 16.0.3 and tried to upgrade - (downgrade apparently are not supported so installation currently unavailable to users) - the system fails to upgrade saying it
Get the following error message:
Preparing update
Set log level to debug
Turned on maintenance mode
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Repair SQLite autoincrement
Repair step: Copy data from accounts table when migrating from ownCloud
Doctrine\DBAL\Exception\DriverException: An exception occurred while executing âSELECT COLUMN_NAME AS Field, COLUMN_TYPE AS Type, IS_NULLABLE AS Null
, COLUMN_KEY AS Key
, COLUMN_DEFAULT AS Default
, EXTRA AS Extra, COLUMN_COMMENT AS Comment, CHARACTER_SET_NAME AS CharacterSet, COLLATION_NAME AS Collation FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = ânextcloudâ AND TABLE_NAME = âoc_accountsââ:
SQLSTATE[HY000]: General error: 1 Canât create/write to file â/tmp/#sql_1_0.MAIâ (Errcode: 2 âNo such file or directoryâ)
Is this the first time youâve seen this error? yes
Steps to replicate it:
- pulled and ran the latest container
The output of your Nextcloud log in Admin > Logging:
AH00558: apache2: Could not reliably determine the serverâs fully qualified domain name, using 172.19.0.3. Set the âServerNameâ directive globally to suppress this message
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
âhtaccess.RewriteBaseâ => â/â,
âmemcache.localâ => â\OC\Memcache\APCuâ,
âapps_pathsâ =>
array (
0 =>
array (
âpathâ => â/var/www/html/appsâ,
âurlâ => â/appsâ,
âwritableâ => false,
),
1 =>
array (
âpathâ => â/var/www/html/custom_appsâ,
âurlâ => â/custom_appsâ,
âwritableâ => true,
),
),
âinstanceidâ => âockwkhajno92â,
âpasswordsaltâ => âxxxxxxxxxxxxxxxâ,
âsecretâ => âxxxxxxxxxxxxxxxxxâ,
âtrusted_domainsâ =>
array (
0 => âfiles.xxxxxxxxxxxxxx.netâ,
),
âdatadirectoryâ => â/var/www/html/dataâ,
âoverwrite.cli.urlâ => âhttps://files.xxxxxxxxxxx.netâ,
âdbtypeâ => âmysqlâ,
âversionâ => â15.0.7.0â,
âdbnameâ => ânextcloudâ,
âdbhostâ => âdbâ,
âdbportâ => ââ,
âdbtableprefixâ => âoc_â,
âmysql.utf8mb4â => true,
âdbuserâ => âxxxxxxxxxxxxxxxâ,
âdbpasswordâ => âXXXXXXXXXXXXXâ,
âinstalledâ => true,
âmail_smtpmodeâ => âsmtpâ,
âmail_from_addressâ => ânextcloudâ,
âmail_domainâ => âXXXXXXXXXXXXXâ,
âmail_smtphostâ => â10.50.20.12â,
âmail_smtpportâ => â25â,
âloglevelâ => 2,
âmaintenanceâ => false,
âmail_sendmailmodeâ => âsmtpâ,
âthemeâ => ââ,
);
The output of your Apache/nginx/system log in /var/log/____
:
[Wed Jul 10 07:40:12.016823 2019] [php7:error] [pid 33] [client 185.33.192.114:33686] PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/html/lib/private/DB/Connection.php:64\nStack trace:\n#0 /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(448): OC\DB\Connection->connect()\n#1 /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(410): Doctrine\DBAL\Connection->getDatabasePlatformVersion()\n#2 /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(354): Doctrine\DBAL\Connection->detectDatabasePlatform()\n#3 /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(710): Doctrine\DBAL\Connection->getDatabasePlatform()\n#4 /var/www/html/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n#5 /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(181): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\ in /var/www/html/lib/private/DB/Connection.php on line 64
[Wed Jul 10 07:40:38.034931 2019] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down
AH00558: apache2: Could not reliably determine the serverâs fully qualified domain name, using 172.19.0.3. Set the âServerNameâ directive globally to suppress this message
[Wed Jul 10 07:43:02.040172 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.7 configured â resuming normal operations
[Wed Jul 10 07:43:02.040838 2019] [core:notice] [pid 1] AH00094: Command line: âapache2 -D FOREGROUNDâ