Latest CasaOS Nextcloud "Can't write into config directory!"

I have recently updated my CasaOS in my Proxmox LXC to v0.4.15, and this revealed that my “old” Nextcloud was a legacy app. So, I reinstalled a new one (deleted the user info too) with the latest image, and the new app no longer work because of this error:

Can’t write into config directory!
This can usually be fixed by giving the webserver write access to the config directory.

I done chmod 770 /DATA/AppData/nextcloud/var/www/html, reboot the app and LXC. But nothing.

If I installed the Nextcloud 30.0.2-fpm-alpine image, the error will become

ERR_INVALID_HTTP_RESPONSE

Hi planet9th,

Welcome to the forums!

I have a Nextcloud running on Proxmox as well. I am not familiar with CasaOS, but I suppose it is a Linux distribution. Care to share a link?

Is that an Android device you are running the command on?
This seems like a cannon for a musquito. Also, as which user did you run this command, and are you actually in the container that runs Nextcloud?

You may take the trouble of reviewing the support template that you deleted when writing your post and supplying the requested info.

Also a quick look shows they switched back to the non-fpm image just 6 hours ago.

@wbk

Welcome to the forums!

Thank you.

Care to share a link?

CasaOS LXC. You will get the IP Address in the same PVE shell which you run the command, in order to open CasaOS web GUI.

Is that an Android device you are running the command on?

My Proxmox was run in my old laptop, and …it seem to use a Samsung nvme SSD (shrug).

which user did you run this command

Root, in both the LXC shell and Nextcloud docker.

are you actually in the container that runs Nextcloud?

I didn’t try that. So, when I did, the /var/www/html chmod was already 770.

/var/www

drwxrwxr-x  2 www-data root     4096 Jan 17 17:31 data
drwxrwx--- 16 www-data www-data 4096 Jan 26 05:17 html

@jtr

Also a quick look shows they switched back to the non-fpm image just 6 hours ago.

Interesting. So, I reinstalled the Nextcloud app, but same issue.


In the host /DATA/AppData/nextcloud/var/www, do I need to manually change all of the subfolders to chmod 770?

drwxrwx---   7 root   root     4096 Jan 25 14:07 DATA
drwxrwx---  4 root root 4096 Jan 26 13:17 AppData
drwxr-xr-x 3 root root 4096 Jan 26 13:15 nextcloud
drwxr-xr-x 3 root root 4096 Jan 26 13:15 var
drwxr-xr-x 3 root root 4096 Jan 26 13:15 www
drwxrwx--- 16 www-data www-data 4096 Jan 26 13:17 html

Hi planet9th,

The system is too murky for me to see how I can help you; others may be able to help you out.

Following your link, I got to https://www.casaos.io/ and their installer at https://get.casaos.io/, neither of which easily shows what it is based on.

CasaOS seems sponsored by Zimaboard; both Zimaboard and CasaOS list “Icewhale” as their contact, but their website does not work.

You may consider running a more transparant installation helper for Nextcloud.

The forum has many posts mentioning NC AiO (so, it’s not always smooth sailing, but help is available), and other options exist. I myself run Nextcloud in a Proxmox container, installed with Yunohost as helper ‘framework’.

@wbk

The problem was solved by changing root to www-data

chown -R www-data:www-data nextcloud
1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.