Internal server error right after admin and db config

Original title : Could not boot files_versionsCould not resolve OCA\Files_Versions\Versions\IVersionManager! Class can not be instantiated

Hello All,

This is a fresh install of nc21 on a fresh VM (debian buster). I am at the installation wizard stage where I have to create admin and configure database access. When clicking done I first got a timeout, and after requesting the url again (not refreshing the page) I got an internal server error.

The error says to look at the logs, but the logs aren’t updated since the gateway error that occured at 11:15 local time. Even after multiple further requests from the browser, none of nginx, php-fpm nor nextcloud log anything, except access logs in nginx.

The last error in nextcloud log is :

https://gist.githubusercontent.com/ychaouche/07e1ab21c26da9f96ad3a04baf332a52/raw/90ad9bfa263ea98223f5d85649ed6c30aa2290f6/gistfile1.txt

Another interesting error happened with the same reqid as the previous and at exactly the same time, this time relating to trashmanager ?

https://gist.githubusercontent.com/ychaouche/b4b0755800fe557bd1581192c69d3356/raw/459415c11700b44d843479f799c1baa663e5c048/gistfile1.txt

The last error in nginx is

2021/03/01 11:15:48 [error] 13015#13015: *34 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.211.76, server: cloud.algerian-radio.dz, request: "POST /index.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.3-fpm.sock", host: "cloud.algerian-radio.dz"

No errors in php-fpm

access logs in nginx shows additional requests with no matching errors

192.168.211.76 - - [01/Mar/2021:11:59:36 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:38 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:39 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:39 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:40 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:40 +0100] "GET /favicon.ico HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:40 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:40 +0100] "GET /favicon.ico HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:41 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:11:59:41 +0100] "GET /favicon.ico HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"
192.168.211.76 - - [01/Mar/2021:12:02:23 +0100] "GET / HTTP/2.0" 500 289 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0"

searching for “Could not resolve trashManager” gives a related, still open, bug on github : Errors logged during 20/21 installation · Issue #22590 · nextcloud/server · GitHub

1 Like

Ok the trash and version problems were not the cause of the internal server error, database permissions were. Apparently the installer script forgot to tassign the database and tables to the newly created user. I manually reassigned them to it now internal server error gone and nextcloud working.