[details=“Support intro”]
Sorry to hear you’re facing problems
**After accidently upgrading the database to MariaDB 10.3 (cursor in wrong window), nearly everything crashed **
I’m running Debian 10 now and except NC everything works fine (sql, ldap, dovecot, postfix, apache, …)[/details]
Nextcloud version 14 & 15:
Operating system and version Debian 10 (Buster):
Apache or nginx version Apache2:
PHP version 7.3:
In /var/log/apache2/nextcloud-error.log I’m facing:
“[Thu Feb 14 18:56:52.285564 2019] [:error] [pid 2785] [client 87.191.169.164:39257] PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /srv/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /srv/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()\n#1 /srv/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()\n#2 /srv/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()\n#3 /srv/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()\n#4 /srv/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n#5 /srv/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configurat in /srv/nextcloud/lib/private/DB/Connection.php on line 64”
via mysql-cli, the nc user is able to login and access the data.
Steps to replicate it:
- Install Debian Stretch & NC 14
- Upgrade MariaDB to 10.3
- Upgrade everything else to Debian Buster to make MariaDB working
The output of your Nextcloud log in Admin > Logging:
I can't access
The output of your config.php file in /srv/nextcloud/config
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '(some value)',
'passwordsalt' => '(some value)',
'secret' => '(some value)',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '127.0.0.1',
2 => '(some value)',
),
'datadirectory' => '/srv/nextcloud/data',
'dbtype' => 'mysql',
'version' => '15.0.0.0',
'overwrite.cli.url' => 'https://(some value)',
'dbname' => 'nextcloud',
// 'dbhost' => 'localhost:/var/run/mysqld/mysqld.sock', -> did not work as well
// 'dbhost' => '127.0.0.1', -> did not work as well
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => '(some value)',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'mail_smtpmode' => 'sendmail',
'mail_from_address' => '(some value)',
'mail_domain' => '(some value)',
'memcache.local' => '\\OC\\Memcache\\APCu',
'maintenance' => true,
// "log_type" => "owncloud",
// "logfile" => "nextcloud.log",
// "loglevel" => "3",
// "logdateformat" => "F d, Y H:i:s",
);
The output of your Apache/nginx/system log in /var/log/____
:
see above