Skip to content
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

[fix] MySQL server has gone away in nextcloud #1065

Merged
merged 1 commit into from
Oct 27, 2020

Conversation

zamentur
Copy link
Member

The problem

Nextcloud fail due to mysql queries refused with those message in log:

[Warning] Aborted connection 110060 to db: 'nextcloud' user: 'nextcloud' host: 'localhost' (Got a packet bigger than 'max_allowed_packet' bytes)

Solution

Update max_allowed_packet to the default value inside maraidb 10.3 (16M)
See https://mariadb.com/kb/en/server-system-variables/#max_allowed_packet

PR Status

Ready

How to test

I don't know how to reproduce exactly the bug with nextcloud, i think it could be reproduced with image bigger than 1M inside user profil, but it's hypothetical.
Change max_allowed_packet has fixed the issue in my impacted ynh setup.

[Warning] Aborted connection 110060 to db: 'nextcloud' user: 'nextcloud' host: 'localhost' (Got a packet bigger than 'max_allowed_packet' bytes)
@zamentur zamentur added the micro Micro decision label Oct 12, 2020
@alexAubin alexAubin merged commit a73683c into dev Oct 27, 2020
@alexAubin alexAubin deleted the fix-mariadb-max_allowed_packet branch October 27, 2020 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
micro Micro decision
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants