-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Container won't start on a fresh vm - "Port may be in use" #326
Comments
FWIW this issue sounds familiar, but can't remember seeing if there were any solutions. You may need to search through Mojang BDS issues. |
Thanks for your answer. Apparently it only happens inside a vm. It doesn't happen on my actual 22.04 LTS server. I have it running now next to HA/PiHole/Plex without issues. I tried to search the Mojang issues but couldn't find something useful after briefly looking for a proper result. I'll close this one for now. |
I just ran into this whilst running:
As found in the README. I'm not running in a VM btw.
I filed a bug here: https://bugs.mojang.com/browse/MCPE-172167 |
Woe is me! I just ran into this issue.
I've tried it many ways, using the docker run example, docker compose example, and the docker compose files I've used for a while. Everything was happy until today. The only thing I can think of is my current user was added to the I've tried using root instead of my user and same result. My host machine does not have 19132 nor 19133 ports in use. I've tried modifying the port using I tried using image I don't have another machine I can try this on. I'm on Ubuntu 24.04. $ docker --version $ docker compose version All of my Minecraft servers are dead right now because of this issue. @seriousrob If you have any suggestions or advice I would greatly appreciate it! |
I am doing some debugging... I modified the docker-compose.yml to have: entrypoint: ["bash"] Then docker compose up hangs, which is fine, probably expected because I'm not sure what I'm doing exactly. In a new terminal I run:
That gets me into the box. Then some debugging. First I try to run the entrypoint myself manually: Output
Same error I see when I boot the container so thats good. Now I look if theres anything listening on ports and I see nothing. So I use nc to listen on 19132 and it works?! Output
So it seems obvious to me that something COULD run on that port, its just not for some reason!? |
More info... I was able to figure out that the entrypoint command is ULTIMATELY running this:
And that gives the same error. So, its definitely not something special about this docker-minecraft-bedrock-server project, necessarily. Its something about bedrock_server-1.21.23.01 which is the thing downloaded by this project. Perhaps https://bugs.mojang.com/browse/BDS-18482 really is the proper place for discussing the bug. |
I found an older server that I had shutdown but had pinned the version to
So, this makes me think it has something to do with my docker setup and perhaps not the executable, and also not docker-minecraft-bedrock-server. What could prevent that binary from attaching to a port inside the container? |
Oooo... I forgot: I also fiddled with my ipv6 config. I remembered this because reading https://bugs.mojang.com/browse/BDS-19079 I see:
I had disabled ipv6 following https://askubuntu.com/a/337736 but then just today I re-enabled ipv6 because I was having other issues. Well, I re-disabled ipv6 and get the same error. I am at another roadblock. |
I got my wires crossed. You NEED ipv6 ENABLED. After enabling IPV6 again (and I had to very carefully re-read the instructions from the askubuntu article) it works. |
Hi everyone,
i'm having trouble with the deployment of a new bedrock server on a fresh ubuntu 22.04 LTS vm.
I just used the default deployment command
docker run -d -it -e EULA=TRUE -p 19132:19132/udp -v mc-bedrock-data:/data itzg/minecraft-bedrock-server
but i will get a log like this from portainer:
DEBU[0000] Using /data to match uid and gid
DEBU[0000] Resolved UID=0 from match path
DEBU[0000] Resolved GID=0 from match path
Looking up latest version...
Downloading Bedrock server version 1.19.83.01 ...
Starting Bedrock server...
NO LOG FILE! - setting up server logging...
[2023-05-29 09:06:10:330 INFO] Starting Server
[2023-05-29 09:06:10:330 INFO] Version 1.19.83.01
[2023-05-29 09:06:10:330 INFO] Session ID 2013ee82-5cbf-463a-935c-32739b3bc680
[2023-05-29 09:06:10:330 INFO] Build ID 1.19.83
[2023-05-29 09:06:10:330 INFO] Branch r/19_u8
[2023-05-29 09:06:10:330 INFO] Commit ID c184ec32505984a38099320b43fd54425c2e4f5d
[2023-05-29 09:06:10:330 INFO] Configuration Publish
[2023-05-29 09:06:10:331 INFO] Level Name: Bedrock level
[2023-05-29 09:06:10:333 INFO] Game mode: 0 Survival
[2023-05-29 09:06:10:333 INFO] Difficulty: 1 EASY
[2023-05-29 09:06:10:376 INFO] opening worlds/Bedrock level/db
[2023-05-29 09:06:11:367 ERROR] Port [19132] may be in use by another process. Free up port and re-run program
[2023-05-29 09:06:11:367 ERROR] Port [19133] may be in use by another process. Free up port and re-run program
[2023-05-29 09:06:11:367 ERROR] Exiting program
I deployed different containers without issues on other machines, including Plex and Pihole but this one is giving me some headaches.
Any hints why this happens? Like i said, the vm is a fresh install and nothing is using that specific port.
regards
Robert
The text was updated successfully, but these errors were encountered: