-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Issue with Docker setup on fresh clone/setup #21399
Comments
Are you running mysql or Mariadb? And debian isn't a supported Linux version by us |
Both docker-compose.yml in acore-docker and the main repo are identical. I did a fresh clone of the main repo with the following
I can up the acore services without any errors. I've linked the commands + logs below. The issue seems on your end. Can you run the ac-db-import service by itself and upload a gist of that log?
The correct output should look like below included gist with 4 logs: |
@TheSCREWEDSoftware Debian is mentioned in https://www.azerothcore.org/wiki/linux-requirements for the classic install and no specific version is mentioned in the docker instructions. if Debian isn't supported then that page should probably be updated. @sogladev When you did your setup was it on Debian? I ask because in an update for 12-17 ubuntu is specifically mentioned in the dockerfile. 12-18 is the first sql file to hit an issue. I'm still digging to see if I can find the actual issue. I seem to have gotten things running. I reset again then went in the dockerfile and set ENV AC_UPDATES_ENABLE_DATABASES to 1 before building. After that I ran the compose and went to bed. It seems to either be working or at least has gotten a lot farther than last night. I'm able to attach to ac-worldserver. I will try again fresh to get the info you want, but probably not today. The last 2 days I have deleted/pulled the repo and reset everything in docker 8 times trying different things before I spent hours creating the tables mentioned in the OP trying to get to a running state without modifying any files. A bit burned atm. Edit: |
@michaeldelago docker expert pinged |
I can confirm that everything seems to be working after flipping that setting. I've gotten in game, made configuration changes through docker-compose.override.yaml, and did a rebuild. |
Preface: This is being run on local hardware, on a fresh bare-metal Debian install.
Steps to reproduce:
For reference, this seems to also happen with acore-docker though all of the notes here are working with the azerothcore-wotlk repo.
I followed the instructions on the Wiki for the Docker setup and during the docker compose up, the ac-db-import container crashes with this error
Text:
ERROR 1146 (42S02) at line 17 in file: '/azerothcore/data/sql/updates/db_world/2024_12_18_00.sql': Table 'acore_world.smart_scripts' doesn't exist
Applying of file '/azerothcore/data/sql/updates/db_world/2024_12_18_00.sql' to database 'acore_world' failed! If you are a user, please pull the latest revision from the repository. Also make sure you have not applied any of the databases with your sql client. You cannot use auto-update system and import sql files from AzerothCore repository with your sql client. If you are a developer, please fix your sql query.
Could not update the World database, see log for details.
Screenshot:
![Image](https://private-user-images.githubusercontent.com/5395206/411824760-4d057592-2851-470c-92e4-dfdefcf48450.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2ODY5NTYsIm5iZiI6MTczOTY4NjY1NiwicGF0aCI6Ii81Mzk1MjA2LzQxMTgyNDc2MC00ZDA1NzU5Mi0yODUxLTQ3MGMtOTJlNC1kZmRlZmNmNDg0NTAucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDYxNzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODFkZTQ1YWI1OTI1MDZjNjllOWU2ZTlhNmJhNjUwNGE3MmQyMTZmOGVmMDMzYmFkMTAzZjdmOWMxMjJjODFmOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.4cGLyi9fUN0xDl-UvngDYBSN8xRCedk2jgMvs_j9vpo)
Running the ac-database container and connecting into it with mysql, I use the ac_world database then list tables to get this output.
Text (corrected to markdown):
Through data/sql/base/db_world, I grabbed the "create table" portion of the query and manually created it.
After that, I re-ran the docker compose up command, then the same issue came up for a different table. With the base/db_world directory (and metallinos on discord) I created the missing table, re-ran the command, and hit the issue. Rinse and repeat.
In order the order they happened, the failures were (and yes, this was a long and tedious process)
After that there was a new error
Text:
In mysql_stmt_prepare() id: 8, sql: "INSERT INTO graveyard_zone (ID, GhostZone, Faction) VALUES (?, ?, ?)"
Table 'acore_world.graveyard_zone' doesn't exist
In mysql_stmt_prepare() id: 9, sql: "DELETE FROM graveyard_zone WHERE ID = ? AND GhostZone = ? AND Faction = ?"
Table 'acore_world.graveyard_zone' doesn't exist
In mysql_stmt_prepare() id: 10, sql: "INSERT INTO game_tele (id, position_x, position_y, position_z, orientation, map, name) VALUES (?, ?, ?, ?, ?, ?, ?)"
Table 'acore_world.game_tele' doesn't exist
In mysql_stmt_prepare() id: 11, sql: "DELETE FROM game_tele WHERE name = ?"
Table 'acore_world.game_tele' doesn't exist
In mysql_stmt_prepare() id: 78, sql: "DELETE FROM game_event_model_equip WHERE guid = ?"
Table 'acore_world.game_event_model_equip' doesn't exist
In mysql_stmt_prepare() id: 88, sql: "UPDATE version SET core_version = ?, core_revision = ?"
Table 'acore_world.version' doesn't exist
Could not prepare statements of the World database, see log for details.
While the error changed, it was basically still missing tables. So I resumed from here and added the following in order.
then another error
In mysql_stmt_prepare() id: 0, sql: "SELECT entry, pool_entry FROM pool_quest"
Table 'acore_world.pool_quest' doesn't exist
In mysql_stmt_prepare() id: 63, sql: "SELECT eventEntry, prerequisite_event FROM game_event_prerequisite"
Table 'acore_world.game_event_prerequisite' doesn't exist
In mysql_stmt_prepare() id: 68, sql: "SELECT id, quest, eventEntry FROM game_event_gameobject_quest"
Table 'acore_world.game_event_gameobject_quest' doesn't exist
In mysql_stmt_prepare() id: 69, sql: "SELECT quest, eventEntry, condition_id, num FROM game_event_quest_condition"
Table 'acore_world.game_event_quest_condition' doesn't exist
In mysql_stmt_prepare() id: 71, sql: "SELECT guid, eventEntry, npcflag FROM game_event_npcflag"
Table 'acore_world.game_event_npcflag' doesn't exist
In mysql_stmt_prepare() id: 72, sql: "SELECT questId, eventEntry FROM game_event_seasonal_questrelation"
Table 'acore_world.game_event_seasonal_questrelation' doesn't exist
In mysql_stmt_prepare() id: 74, sql: "SELECT pool_template.entry, game_event_pool.eventEntry FROM pool_template JOIN game_event_pool ON pool_template.entry = game_event_pool.pool_entry"
Table 'acore_world.game_event_pool' doesn't exist
In mysql_stmt_prepare() id: 75, sql: "SELECT eventEntry FROM game_event_arena_seasons WHERE season = ?"
Table 'acore_world.game_event_arena_seasons' doesn't exist
In mysql_stmt_prepare() id: 86, sql: "SELECT Experience FROM player_xp_for_level WHERE Level = ?"
Table 'acore_world.player_xp_for_level' doesn't exist
Could not prepare statements of the World database, see log for details.
Tables don't exist so back to the grindstone.
After that the containers came up, so I attempted to attach to the ac-worldserver, which worked. Thenshortly thereafter I got a new error.
Added the missing table, got another one, and it kept going again... It did get another error though
Added the missing tables.
At this point, I hit the limit of my patience for tedium when I know that I'm treating symptoms not the sickness. At this point I dipped off of the above and am currently digging around to try and figure out the issue. Will report back if I figure something out, but I wanted to submit this issue so I can answer questions and see if anyone else has any ideas.
The text was updated successfully, but these errors were encountered: