Giter VIP home page Giter VIP logo

Comments (34)

Phyremaster avatar Phyremaster commented on September 17, 2024 1

I'd love to help you get your environment working, and trust me I know how frustrating getting Docker to behave properly can be, but it's well past midnight in my timezone, and I need some sleep.

I'm closing this issue again as it appears to not be a bug with this project, but I will do my best to help you figure this out by conversing here. It's just gonna be a while before I can respond again.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024 1

I should be able to dig into this more thoroughly in general by this weekend at the latest. I haven't actually run this image anywhere in a while, because I've been using Pterodactyl for all of my game servers, and while that is based on Docker, I can't just drop this image in without several modifications. Point is, there's a decent chance that the image is straight-up broken because I don't usually test PRs before I merge them (really bad practice, I know).

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024 1

Sorry, my weekend was unexpectedly complicated, but I should be able to look into this today (after I sleep for a few hours).

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024 1

It looks like the Alpine base image causes some sort of infinite memory consumption to such an extreme extent that the memory wasn't released even with the container deleted entirely. This seems like an issue with Alpine or its JVM, because the old OpenJDK base image had no issues over an extended play session, which proves that the issue isn't PaperMC or the start script. I'll revert it and let you know here when Docker Hub rebuilds the image.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024 1

Does it happen without any plugins installed? If it only happens with plugins installed, I don't know if there's anything I can do to help. Honestly, there's not much I can do to fix things like this in general, other than changing the versions of the software involved. If something is wrong with a plugin, or Paper, or even Java itself, I can't fix that unless there's another version which lacks the issue. What happened before was caused by the use of Alpine and its OpenJDK, so I "fixed" it by going back to not using that.

This may be caused by this issue, this issue, and this issue, or alternatively this issue, that I found on Paper's repository. If you want, you can poke around in those and find a Paper build number from before the issue was introduced and then set that as the PAPER_BUILD. If the problem is resolved by that, the problem is with Paper, not this image.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Make sure the /var/lib/minecraft folder you're using has been created and has read, write, and execute permissions for all.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Make sure the /var/lib/minecraft folder you're using has been created and has read, write, and execute permissions for all.

Well, I moved to a non-hidden directory, created a new folder, changed the permissions so everyone can read, write, and execute, and even after all that I'm still getting the exact same errors.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Confirmed reproducible.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Well actually not exactly, now that I look at it. Mine doesn't have "permission denied" accessing the jarfile, it says it's "invalid or corrupt".

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Oops, I didn't read that command carefully enough. "1.16.1" is not a valid PaperMC build. You probably want to set that to "latest". It refers to the build version of PaperMC, not the version of Minecraft. No bug.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

As I mentioned in my original post, I removed the paper version flag completely and only specified the version of MC as I figured 1.16.1 probably wasn't a Paper build.... but same problem. We're still back to square 1.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Confirmed not reproducible.

I logged into my Docker environment, escalated privileges, created /var/lib/minecraft, did chmod 777 /var/lib/minecraft, ran the exact command you posted but with the space in the folder path removed and the Paper build removed, and it runs without issue.

This is a problem with your environment. Unless your file path actually/still has a space in it? But that should cause the docker run command to fail immediately because of bad syntax.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Exact command I used, just to be safe:

docker run -p 25565:25565 -v /var/lib/minecraft:/papermc -d -it --restart always --name "papermc-1-16-1" -e MC_VERSION="1.16.1" -e MC_RAM="4G" phyremaster/papermc

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Hmm, that's not ideal. Turns out the space was a typo that I didn't catch til you mentioned it - I definitely know better than to put that in a file path. I'm working between two physical machines (not over SSH) so I had to type everything out by hand instead of copy-pasting it.

That means you're right and it's probably a problem with my environment. Unfortunately I have no idea how to fix that without completely reinstalling the OS from scratch... I wish I knew how to learn this stuff more fully and efficiently. Not having a great grasp on what I'm doing is half of the problem.

Thanks so much for your help, I'll try some different things (maybe starting from scratch) and then see if anything changes. For now, it's well after midnight in my timezone as well so I'm gonna hit the hay too.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Coming back to this after taking a break for a while due to lack of time.

The problem did seem to be with SE-Linux. I messed with it some more and got it to work once, but the fix didn't persist after a server restart and I could never make it work again after that. As such, for now I've decided to ditch CentOS and try Ubuntu for now since there's more documentation available for it. ....unfortunately that's done nothing but lead me into even more problems.

Before I can even try to run it, I need to pull the docker image (obviously), but for whatever reason, whenever I run sudo docker pull phyremaster/papermc I get back Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). That said, I've confirmed that I can pull other docker images. Both sudo docker pull hello-world and sudo docker pull dlord/spigot worked perfectly. This entire thing makes no sense and is driving me out of my mind with frustration, haha.

Any idea what might be wrong this time?

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

No idea, I just checked and I can still successfully pull the image (as you did, with no tag) with a default Docker installation. I'm updating my Docker VM right now (docker.io was on the update list), let's see if that creates an issue.

Nope, I can still pull the image without issue after updating all packages. It's strange that the pulling issue seems to be limited to this specific image. I can't think of any reason it'd be different than any other image on Docker Hub.

Maybe try running without sudo? It worked both ways for me, but maybe there's a privilege issue for you.

Also, what's your Docker version (docker version)? Mine is 18.09.1

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

I don't mind having problems if I know why they're happening and how to fix them, but things not working for apparently absolutely no reason is one of the most frustrating things in the world.

I know, right? You'd think if it can pull one image, it should be able to pull all of them. It makes no sense.

Running the command without sudo throttles it immediately. Permission Denied while trying to connect to the Docker daemon socket

My docker version is 19.03.08.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Interesting, you're on a newer version of Docker... A new major version, even. Maybe this image uses something that's deprecated? I don't think so, but the version difference is something to look at, at least. I can't set up a new Docker environment to play around with versions right now, but I might have the time later this week.

Alternatively, is there any chance that your installation is not properly connected to Docker Hub? Maybe the other images you've tried were pulled from other default sources? Unlikely given that you pulled another unofficial Minecraft image without issue, but possible.

The search results for the error message aren't super helpful, as very few seem to be so limited in when the error appears. If you believe the error message, it's saying that it can't connect to one of Docker's servers. In general, I'd recommend checking networking-related things. Proxies, weird DNS setting, etc. could cause the connection to fail. Or perhaps you just got unlucky and your network connection failed briefly when you pulled the image (have you tried pulling it in the same way more than once?).

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

I just installed whatever version it auto-chose when I ran sudo apt-get install docker.io. Two other docker images aren't a very large test pool so maybe I'll try pulling down a few other things to see if it's still limited to only yours.

^ I mean, that's what the error seems to say, but then I was able to pull down that spigot image just fine so why would that work. I don't know if there's a way to add or remove other repos like there is for linux applications (it doesn't seem like there is unless you want to self host one - Docker Hub seems to be the place to go).

Everything internet related is set to defaults. I can't see why that would be messing with it. There are no proxies, I haven't messed with DNS, it's just plugged in directly to my router through Ethernet. I can log into it all day through SSH over the local network and I haven't had any issues installing software over the internet from default Ubuntu repos. And yes, I've tried pulling your image many different times, even after restarts. No change.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Well for whatever reason, it just started working. The image finally decided to download when I ran the command again after waiting a while (weird) and the first time I ran it, it failed due to the EULA, which makes sense. Then it restarted itself and I was good to go. Changes I make in the world seem to persist even after starting, stopping, and restarting the entire server, so that's good.

That said, the world is horribly unstable now. I can play for maybe a minute and a half and then as soon as I try to do anything even slightly taxing to the server (even something as simple as killing a few cows), it crashes and resets my progress back to the last successful shutdown. Standing in one place at spawn seems to be plenty stable, but that's a little pointless, haha.

When I created the docker instance, my command was sudo docker run -p 25565:25565 -v /minecraft/papermc/test:/papermc -d -it --restart on-failure --name "papermc-1-16-1" -e MC_VERSION="1.16.1" -e MC_RAM="4G" phyremaster/papermc

The core dump says:

#
#  SIGSEGV (0xb) at pc=0x00007f63402529a8, pid=1, tid=51
#
# JRE version: OpenJDK Runtime Environment (11.0.9+11) (build 11.0.9+11-alpine-r1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.9+11-alpine-r1, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# J 16408 c1 net.minecraft.server.v1_16_R1.IChatBaseComponent.b(Lnet/minecraft/server/v1_16_R1/IChatFormatted$a;)Ljava/util/Optional; (13 bytes) @ 0x00007f63402529a8 [0x00007f63402527e0+0x00000000000001c8]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /papermc/core.1)
#
# Can not save log file, dump to screen..
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f63402529a8, pid=1, tid=51
#
# JRE version: OpenJDK Runtime Environment (11.0.9+11) (build 11.0.9+11-alpine-r1)
# Java VM: OpenJDK 64-Bit Server VM (11.0.9+11-alpine-r1, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# J 16408 c1 net.minecraft.server.v1_16_R1.IChatBaseComponent.b(Lnet/minecraft/server/v1_16_R1/IChatFormatted$a;)Ljava/util/Optional; (13 bytes) @ 0x00007f63402529a8 [0x00007f63402527e0+0x00000000000001c8]
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P %E" (or dumping to /papermc/core.1)
#
# If you would like to submit a bug report, please visit:
#   https://gitlab.alpinelinux.org/alpine/aports/issues
#

---------------  S U M M A R Y ------------

Command Line: -Xms4G -Xmx4G papermc-1.16.1-138.jar nogui

Host: AMD Phenom(tm) II X6 1055T Processor, 6 cores, 11G, Alpine Linux v3.13
Time: Thu Mar 18 04:46:55 2021 UTC elapsed time: 49.264379 seconds (0d 0h 0m 49s)

---------------  T H R E A D  ---------------

Current thread (0x00007f6328d32800):  JavaThread "Server thread" [_thread_in_Java, id=51, stack(0x00007f632617a000,0x00007f632627aac0)]

Stack: [0x00007f632617a000,0x00007f632627aac0],  sp=0x00007f6326279738,  free space=1021k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
J 16408 c1 net.minecraft.server.v1_16_R1.IChatBaseComponent.b(Lnet/minecraft/server/v1_16_R1/IChatFormatted$a;)Ljava/util/Optional; (13 bytes) @ 0x00007f63402529a8 [0x00007f63402527e0+0x00000000000001c8]

[error occurred during error reporting (printing native stack), id 0xb, SIGSEGV (0xb) at pc=0x00007f6357014540]


siginfo: si_signo: 11 (SIGSEGV), si_code: 128 (SI_KERNEL), si_addr: 0x0000000000000000

Register to memory mapping:

RAX=0x00000007005e7a50 is an oop: java.util.Optional
{0x00000007005e7a50} - klass: 'java/util/Optional'
RBX=0x0000000000000010 is an unknown value
RCX=0x0000000000000010 is an unknown value
RDX=0x0 is NULL
RSP=0x00007f6326279738 is pointing into the stack for thread: 0x00007f6328d32800
RBP=8121496 is a compressed pointer to class: 0x00000008007bec98
net.minecraft.server.v1_16_R1.ChatComponentText {0x00000008007bec98}
RSI=0x00000007fa84f858 is an oop:
[error occurred during error reporting (printing register info), id 0xb, SIGSEGV (0xb) at pc=0x00007f6357496f50]

Registers:
RAX=0x00000007005e7a50, RBX=0x0000000000000010, RCX=0x0000000000000010, RDX=0x0000000000000000
RSP=0x00007f6326279738, RBP=0x00000000007bec98, RSI=0x00000007fa84f858, RDI=0x00000007665117c0
R8 =0x00000007665117a8, R9 =0x0000000000000000, R10=0x6f6d72613d657079, R11=0x0000000000000010
R12=0x0000000000000000, R13=0x00000007fa84f828, R14=0x00000008007becb8, R15=0x00007f6328d32800
RIP=0x00007f63402529a8, EFLAGS=0x0000000000010206, CSGSFS=0x002b000000000033, ERR=0x0000000000000000
  TRAPNO=0x000000000000000d

Top of Stack: (sp=0x00007f6326279738)
0x00007f6326279738:   00007f634782a020 00000007fa84f828
0x00007f6326279748:   00000007fa84f7f0 00000007fa84f860
0x00007f6326279758:   00000007fa84f7f0 0000000100000000
0x00007f6326279768:   00000007fa84f738 00007f6326279818

Instructions: (pc=0x00007f63402529a8)
0x00007f63402528a8:   00 48 81 bb 60 01 00 00 00 00 00 00 75 17 48 89
0x00007f63402528b8:   bb 60 01 00 00 48 c7 83 68 01 00 00 01 00 00 00
0x00007f63402528c8:   e9 08 00 00 00 48 83 83 40 01 00 00 01 48 b8 98
0x00007f63402528d8:   ec 7b 00 08 00 00 00 e8 9c 04 00 00 48 8b 74 24
0x00007f63402528e8:   20 48 3b 06 48 8b d6 48 bf 10 fd cc 22 63 7f 00
0x00007f63402528f8:   00 8b 52 08 49 bc 00 00 00 00 08 00 00 00 49 03
0x00007f6340252908:   d4 4d 33 e4 48 3b 97 88 01 00 00 75 0d 48 83 87
0x00007f6340252918:   90 01 00 00 01 e9 66 00 00 00 48 3b 97 98 01 00
0x00007f6340252928:   00 75 0d 48 83 87 a0 01 00 00 01 e9 50 00 00 00
0x00007f6340252938:   48 81 bf 88 01 00 00 00 00 00 00 75 17 48 89 97
0x00007f6340252948:   88 01 00 00 48 c7 87 90 01 00 00 01 00 00 00 e9
0x00007f6340252958:   2c 00 00 00 48 81 bf 98 01 00 00 00 00 00 00 75
0x00007f6340252968:   17 48 89 97 98 01 00 00 48 c7 87 a0 01 00 00 01
0x00007f6340252978:   00 00 00 e9 08 00 00 00 48 83 87 78 01 00 00 01
0x00007f6340252988:   48 8b d0 66 90 48 b8 40 18 88 00 08 00 00 00 e8
0x00007f6340252998:   24 2d 1a 00 48 83 c4 30 5d 4d 8b 97 08 01 04 00
0x00007f63402529a8:   41 85 02 c3 49 ba 48 bb b5 2c 63 7f 00 00 4c 89
0x00007f63402529b8:   54 24 08 48 c7 04 24 ff ff ff ff e8 38 c6 2b ff
0x00007f63402529c8:   e9 67 fe ff ff e8 ce 7e 2b ff 90 90 49 8b 87 20
0x00007f63402529d8:   04 00 00 49 ba 00 00 00 00 00 00 00 00 4d 89 97
0x00007f63402529e8:   20 04 00 00 49 ba 00 00 00 00 00 00 00 00 4d 89
0x00007f63402529f8:   97 28 04 00 00 48 83 c4 30 5d e9 79 a7 22 ff f4
0x00007f6340252a08:   f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4 f4
0x00007f6340252a18:   f4 f4 f4 f4 f4 f4 f4 f4 0f 1f 44 00 00 48 bb 00
0x00007f6340252a28:   00 00 00 00 00 00 00 e9 fb ff ff ff 90 48 bb 00
0x00007f6340252a38:   00 00 00 00 00 00 00 e9 fb ff ff ff e8 37 9a 2b
0x00007f6340252a48:   ff 48 bf aa f9 74 57 63 7f 00 00 48 83 e4 f0 e8
0x00007f6340252a58:   54 47 13 17 f4 49 ba 5d 2a 25 40 63 7f 00 00 41
0x00007f6340252a68:   52 e9 32 5a 1f ff f4 f4 a0 9e 34 00 07 00 00 00
0x00007f6340252a78:   48 bb b5 2c 63 7f 00 00 ff 02 00 00 00 00 01 00
0x00007f6340252a88:   c2 01 00 01 03 01 06 00 00 01 08 01 00 00 02 00
0x00007f6340252a98:   d2 03 00 92 00 01 00 16 00 00 01 f8 d1 fe 05 50


Stack slot to memory mapping:
stack at sp + 0 slots: 0x00007f634782a020 is at entry_point+1280 in (nmethod*)0x00007f6347829910
Compiled method (c2)   49268 15681       4       net.minecraft.server.v1_16_R1.IChatBaseComponent::getString (5 bytes)
 total in heap  [0x00007f6347829910,0x00007f634782a908] = 4088
 relocation     [0x00007f6347829a88,0x00007f6347829b20] = 152
 main code      [0x00007f6347829b20,0x00007f634782a3a0] = 2176
 stub code      [0x00007f634782a3a0,0x00007f634782a3e8] = 72
 oops           [0x00007f634782a3e8,0x00007f634782a400] = 24
 metadata       [0x00007f634782a400,0x00007f634782a4a0] = 160
 scopes data    [0x00007f634782a4a0,0x00007f634782a678] = 472
 scopes pcs     [0x00007f634782a678,0x00007f634782a808] = 400
 dependencies   [0x00007f634782a808,0x00007f634782a818] = 16
 handler table  [0x00007f634782a818,0x00007f634782a8d8] = 192
 nul chk table  [0x00007f634782a8d8,0x00007f634782a908] = 48
stack at sp + 1 slots: 0x00000007fa84f828 is an oop: java.lang.StringBuilder
{0x00000007fa84f828} - klass: 'java/lang/StringBuilder'
stack at sp + 2 slots: 0x00000007fa84f7f0 is an oop: net.minecraft.server.v1_16_R1.ChatComponentText
{0x00000007fa84f7f0} - klass: 'net/minecraft/server/v1_16_R1/ChatComponentText'
stack at sp + 3 slots: 0x00000007fa84f860 is an oop: net.minecraft.server.v1_16_R1.IChatFormatted$$Lambda$2844/0x0000000800881840
{0x00000007fa84f860} - klass: 'net/minecraft/server/v1_16_R1/IChatFormatted$$Lambda$2844'
stack at sp + 4 slots: 0x00000007fa84f7f0 is an oop: net.minecraft.server.v1_16_R1.ChatComponentText
{0x00000007fa84f7f0} - klass: 'net/minecraft/server/v1_16_R1/ChatComponentText'
stack at sp + 5 slots: 0x0000000100000000 is an unknown value
stack at sp + 6 slots: 0x00000007fa84f738 is an oop: [Ljava.lang.Object;
{0x00000007fa84f738} - klass: 'java/lang/Object'[]
 - length: 10
stack at sp + 7 slots: 0x00007f6326279818 is pointing into the stack for thread: 0x00007f6328d32800

Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled


---------------  P R O C E S S  ---------------

Threads class SMR info:
_java_thread_list=0x00007f63289581f0, length=43, elements={
0x00007f6331242800, 0x00007f6331126800, 0x00007f6331127800, 0x00007f6330f11800,
0x00007f6330f12800, 0x00007f6330f0d800, 0x00007f6330f0e800, 0x00007f6330857800,
0x00007f632dce2800, 0x00007f632c9a1800, 0x00007f632c9a2800, 0x00007f632c9a3800,
0x00007f632b8fe800, 0x00007f632b8ff800, 0x00007f632b901800, 0x00007f6327d30800,
0x00007f6327d31800, 0x00007f6327d32800, 0x00007f6327d33800, 0x00007f6328d31800,
0x00007f6328d32800, 0x00007f6328d33800, 0x00007f6330296800, 0x00007f6330297800,
0x00007f6330298800, 0x00007f6330299800, 0x00007f633029a800, 0x00007f633029b800,
0x00007f633029c800, 0x00007f633029d000, 0x00007f63302a5800, 0x00007f63302a6800,
0x00007f63302a7800, 0x00007f63302a8800, 0x00007f63302aa800, 0x00007f63302ab000,
0x00007f63302ac000, 0x00007f632ed3e800, 0x00007f632ed40800, 0x00007f63257a6000,
0x00007f63257a9800, 0x00007f632ab83800, 0x00007f63257ac000
}

Java Threads: ( => current thread )
  0x00007f6331242800 JavaThread "Reference Handler" daemon [_thread_blocked, id=16, stack(0x00007f633101d000,0x00007f633111dac0)]
  0x00007f6331126800 JavaThread "Finalizer" daemon [_thread_blocked, id=17, stack(0x00007f6330f13000,0x00007f6331013ac0)]
  0x00007f6331127800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=18, stack(0x00007f6330df9000,0x00007f6330ef9ac0)]
  0x00007f6330f11800 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=19, stack(0x00007f6330cf8000,0x00007f6330df8ac0)]
  0x00007f6330f12800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=20, stack(0x00007f6330bef000,0x00007f6330cefac0)]
  0x00007f6330f0d800 JavaThread "Sweeper thread" daemon [_thread_blocked, id=21, stack(0x00007f6330aee000,0x00007f6330beeac0)]
  0x00007f6330f0e800 JavaThread "Service Thread" daemon [_thread_blocked, id=22, stack(0x00007f6330859000,0x00007f6330959ac0)]
  0x00007f6330857800 JavaThread "Common-Cleaner" daemon [_thread_blocked, id=24, stack(0x00007f6330644000,0x00007f6330744ac0)]
  0x00007f632dce2800 JavaThread "Log4j2-TF-1-AsyncLogger[AsyncContext@277050dc]-1" daemon [_thread_blocked, id=26, stack(0x00007f632d939000,0x00007f632da39ac0)]
  0x00007f632c9a1800 JavaThread "Server-Worker-1" daemon [_thread_in_Java, id=36, stack(0x00007f6329431000,0x00007f6329531ac0)]
  0x00007f632c9a2800 JavaThread "Server-Worker-2" daemon [_thread_in_Java, id=37, stack(0x00007f6329330000,0x00007f6329430ac0)]
  0x00007f632c9a3800 JavaThread "Server-Worker-3" daemon [_thread_in_Java, id=38, stack(0x00007f632922f000,0x00007f632932fac0)]
  0x00007f632b8fe800 JavaThread "Server-Worker-4" daemon [_thread_in_Java, id=39, stack(0x00007f632912e000,0x00007f632922eac0)]
  0x00007f632b8ff800 JavaThread "Timer hack thread" daemon [_thread_blocked, id=40, stack(0x00007f6329c8e000,0x00007f6329d8eac0)]
  0x00007f632b901800 JavaThread "Paper Async Task Handler Thread - 0" [_thread_blocked, id=44, stack(0x00007f6327238000,0x00007f6327338ac0)]
  0x00007f6327d30800 JavaThread "Server-Worker-5" daemon [_thread_blocked, id=45, stack(0x00007f632697e000,0x00007f6326a7eac0)]
  0x00007f6327d31800 JavaThread "Server-Worker-6" daemon [_thread_blocked, id=46, stack(0x00007f632687d000,0x00007f632697dac0)]
  0x00007f6327d32800 JavaThread "Server-Worker-7" daemon [_thread_in_Java, id=47, stack(0x00007f632677c000,0x00007f632687cac0)]
  0x00007f6327d33800 JavaThread "Server-Worker-8" daemon [_thread_blocked, id=48, stack(0x00007f632667b000,0x00007f632677bac0)]
  0x00007f6328d31800 JavaThread "Snooper Timer" daemon [_thread_blocked, id=50, stack(0x00007f6326b40000,0x00007f6326c40ac0)]
=>0x00007f6328d32800 JavaThread "Server thread" [_thread_in_Java, id=51, stack(0x00007f632617a000,0x00007f632627aac0)]
  0x00007f6328d33800 JavaThread "Server console handler" daemon [_thread_in_native, id=52, stack(0x00007f6326079000,0x00007f6326179ac0)]
  0x00007f6330296800 JavaThread "DestroyJavaVM" [_thread_blocked, id=9, stack(0x00007f6356812000,0x00007f6356912ad8)]
  0x00007f6330297800 JavaThread "Paper Async Chunk Task Thread #0" [_thread_blocked, id=57, stack(0x00007f632f9bc000,0x00007f632fabcac0)]
  0x00007f6330298800 JavaThread "Paper Async Chunk Task Thread #1" [_thread_blocked, id=58, stack(0x00007f632f8bb000,0x00007f632f9bbac0)]
  0x00007f6330299800 JavaThread "Paper Async Chunk Task Thread #2" [_thread_blocked, id=59, stack(0x00007f632f7ba000,0x00007f632f8baac0)]
  0x00007f633029a800 JavaThread "Paper Async Chunk Task Thread #3" [_thread_blocked, id=60, stack(0x00007f632f6b9000,0x00007f632f7b9ac0)]
  0x00007f633029b800 JavaThread "Paper Async Chunk Task Thread #4" [_thread_blocked, id=61, stack(0x00007f632f5b8000,0x00007f632f6b8ac0)]
  0x00007f633029c800 JavaThread "Paper Async Chunk Urgent Task Thread" [_thread_blocked, id=62, stack(0x00007f632f4b7000,0x00007f632f5b7ac0)]
  0x00007f633029d000 JavaThread "Paper Watchdog Thread" [_thread_blocked, id=63, stack(0x00007f632f3b6000,0x00007f632f4b6ac0)]
  0x00007f63302a5800 JavaThread "Timer-0" daemon [_thread_blocked, id=64, stack(0x00007f632f2b5000,0x00007f632f3b5ac0)]
  0x00007f63302a6800 JavaThread "Netty Epoll Server IO #0" daemon [_thread_in_native, id=65, stack(0x00007f632fe37000,0x00007f632ff37ac0)]
  0x00007f63302a7800 JavaThread "Paper RegionFile IO Thread" [_thread_blocked, id=66, stack(0x00007f632fd36000,0x00007f632fe36ac0)]
  0x00007f63302a8800 JavaThread "Cleaner-0" daemon [_thread_blocked, id=67, stack(0x00007f632f1b4000,0x00007f632f2b4ac0)]
  0x00007f63302aa800 JavaThread "world - Light" daemon [_thread_blocked, id=68, stack(0x00007f63255fd000,0x00007f63256fdac0)]
  0x00007f63302ab000 JavaThread "Paper Object Cleaner" [_thread_blocked, id=69, stack(0x00007f632ee22000,0x00007f632ef22ac0)]
  0x00007f63302ac000 JavaThread "world_nether - Light" daemon [_thread_blocked, id=70, stack(0x00007f63254fc000,0x00007f63255fcac0)]
  0x00007f632ed3e800 JavaThread "world_the_end - Light" daemon [_thread_blocked, id=71, stack(0x00007f6324c02000,0x00007f6324d02ac0)]
  0x00007f632ed40800 JavaThread "Craft Async Scheduler Management Thread" [_thread_blocked, id=72, stack(0x00007f6325019000,0x00007f6325119ac0)]
  0x00007f63257a6000 JavaThread "Netty Epoll Server IO #1" daemon [_thread_in_native, id=77, stack(0x00007f632aa5d000,0x00007f632ab5dac0)]
  0x00007f63257a9800 JavaThread "User Authenticator #1" daemon [_thread_blocked, id=79, stack(0x00007f632309c000,0x00007f632319caa8)]
  0x00007f632ab83800 JavaThread "ForkJoinPool.commonPool-worker-3" daemon [_thread_blocked, id=83, stack(0x00007f6322d9b000,0x00007f6322e9baa8)]
  0x00007f63257ac000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=84, stack(0x00007f6328a93000,0x00007f6328b93aa8)]

Other Threads:
  0x00007f6331241800 VMThread "VM Thread" [stack: 0x00007f6331137000,0x00007f6331237ac0] [id=15]
  0x00007f633084c800 WatcherThread [stack: 0x00007f6330747000,0x00007f6330847ac0] [id=23]
  0x00007f633f234800 GCTaskThread "GC Thread#0" [stack: 0x00007f633f12f000,0x00007f633f22fac0] [id=10]
  0x00007f633084f800 GCTaskThread "GC Thread#1" [stack: 0x00007f632c460000,0x00007f632c560ac0] [id=29]
  0x00007f632e2fc800 GCTaskThread "GC Thread#2" [stack: 0x00007f632c35d000,0x00007f632c45dac0] [id=30]
  0x00007f632e2fd000 GCTaskThread "GC Thread#3" [stack: 0x00007f632c25a000,0x00007f632c35aac0] [id=31]
  0x00007f632e2fe000 GCTaskThread "GC Thread#4" [stack: 0x00007f632c157000,0x00007f632c257ac0] [id=32]
  0x00007f632e2fe800 GCTaskThread "GC Thread#5" [stack: 0x00007f632c054000,0x00007f632c154ac0] [id=33]
  0x00007f6335258800 ConcurrentGCThread "G1 Main Marker" [stack: 0x00007f6335157000,0x00007f6335257ac0] [id=11]
  0x00007f6335154800 ConcurrentGCThread "G1 Conc#0" [stack: 0x00007f6335053000,0x00007f6335153ac0] [id=12]
  0x00007f632e2ff800 ConcurrentGCThread "G1 Conc#1" [stack: 0x00007f632bf51000,0x00007f632c051ac0] [id=34]
  0x00007f6331df7800 ConcurrentGCThread "G1 Refine#0" [stack: 0x00007f6331cf0000,0x00007f6331df0ac0] [id=13]
  0x00007f632d879000 ConcurrentGCThread "G1 Refine#1" [stack: 0x00007f632b172000,0x00007f632b272ac0] [id=35]
  0x00007f632d87b800 ConcurrentGCThread "G1 Refine#2" [stack: 0x00007f632902d000,0x00007f632912dac0] [id=41]
  0x00007f632ae43800 ConcurrentGCThread "G1 Refine#3" [stack: 0x00007f63279cf000,0x00007f6327acfac0] [id=42]
  0x00007f632ae45000 ConcurrentGCThread "G1 Refine#4" [stack: 0x00007f632733b000,0x00007f632743bac0] [id=43]
  0x00007f6328d16000 ConcurrentGCThread "G1 Refine#5" [stack: 0x00007f6326c43000,0x00007f6326d43ac0] [id=49]
  0x00007f6331ced800 ConcurrentGCThread "G1 Young RemSet Sampling" [stack: 0x00007f6331bec000,0x00007f6331cecac0] [id=14]

Threads with active compile tasks:
C2 CompilerThread0  49270 16398   !   4       net.minecraft.server.v1_16_R1.ChunkMapDistance::a (240 bytes)

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap address: 0x0000000700000000, size: 4096 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
Narrow klass base: 0x0000000800000000, Narrow klass shift: 0
Compressed class space size: 1073741824 Address: 0x0000000800000000

Heap:
 garbage-first heap   total 4194304K, used 570586K [0x0000000700000000, 0x0000000800000000)
  region size 2048K, 91 young (186368K), 22 survivors (45056K)
 Metaspace       used 88731K, capacity 93313K, committed 93556K, reserved 1128448K
  class space    used 12173K, capacity 14260K, committed 14300K, reserved 1048576K
Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, A=archive, TAMS=top-at-mark-start (previous, next)
|   0|0x0000000700000000, 0x0000000700200000, 0x0000000700200000|100%| O|  |TAMS 0x0000000700200000, 0x0000000700000000| Untracked
|   1|0x0000000700200000, 0x0000000700400000, 0x0000000700400000|100%| O|  |TAMS 0x0000000700400000, 0x0000000700200000| Untracked
|   2|0x0000000700400000, 0x0000000700600000, 0x0000000700600000|100%| O|  |TAMS 0x0000000700600000, 0x0000000700400000| Untracked
|   3|0x0000000700600000, 0x0000000700800000, 0x0000000700800000|100%| O|  |TAMS 0x0000000700800000, 0x0000000700600000| Untracked
|   4|0x0000000700800000, 0x0000000700a00000, 0x0000000700a00000|100%| O|  |TAMS 0x0000000700a00000, 0x0000000700800000| Untracked
|   5|0x0000000700a00000, 0x0000000700c00000, 0x0000000700c00000|100%| O|  |TAMS 0x0000000700c00000, 0x0000000700a00000| Untracked```

Followed by 2000+ lines of those same type of characters in the last paragraph and a bit more information at the end. I'm not sure how much of that is useful to you so I didn't feel the need to include it.

Any idea what's causing the crashes and how I might be able to make it more stable? I did add some datapacks to the main world folder, but I've confirmed that those are stable elsewhere.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Use triple backticks to turn that into a code block, single backticks only work for inline code (no newlines).

I think I do know what causes that crash. Minecraft Java Edition is notoriously unstable with high RAM usage. I used to have this issue when my Minecraft containers would use all of their 4 GB of RAM. I believe the solution was changing only the MC_RAM variable to 4000M (which is 96 MB less than 4 GB). This might not fix the issue, though, because from the sound of it this may be more severe. Definitely worth a try, though!

Also, the EULA thing should stop the Minecraft server once, but the the startup script is supposed to automatically accept the EULA and restart the Minecraft server. If that didn't happen, that's a new (albeit minor) issue.

I'm reopening this for now, as we are once again in a situation where the issue could be with this image.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

If the issue isn't solved by the MC_RAM change, it might be related to the recent switch to an Alpine base image. I should be able to build an older version of the image (with a different base) and send it to you to see if the old base works correctly. I can't do that tonight, though, because I have classes tomorrow.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Ah, perfect. I'm new to Git Hub so I didn't know that. Thanks for the tip!

Well, I tried only modifying RAM to 4000M like you said, but as soon as the server booted, it crashed instantly with the same set of errors as before. I did have that happen a couple times earlier as well. Likely that means that even when it is up for long enough for me to mess with, it'll crash a couple minutes later. I might try it anyway.

I did notice two warning lines at the beginning of server boot saying:

[05:23:29 WARN]: Found validation problem in {minecraft:entities/ender_dragon}.pools[0].entries[0]: Unknown loot table called minecraft:entities/reference/extra/ender_dragon [05:23:29 WARN]: Found validation problem in {minecraft:entities/villager}.pools[0].entries[0]: Unknown loot table called minecraft:entities/reference/villager/villager_head

but that's likely a datapack issue that wouldn't impact this.

The server did auto reboot after the EULA stop, I just didn't immediately know that since it kicked me out of the docker attach session like a crash. Didn't take super long to figure out though (I think it may have crashed once after that before actually starting the server for real).

And alright, that would be great. I'll keep an eye out for that here whenever you get the chance. I may be moving to a new state at least temporarily here in the next month or two and where I'm going I won't be able to take the server so I'm trying to get this done as quickly as reasonably possible. I was hoping to get everything configured and stable here before I leave as I should be able to keep it running at my parents' house until I have a place for it myself. This week I wasn't able to work at my main job because of a good amount of snow we got so that opened up some time, but all these roadblocks sure are making things difficult. This was only one of the services I wanted to get up and running, haha.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Hmm... I can't even start it at all without it instantly crashing now. Either that or it immediately crashes once I start trying to connect.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Alrighty, thanks for the update! I was gonna check in soon if you didn't say anything.

We're getting more snow right now and it's supposed to continue for most of the week so I may find myself at home a bunch again. That should let me work on the server a bit more than I usually would so I think it'll work out.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Crashes instantly for me too, confirmed bug I guess.

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

Docker Hub has rebuilt the image, you should be able to pull it now, and it should work.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Well that would totally do it. Thanks! I'll give it a shot and let you know how it turns out just to be sure.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

It's been a busy week, but I'm finally back at this again. Unfortunately, I'm also back to the same timeout error I was having before... I guess I'll do what I did last time and wait for a bit before trying again.

Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

After checking to see if I could pull any other images (I could), it worked. Once it was up and running, the server was super solid for about 25 minutes of testing. I went over 3,000 blocks generating new chunks and it didn't even stutter. Almost felt like it was running locally.

Just now, I installed 5 or so plugins, but now it instantly crashes. Unfortunately, the error dump is so long that it cuts off the top so I can't see what the immediate problem is. I'll try removing the plugins I added one at a time and see if I can find the culprit.

Plugin list:
CoreProtect-19.4
DiscordSRV-Build-1.21.3
DriveBackupV2
SetHomes-1.3.0
LuckPerms-Bukkit-5.2.104

You'd think that 5 plugins wouldn't max out the RAM that quickly, but who knows. Also I've had these Jars for a while so it's very possible that some or all of them have been updated since.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Looks like the game is very stable as long as the memory usage is low, but as soon as it tries to do anything even remotely taxing, it crashes. I've had more success installing and configuring one plugin at a time (CoreProtect, Sethomes, and DiscordSRV up to this point), but as soon as I tried installing Dynmap (and I know that's a heavy plugin), it's back to not being able to boot without instantly crashing.

I've got 12 GB of total RAM available on this particular machine, but I was hoping to use the same hardware for some other services like Nextcloud and some light web hosting. Do you have any suggestions on how I might be able to get things more stable and how much RAM would you recommend I dedicate to MC if I want to run some heavier plugins but only expect to have 3-8 players on the server at any one time?

from papermc-docker.

Phyremaster avatar Phyremaster commented on September 17, 2024

I don't think I can do much to help you, that sounds like a problem with Dynmap to me. Even with plugins, a Minecraft server shouldn't eat up that much RAM. 4 GB is already on the high end for a small server.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

Hmm... It's not just Dynmap that does it, that's just an example. In this case, starting too many plugins for the first time at once (2+), going to the nether for the first time and generating those chunks, or doing anything the server doesn't expect crashes it completely. It sometimes even crashes when I do something as simple as login.

It crashes on startup semi-frequently, but eventually it gets out of the loop and boots properly due to the restart script. Seems inconsistent though so it's hard to say exactly what's causing that.

Edit: I may end up messing around with the amount of RAM to see if that does anything. Some people have reported worse performance in MC with more RAM allocated, which I find strange.

from papermc-docker.

captain-reginald avatar captain-reginald commented on September 17, 2024

I hate to revive an old thread, but I just wanted to ask a quick question.

Does your image handle the Java dependencies itself or is that something that I always install separately? I'm still new to all this so maybe that's a totally stupid question, but in trying to update my 1.16.1 server that we were talking about back in February to 1.17.1 in preparation to update it to 1.18, every time I run the docker start command I'm met with an error telling me that I need to have Java 16 or above installed to run it. The thing is, I've already tried installing java 16 and even java 17 after removing all of the old versions that I could find that were left on my machine. When I run the command java -version, version 16 comes up and everything looks normal.

When I boot the old container file into 1.16.1 however, the server logs say that I'm running Java 11 in the system info header which makes no sense because there's no reference to version 11 anywhere else. The only variable I can think of that's left is your docker image but I don't understand enough about how that works to look into it myself.

Any ideas on what might be the issue? I'm about ready to pull my hair out cuz I've tried everything I can think of, haha.

Edit: Oh I should mention, I did try to pull the latest version of the image to see if I just needed to update, but it always returns the same error even after I did that.

Also, if your Docker image does handle Java, you'll want to update it to version 17 for the long run as 1.18 no longer supports Java version 16.

from papermc-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.