Startup Issue with Minecraft - Game runs then crashes after ~ 2 min logged in

System Information

Field Value
Operating System Linux - Ubuntu 24.04.3 on x86_64
Product AMP ‘Phobos’ v2.6.4.0 (Mainline)
Virtualization None
Application Minecraft
Module MinecraftModule
Running in Container No
Current State Stopped

RAM: 6GB dedicated to VH and 6GB dedicated to vanilla (16 total for the system)

Running 2 instances on one machine.

Newly installed/set up servers and instances on this machine.

Vault Hunters 3.19.6.2, running on Forge 40.2.9 (MC 1.18.2)

Vanilla Running on NeoForge 21.10.33-beta (runs fine with all used mods on client side)

Crash Log:

https://pastebin.com/DmTJ53tV

Problem Description

Issue

This is a mod pack (Vault Hunters 3.19.6.2) and previously run on another hosted server from a paid service. We haven’t added/changed any mods compared to what we were previously running on the hosted server, which has been running for about 6 months with no issues. Moving to a self hosted server (through Apex on a local machine) the game files from the previous server were loaded into Apex, the server gets up and running and I am able to log into the server with my minecraft account. (WAN connection, not logging in yet from an external IP address.) Everythihng seems to run fine, but after logging in and letting my character sit for about 2 min I am booted with a getsockopt in the MC screen and then nothing immediatly noticable for reason to be kicked in the console or the log file. I have some pretty good knowledge on computers but I do not know Java code so there is obviously something I am missing on what is causing the crash. The mods have all been tested previously on a paid server hosting with no issues and no changes have been made to those files when loaded into Apex so I am unsure why they would be crashing in the instance. I am having the same issue on another instance with a slightly modded vanilla server. The same steps, and eror given on the console but still nothing overly apparent for whats actually causing the issue.

This is some of the last lines I am seeing in the console:

# A fatal error has been detected by the Java Runtime Environment:

#

# SIGSEGV (0xb) at pc=0x00007877d0be3255, pid=14407, tid=14412

#

# JRE version: OpenJDK Runtime Environment Temurin-21.0.9+10 (21.0.9+10) (build 21.0.9+10-LTS)

# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.9+10 (21.0.9+10-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)

# Problematic frame:

# V [libjvm.so+0x7e3255][08:07:24] [modloading-worker-0/INFO] [de.ar.ne.fo.NetworkManagerImpl/]: Registering C2S receiver with id powah:packet

void OopOopIterateDispatch::Table::oop_oop_iterate<InstanceKlass, narrowOop>(G1RootRegionScanClosure*, oopDesc*, Klass*)+0x2a5

#

Reproduction Steps

  • Start the server and wait for it to run.
  • Once running, check the console for it to look good. (No issues seen.)
  • Log onto the server and walk character around.
  • Leaving character standing in one spot and not doing anything, I wait for about 2 min and then the game crashes.
  • Checking logs and console I don’t see an immediate clue as to what the actual issue is.
  • Tried restarting server after this happens and most times it comes back with a messege saying server can’t start and will continue to say this until I completly restart the server machine.
  • Cycle detailed above keeps repeating and I haven’t been able to stay logged on for more than 2-5 min before having to do a server machine restart

Slight UPDATE:

I left the vanilla server running overnight to see if it would crash and without anyone logging on lastnight it ran all night, went through a schedualed restart at 4 am and was still running at around 9 am this morning. As soon as I tried logging in, the server crashed. Got a “disconnected” messege in the MC screen and same error code on the console. Error log looks very simular but havent line for line checked to see if its the same as the previous posted error log. And now the server shows “Unable to Run” and won’t run at all when I press start.

It could be that the Java runtime being used for the server has some bug in it, as that isn’t a regular MC crash, that’s a full-on segmentation fault in the Java runtime itself.
You could try updating the system’s packages or swap that instance over to using docker to see if that makes a different.

By “updating the system’s packaging” is that doing an update on the Java install? I haven’t tried docker yet so I will give that a go as well.

The Java 21 Temruin runtime is usually just installed as a package on the Linux system, so you can check for updates and update it as you would any other package.

New to cmd line operations but I did some looking and I did a:

sudo apt-get update

and

sudo apt-get upgrade

Found several packages and after that finished I restarted the server. Then did:

java -version

and got:

openjdk version “21.0.9” 2025-10-21 LTS
OpenJDK Runtime Environment Temurin-21.0.9+10 (build 21.0.9+10-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.9+10 (build 21.0.9+10-LTS, mixed mode, sharing)

Next tried doing:

sudo apt-get install default-jre

and

sudo apt-get install default-jdk

That found updated packages and finished fine. Now doing a restart on the server to try things out.

Also, since I have already set up the server, I am not sure how to get docker up and running. I bypassed the install when I set up the server, (as the YT video tutorial I was following said it wasn’t necessary.) so I am not sure the steps to get it installed/set up. Any advice on tutorials or outlines of how to do that would be greatly appreciated.

(Small update before going the docker route: The two sets of updates to Ubuntu and Java seem to possibly be working. The VH server is at least running now and I can log in. Both servers have been running and I am logged in currently in both for at least 5 min each.)

You can run as root:

getamp installDocker

Thanks Greenlan. That command worked.

Now to figure out how to move and/or copy my non docker instances into docker. No luck finding any tutorials on YouTube or on here. Of course.

Also, as a side note/update on things:

I have gotten both instances up and running… kind of. The above mentioned update/upgrade thing seems to have “worked”. But not completly.

A friend and I are able to log onto the server. (2 out of the 5 total players who will eventually join.) We play for a bit, 15-30 min, and every so often the server crashes. We are still getting “SIGSEGV ….” as the main error. Sometimes just restarting the instance works. Sometimes the instance wont restart and I have to redo the update/upgrade commands. Sometimes I have to reinstall Java. And sometimes (more often than not) I have to completly restart the server machine before the instance will load and start properly.

I have updated Vault Hunters to run with 8G of ram and downgraded the vanilla to 4.

The last things I find curious is, I have a backup and a server restart set up to trigger when people are offline during the night. I have gotten up to check things when the server restarts and it seems to be fine. I can log into AMP to check things and I can also use the Command Prompt to remotely check things. But the past two mornings (about 6 hours after the restart) the server is running high (fans are ramped), the AMP panel wont connect, command prompt wont connect and when I look at the ethernet connection (I have the server hard lined to my router/modem) the light is off, like its not connecting/talking to the router. I have unplugged the cable and plugged it back in with no effect. The only thing that seems to get it talking again is to completly restart the server machine.

This is seeming to be more of a headache than its worth with how things are going.

My next test (hopefully this weekend) will be to run a memory test/check on the server RAM. Will post how that goes.

Click on the pencil icon on each instance from the main page, go to the Container Settings tab. There is a toggle to run in docker

Awesome. Great I will try this tonight when I get home.

(Tried when I got home but I get this when I set the instance to run in Docker:

“Failed to configure new instance *server name* - Couldn’t find docker - docker is required to run containerized instances. The user running AMP (amp) must also be a member of the ‘docker’ group.:”

I have installed Docker but I am unsure how to set myself (the only admin) as a member of the “docker group”.)

(Also, also, every so often when the server is restarted (machine) the player data gets dropped in Vault Hunters. no inventory is lost but stats and such that have been specked into are lost. ill be adding this last part to the VH discord group to troubleshoot there as well.)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.