hexparrot / mineos-node

node.js implementation of mineos minecraft management
GNU General Public License v3.0
334 stars 170 forks source link

Cannot get server to start in docker on Unraid #295

Closed pantheis closed 5 years ago

pantheis commented 5 years ago

FIX

When specifying the "minecraft files:" path, you CANNOT use anything in the combined filesystem under /mnt/user/appdata/minecraft. You must use a directly attached filesystem path, ie. ### /mnt/disk5/appdata/minecraft otherwise the server will fail to start with the below error. Closing this as I figured it out and it isn't a problem with the docker image, just a specific limitation required by Unraid.

-- Tested on docker image: hexparrot/mineos

Trying to use the hexparrot/mineos docker on Unraid, and having the exact same issue as @tahoward. As a test I was able to install the docker image on an Ubuntu 18.04 LTS desktop and it does work. The docker image has previously worked on Unraid, and I have other docker images running just fine. I've completely removed the image, removed all of the directories and started fresh to no avail.

When trying "su mc --shell /bin/bash" and executing the below command:

mc@dbecdc649696:/var/games/minecraft/servers/1.12.2$ java -jar minecraft_server.1.12.2.jar mmap failed for CEN and END part of zip file Error: An unexpected error occurred while trying to open file minecraft_server.1.12.2.jar

There is no server log files, the server never gets going.

tail of /var/log/mineos.log: {"level":"info","message":"[1.12.2] eula.txt detected: ACCEPTED (eula=true)","timestamp":"2019-08-05T01:05:42.133Z"} {"level":"info","message":"[1.12.2] 192.168.1.181 issued command : "start"","timestamp":"2019-08-05T01:05:43.096Z"} {"level":"info","message":"[1.12.2] received request "start"","timestamp":"2019-08-05T01:05:43.097Z"}

I don't have a clue what to do at this point.

Originally posted by @tahoward in https://github.com/hexparrot/mineos-node/issues/284#issuecomment-394592539

pantheis commented 5 years ago

Must specify a path for "minecraft files:" that falls outside the parity protected array squashed structure on Unraid under /mnt/user/path. ie. /mnt/disk5/path