Closed squallxb1983 closed 11 months ago
can you check the nextcloud log at /data/nextcloud.log
?
can you check the nextcloud log at
/data/nextcloud.log
?
I deleted the log before Jun 24th and attached it as below. Thank you once again for the help. nextcloud.log
Potential fix ONLYOFFICE/onlyoffice-nextcloud#830 (comment)
I'm not sure how to fix it. I tried removing onlyoffice and installing onlyoffice V8.1.0, but it seems neither worked for me.
Can you try removing onlyoffice entirely and not installing another version and see if things run?
It could be a bug with onlyoffice that they need to fix. If things still don't run even when you remove onlyoffice entirely then it could be a bug on our end, or maybe still something else.
Same problem here. Last update was 5/27 (v 26.02 I think). Updated today, and I'm getting the same message as @squallxb1983 Running on an Alpine server (x86-64), Nextcloud and Mariadb installed and updated using docker-compose. I don't have the OnlyOffice App installed, so that is not my issue.
Post your log. Even if it's the same error, there may be context around it.
Here's the live log:
The following active confs have different version dates than the samples that are shipped. This may be due to user customization or an update to the samples. You should compare the following files to the samples in the same folder and update them. Use the link at the top of the file to view the changelog. ┌────────────┬────────────┬────────────────────────────────────────────────────────────────────────┐ │ old date │ new date │ path │ ├────────────┼────────────┼────────────────────────────────────────────────────────────────────────┤ │ 2022-08-16 │ 2023-04-13 │ /config/nginx/nginx.conf │ │ 2022-08-20 │ 2023-06-24 │ /config/nginx/ssl.conf │ └────────────┴────────────┴────────────────────────────────────────────────────────────────────────┘ [custom-init] No custom files found, skipping... [ls.io-init] done. Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2006] MySQL server has gone away in /app/www/public/lib/private/DB/Connection.php:140 Stack trace:
It appears to be a Mariadb error. Nextcloud can't connect to the database, per log above. I ran database check on Mariadb
mariadb-check -u root -p<PASSWORD> -c -A # check all databases for errors
and got this:
mariadb-check: Got error: 2002: Can't connect to local server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
I updated the Mariadb container at the same time as the Nextcloud update, as I've always done, but this time it seems there is an issue. Any pointers on how to fix Mariadb appreciated.
Edit: I followed instructions detailed here https://github.com/linuxserver/docker-mariadb/issues/125 and here https://github.com/linuxserver/cstate/blob/2505217ea6d06b00a1b413d44108c47f0a6cccee/content/issues/2023-05-28-mariadb.md to roll back Mariadb to 10.6.13. Now Nexcloud displays in Maintenance mode, so the problem was Mariadb. However I do still have a different problem to solve with Nextcloud after getting past the error reported above.
Fixed the issue on my Nextcloud instance and was able to upgrade to v27. After fixing the Mariadb issue (see above) and pinning to v 10.6.13, Nextcloud appeared in Maintenance mode due to some database errors. The fix was to change the line in the config file to turn maintenance mode off, then was able to log in to Nextcloud via the web interface. In Administration, ran checks and it showed database related errors, there were four outdated tables. Ran docker exec -it nextcloud occ db:add-missing-indices
, then updated /nginx/site-confs/default.conf and /nginx/nginx.conf, restarted the container, and all is updated and functioning properly so far.
I gave up and installed nextcloud AIO instead. Then migrated all the data to AIO, now everything runs smoothly as it should be. The management in AIO is also easier and the new backup function is very useful.
For the record, I started having these 2 errors and random crashes of Nextcloud after a forced shutdown of my NAS.
Error | core | Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused
Error | core | OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
After connecting to docker and checking MariaDB, I randomly got these errors.
mariadb-check: Got error: 2013: Lost connection to server during query when executing 'CHECK TABLE ... '
mariadb-check: Got error: 2002: Can't connect to local server through socket '/var/run/mysqld/mysqld.sock' (111) when trying to connect
Although the tables were declared as OK.
Redownloading the image of the same version of MariaDB but a more recent build and recreating the stack fixed the problem.
Is there an existing issue for this?
Current Behavior
After many attempts, I finally upgraded NC to V27, but now the login page says "Internal Server Error. The server was unable to complete your request."
The container log can be found below. Thank you for the help in advance.
Expected Behavior
No response
Steps To Reproduce
upgrade version of data from V21 to V27.
Environment
CPU architecture
x86-64
Docker creation
Container logs