I have an Ubuntu server running on a raspberry pi that I want to use as a NextCloud server. I’ve did a straight forward
sudo snap install nextcloud
and the package is installed without any warning and such. Then, from a browser on another computer I went to the IP address of the raspberry pi address. I was greeted with NextCloud’s interface to create a username and password for the admin. I added those and then I’m stuck on a login screen. I type in the username and password that I set, and I’m being transferred to the same page without any error message or any further information.
I ran sudo snap remove --purge nextcloud and then I installed nextcloud again.
Once installed, I changed /var/snap/nextcloud/30263/nextcloud/config/config.php to include the line datadirectory => /media/big/nextcloud
I also changed the /media/big/nextcloud configuration as per this
during install of ubuntu there is an option to install additional apps by selecting them from a list. Nextcloud snap is one of these options, select the checkbox for it and continue - Nextcloud snap is ready once Ubuntu Server install is complete.
I have this system and what I did was all that you did for the config file but I linked the external (NFS - as it was on a network drive) folder to the data folder and all is good.
Hi, I’ve followed your instructions, and I ended up in the same situation as my original post. I’ve done that in a fresh new install of ubuntu server on my raspberry pi. Clearly I’m missing something, only I cannot figure out what.
I’ve purged the package, and installed it again, following again your instructions and checked I can login before moving the datafolder. Things sort of worked at this stage (look below). But then, when I changed the data directory to the external drive nextcloud failed to start complaining about permissions and the lack of .ocdata and/or wrong permissions. I tried to fix that but I saw that the permission are a bit more complex that just going with chmod 770 -R /path/to/external/data/folder so I reinstalled everything again, only this time I copyed the folder using sudo cp -a /var/snap/nextcloud/current/nextcloud/data /path/to/external/data/folder and this works.
I still have a problem that I don’t think is relevant here, though I hope you can still help me. When I try to login from my Vivaldi browser (what I usually use) login fails (as per my original post). I tried again from Firefox and this worked. Do I tried again Vivaldi - failed. Vivaldi in incognito mode? Works. So the problem is somewhere with Vivaldi. I tried removing the cache and distabling all extensions but this didn’t help. Any idea where I should look in addition?
The problem is that I’m constantly being redirected to the login page. I don’t see any error message or warning. I only get the login screen again. It doesn’t matter if I’m putting a right or wrong username and password. It’s the same.