Rockstor and Minecraft Server

I’m getting out of my depth here, but maybe you can extract the health check information from the instance by running:

docker inspect a00ed924ec84
and look for (in your case, probably “unhealthy”):

{
  "Status": "healthy",
  "FailingStreak": 0,
  "Log": [

or, if you have jq installed,

docker inspect 497a3195b26c | jq '.[].State.Health'

When looking over the overall output (not using jq) it seems that the healthcheck involves checking whether the port works …

            "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "/usr/local/bin/mc-monitor status-bedrock --host localhost --port $SERVER_PORT"
            ],
            "StartPeriod": 60000000000

But, like I said, I’m reaching the end of my knowledge here :frowning:

2 Likes

ok now im lost

“Start”: “2020-06-07T16:04:02.558160338-07:00”,
“End”: “2020-06-07T16:04:02.83688622-07:00”,
“ExitCode”: 1,
“Output”: “2020/06/07 23:04:02 failed to query bedrock server localhost:19132: timeout reading the response: read udp [::1]:55427->[::1]:19132: read: connection refused\n”

That’s an interesting one. I tried your rock-on file as well and can confirm it works for me like it does for @Hooverdan. By the way, thanks @Hooverdan for the Healthcheck bit, I’ve learned something rather important thanks to you!

@ror, would you mind posting the entire docker inspect output? The error posted above might point towards some IPV6 difficulties, maybe… Sorry if I have missed it, but what Rockstor version are you using (as given by yum info rockstor)?

1 Like

OK I’ll start with entire docker inspect output:
“Created”: “2020-06-07T23:03:30.389262463Z”,
“Path”: “/usr/local/bin/entrypoint-demoter”,
“Args”: [
“–match”,
“/data”,
“–debug”,
“–stdin-on-term”,
“stop”,
“/opt/bedrock-entry.sh”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 5580,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2020-06-07T23:03:32.456571682Z”,
“FinishedAt”: “0001-01-01T00:00:00Z”,
“Health”: {
“Status”: “unhealthy”,
“FailingStreak”: 4,
“Log”: [
{
“Start”: “2020-06-07T16:04:02.558160338-07:00”,
“End”: “2020-06-07T16:04:02.83688622-07:00”,
“ExitCode”: 1,
“Output”: “2020/06/07 23:04:02 failed to query bedrock server localhost:19132: timeout reading the response: read udp [::1]:55427->[::1]:19132: read: connection refused\n”
},
{
“Start”: “2020-06-07T16:04:32.837052714-07:00”,
“End”: “2020-06-07T16:04:33.001079012-07:00”,
“ExitCode”: 1,
“Output”: “2020/06/07 23:04:32 failed to query bedrock server localhost:19132: timeout reading the response: read udp [::1]:56974->[::1]:19132: read: connection refused\n”
},
{
“Start”: “2020-06-07T16:05:03.001235655-07:00”,
“End”: “2020-06-07T16:05:03.053873972-07:00”,
“ExitCode”: 1,
“Output”: “2020/06/07 23:05:03 failed to query bedrock server localhost:19132: timeout reading the response: read udp [::1]:42421->[::1]:19132: read: connection refused\n”
},
{
“Start”: “2020-06-07T16:05:33.053996013-07:00”,
“End”: “2020-06-07T16:05:33.10568396-07:00”,
“ExitCode”: 1,
“Output”: “2020/06/07 23:05:33 failed to query bedrock server localhost:19132: timeout reading the response: read udp [::1]:56582->[::1]:19132: read: connection refused\n”
}
]
}
},
“Image”: “sha256:78e6dff4074fb2d44bee2afb449c4e6e12f33507427b94220422f67000c94ee2”,
“ResolvConfPath”: “/mnt2/rockons_config/containers/fa777e1dac23f77b971aac40051e7714e3351392c504615ebf3dcbb2b407527b/resolv.conf”,
“HostnamePath”: “/mnt2/rockons_config/containers/fa777e1dac23f77b971aac40051e7714e3351392c504615ebf3dcbb2b407527b/hostname”,
“HostsPath”: “/mnt2/rockons_config/containers/fa777e1dac23f77b971aac40051e7714e3351392c504615ebf3dcbb2b407527b/hosts”,
“LogPath”: “”,
“Name”: “/hopeful_lamport”,
“RestartCount”: 0,
“Driver”: “btrfs”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: null,
“ContainerIDFile”: “”,
“LogConfig”: {
“Type”: “journald”,
“Config”: {}
},
“NetworkMode”: “default”,
“PortBindings”: {},
“RestartPolicy”: {
“Name”: “no”,
“MaximumRetryCount”: 0
},
“AutoRemove”: true,
“VolumeDriver”: “”,
“VolumesFrom”: null,
“CapAdd”: null,
“CapDrop”: null,
“Dns”: [],
“DnsOptions”: [],
“DnsSearch”: [],
“ExtraHosts”: null,
“GroupAdd”: null,
“IpcMode”: “”,
“Cgroup”: “”,
“Links”: null,
“OomScoreAdj”: 0,
“PidMode”: “”,
“Privileged”: false,
“PublishAllPorts”: false,
“ReadonlyRootfs”: false,
“SecurityOpt”: null,
“UTSMode”: “”,
“UsernsMode”: “”,
“ShmSize”: 67108864,
“Runtime”: “runc”,
“ConsoleSize”: [
0,
0
],
“Isolation”: “”,
“CpuShares”: 0,
“Memory”: 0,
“NanoCpus”: 0,
“CgroupParent”: “”,
“BlkioWeight”: 0,
“BlkioWeightDevice”: null,
“BlkioDeviceReadBps”: null,
“BlkioDeviceWriteBps”: null,
“BlkioDeviceReadIOps”: null,
“BlkioDeviceWriteIOps”: null,
“CpuPeriod”: 0,
“CpuQuota”: 0,
“CpuRealtimePeriod”: 0,
“CpuRealtimeRuntime”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“Devices”: [],
“DiskQuota”: 0,
“KernelMemory”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“MemorySwappiness”: -1,
“OomKillDisable”: false,
“PidsLimit”: 0,
“Ulimits”: null,
“CpuCount”: 0,
“CpuPercent”: 0,
“IOMaximumIOps”: 0,
“IOMaximumBandwidth”: 0
},
“GraphDriver”: {
“Name”: “btrfs”,
“Data”: null
},
“Mounts”: [
{
“Type”: “volume”,
“Name”: “7fc91b732e16302587800d032a35a452c9da1deff0539b78a1482c60f4dd6b18”,
“Source”: “/mnt2/rockons_config/volumes/7fc91b732e16302587800d032a35a452c9da1deff0539b78a1482c60f4dd6b18/_data”,
“Destination”: “/data”,
“Driver”: “local”,
“Mode”: “”,
“RW”: true,
“Propagation”: “”
}
],
“Config”: {
“Hostname”: “fa777e1dac23”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: true,
“AttachStdout”: true,
“AttachStderr”: true,
“ExposedPorts”: {
“19132/udp”: {}
},
“Tty”: true,
“OpenStdin”: true,
“StdinOnce”: true,
“Env”: [
“EULA=TRUE”,
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“VERSION=LATEST”,
“SERVER_PORT=19132”
],
“Cmd”: null,
“Healthcheck”: {
“Test”: [
“CMD-SHELL”,
“/usr/local/bin/mc-monitor status-bedrock --host localhost --port $SERVER_PORT”
]
},
“Image”: “itzg/minecraft-bedrock-server”,
“Volumes”: {
“/data”: {}
},
“WorkingDir”: “/data”,
“Entrypoint”: [
“/usr/local/bin/entrypoint-demoter”,
“–match”,
“/data”,
“–debug”,
“–stdin-on-term”,
“stop”,
“/opt/bedrock-entry.sh”
],
“OnBuild”: null,
“Labels”: {}
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “501a4ef4649eddbc9be2b3805e02dd932dd1a98304e931d7e8bda451d9e9fe2a”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {
“19132/udp”: null
},
“SandboxKey”: “/var/run/docker/netns/501a4ef4649e”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “06418cb5d30941ee88699d4eaf0507c3b3c6e6b8f25450e1c67617f9d46eb361”,
“Gateway”: “172.17.0.1”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “172.17.0.4”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“MacAddress”: “02:42:ac:11:00:04”,
“Networks”: {
“bridge”: {
“IPAMConfig”: null,
“Links”: null,
“Aliases”: null,
“NetworkID”: “b5a7781425739ea915048d7a74664444e1a9d21a9ee0737b881ce84025e594a0”,
“EndpointID”: “06418cb5d30941ee88699d4eaf0507c3b3c6e6b8f25450e1c67617f9d46eb361”,
“Gateway”: “172.17.0.1”,
“IPAddress”: “172.17.0.4”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“MacAddress”: “02:42:ac:11:00:04”
}
}
}
}
]

and here the :yum info rockstor
[root@]# yum info rockstor
Loaded plugins: changelog, fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  • base: centos.mirror.iweb.ca
  • epel: fedora.mirrors.pair.com
  • extras: centos.mirror.vexxhost.com
  • updates: centos.mirror.iweb.ca
    Installed Packages
    Name : rockstor
    Arch : x86_64
    Version : 3.9.1
    Release : 16
    Size : 85 M
    Repo : installed
    From repo : Rockstor-Testing
    Summary : RockStor – Store Smartly
    License : GPL
    Description : RockStor – Store Smartly

Minecraft Bedrock Edition Server pull request created :boom:

2 Likes