-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java 11 compatibility when using docker-minecraft-server #120
Comments
Hey Benab, I use ITZG's docker as well on a pi4 (arm64) with java 15 and have no troubles with geyser/floodgate. (make sure your docker and docker-compose it up to date) I think if you add some of these environment variables it may help. I noticed in you log you're only using basic jvm arguments. "Command Line: -XX:+UseG1GC -Xms1G -Xmx1G paper-1.16.5-508.jar" its highly recommend to use Aikar's suggested jvm arguments which can be added automatically by the environment variable USE_AIKAR_FLAGS: "true" more info here> I'd also bump up the server memory to at least 2gb by adding this environment variable MEMORY: "2G" itzg-doc So here's what your config should look like
Try these settings out and see if that helps. |
LichLord91, That didn't help the Java crashes, so I checked the Docker versions. I was running: It seemed that Docker Compose was very out of date. (Apt had not been managing it!) I am still getting the Java crashes. (a boot loop) :( Thanks again for taking the time to assist! |
Hey behab , You dont want to run java 8 it's starting to get depreciated for all minecraft related stuff. You said you had this crash on each different java version you tried? When you added aikar's flags did you get a different crash or at least a more detailed report? i believe it may add more detail with those flags. Otherwise here a break down of the error and what might fix it. This may be an upstream issue with ITZG's docker container and you may want to report it. Mine uses Ubuntu since i use the multi-arch build and yours uses Alpine which is why you may be getting errors while i am not. This also could be hardware related but i think its more on the library side of things here is a tool i used for the JAVA GC dump analytics Doing a quick google search i see that that this might help. https://stackoverflow.com/questions/55714251/openjdk-11-on-busybox-crash-on-sigsegv-in-libc-so You may also try to run the multi-arch build which is based on ubuntu instead. itzg/minecraft-server:2021.6.0-multiarch-latest for java 15 itzg/minecraft-server:2021.6.0-multiarch for java 11 |
Heyo, In your crash report under Internal Exceptions, it points to a NoSuchMethod error being the culprit (perhaps an SQL Lite error?). Unfortunately this error doesn't tell us what method is non-existent - do you have normal Minecraft server logs as well? |
Yeah! Ubuntu did it! It doesn't matter to me whether I use Ubuntu or Alpine in the image, whatever works!
Given that the Ubuntu image works, does it appear that it is an issue with ITZG's Alpine docker container?
Using the itzg/minecraft-server:2021.6.0-multiarch image worked for me! (see my docker-compose below)
Thanks again! |
Thanks. Here's more detail. @LichLord91 I believe you were asking for this as well. Here are the Minecraft server logs (I think this is what you mean):
Here is the associated Java crash log: https://controlc.com/d528cb3a |
@LichLord91 |
I will keep this open for further investgation. |
After reviewing your other comments and the new logs im fairly certain this is an issue with the upstream docker container. Specifically Alpine 3.13 and OpenJDK , here's another article I found that is very similar to the error you had even talks about docker on alpine 3.13 and OpenJDK https://www.gitmemory.com/issue/AdoptOpenJDK/openjdk-docker/520/786895588 left is yours right is the articles. Benab could you do everyone a favor and open up an issue in the ITZG repo and link this ticket to it? Im sure Itzg would appreciate it and work on fixing. :) |
Though to Camo's point and the reason you might be crashing is because Floodgate uses a sqlite db to store the account linking data for bedrock to java players. Could be an issue with the library or something on Alpine and it may be something Floodgate could work around or provide an alternative like a flatfile db/mysql but looks like the issue maybe two fold or just one sided. Probably why Camo wants to keep it open to investigate further. Either way im glad its working for you now. There may be nothing for ITZG to do but seeing as this is an issue for others and that other plugins also use SQL light might be worth mentioning to ITZG. |
Done! Here's the ticket I opened on the ITZG repo: itzg/docker-minecraft-server#791 |
Ahh benab ty. ITZG responded and looks like its even further upstream like i thought. |
Hello. I just discovered Floodgate a few days ago! I'm excited such a thing exists.
My problem is that I haven't had any luck running a Paper server with the floodgate-bukkit plugin in the latest Java version in docker-minecraft-server.
Each time I copy floodgate-bukkit.jar to the plugins folder and start the server, it results in a Java crash. See logs here: https://controlc.com/32c1b62
For testing I start with an empty /data folder. I start with no plugins, then add Geyser-Spigot.jar, restart the server (no crash), add floodgate-bukkit.jar, restart and get a Java crash as posted above.
The following Java tags all crash: latest (Java 11), openj9-11 (Java 11), java15 (Java 15).
I have gotten the java8 (Java 8) tag to work without crashing.
Here is a general docker-compose I run.
version: "3"
Am I doing something incorrectly? I also wonder if this is an issue with the Docker version of Minecraft rather than a Floodgate issue. Any guidance is welcome. Thanks!
The text was updated successfully, but these errors were encountered: