Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

docker config files not loading to correct locations causes crash #4698

Closed
irubenp opened this issue Mar 4, 2021 · 18 comments · Fixed by #4697
Closed

docker config files not loading to correct locations causes crash #4698

irubenp opened this issue Mar 4, 2021 · 18 comments · Fixed by #4697

Comments

@irubenp
Copy link

irubenp commented Mar 4, 2021

CURRENT BEHAVIOUR:

when using docker install (on windows) when creating a fresh install there are issues with config file locations not being properly identified when starting up the server using command : docker-compose up. upon using this command the following errors appear:

ac-worldserver_1  | > Config: Missing name PidFile in config, add "PidFile = "
ac-worldserver_1  | > Config: Missing name WorldDatabaseInfo in config, add "WorldDatabaseInfo = "
ac-worldserver_1  | World database not specified in configuration file
azerothcore-wotlk_ac-worldserver_1 exited with code 1
EXPECTED BLIZZLIKE BEHAVIOUR:

typically the server will execute the command : docker-compose up with no errors and continue till fully started and ready

STEPS TO REPRODUCE THE PROBLEM:
  • Which commands to use?
    preinstall commands:
    step#1 git clone https://github.com/azerothcore/azerothcore-wotlk.git
    step#2 cd azerothcore-wotlk
    step#3 Put your data files into docker/worldserver/data/ which is inside azerothcore-wotlk
    acore install commands:
    step#1 ./bin/acore-docker-generate-etc
    step#2 ./bin/acore-docker-build
    step#3 docker-compose up

  • Do we need to have debug flags on Cmake?
    unsure

  • Do we need to look at the console while the bug happens?
    yes

EXTRA NOTES:

this bug started with a git pull command on feb 28th with a production server and has resulted in server crash since with no work around or 100% fix
sorry the ac hash/commit for this build is not available since my server has been wiped multiple times and no working build is running yet

AC HASH/COMMIT:

80cdb76

OPERATING SYSTEM:

windows 10 pro 2004, USING windows docker for desktop install method

MODULES:

no

OTHER CUSTOMIZATIONS:

no

  • Did you apply any core patch/diff?
    no
  • Did you modify your database?
    yes for making custom items/gear for players using current items in database, im not making new items that currently don't exist in database already
  • Or do you have other customizations? If yes please specify them here.
    no
@locus313
Copy link
Member

locus313 commented Mar 4, 2021

confirmed on 498c5c9

@locus313
Copy link
Member

locus313 commented Mar 4, 2021

did some additional testing and seems this only affects docker on windows. here is screenshots of the output:
image
image

@locus313
Copy link
Member

locus313 commented Mar 4, 2021

@irubenp You can run git reset --hard c2f274e06dcf85c6ccc0ab282dd6f23e8ce49c8f this will move you back to the commit right before the change that is causing this issue. This is just a workaround until we can get this fixed.

@irubenp
Copy link
Author

irubenp commented Mar 4, 2021 via email

@locus313
Copy link
Member

locus313 commented Mar 4, 2021

@irubenp the roll back will work even on a fresh git clone. You can always run git log to see the full history of commits.

@irubenp
Copy link
Author

irubenp commented Mar 4, 2021 via email

@locus313
Copy link
Member

locus313 commented Mar 4, 2021

@

Thanks, when wouldi use the rollback? Right after cloning before building it? Get Outlook for Androidhttps://aka.ms/ghei36

________________________________ From: Patrick Lewis notifications@github.com Sent: Wednesday, March 3, 2021 11:03:33 PM To: azerothcore/azerothcore-wotlk azerothcore-wotlk@noreply.github.com Cc: irubenp iruben77@hotmail.com; Mention mention@noreply.github.com Subject: Re: [azerothcore/azerothcore-wotlk] docker config files not loading to correct locations causes crash (#4698) @irubenphttps://github.com/irubenp the roll back will work even on a fresh git clone. You can always run git log to see the full history of commits. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<#4698 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJFD5V4Y7FHXES7YIE7FD3TB4PDLANCNFSM4YSHU4CA.

yep that is correct.

@irubenp
Copy link
Author

irubenp commented Mar 4, 2021 via email

@FrancescoBorzi
Copy link
Contributor

FrancescoBorzi commented Mar 4, 2021

hi @irubenp thanks for reporting this. Unfortunately I cannot reproduce it on my machine:

ac-worldserver_1 | AzerothCore rev. d7cef10+ 2021-03-04 05:13:18 +0000 (master branch) (Unix, Release) (worldserver-daemon) ready...

ac-authserver_1 | Authserver listening to 0.0.0.0:3724

so as @locus313 said, this is probably affecting Windows-only. I'll try to get a dev who actually has Windows to work on this.

Sorry for the inconvenience.

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021 via email

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021 via email

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021 via email

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021 via email

@FrancescoBorzi
Copy link
Contributor

@irubenp the issue has been fixed by @locus313 . Please update your AC server to the latest version and try again

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021

@francesoborzi i have nothing to update since i have no build running so i have been deleting and retrying non stop. no working build is present in my docker. i have now just tried to build a CLEAN acore. so many issues now and now sure what to do:

here is the current attempt at running a clean build following all steps in the docker(windows) install guide
im at step #2 build the core

$ ./bin/acore-docker-build
#2 [internal] load .dockerignore
#2 sha256:2d7cb40cfbb3b746cff76780df52ee6c2073c3328d70fa5cddc4fca316345a19
#2 transferring context: 181B done
#2 DONE 0.3s

#1 [internal] load build definition from Dockerfile
#1 sha256:e9595d873ff85eeeacd8129f9409508c1ef46fc6e1a306a1f21376d666145d39
#1 transferring dockerfile: 1.63kB 0.0s done
#1 DONE 0.4s

#3 [internal] load metadata for docker.io/library/ubuntu:20.04
#3 sha256:8e67b796a66f85f06793e026943184e32d365c77929e94d2ac98b34a1e1cb30e
#3 ...

#4 [auth] library/ubuntu:pull token for registry-1.docker.io
#4 sha256:7fac2d64e259c6b8c462e177e82e85d9f8e8181077e698e9fb6e353a2cfbe1ad
#4 DONE 0.0s

#3 [internal] load metadata for docker.io/library/ubuntu:20.04
#3 sha256:8e67b796a66f85f06793e026943184e32d365c77929e94d2ac98b34a1e1cb30e
#3 DONE 2.0s

#5 [1/8] FROM docker.io/library/ubuntu:20.04@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b
#5 sha256:809f89ab2a1f22524df5188e359973455b1d39aadc531ce7f6f55ca9510e03d6
#5 resolve docker.io/library/ubuntu:20.04@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b 0.0s done
#5 resolve docker.io/library/ubuntu:20.04@sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b done
#5 sha256:4dd97cefde62cf2d6bcfd8f2c0300a24fbcddbe0ebcd577cc8b420c29106869a 3.32kB / 3.32kB done
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 0B / 28.57MB 0.1s
#5 sha256:b4f9e18267eb98998f6130342baacaeb9553f136142d40959a1b46d6401f0f2b 1.20kB / 1.20kB done
#5 sha256:e3d7ff9efd8431d9ef39a144c45992df5502c995b9ba3c53ff70c5b52a848d9c 943B / 943B done
#5 sha256:3fc2062ea6672189447be7510fb7d5bc2ef2fda234a04b457d9dda4bba5cc635 0B / 850B 0.2s
#5 sha256:75adf526d75b82eb4f9981cce0b23608ebe6ab85c3e1ab2441f29b302d2f9aa8 0B / 162B 0.2s
#5 sha256:3fc2062ea6672189447be7510fb7d5bc2ef2fda234a04b457d9dda4bba5cc635 850B / 850B 0.3s done
#5 sha256:75adf526d75b82eb4f9981cce0b23608ebe6ab85c3e1ab2441f29b302d2f9aa8 162B / 162B 0.4s done
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 5.24MB / 28.57MB 0.7s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 7.34MB / 28.57MB 0.8s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 9.44MB / 28.57MB 0.9s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 11.53MB / 28.57MB 1.0s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 13.63MB / 28.57MB 1.1s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 15.73MB / 28.57MB 1.2s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 17.83MB / 28.57MB 1.3s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 20.97MB / 28.57MB 1.4s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 23.07MB / 28.57MB 1.5s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 25.17MB / 28.57MB 1.6s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 28.31MB / 28.57MB 1.7s
#5 sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 28.57MB / 28.57MB 1.7s done
#5 extracting sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f
#5 extracting sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f 1.8s done
#5 extracting sha256:3fc2062ea6672189447be7510fb7d5bc2ef2fda234a04b457d9dda4bba5cc635 done
#5 extracting sha256:75adf526d75b82eb4f9981cce0b23608ebe6ab85c3e1ab2441f29b302d2f9aa8 done
#5 DONE 4.1s

#6 [2/8] RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev
#6 sha256:6694739f506e78f581df7c0a09c3a589ef902b36943e2cd79836734d60abe868
#6 0.321
#6 0.321 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#6 0.321
#6 1.158 Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
#6 1.653 Get:2 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [21.6 kB]
#6 1.758 Get:3 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [671 kB]
#6 2.607 Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [651 kB]
#6 3.434 Get:5 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [177 kB]
#6 ...

#7 [internal] load build context
#7 sha256:e9de2d5a0ee4799fb5251196b85ce49bb1c942563e961c3b0cc0451ba5ef62c2
#7 transferring context: 420.10MB 9.8s
#7 transferring context: 435.69MB 11.7s done
#7 DONE 11.8s

#6 [2/8] RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev
#6 sha256:6694739f506e78f581df7c0a09c3a589ef902b36943e2cd79836734d60abe868
#6 21.63 Err:6 http://archive.ubuntu.com/ubuntu focal InRelease
#6 21.63 Could not connect to archive.ubuntu.com:80 (91.189.88.142). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused)
#6 21.63 Err:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease
#6 21.63 Unable to connect to archive.ubuntu.com:http:
#6 21.63 Err:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease
#6 21.63 Unable to connect to archive.ubuntu.com:http:
#6 21.64 Fetched 1630 kB in 21s (76.5 kB/s)
#6 21.64 Reading package lists...
#6 21.69 Building dependency tree...
#6 21.70 Reading state information...
#6 21.70 All packages are up to date.
#6 21.70 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to archive.ubuntu.com:80 (91.189.88.142). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused)
#6 21.70 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Unable to connect to archive.ubuntu.com:http:
#6 21.70 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Unable to connect to archive.ubuntu.com:http:
#6 21.70 W: Some index files failed to download. They have been ignored, or old ones used instead.
#6 21.70
#6 21.70 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#6 21.70
#6 21.71 Reading package lists...
#6 21.76 Building dependency tree...
#6 21.77 Reading state information...
#6 21.77 Package gcc is not available, but is referred to by another package.
#6 21.77 This may mean that the package is missing, has been obsoleted, or
#6 21.77 is only available from another source
#6 21.77 However the following packages replace it:
#6 21.77 gcc-9-doc gcc-10-doc
#6 21.77
#6 21.77 Package libbz2-dev is not available, but is referred to by another package.
#6 21.77 This may mean that the package is missing, has been obsoleted, or
#6 21.77 is only available from another source
#6 21.77
#6 21.77 Package make is not available, but is referred to by another package.
#6 21.77 This may mean that the package is missing, has been obsoleted, or
#6 21.77 is only available from another source
#6 21.77
#6 21.77 Package libncurses-dev is not available, but is referred to by another package.
#6 21.77 This may mean that the package is missing, has been obsoleted, or
#6 21.77 is only available from another source
#6 21.77
#6 21.77 Package clang is not available, but is referred to by another package.
#6 21.77 This may mean that the package is missing, has been obsoleted, or
#6 21.77 is only available from another source
#6 21.77
#6 21.77 Package git is not available, but is referred to by another package.
#6 21.77 This may mean that the package is missing, has been obsoleted, or
#6 21.77 is only available from another source
#6 21.77
#6 21.78 E: Package 'git' has no installation candidate
#6 21.78 E: Unable to locate package cmake
#6 21.78 E: Package 'make' has no installation candidate
#6 21.78 E: Package 'gcc' has no installation candidate
#6 21.78 E: Unable to locate package g+
#6 21.78 E: Package 'clang' has no installation candidate
#6 21.78 E: Package 'libbz2-dev' has no installation candidate
#6 21.78 E: Unable to locate package libreadline-dev
#6 21.78 E: Package 'libncurses-dev' has no installation candidate
#6 21.78 E: Unable to locate package libace-6.4.5
#6 21.78 E: Couldn't find any package by glob 'libace-6.4.5'
#6 21.78 E: Unable to locate package libace-dev
#6 ERROR: executor failed running [/bin/sh -c apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev]: exit code: 100

[2/8] RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev:


executor failed running [/bin/sh -c apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.4.5 libace-dev]: exit code: 100
Unable to find image 'acbuild:latest' locally
docker: Error response from daemon: pull access denied for acbuild, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021

sorry for the long post i have since FIXED my connection issue to the ubuntu servers, trying to build acore again

@irubenp
Copy link
Author

irubenp commented Mar 5, 2021

SUCCESS!!

ac-worldserver_1 | WORLD: World initialized in 0 minutes 14 seconds
ac-worldserver_1 |
ac-worldserver_1 | AC>Monthly quests reset for all characters.
ac-worldserver_1 | Calendar deletion of old events.
ac-worldserver_1 | Guild Daily Cap reset.
ac-worldserver_1 | AC>worldserver process priority class set to -15
ac-worldserver_1 | Starting up Auction House Listing thread...
ac-worldserver_1 | Max allowed socket connections 1048576
ac-worldserver_1 | AzerothCore rev. db6018a+ 2021-03-05 05:17:47 -0800 (master branch) (Unix, Release) (worldserver-daemon) ready...

Thanks to everyone that spent time helping to fix this issue. confirmed fixed! server on docker(windows) is working

@FrancescoBorzi
Copy link
Contributor

@irubenp thanks for letting us know!

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants