Bedrockifier
Bedrockifier copied to clipboard
Encountering an issue when trying to implement the `bedrock-itzg-ssh` example as a backup solution, where rebooting of the system bypasses Docker Compose's `depends_on` conditional validation
As described in the title, I'm encountering an issue when trying to implement a backup solution based on the bedrock-itzg-ssh example, where rebooting of the system bypasses Docker Compose's depends_on
condition checks, which apparently causes the backup container to enter an unrecoverable state after it "fails to connect SSH channel to host" (see the logs for the backup container at the bottom of this post).
My understanding is that the problem is inherent to Docker Compose itself, and not this project. However, I thought I'd write about it here anyways, since Docker Compose appears to be the recommended way of using this tool. Moreover, I was wondering how others facing this same issue had managed to resolve it.
[09:54:19.087][info ] Initializing Bedrockifier Daemon
[09:54:19.245][info ] Configuring Bedrockifier Daemon
[09:54:19.261][info ] Loading Configuration From: /config/config.yml
[09:54:19.296][info ] Configuration Loaded, Running Service...
[09:54:19.308][info ] Starting Container Connection. newline = ssh
[09:54:19.309][info ] Host PTY Handle Opened: /dev/pts/0 (bedrock_public - 6)
[09:54:19.309][info ] Child PTY Handle Opened: /dev/pts/0 (bedrock_public - 7)
[09:54:19.327][info ] Connecting to public:2222
[09:54:19.347][error ] Failed to connect SSH channel to host. (The operation could not be completed. (NIOPosix.NIOConnectionError error 1.))
[09:54:19.347][error ] Check that the SSH configuration is correct, and check the minecraft server logs for further errors.
[09:54:19.347][info ] Checking for servers that might not be cleaned up
[09:54:19.349][info ] Backup Interval: 10800.0 seconds
[09:54:19.349][info ] Starting Listeners for Containers
[09:54:19.349][info ] Backup Minimum Interval is 600.0 seconds
[09:54:19.349][info ] Service Started Successfully.
[09:54:19.349][info ] Starting Full Backup
[09:54:19.350][error ] Docker process didn't start successfully, or has died
[09:54:19.350][error ] Container bedrock_public failed to backup properly
[09:54:19.350][info ] Performing Trim Jobs
[09:54:19.398][info ] Full Backup Completed