Support intro
Sorry to hear you’re facing problems
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
Nextcloud version: 15.0.0
Operating system and version: OpenBSD 6.4
Apache or nginx version: nginx/1.14.1
PHP version: PHP 7.2.13 (cli) (built: Dec 12 2018 17:14:20) ( NTS )
The issue you are facing:
$ php-7.2 occ maintenance:mode --on
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/htdocs/cld/www/nextcloud/lib/private/DB/Connection.php:64
Is this the first time you’ve seen this error?: Y
Nextcloud log:
{"reqId":"9qnRbcEGrXTnp4wP5uOB","level":3,"time":"2019-01-28T13:38:16+00:00","remoteAddr":"88.136.16.221","user":"user","app":"PHP","method":"GET","url":"\/settings\/ajax\/checksetup","message":"Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) at Unknown#0","userAgent":"Mozilla\/5.0 (X11; OpenBSD amd64; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Iridium\/2018.5 Safari\/537.36 Chrome\/67.0.3396.40","version":"15.0.0.10"}
{"reqId":"lvv2TFoeJU7HVaHCM1f6","level":3,"time":"2019-01-28T13:38:43+00:00","remoteAddr":"88.136.16.221","user":"user","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) at Unknown#0","userAgent":"Mozilla\/5.0 (X11; OpenBSD amd64; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Iridium\/2018.5 Safari\/537.36 Chrome\/67.0.3396.40","version":"15.0.0.10"}
{"reqId":"eLPAGCqANlB8FTtWrHHc","level":3,"time":"2019-01-28T13:39:14+00:00","remoteAddr":"88.136.16.221","user":"user","app":"PHP","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Zend OPcache can't be temporary enabled (it may be only disabled till the end of request) at Unknown#0","userAgent":"Mozilla\/5.0 (X11; OpenBSD amd64; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Iridium\/2018.5 Safari\/537.36 Chrome\/67.0.3396.40","version":"15.0.0.10"}
=> the folder ‘/var/www’ is the chroot web.
=> MySQL is accessible by the web server and PHP.
The socket setted as, into /etc/my.cnf, for the client et the daemon:
socket = /var/www/var/run/mysql/mysql.sock
$ ls -al /var/www/var/run/mysql/
total 8
drwx--x--x 2 _mysql _mysql 512 Jan 27 08:02 .
drwxr-xr-x 3 root daemon 512 Oct 14 2017 ..
srwxrwxrwx 1 _mysql _mysql 0 Jan 27 08:02 mysql.sock
$ netstat -an | grep "\.3306"
tcp 0 0 127.0.0.1.3306 *.* LISTEN
How I can remediate at this problem?..
(in the fact, I cant upgrade to 15.0.2, as exemple).