-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Auto Download failing with HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR #458
Comments
I honestly think you are onto something, without user agent it does not work and works fine if any user agent is available. |
I created simple pull request to include agent: #459 |
That fixed it! Thanks for the merge. Server is up and running. |
Ay carumba! Thanks for figuring this out! Here was my test: I modified my docker-compose.yml to have an entrypoint: services:
minecraft:
entrypoint: ["bash"] That allowed me to attach to the container because currently it fails and keeps restarting. Then I did
Then I tested the
@itzg THANK YOU SOOOO much for this project and providing a way to track these types of issues and for issuing new fixes so quickly. I'll happily patiently await a new image. |
@josephdpurcell the fixed image had already been pushed. |
Woohoo! I'm not sure the best way to do this, I did THANK YOU!!! |
Yep, a pull is always needed. Your approach is exactly right. I believe Docker's intent is to avoid surprise updates. |
I have the same issue. I’ve tried using Podman and Docker on different servers, and while all the containers have internet access, the problem persists: curl cannot download the .zip file. I attempted to change the entry point to /bin/sh and manually download the .zip with the agent options for curl. If I try curl without the -A parameter, it doesn't work. Downloading the file normally via the endpoint seems impossible. Create a new server, pull new images and the latest , and the same problem continue. [root@podman world_seed]# podman images [root@docker world_seed]# docker images| grep bedrock On centos or redhat , after pull the image, a recreate the container the problem continue. [root@podman world_seed]# podman run -d -it --name mc -e EULA=TRUE -e LEVEL_SEED=822815728642535760 -p 88888:19132/udp -v /world_seed:/data itzg/minecraft-bedrock-server:latest |
@tuknet2018 Can you share the output of this command when running within the container: curl -A "itzg/minecraft-bedrock-server" -I https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.31.04.zip |
[root@podman minecraft]# curl -A "itzg/minecraft-bedrock-server" -I https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.31.04.zip From a server where run the container, from container can not try because the container not start. |
/`From a docker container curl -A "itzg/minecraft-bedrock-server" -I https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.31.04.zipcurl: (6) getaddrinfo() thread failed to start / |
@tuknet2018 That error appears to be different than what is reported on this issue. The root cause of this issue was resolved by changing the user agent. The root cause of your curl error should not be resolved by just changing the user agent since it appears it cannot resolve DNS. Can you think of any reasons that DNS would not be resolved? |
For i can test , y change the entrypoint for test curl and resolution, i think the problem is curl docker run -d -it --entrypoint /bin/sh --name mc -e EULA=TRUE -p 19131:19132/udp docker.io/itzg/minecraft-bedrock-server:2024.10.0 [root@docker world_seed]# docker run -d -it --entrypoint /bin/sh --name mc -e EULA=TRUE -e LEVEL_SEED=1222690162574629 -p 20131:19132/udp itzg/minecraft-bedrock-server curl -I https://www.google.comcurl: (6) getaddrinfo() thread failed to start head /etc/resolv.confGenerated by NetworkManagernameserver 8.8.8.8 openssl s_client -connect 8.8.8.8:53CONNECTED(00000003) openssl s_client -connect minecraft.net:443CONNECTED(00000003) Launching entrypoint /opt/bedrock-entry.sh whit set -x ++ basename https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.31.04.zip
|
I have to say that is puzzling @tuknet2018. Can you make any curl requests from within the container or do they all fail with getaddrinfo? The fact that OpenSSL can start a connection is baffling, because it suggests that it's able to resolve DNS. I see some spooky curl issues that might be related:
I suggest opening a new ticket since your issue is distinct from what is reported here. |
I found the problem, with centos, redhat ... , in next post i explain detailed, but fast fix for RedHat, Docker ... , i need to create container with: The problem/bug is callsystem and seccomp |
I just fetched the latest version of itzg/minecraft-bedrock-server, but still have this issue. Any advice, how to get it running? I have no chance to do anything inside to container, since the container manager on synology is shutting down the container after the error |
@McFcologne Can you share details? Are you using docker compose? If so try docker pull. See also #458 (comment) |
Can always check if your system actually pulled the latest image by comparing sha's at |
seems to be definitely not the latest: sha256:f8b7b548e8ab2a7b5915253b4e4e096a141e4fd98c93764210752ece8bbf1a84 Container manager shows: sha256:85063b8a92a39ee9fe69e23a32517c54c691bd5ec684a0dba3eadaad92f4fe73 there is definitely a mismatch I opened a ticket at Synology to clearify what could be the issue, thank you |
Not to be overly sarcastic, but it seems like most of the recent issues are all related to the fact that semantic versioning is not used for the container image. |
I do cut releases and thank you for the indirect reminder. |
FYI https://github.com/itzg/docker-minecraft-bedrock-server/releases/tag/2024.10.0 already included the fix. So proper use of pulling the semantic versioned image would also fix user reported issues. |
Please include the following parameter in the docker run or docker create command. I have an issue downloading the new version, but the problem with curl is different; it is not related to the header but to a system call issue. --security-opt seccomp=unconfined docker run -d -it --name mc -e EULA=TRUE --security-opt seccomp=unconfined -p 19132:19132/udp -v bedrockcontainer:/data itzg/minecraft-bedrock-server If this parameter solves your problem, try configuring special security for this container, as this option allows all security permissions. |
Right, I misremembered why I was here - however, the default in the helm-chart is latest. https://github.com/itzg/minecraft-server-charts/blob/master/charts/minecraft-bedrock/values.yaml#L4 |
pulled the latest docker image, still the same issue |
Looking up latest version...
Downloading Bedrock server version 1.21.30.03 ...
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
ERROR failed to download from https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.30.03.zip
Double check that the given VERSION is valid
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
WGET fails from ubuntu 22.04 server. Made sure to apt update and upgrade everything. Restarted. Manually tried to WGET,
wget https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.30.03.zip
--2024-09-23 11:48:12-- https://www.minecraft.net/bedrockdedicatedserver/bin-linux/bedrock-server-1.21.30.03.zip
Resolving www.minecraft.net (www.minecraft.net)... 23.76.205.33, 23.76.205.26
Connecting to www.minecraft.net (www.minecraft.net)|23.76.205.33|:443... connected.
HTTP request sent, awaiting response...
Tried putting that link in my browser and it downloads fine. Wondering if Minecraft/Microsoft is blocking that agent id now and it must come from a browser? Is there a way to just manually download and put it somewhere in the server for now to bypass?
The text was updated successfully, but these errors were encountered: