Hi,
I have the following setup:
- Ubuntu 18.04,
- nginx 1.14.0
- php 7.2
- nextcloud 18.0.1
I can access to nextcloud from my server, but I obtain an internal error from the server.
When looking at my nginx.log
, I have:
2020/03/05 10:28:11 [error] 25051#25051: *120425 FastCGI sent in stderr: "PHP message: PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 83
PHP message: {"reqId":"MZPoM0lZwOcL7rEqIxas","level":3,"time":"2020-03-05T09:28:11+00:00","remoteAddr":"89.156.29.20","user":"--","app":"PHP","method":"GET","url":"/nextcloud/core/img/manifest.json","message":"touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#241","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36","version":""}
PHP message: PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 83
PHP message: {"reqId":"MZPoM0lZwOcL7rEqIxas","level":3,"time":"2020-03-05T09:28:11+00:00","remoteAddr":"89.156.29.20","user":"--","app":"PHP","method":"GET","url":"/nextcloud/core/img/manifest.json","message":"fopen(/var/www/nextcloud/config/config.php): failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Config.php#242","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36","version":""}
PHP message: PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 83
PHP message: {"reqId":"MZPoM0lZwOcL7rEqIxas","level":3,"time":"2020-03-05T09:28:11+00:00","remoteAddr":"89.156.29.20","user":"--","app":"PHP","method":"GET","url":"/nextcloud/core/img/manifest.json","message":"chmod(): No such file or directory at /var/www/nextcloud/lib/private/Config.php#245","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36","version":""}
PHP message: PHP Warning: f
2020/03/05 10:28:11 [error] 25051#25051: *120425 FastCGI sent in stderr: "3","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36","version":""}
PHP message: {"reqId":"MZPoM0lZwOcL7rEqIxas","level":3,"time":"2020-03-05T09:28:11+00:00","remoteAddr":"89.156.29.20","user":"--","app":"index","method":"GET","url":"/nextcloud/core/img/manifest.json","message":{"Exception":"Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":1040,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":220,"function":"executeUpdate","class":"Doctrine\\DBAL\\Connection","type":"->","args":["PRAGMA read_uncommitted = 1",[],[]]},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":683,"function":"executeUpdate","class":"OC\\DB\\Connection","type":"->","args":["PRAGMA read_uncommitted = 1"]},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":155,"functio" while reading response header from upstream, client: 89.156.29.20, server: _, request: "GET /nextcloud/core/img/manifest.json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "XXXX", referrer: "https://XXXXX/nextcloud/"
2020/03/05 10:28:11 [error] 25051#25051: *120425 FastCGI sent in stderr: "PHP message: PHP Warning: fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 83
PHP message: {"reqId":"MZPoM0lZwOcL7rEqIxas","level":3,"time":"2020-03-05T09:28:11+00:00","remoteAddr":"89.156.29.20","user":"--","app":"PHP","method":"GET","url":"/nextcloud/core/img/manifest.json","message":"fileperms(): stat failed for /var/www/nextcloud/data/nextcloud.log at /var/www/nextcloud/lib/private/Log/File.php#83","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36","version":""}
PHP message: {"reqId":"MZPoM0lZwOcL7rEqIxas","level":3,"time":"2020-03-05T09:28:11+00:00","remoteAddr":"89.156.29.20","user":"--","app":"PHP","method":"GET","url":"/nextcloud/core/img/manifest.json","message":"chmod(): No such file or directory at /var/www/nextcloud/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36","version":""}" while reading upstream, client: 89.156.29.20, server: _, request: "GET /nextcloud/core/img/manifest.json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "cooper.hopto.org", referrer: "https://XXXX/nextcloud/"
Since the wizard did not start, I guess the most important message is:
Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver
I guess that the MySQL module is correctly installed since php -m
returns:
mysqlnd
PDO
pdo_mysql
pdo_pgsql
Similarly, mysql and MongoDB seems to be installed, because I can start normally:
sudo mysql
which returns:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 35
Server version: 10.1.44-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
What shoud I do?
Thanks,