[Error] I can no longer update Nextcloud or open the system settings

[Error] I can no longer update Nextcloud or open the system settings.

I’ve been having this problem since the last time I tried to update Nextcloud automatically.
I also dont know a lot about that or PHP so i thought the best what i can do is to ask you!

I get the following error message in the logs:

{“reqId”:“DOJp5k2B2sWNL4EbHKjL”,“level”:3,“time”:“2021-07-12T15:14:11+00:00”,“remoteAddr”:“95.223.75.158”,“user”:“admin”,“app”:“PHP”,“method”:“GET”,“url”:"/index.php/settings/admin/logging",“message”:{“Exception”:“Error”,“Message”:“file_exists(): open_basedir restriction in effect. File(/templates/) is not within the allowed path(s): (/var/www/vhosts/cloud.qrime.de/:/tmp/) at /var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/Template/Base.php#68”,“Code”:0,“Trace”:[{“function”:“onError”,“class”:“OC\Log\ErrorHandler”,“type”:"::"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/Template/Base.php",“line”:68,“function”:“file_exists”},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/legacy/OC_Template.php",“line”:147,“function”:“getAppTemplateDirs”,“class”:“OC\Template\Base”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/legacy/OC_Template.php",“line”:89,“function”:“findTemplate”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/TemplateLayout.php",“line”:92,“function”:"__construct",“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/legacy/OC_Template.php",“line”:183,“function”:"__construct",“class”:“OC\TemplateLayout”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/public/AppFramework/Http/TemplateResponse.php",“line”:210,“function”:“fetchPage”,“class”:“OC_Template”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/AppFramework/Http/Dispatcher.php",“line”:172,“function”:“render”,“class”:“OCP\AppFramework\Http\TemplateResponse”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/AppFramework/App.php",“line”:157,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/base.php",“line”:993,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/vhosts/cloud.qrime.de/httpdocs/index.php",“line”:37,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/vhosts/cloud.qrime.de/httpdocs/lib/private/Log/ErrorHandler.php",“Line”:92,“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36”,“version”:“21.0.1.1”,“id”:“60ec5c44b4c8d”}

I would be really happy to get this fixed! :heart:

Can you append the jq command to the logfile and post the output again?

apt install jq
tail -f nextcloud.log | jq

Hey, didn’t work i guess.

root@plesk:~# tail -f nextcloud.log | jq
tail: cannot open ‘nextcloud.log’ for reading: No such file or directory
tail: no files remaining
root@plesk:~#

You need to switch to the directory in which the log file exists first, before you can try to open it, or you need to enter the full path to the file, like e.g. :wink:

tail -f /var/nextcloud/log/nextcloud.log

tail -f /var/nextcloud/log/nextcloud.log | jq