[Support] binhex - MinecraftServer


Recommended Posts

3 minutes ago, binhex said:

'force update' should pull a new image, its shown when you toggle to 'advanced view'.

 

Yes, not sure why it isn't doing that though. I see that you made a change in github, and yet:

 

Pulling image: binhex/arch-minecraftserver:test
IMAGE ID [test]: Pulling from binhex/arch-minecraftserver.
Status: Image is up to date for binhex/arch-minecraftserver:test

TOTAL DATA PULLED: 0 B



Removing container: binhex-minecraftserver-viktor
Successfully removed container 'binhex-minecraftserver-viktor'



Command:
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='binhex-minecraftserver-viktor' --net='bridge' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'CREATE_BACKUP_HOURS'='12' -e 'PURGE_BACKUP_DAYS'='14' -e 'ENABLE_WEBUI_CONSOLE'='yes' -e 'ENABLE_WEBUI_AUTH'='yes' -e 'WEBUI_USER'='admin' -e 'WEBUI_PASS'='openop' -e 'WEBUI_CONSOLE_TITLE'='Minecraft Java Viktor' -e 'CUSTOM_JAR_PATH'='/config/minecraft/minecraft_server.jar' -e 'JAVA_VERSION'='8' -e 'JAVA_INITIAL_HEAP_SIZE'='512M' -e 'JAVA_MAX_HEAP_SIZE'='1024M' -e 'JAVA_MAX_THREADS'='1' -e 'UMASK'='000' -e 'PUID'='99' -e 'PGID'='100' -p '25565:25565/tcp' -p '8222:8222/tcp' -v '/mnt/user/appdata/binhex-minecraftserver-viktor':'/config':'rw' 'binhex/arch-minecraftserver:test'
5dd73ad10b806b81a754aa3341ea7f22246aa49f4e210e95f7349549eee7f494

The command finished successfully!

 

And then:

2021-03-25 21:40:15.250566 [info] CUSTOM_JAR_PATH defined as '/config/minecraft/minecraft_server.jar'
2021-03-25 21:40:15.316635 [info] JAVA_VERSION defined as '8'
'/usr/lib/jvm/java-8-openjdk/jre' is not a valid Java environment path

 

I'm new to unraid, so I'm certainly likely to be doing something wrong, but I am using the force update link in advanced view.

Link to comment
5 minutes ago, binhex said:

are you clicking on 'force update' link? screenshot:-

image.png.e4f3231a79642cd34c5f30393ee4f485.png

 

 

Yes, I am indeed. I also tried removing it completely and reinstalling but that also did not change anything. Is there a tag you need to move or something in order for the latest change to get pulled? (I'm just guessing here, although I do work with software development I have never done any work with github or creating dockers).

Link to comment
1 minute ago, Freppe said:

Is there a tag you need to move or something in order for the latest change to get pulled?

no, if the image on docker hub is later than the one on disk then it should pull it down, i have pulled the current test tagged image and it def fixes the issue you were seeing. ok try this:-

 

remove ':test' from the repository name and click apply. this will get you back to 'latest', then from unraid terminal issue the following command:-

 

docker rmi -f binhex/arch-minecraftserver:test

once its complete, go back to the web ui and put ':test' suffix on the repository again and apply, this will force it to re-download from docker hub.

Link to comment
10 minutes ago, binhex said:

no, if the image on docker hub is later than the one on disk then it should pull it down, i have pulled the current test tagged image and it def fixes the issue you were seeing. ok try this:-

 

remove ':test' from the repository name and click apply. this will get you back to 'latest', then from unraid terminal issue the following command:-

 


docker rmi -f binhex/arch-minecraftserver:test

once its complete, go back to the web ui and put ':test' suffix on the repository again and apply, this will force it to re-download from docker hub.

 

Really strange this, I really can't understand why it isn't working. I have done the above and verified that the :test image that I have is the one with digest 40cdb50132cd as is the latest updated version on docker hub, but i still see the exact same issue with the path to the jre.

Link to comment

same here, did the docker rmi -f binhex/arch-minecraftserver:test but no dice.

 

I also get the 

 

2021-03-25 22:16:56.720568 [info] Host is running unRAID
2021-03-25 22:16:56.744012 [info] System information Linux aa3d9391ab60 5.10.21-Unraid #1 SMP Sun Mar 7 13:39:02 PST 2021 x86_64 GNU/Linux
2021-03-25 22:16:56.770422 [info] OS_ARCH defined as 'x86-64'
2021-03-25 22:16:56.796650 [info] PUID defined as '99'
2021-03-25 22:16:56.825718 [info] PGID defined as '100'
2021-03-25 22:16:56.879304 [info] UMASK defined as '000'
2021-03-25 22:16:56.905202 [info] Permissions already set for volume mappings
2021-03-25 22:16:56.932132 [info] Deleting files in /tmp (non recursive)...
2021-03-25 22:16:56.959920 [info] CREATE_BACKUP_HOURS defined as '12'
2021-03-25 22:16:56.986188 [info] PURGE_BACKUP_DAYS defined as '14'
2021-03-25 22:16:57.012380 [info] ENABLE_WEBUI_CONSOLE defined as 'yes'
2021-03-25 22:16:57.038802 [info] ENABLE_WEBUI_AUTH defined as 'yes'
2021-03-25 22:16:57.065117 [info] WEBUI_USER defined as 'admin'
2021-03-25 22:16:57.091459 [info] WEBUI_PASS defined as 'poo'
2021-03-25 22:16:57.117743 [info] WEBUI_CONSOLE_TITLE defined as 'Minecraft Java'
2021-03-25 22:16:57.144043 [info] CUSTOM_JAR_PATH not defined,(via -e CUSTOM_JAR_PATH), defaulting to '/config/minecraft/minecraft_server.jar' (Mojang Minecraft Java)
2021-03-25 22:16:57.170511 [info] JAVA_VERSION not defined,(via -e JAVA_VERSION), defaulting to '8'
'/usr/lib/jvm/java-8-openjdk/jre' is not a valid Java environment path

Link to comment
22 minutes ago, ZinE said:

same here, did the docker rmi -f binhex/arch-minecraftserver:test but no dice.

 

I also get the 

 

2021-03-25 22:16:56.720568 [info] Host is running unRAID
2021-03-25 22:16:56.744012 [info] System information Linux aa3d9391ab60 5.10.21-Unraid #1 SMP Sun Mar 7 13:39:02 PST 2021 x86_64 GNU/Linux
2021-03-25 22:16:56.770422 [info] OS_ARCH defined as 'x86-64'
2021-03-25 22:16:56.796650 [info] PUID defined as '99'
2021-03-25 22:16:56.825718 [info] PGID defined as '100'
2021-03-25 22:16:56.879304 [info] UMASK defined as '000'
2021-03-25 22:16:56.905202 [info] Permissions already set for volume mappings
2021-03-25 22:16:56.932132 [info] Deleting files in /tmp (non recursive)...
2021-03-25 22:16:56.959920 [info] CREATE_BACKUP_HOURS defined as '12'
2021-03-25 22:16:56.986188 [info] PURGE_BACKUP_DAYS defined as '14'
2021-03-25 22:16:57.012380 [info] ENABLE_WEBUI_CONSOLE defined as 'yes'
2021-03-25 22:16:57.038802 [info] ENABLE_WEBUI_AUTH defined as 'yes'
2021-03-25 22:16:57.065117 [info] WEBUI_USER defined as 'admin'
2021-03-25 22:16:57.091459 [info] WEBUI_PASS defined as 'poo'
2021-03-25 22:16:57.117743 [info] WEBUI_CONSOLE_TITLE defined as 'Minecraft Java'
2021-03-25 22:16:57.144043 [info] CUSTOM_JAR_PATH not defined,(via -e CUSTOM_JAR_PATH), defaulting to '/config/minecraft/minecraft_server.jar' (Mojang Minecraft Java)
2021-03-25 22:16:57.170511 [info] JAVA_VERSION not defined,(via -e JAVA_VERSION), defaulting to '8'
'/usr/lib/jvm/java-8-openjdk/jre' is not a valid Java environment path

well i am baffled now!, wtf is going on?!, i can only assume some weird docker hub caching issues, i just wiped out my config for this docker image, restart and it starts fine, no issue!, hmmmm, ok leave it an hour and then attempt another 'force update'

Link to comment
1 minute ago, binhex said:

well i am baffled now!, wtf is going on?!, i can only assume some weird docker hub caching issues, i just wiped out my config for this docker image, restart and it starts fine, no issue!, hmmmm, ok leave it an hour and then attempt another 'force update'

 

Getting late here, but I will absolutely try again tomorrow.

  • Thanks 1
Link to comment
4 minutes ago, binhex said:

well i am baffled now!, wtf is going on?!, i can only assume some weird docker hub caching issues, i just wiped out my config for this docker image, restart and it starts fine, no issue!, hmmmm, ok leave it an hour and then attempt another 'force update'

 

Actually, is this the change you were going for? Looks like you changed the location of java 11, but not java 8.

 

	ln -fs /usr/lib/jvm/java-8-openjdk/jre/bin/java /usr/bin/java
	archlinux-java set java-8-openjdk/jre
elif [[ "${JAVA_VERSION}" == "11" ]]; then
	ln -fs /usr/lib/jvm/java-11-openjdk/jre/bin/java /usr/bin/java
	ln -fs /usr/lib/jvm/java-11-openjdk/bin/java /usr/bin/java
	archlinux-java set java-11-openjdk
else
	echo "[warn] Java version '${JAVA_VERSION}' not installed, defaulting to Java version 8" | ts '%Y-%m-%d %H:%M:%.S'

 

Not the best quote there, but it's from the commit in github: https://github.com/binhex/arch-minecraftserver/commit/1b38ba9537d32a6235b14ea632590ac20ae694cf

Edited by Freppe
Link to comment
7 hours ago, binhex said:

well i am baffled now!, wtf is going on?!, i can only assume some weird docker hub caching issues, i just wiped out my config for this docker image, restart and it starts fine, no issue!, hmmmm, ok leave it an hour and then attempt another 'force update'

 

No, still the same unfortunately. Did the whole thing with removing the old image as well.

Link to comment
1 hour ago, binhex said:

ok to stop any more confusion here i have just created a new image with a new tag called 'test2' please give this a try.

 

Still the same. Also tried on a different non-unraid machine:

 

# docker run -d -p 8222:8222/tcp -p 25565:25565 --name=minecraftserver -v /apps/docker/minecraftserver:/config binhex/arch-minecraftserver:test2
Unable to find image 'binhex/arch-minecraftserver:test2' locally
test2: Pulling from binhex/arch-minecraftserver
a80ea52ba1f5: Already exists
cefdd3643fda: Already exists
46803e3faf06: Already exists
445bf2a9da6c: Already exists
0d719328ea91: Already exists
286698634699: Pull complete
6cb8e617575a: Pull complete
2fbb8c82c6ea: Pull complete
447407499607: Pull complete
Digest: sha256:7a00d597e19ed6bf833eb8b3d592fc1fe6c3851de1e468ae4c1a897605928872
Status: Downloaded newer image for binhex/arch-minecraftserver:test2
e0562763dbad5672dfb45535980c792132e0431d2376ef5bc8747ad184231c25
# docker logs minecraftserver
Created by...
___.   .__       .__
\_ |__ |__| ____ |  |__   ____ ___  ___
 | __ \|  |/    \|  |  \_/ __ \\  \/  /
 | \_\ \  |   |  \   Y  \  ___/ >    <
 |___  /__|___|  /___|  /\___  >__/\_ \
     \/        \/     \/     \/      \/
   https://hub.docker.com/u/binhex/

2021-03-26 11:06:41.136663 [info] System information Linux e0562763dbad 5.4.0-70-generic #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 GNU/Linux
2021-03-26 11:06:41.175756 [info] OS_ARCH defined as 'x86-64'
2021-03-26 11:06:41.213247 [warn] PUID not defined (via -e PUID), defaulting to '99'
2021-03-26 11:06:41.464994 [warn] PGID not defined (via -e PGID), defaulting to '100'
2021-03-26 11:06:41.676832 [warn] UMASK not defined (via -e UMASK), defaulting to '000'
2021-03-26 11:06:41.714252 [info] Permissions already set for volume mappings
2021-03-26 11:06:41.753249 [info] Deleting files in /tmp (non recursive)...
2021-03-26 11:06:41.792767 [info] CREATE_BACKUP_HOURS not defined,(via -e CREATE_BACKUP_HOURS), defaulting to '12'
2021-03-26 11:06:41.830753 [info] PURGE_BACKUP_DAYS not defined,(via -e PURGE_BACKUP_DAYS), defaulting to '14'
2021-03-26 11:06:41.868449 [info] ENABLE_WEBUI_CONSOLE not defined,(via -e ENABLE_WEBUI_CONSOLE), defaulting to 'yes'
2021-03-26 11:06:41.906617 [warn] ENABLE_WEBUI_AUTH not defined (via -e ENABLE_WEBUI_AUTH), defaulting to 'yes'
2021-03-26 11:06:41.944594 [warn] WEBUI_USER not defined (via -e WEBUI_USER), defaulting to 'admin'
2021-03-26 11:06:41.982307 [warn] WEBUI_PASS not defined (via -e WEBUI_PASS), using randomised password (password stored in '/config/minecraft/security/WEBUI_PASS')
2021-03-26 11:06:42.023652 [info] WEBUI_CONSOLE_TITLE not defined,(via -e WEBUI_CONSOLE_TITLE), defaulting to 'Minecraft Java'
2021-03-26 11:06:42.061628 [info] CUSTOM_JAR_PATH not defined,(via -e CUSTOM_JAR_PATH), defaulting to '/config/minecraft/minecraft_server.jar' (Mojang Minecraft Java)
2021-03-26 11:06:42.100347 [info] JAVA_VERSION not defined,(via -e JAVA_VERSION), defaulting to '8'
'/usr/lib/jvm/java-8-openjdk/jre' is not a valid Java environment path

 

Link to comment
2 minutes ago, Freppe said:

Glad to hear that the cause of the problem has been found. Personally I think I will just stick to the working -02 version for now until there is an official solution. :)

i completely understand!, having said that unless unraid decide to punt out a new version soon that happens to include the very latest runc (i will be in contact with Tom and jonp regards this) then the above fix will be required for any future images i produce, which is not great i know.

  • Thanks 1
Link to comment
6 hours ago, binhex said:

 

OK, the issue is all around glibc and the upgrade to the package on arch linux, this caused failure when attempting to build arch linux docker images, but looks to also cause other side effects, such as the ones above. The fix is actually included in the latest runc (part of docker) but unraid has not upgraded yet to the latest version, thus you are seeing the issues caused by glibc upgrade.

 

To manually upgrade you simply replace the existing statically built runc with the latest, this can be achieve by going to the unraid terminal and executing the following:-
 


curl -o '/usr/bin/runc' -L 'https://github.com/binhex/arch-packages/raw/master/static/x86-64/runc' && chmod +x '/usr/bin/runc'

 

Then start the container without privileged flag set and it should start fine (works for me). The reason i wasn't seeing the issue before was that i had completely forgotten i had upgraded by version of runc, thus i was not seeing any of these issues, doh!.

 

note:- the above command will need to be executed each time you reboot the server as everything is in ram, but you can automate this by adding that line into your 'go' file located at


\\<server ip>\flash\config\go

 

 

Thanks, that is working for me. The force update was not.

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.