I was running a Apache Server with Nextcloud on a Manjaro (Arch Linux) distribution. The latest upgrade to Nextcloud 21 introduced major changes such as implementing php v8 and a new user "nextcloud" to run the app.
After the upgrade I get an error on the server page: Cannot write into "config" directory!
Obviously I made sure the new nextcloud user is the owner of both the config directory the data directory and the writeable apps directory as the Arch Wiki Page suggests.
A few things I found out:
- config.php has permissions 644. If I change that to something more lenient, e.g. 777, I get additional errors (Cannot write into "apps" and data directory)
occ
commands terminate with PHP Fatal error: Allowed memory size exhausted in /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php on line 133. If I allow an unlimited amount of memory, the process gets killed after a few seconds.- Setting
'installed' => false
in the config.php changes theocc
behavior to output Nextcloud is not installed ... but only if I use the binary in /usr/bin/. If I use the occ binary inside the directory./occ
the output is again Cannot write into "config" directory! in the command line.
I am by no means an expert in this and I ran out of ideas. Any suggestions on how to proceed would be much appreciated!
I also asked this question on both the Nextcloud Forum and the Manjaro Forum and will update all links if I find a solution.