docker-hashtopolis-server icon indicating copy to clipboard operation
docker-hashtopolis-server copied to clipboard

Docker crashes when rebooted

Open Metroseksuaali opened this issue 5 years ago • 1 comments

Hey,

I might be bit noob in docker world and that might be problem number1.

But me and my friend have successfully installed docker for first time and everything is working fine until we reboot server and start container again. It will only loop and generate error that database with name Hashtopolis is already created and cannot be created again. After that container crashes.

How do we can edit container so it does not try to create new DB after rebooting?

Metroseksuaali avatar Dec 03 '20 19:12 Metroseksuaali

ERROR 1007 (HY000) at line 1: Can't create database 'Hashtopolis'; database exists

ERROR 1050 (42S01) at line 11: Table 'AccessGroup' already exists

Metroseksuaali avatar Dec 03 '20 19:12 Metroseksuaali

The MySQL image used had lots of issues with DB initialization, which may have resulted in your issues.

The docker-compose.yaml file has been updated to use MariaDB instead of MySQL, which should have solved all these issues. Try again using the new file, you shouldn't have any issues.

Gitoffomalawn avatar May 05 '23 11:05 Gitoffomalawn