Hi everyone,
I’ve just run into an error while trying to update to PHP 7.3, now I have no idea what could be wrong. It seems like I have some issue with WebDav (there are about 30 users using Nextcloud windows desktop client).
Everything important should be noted bellow. I really appreciate any help. Thank you very much
Nextcloud version: 16.0.3
Operating system and version: Ubuntu 18.04.2 LTS
nginx version: nginx/1.14.0 (Ubuntu)
PHP version: 7.2 to be replaced with 7.3
- PHP 7.2.24-0ubuntu0.18.04.1
- PHP 7.3.11-1+ubuntu18.04.1+deb.sury.org+1
The issue you are facing: I am facing an internal server error after changing my nginx nextcloud.conf
config file. Only change I do is replacing outdated php-fpm
socket like following:
#fastcgi_pass unix:/run/php/php7.2-fpm.sock; #old fastcgi_pass unix:/run/php/php7.3-fpm.sock; #new
Both files exists, I’ve checked that.
Is this the first time you’ve seen this error?: Yes
Steps to replicate it:
- Change php7.2-fpm.sock to php7.3-fpm.sock file reference in nginx web config file.
- Run
nginx -t
- that says everything is fine. - Restart nginx.
- Load nextcloud in web-browser.
- You will get following error:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.
The output of your Nextcloud log in Admin > Logging:
{"reqId":"--reqID--","level":3,"time":"2019-12-07T12:24:05+00:00","remoteAddr":"--IPaddress--","user":"--","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/files/--username--/","message":"Error: Class 'OCA\\DAV\\Connector\\Sabre\\ExceptionLoggerPlugin' not found at /usr/share/nginx/nextcloud/remote.php#57","userAgent":"Mozilla/5.0 (Windows) mirall/2.6.0stable-Win64 (build 20190927) (Nextcloud)","version":"16.0.3.0","id":"--id--"}
– That refers to this in /usr/share/nginx/nextcloud/remote.php
:
...
if ($isXmlContentType === 0) {
// fire up a simple server to properly process the exception
$server = new Server();
if (!($e instanceof RemoteException)) {
// we shall not log on RemoteException //LINE 56
$server->addPlugin(new ExceptionLoggerPlugin('webdav', \OC::$server->getLogger())); //LINE 57
}
...
The output of your nginx/system log in /var/log/nginx/error.log
:
2019/12/07 13:24:05 [info] 9963#9963: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:63
– this refers to “php7.2-fpm.sock” to “php7.3-fpm.sock” change in nextcloud.conf
config file.
I hope that I expressed clearly all important things, English is not my mother language so if you have any questions I’m happy to answer them.