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 (eg, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Raspberry pi
Apache or nginx version (eg, Apache 2.4.25): 2.4.54
PHP version (eg, 7.4): 7.4
The issue you are facing:
When going to the …/nextcloud site, get and error:
Error
- Can’t write into config directory!This can usually be fixed by giving the webserver write access to the config directory.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- …/nextcloud
The output of your Nextcloud log in Admin > Logging:
Did find
{"reqId":"c1ZUJ4lb9CV7D2gPePF8","level":3,"time":"2023-01-21T04:59:52+00:00","remoteAddr":"192.168.254.9","user":"--","app":"PHP","method":"GET","url":"/nextcloud/index.php/csrftoken","message":"touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#275","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36","version":"","exception":{"Exception":"Error","Message":"touch(): Unable to create file /var/www/nextcloud/config/config.php because Permission denied at /var/www/nextcloud/lib/private/Config.php#275","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Config.php","line":275,"function":"touch"},{"file":"/var/www/nextcloud/lib/private/Config.php","line":143,"function":"writeData","class":"OC\\Config","type":"->"},{"file":"/var/www/nextcloud/lib/private/SystemConfig.php","line":146,"function":"setValue","class":"OC\\Config","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":900,"function":"setValue","class":"OC\\SystemConfig","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":430,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":676,"function":"initSession","class":"OC","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1144,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":34,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
There is no file named config.php in /var/www/nextcloud. There is a directory config
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
PASTE HERE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
PASTE HERE