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
0.11.3: Mysql error, constantly restarting #251
Comments
I have no idea what the issue could be. There was no change in the database at all since v11.0. Did you make a backup before updating? |
Ok. I will check the backup. |
I googled the issue and found a reddit comment.
I have no experience and knowledge about this at all. Should we also use a volume for MySQL instead of a mount?
I think the image itself can be rolled back be creating a .env file with this line |
Thanks so much @simjanos-dev How do I change the line in |
Do not change the docker-compose.yml file. It would cause an error with the update command's git pull part (it is being removed currently, we will have a proper docker process in the future).
The line you copied here will already use the .env file's if it exists. |
I don't think that's the issue, many selfhosted projects use bind mounts and it is listed in the page of the image we are using. It might be related to the user switching to mariadb, be it the image itself or a change in the compose file that went wrong. OP, could you share the compose file you are using?
Yes this is the intended way, |
After rolling back I get this error for the mariadb-image:
There was an docker update earlier today, maybe related to that? I use the compose file from the deploy repo |
Have you been using mariadb from the beginning or did you switch later on? Also, please give me your exact CPU model and the output from running the command |
CPU lscpu |
classquiz-frontend latest a383cc6f7f0c 2 hours ago 969MB |
Can you please also run |
|
The image seem to be the correct one. My mysql:8.0 image has the same hash: 9a39efdaa0e614fa654568e3db75c847ccf834872bb6dd19da932d83e01c1884. I have really no idea what the problem is. If you have a full backup, I would just do a fresh install, copy back my storage files, import back the .sql file, and restart my server. If the error persists... I'm not sure yet. |
ok, will do, thanks a lot for your help, really appeciate it! @simjanos-dev and @sergiolaverde0 |
Please let us know how it goes, and if you need any more help. I really hope it will work after the fresh install. |
yes, will try later, but it might be a CPU issue, I might have to contact the VPS provider |
Same issue after reinstall, will contact the provider |
I made it work! Yeah! (without contacting the provider) I tried a different image: mysql:8.0-debian, that was the solution. First I got an error message, though:
and then Linguacafe was working again! |
Im glad it worked. But please keep in mind that the docker pull update command now can produce a conflict error if theres a change in the file. That command will be removed probably in the next update or the one after that, so i dont think it will cause any issues. |
Also please keep a backup from the regular mysql8 database just in case. |
It seems there is something wrong with the default image that is built from checks docs Oracle Linux sighs. I will see deeper into it, maybe we should make the Debian base the default if it affects enough cpus. |
Thank you so much! There are a lot of docker issues, I would be completely lost without your help. |
Support replied and wrote it was a rather new processor AMD EPYC 7452 32-Core, but he made a small change. He changed the host type CPU from x86-64-v2 to host. Then I stopped the server and started it again, and the error message disappeared when I used the default mysql:8.0 image. Maybe this might be useful for others with similar issues |
I just updated from 0.11.2 to 0.11.3 and got 502 Bad Gateway
A look at the logs reveals following:
`
2024-05-09 11:21:08 0 [ERROR] Incorrect definition of table mysql.event: expected column 'definer' at position 3 to have type varchar(, found type char(141).
2024-05-09 11:21:08 0 [ERROR] mariadbd: Event Scheduler: An error occurred when initializing system tables. Disabling the Event Scheduler.
2024-05-09 11:21:08 0 [Note] mariadbd: ready for connections.
Version: '11.3.2-MariaDB-1:11.3.2+maria~ubu2204' socket: '/run/mysqld/mysqld.sock' port: 3306 mariadb.org binary distribution
2024-05-09 11:21:10 3 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'hist_type' at position 9 to have type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB'), found type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB').
2024-05-09 11:21:10 3 [ERROR] Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255).
`
The text was updated successfully, but these errors were encountered: