itzg / docker-minecraft-bedrock-server

Containerized Minecraft Bedrock Dedicated Server with selectable version
MIT License
1.17k stars 221 forks source link

Outdated Server #192

Closed joebob692 closed 3 years ago

joebob692 commented 3 years ago

Hello, I tried to sign into my MC server today and it said I had an outdated server. I stopped the conatiner, downloaded the latest image, reset the conatiner and tried to start it. The issue is now it just crashes every minute and starts over. With debug false the log hangs on "Looking up latest version..." I set debug to true and got this output. However, I have no idea what im looking for. It is running on a Synology DS720+, it worked flawlessly for a few months until today. Any help is appreciated.

date stream content 2021-10-26 00:18:06 stdout ++ jq -r '.[0].href' 2021-10-26 00:18:06 stdout ++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:18:06 stdout + for i in {1..3} 2021-10-26 00:18:05 stdout + sleep 1 2021-10-26 00:18:05 stdout + [[ -n '' ]] 2021-10-26 00:18:05 stdout + DOWNLOAD_URL= 2021-10-26 00:18:05 stdout ++ echo '' 2021-10-26 00:17:58 stdout DEBU[0003] Sending message on stdin due to SIGTERM message=stop 2021-10-26 00:17:58 stdout DEBU[0003] Forwarding signal signal=terminated 2021-10-26 00:17:55 stdout ++ jq -r '.[0].href' 2021-10-26 00:17:55 stdout ++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:17:55 stdout + for i in {1..3} 2021-10-26 00:17:55 stdout + for a in data-platform 2021-10-26 00:17:55 stdout Looking up latest version... 2021-10-26 00:17:55 stdout + echo 'Looking up latest version...' 2021-10-26 00:17:55 stdout + case ${VERSION^^} in 2021-10-26 00:17:55 stdout + [[ TRUE != TRUE ]] 2021-10-26 00:17:55 stdout + downloadPage=https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:17:55 stdout DEBUG: running as uid=1031 gid=991 groups=991 with drwxrwxrwx 1 1026 users 832 Oct 25 22:55 /data 2021-10-26 00:17:55 stdout + echo 'DEBUG: running as uid=1031 gid=991 groups=991 with drwxrwxrwx 1 1026 users 832 Oct 25 22:55 /data' 2021-10-26 00:17:55 stdout ++ ls -ld /data 2021-10-26 00:17:55 stdout ++ id -a 2021-10-26 00:17:55 stdout + curlArgs=(-v) 2021-10-26 00:17:55 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 00:17:55 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 00:17:55 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 00:17:51 stdout + DOWNLOAD_URL= 2021-10-26 00:17:41 stdout ++ curl -s https://mc-bds-helper.vercel.app/api/latest 2021-10-26 00:17:41 stdout + [[ -z '' ]] 2021-10-26 00:17:40 stdout + sleep 1 2021-10-26 00:17:40 stdout + [[ -n '' ]] 2021-10-26 00:17:40 stdout + DOWNLOAD_URL= 2021-10-26 00:17:40 stdout ++ echo '' 2021-10-26 00:17:30 stdout ++ jq -r '.[0].href' 2021-10-26 00:17:30 stdout ++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:17:30 stdout + for i in {1..3} 2021-10-26 00:17:29 stdout + sleep 1 2021-10-26 00:17:29 stdout + [[ -n '' ]] 2021-10-26 00:17:29 stdout + DOWNLOAD_URL= 2021-10-26 00:17:29 stdout ++ echo '' 2021-10-26 00:17:19 stdout ++ jq -r '.[0].href' 2021-10-26 00:17:19 stdout ++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:17:19 stdout + for i in {1..3} 2021-10-26 00:17:18 stdout + sleep 1 2021-10-26 00:17:18 stdout + [[ -n '' ]] 2021-10-26 00:17:18 stdout + DOWNLOAD_URL= 2021-10-26 00:17:18 stdout ++ echo '' 2021-10-26 00:17:08 stdout ++ jq -r '.[0].href' 2021-10-26 00:17:08 stdout ++ restify --user-agent=itzg/minecraft-bedrock-server --headers 'accept-language:*' --attribute=data-platform=serverBedrockLinux https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:17:08 stdout + for i in {1..3} 2021-10-26 00:17:08 stdout + for a in data-platform 2021-10-26 00:17:08 stdout Looking up latest version... 2021-10-26 00:17:08 stdout + echo 'Looking up latest version...' 2021-10-26 00:17:08 stdout + case ${VERSION^^} in 2021-10-26 00:17:08 stdout + [[ TRUE != TRUE ]] 2021-10-26 00:17:08 stdout + downloadPage=https://www.minecraft.net/en-us/download/server/bedrock 2021-10-26 00:17:08 stdout DEBUG: running as uid=1031 gid=991 groups=991 with drwxrwxrwx 1 1026 users 832 Oct 25 22:55 /data 2021-10-26 00:17:08 stdout + echo 'DEBUG: running as uid=1031 gid=991 groups=991 with drwxrwxrwx 1 1026 users 832 Oct 25 22:55 /data' 2021-10-26 00:17:08 stdout ++ ls -ld /data 2021-10-26 00:17:08 stdout ++ id -a 2021-10-26 00:17:08 stdout + curlArgs=(-v) 2021-10-26 00:17:08 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 00:17:08 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 00:17:08 stdout DEBU[0000] Using /data to match uid and gid

itzg commented 3 years ago

Thank you for providing the debug output. That's quite strange that it failed to retrieve metadata from the primary and secondary sources. Can you try an experiment by running:

docker run --rm --entrypoint curl itzg/minecraft-bedrock-server google.com
joebob692 commented 3 years ago

Welp, once you said it was stange see it fail from both sources, I shut off the deny all firewall rule and it connected, don't know what changed, but ill figure that out. I typed in the code you gave me, its about haf way down. However, I'm getting a different error about permissions denied. Pretty sure its just on my end.

Edit: not sure if it makes a difference but I am using OpenVPN to connect remotely right now.

EDIT 2: Making progress, now I have the You have to authenticate to Microsoft services error. I saw another thread with the same thing. Reading now.

date stream content 2021-10-26 03:00:50 stdout DEBU[0010] Forwarding signal signal="child exited" 2021-10-26 03:00:50 stdout mv: cannot move 'behavior_packs' to 'backup-pre-1.17.40.06/behavior_packs': Permission denied 2021-10-26 03:00:50 stdout Backing up behavior_packs into backup-pre-1.17.40.06 2021-10-26 03:00:46 stdout DEBU[0006] Sending message on stdin due to SIGTERM message=stop 2021-10-26 03:00:46 stdout DEBU[0006] Forwarding signal signal=terminated 2021-10-26 03:00:41 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 03:00:40 stdout Looking up latest version... 2021-10-26 03:00:40 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 03:00:40 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 03:00:40 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 03:00:36 stdout mv: cannot move 'behavior_packs' to 'backup-pre-1.17.40.06/behavior_packs': Permission denied 2021-10-26 03:00:36 stdout Backing up behavior_packs into backup-pre-1.17.40.06 2021-10-26 03:00:35 stdout docker run --rm --entrypoint curl itzg/minecraft-bedrock-server google.com 2021-10-26 03:00:32 stdout DEBU[0005] Forwarding signal signal="window changed" 2021-10-26 03:00:27 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 03:00:27 stdout Looking up latest version... 2021-10-26 03:00:27 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 03:00:27 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 03:00:27 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 02:59:10 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 02:59:09 stdout Looking up latest version... 2021-10-26 02:59:09 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 02:59:09 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 02:59:09 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 02:59:05 stdout mv: cannot move 'behavior_packs' to 'backup-pre-1.17.40.06/behavior_packs': Permission denied 2021-10-26 02:59:05 stdout Backing up behavior_packs into backup-pre-1.17.40.06 2021-10-26 02:58:56 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 02:58:55 stdout Looking up latest version... 2021-10-26 02:58:55 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 02:58:55 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 02:58:55 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 02:58:52 stdout mv: cannot move 'behavior_packs' to 'backup-pre-1.17.40.06/behavior_packs': Permission denied 2021-10-26 02:58:52 stdout Backing up behavior_packs into backup-pre-1.17.40.06 2021-10-26 02:58:48 stdout docker run --rm --entrypoint curl itzg/minecraft-bedrock-server google.com 2021-10-26 02:58:43 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 02:58:43 stdout docker run --rm --entrypoint curl itzg/minecraft-bedrock-server google.comDEBU[0000] Forwarding signal signal="window changed" 2021-10-26 02:58:43 stdout Looking up latest version... 2021-10-26 02:58:43 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 02:58:43 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 02:58:43 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 02:58:39 stdout mv: cannot move 'behavior_packs' to 'backup-pre-1.17.40.06/behavior_packs': Permission denied 2021-10-26 02:58:39 stdout Backing up behavior_packs into backup-pre-1.17.40.06 2021-10-26 02:58:30 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 02:58:29 stdout Looking up latest version... 2021-10-26 02:58:29 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 02:58:29 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 02:58:29 stdout DEBU[0000] Using /data to match uid and gid
2021-10-26 02:58:26 stdout mv: cannot move 'behavior_packs' to 'backup-pre-1.17.40.06/behavior_packs': Permission denied 2021-10-26 02:58:26 stdout Backing up behavior_packs into backup-pre-1.17.40.06 2021-10-26 02:58:16 stdout Downloading Bedrock server version 1.17.40.06 ... 2021-10-26 02:58:16 stdout Looking up latest version... 2021-10-26 02:58:16 stdout DEBU[0000] Resolved 991 from environment variable GID
2021-10-26 02:58:16 stdout DEBU[0000] Resolved 1031 from environment variable UID
2021-10-26 02:58:16 stdout DEBU[0000] Using /data to match uid and gid