My nextcloudpi on docker (raspberry pi4) worked well until a few hours ago (i thought). I used the desktop client to sync a folder, backed it up on the server and hat no issues so far. I could upload files from my phone with no problem as well and acces them in the synced folder.
When opening the browser interface on another computer and trying to download a folder, it came an error message which i can not reproduce, because now nothing is working…
However, I looked up the error message and found some things about permissions, so I typed the command:
sudo chown -R www-data:www-data /media/storage/nextcloud
to make sure everything is correctly set up. This is the folder where the data from the container is mapped to.
I restarted the container and nothing worked after that. My desktop client does not connect
500 Internal Server Error
nor can i open up the web browser of nextcloud or nextcloudpi settings.
I rebooted the raspberry and restarted the container a few times, giving me the following docker container log:
2020-04-21 7:50:03 0 [Note] mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 187
sudo ls -l /media/storage/nextcloud
drwx—r-x 2 www-data www-data 4096 Apr 21 05:00 backup
drwx—r-x 3 www-data www-data 4096 Apr 8 14:37 bin
drwx—r-x 5 www-data www-data 4096 Apr 21 09:50 database
drwx—r-x 9 www-data www-data 4096 Apr 8 13:36 etc
drwx—r-x 3 www-data www-data 4096 Apr 6 08:28 ncp
drwx—r-x 16 www-data www-data 4096 Apr 8 14:29 nextcloud
Am i missing something?
- Why is the whole thing blown up now?
- How can i fix it without going through the whole install process again and restore everything?
3 How can I avoid this to happen again?
- What caused the first problem (not being able to download files from the web browser interface?
Thanks in advance for any hints on how to solve these problems!