binhex / arch-minecraftbedrockserver

Docker build script for Arch Linux base with Minecraft Bedrock server
GNU General Public License v3.0
16 stars 9 forks source link

Server no longer starts listening, even with new config #4

Closed brianschrameck closed 1 year ago

brianschrameck commented 1 year ago
Created by...
___.   .__       .__
\_ |__ |__| ____ |  |__   ____ ___  ___
 | __ \|  |/    \|  |  \_/ __ \\  \/  /
 | \_\ \  |   |  \   Y  \  ___/ >    <
 |___  /__|___|  /___|  /\___  >__/\_ \
     \/        \/     \/     \/      \/
   https://hub.docker.com/u/binhex/

2022-12-03 11:35:44.389354 [info] System information Linux c322493ab3a7 5.19.17-Unraid #2 SMP PREEMPT_DYNAMIC Wed Nov 2 11:54:15 PDT 2022 x86_64 GNU/Linux
2022-12-03 11:35:44.423666 [info] OS_ARCH defined as 'x86-64'
2022-12-03 11:35:44.458347 [info] PUID defined as '0'
2022-12-03 11:35:46.421326 [info] PGID defined as '0'
2022-12-03 11:35:50.612302 [info] UMASK defined as '0'
2022-12-03 11:35:50.648386 [info] Permissions already set for '/config'
2022-12-03 11:35:50.750410 [info] Deleting files in /tmp (non recursive)...
2022-12-03 11:35:50.791905 [info] CREATE_BACKUP_HOURS defined as '1'
2022-12-03 11:35:50.825089 [info] PURGE_BACKUP_DAYS defined as '14'
2022-12-03 11:35:50.858163 [info] ENABLE_WEBUI_CONSOLE defined as 'yes'
2022-12-03 11:35:50.898053 [info] ENABLE_WEBUI_AUTH defined as 'yes'
2022-12-03 11:35:50.931080 [info] WEBUI_USER defined as 'REDACTED'
2022-12-03 11:35:50.963294 [warn] WEBUI_PASS defined as 'REDACTED' is weak, please consider using a stronger password
2022-12-03 11:35:50.996345 [info] WEBUI_CONSOLE_TITLE defined as 'Minecraft Bedrock'
2022-12-03 11:35:51.028226 [info] STARTUP_CMD defined as 'gamerule showcoordinates true'
2022-12-03 11:35:51.184856 [info] Starting Supervisor...
2022-12-03 11:35:51,550 INFO Included extra file "/etc/supervisor/conf.d/minecraft-bedrock-server.conf" during parsing
2022-12-03 11:35:51,551 INFO Set uid to user 0 succeeded
2022-12-03 11:35:51,554 INFO supervisord started with pid 7
2022-12-03 11:35:52,558 INFO spawned: 'backup-script' with pid 103
2022-12-03 11:35:52,560 INFO spawned: 'purge-script' with pid 104
2022-12-03 11:35:52,562 INFO spawned: 'start-script' with pid 105
2022-12-03 11:35:52,564 INFO spawned: 'webui-script' with pid 106
2022-12-03 11:35:52,564 INFO reaped unknown pid 8 (exit status 0)
2022-12-03 11:35:52,569 DEBG 'purge-script' stdout output:
[info] Removing any Minecraft worlds backups with a creation date older than 14 days...

2022-12-03 11:35:52,569 INFO success: backup-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-12-03 11:35:52,569 INFO success: purge-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-12-03 11:35:52,569 INFO success: webui-script entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2022-12-03 11:35:52,569 DEBG 'backup-script' stdout output:
[info] Waiting 1 hours before running worlds backup...

2022-12-03 11:35:52,571 DEBG 'start-script' stdout output:
[info] Minecraft folder '/config/minecraft' already exists, rsyncing newer files...

2022-12-03 11:35:52,571 DEBG 'webui-script' stdout output:
[info] Starting Minecraft console Web UI...

2022-12-03 11:35:52,581 DEBG 'webui-script' stderr output:
2022/12/03 11:35:52 Permitting clients to write input to the PTY.
2022/12/03 11:35:52 Using Basic Authentication
2022/12/03 11:35:52 Server is starting with command: screen -x minecraft

2022-12-03 11:35:52,582 DEBG 'webui-script' stderr output:
2022/12/03 11:35:52 URL: http://127.0.0.1:8222/
2022/12/03 11:35:52 URL: http://192.168.32.3:8222/

2022-12-03 11:35:52,598 DEBG 'purge-script' stdout output:
[info] Checking for old backups in 12 hours...

2022-12-03 11:35:53,598 INFO success: start-script entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-12-03 11:35:53,782 DEBG 'start-script' stdout output:
[info] Starting Minecraft Bedrock process...

2022-12-03 11:35:54,161 DEBG 'start-script' stdout output:
[info] Minecraft Bedrock process is running

2022-12-03 11:35:54,162 DEBG 'start-script' stdout output:
[info] Executing startup Minecraft command 'gamerule showcoordinates true'

2022-12-03 11:35:54,165 DEBG 'start-script' stdout output:
No screen session found.

This configuration was working correctly for some time. Now I can't make any connections to the server even if I start over and use the default config. The itzg/minecraft-bedrock-server container seems to work correctly. Any ideas?

brianschrameck commented 1 year ago

After MUCH digging, I discovered that I couldn't connect to the container using docker exec -it minecraft-bedrock bash.

I was getting an error similar to: OCI runtime exec failed: exec failed: container_linux.go:370:starting container process caused:open /dev/ptmx: no space left on device: unknown.

I then tried adding the tty option to my compose file, and got a similar error: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open /dev/ptmx: no space left on device: unknown

Running a ps -ef on my machine showed that there were dozens of ttyd daemons seemingly left behind from Docker containers, even after the containers were removed.

killall ttyd and then restarting this container worked.