Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 21.0.0-4
Operating system and version (eg, Ubuntu 20.04): 5.10.16-arch1-1
Apache or nginx version (eg, Apache 2.4.25): nginx 1.18.0-2
PHP version (eg, 7.4): 8.0.2-1
The issue you are facing:
I upgraded existing nextcloud install today. I this also required me to upgrade from php7 to php8. The upgrade wiped my configuration file. Any page I go to gives 500. Any occ
command gives MySQL server has gone away
. I am watching the logs of mariadb with journalctl -u mariadb -f
.
Every time I run an occ
command, I see [Warning] Aborted connection 21 to db: 'unconnected' user: 'unauthenticated' host: 'localhost' (This connection closed normally without authentication)
,
even though I have dbname
, dbuser
, and dbpassword
set in /etc/webapps/nextcloud/config.php
and /etc/webapps/nextcloud/config/config.php
.
I also tried changing the dbtype
to sqlite3
and I don’t get any logs at all in mariadb
,
so the config file is doing something.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Update existing nextcloud install to 21
- Set
dbuser
and everything correctly in/etc/webapps/nextcloud/config.php
- Run
sudo /usr/bin/runuser -u nextcloud -- /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade
or similar
The output of your Nextcloud log in Admin > Logging:
I can’t get into the website at all, but here is the tail of /var/log/nextcloud.log
http://ix.io/2Q8o
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
http://ix.io/2Q8r
The output of your Apache/nginx/system log in /var/log/____
:
Feb 20 19:34:19 cencored systemd[1]: Started A high performance web server and a reverse proxy server.