New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: General error: 2006 MySQL server has gone away #37916
Comments
This error suggests your db service was inaccessible briefly for whatever reason near the very end of the update process (during the code integrity check). Can you look at your db services logs for the NC update time period? Did it show any signs of restarting, crashing+restarting, running out of memory, etc? Also can you provide the details requested in the issue form - namely the Web Server, PHP version, OS, and the database (MySQL/MariaDB) version you're currently using? Out of curiosity, did you attempt to install any intermediate v24 point updates along the way that failed as well as or was this your first attempt doing an update ever? P.S. Your details suggest you're updating from v24.0.3 not v24.0.4, but that shouldn't make much difference. |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
I had the same issue a while back. Some upgrades would just kill mariadb. Sadly i dont have all the specifics anymore. It crashed on both app-upgrades or nextcloud-upgrades. One of the error-messages was:
and
However: in normal operation, the error 2006 also regularly showed up, roughly in 24 hour intervals. This did not have a lasting impact and was likely triggered by a restart of mariadb. I "fixed" this issue by moving mariadb to a docker container, and since then i did not have any further problems. Maybe this information helps someone else. |
Thanks for the additional info @newhinton. In any case, this isn't a bug in NC. It's a db server issue. Some other workaround steps are in the docs here too (which I hadn't realized we even had documented in my prior response): Let's take further follow-up to https://help.nextcloud.com 😄 |
Bug description
...
Reparaturschritt: Add token cleanup job
[Bug]: Code-Integrität wird überprüft
Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]:
General error: 2006 MySQL server has gone away
Steps to reproduce
Expected behavior
I expected the update from 24.0.4 to 24.0.12 to go through without errors.
Installation method
None
Nextcloud Server version
24
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
nix weiteres
The text was updated successfully, but these errors were encountered: