I have a broken Nextcloud installation, it seems. I moved the installation around a bit, and now I can’t get it running and I am not sure where to start troubleshooting.
This is the order of changes:
- Nextcloud is running ok at home via sanyi.nl/nextcloud
- Moved on that server at home to cloud.sanyi.nl/
2a * - Backed up (core-only)
- Restored at VPS
- It does not work now, on the VPS and reachable via cloud.sanyi.nl/
- Moved on the VPS back to sanyi.nl/nextcloud
2a: my ISP took the IP away, the server was not reachable without an entry in /etc/hosts ; I am quite sure it worked back then.
Symptoms at the moment:
- Log in to Yunohost SSO and then Nexctloud: internal server error at sanyi.nl/nextcloud/apps/dashboard/ , with a message to have a look in the log, my IPv6 and a request ID. Nginx access log only gives a couple of lines,
"GET /apps/files?sso_login=8029225...189F7894C603 HTTP/2.0" 302 154 "https://sanyi.nl/yunohost/sso/?r=9jbG91ZC5z...S5ubC" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
- Log in to Nextcloud directly hangs eternally; /var/log/nginx/sanyi.nl-access.log keeps redirecting:
2001:985:b79a::2000 - - [30/Oct/2021:19:31:01 +0100] "POST /nextcloud/sanyi.nl HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
2001:985:b79a::2000 - - [30/Oct/2021:19:31:01 +0100] "GET /nextcloud/login HTTP/2.0" 200 3743 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
2001:985:b79a::2000 - - [30/Oct/2021:19:31:01 +0100] "POST /nextcloud/sanyi.nl HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
2001:985:b79a::2000 - - [30/Oct/2021:19:31:01 +0100] "GET /nextcloud/login HTTP/2.0" 200 3741 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
2001:985:b79a::2000 - - [30/Oct/2021:19:31:01 +0100] "POST /nextcloud/sanyi.nl HTTP/2.0" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
2001:985:b79a::2000 - - [30/Oct/2021:19:31:01 +0100] "GET /nextcloud/login HTTP/2.0" 200 3743 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
(quite fast, 10+ lines per second)
Where should I look for more useful logging?
Could the cause be that I didn’t backup (nor restore) the data?
Edit: Nextcloud is at version 20 at the moment. With the backup at hand, I’ll try running the upgrade to version 22, and see where that leads.