Nextcloud version (eg, 12.0.2): 13.05.2
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.29
PHP version (eg, 7.1): PJP 7.2
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Trying to reach Nexctloud thrue browser throws a 500 error
- Trying to reach Nextcloud by sync client gives a Internal Server Error
The output of your Nextcloud log in Admin > Logging:
{"reqId":"rE58E4W141vfdhK7HmSG","level":3,"time":"2018-08-14T10:20:53+01:00","remoteAddr":"89.109.115.82","user":"DNS","app":"PHP","method":"GET","url":"\/index.php\/apps\/encryption\/ajax\/getStatus","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/smbclient.so' - \/usr\/lib\/php\/20151012\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko\/20100101 Firefox\/61.0","version":"13.0.5.2"}
{"reqId":"5KgudTe6pfi1Neq9aSrY","level":3,"time":"2018-08-14T10:21:01+01:00","remoteAddr":"89.109.115.82","user":"DNS","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/DNS\/Sermicro%202018\/Assistencias%20Repsol\/Anos%20Anteriores\/Movilidad","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/smbclient.so' - \/usr\/lib\/php\/20151012\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"5e0PrFTTScVuXAGgITic","level":3,"time":"2018-08-14T10:21:36+01:00","remoteAddr":"89.109.115.82","user":"DNS","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/DNS\/Sync%20DNSCloud\/Software-Utilitarios\/Microsoft%20Office\/Microsoft%20Office%202010+patch\/InfoPath.WW","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/smbclient.so' - \/usr\/lib\/php\/20151012\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"oZcvmFHtLbhifOivzN06","level":3,"time":"2018-08-14T10:22:16+01:00","remoteAddr":"89.109.115.82","user":"Servidor","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/Servidor\/","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/smbclient.so' - \/usr\/lib\/php\/20151012\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
{"reqId":"JaGQrMijzew2ZVBUiSDz","level":3,"time":"2018-08-14T10:25:27+01:00","remoteAddr":"89.109.115.82","user":"Servidor","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/Servidor\/","message":"PHP Startup: Unable to load dynamic library '\/usr\/lib\/php\/20151012\/smbclient.so' - \/usr\/lib\/php\/20151012\/smbclient.so: cannot open shared object file: No such file or directory at Unknown#0","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.3.3 (build 1) (Nextcloud)","version":"13.0.5.2"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '',
'secret' => '',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.110',
2 => 'dnscloud.dnsolutions.pt',
),
'datadirectory' => '/DNSCloud',
'overwrite.cli.url' => 'https://dnscloud.dnsolutions.pt/',
'dbtype' => 'mysql',
'version' => '13.0.5.2',
'dbname' => 'nextcloud_db',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'instanceid' => 'ocmnpoor4wsx',
'maintenance' => false,
'mail_smtpmode' => 'smtp',
'log_rotate_size' => '10485760',
'memcache.local' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0,
'dbindex' => 0,
'password' => '',
),
'htaccess.RewriteBase' => '/',
'loglevel' => '2',
'log_type' => 'file',
'logfile' => '/var/ncdata/nextcloud.log',
'logtimezone' => 'Atlantic/Madeira',
'mail_from_address' => 'online',
'mail_smtpauthtype' => 'PLAIN',
'mail_domain' => 't',
'mail_smtphost' => '',
'mail_smtpport' => '',
'theme' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Fri Aug 24 09:48:15.070757 2018] [:error] [pid 6236] [client 89.109.115.82:54587] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/nextcloud/lib/private/DB/Connection.php:64\nStack trace:\n#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\\DB\\Connection->connect()\n#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\\DBAL\\Connection->getDatabasePlatformVersion()\n#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\\DBAL\\Connection->detectDatabasePlatform()\n#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\\DBAL\\Connection->getDatabasePlatform()\n#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\n#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\\DB\\Connection->__construct(Array, Object(Doctrine\\DBAL\\Driver\\PDOMySql\\Driver), Object(Doctrine\\DBAL\\Configura in /var/www/nextcloud/lib/private/DB/Connection.php on line 64