Problem Dedicated server won't run modpack servers

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

twisterxz

New Member
Jul 29, 2019
7
0
0
hey guys,

I got a dedicated server. And i'm trying to run a modpack server. but for some reason it wont run and ends in one of these errors:

Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue

Can't revert to frozen GameData state without freezing first.

[java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.OutOfMemoryError: PermGen space

Can someone help me out?

specs:

8core , 32gb ram, gigabit internet, 1tb storage
java 7, running linux
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
Can you upload the log to pastebin and give us the link?
Also, post the content of your sh file that you use to start the server.
 

twisterxz

New Member
Jul 29, 2019
7
0
0
log is too big for non premium accounts.
i've uploaded the log to dropbox:

https://www.dropbox.com/s/lrbk55q48tp3vm2/errorlog.txt?dl=0

i use opengamepanel so this is the startup file:

#!/bin/bash
function startServer(){
NUMSECONDS=`expr $(date +%s)`
until taskset -c 0-3 java -Xms4G -Xmx16G -jar minecraft_server.jar nogui -XX:permSize=512m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC; do
let DIFF=(`date +%s` - "$NUMSECONDS")
if [ "$DIFF" -gt 15 ]; then
NUMSECONDS=`expr $(date +%s)`
echo "Server 'taskset -c 0-3 java -Xms4G -Xmx16G -jar minecraft_server.jar nogui -XX:permSize=512m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC' crashed with exit code $?. Respawning..." >&2
fi
sleep 3
done
let DIFF=(`date +%s` - "$NUMSECONDS")
if [ ! -e "SERVER_STOPPED" ] && [ "$DIFF" -gt 15 ]; then
startServer
fi
}
startServer
 

twisterxz

New Member
Jul 29, 2019
7
0
0
still getting the permspace error.
my server should be able to run modpacks with atleast 16gb assigned to it?
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
I'm not great at making "custom" sh files for starting minecraft but shouldn't it be
java -Xms4G -Xmx16G -XX:permSize=512m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -jar minecraft_server.jar nogui
 

Inebriated_One

New Member
Jul 29, 2019
2
0
0
What Linux disto are you running? Type lshw to show your hardware. You may have to force Java 64 with the -d64 param.
My server parameters are as follows and have never had an issue - java -server -d64 -Xmx12G -Xms12G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:parallelGCThreads=2 -XX:+AggressiveOpts -jar ftb-infinity-1.11.2.jar nogui

If you don't have it I would recommend getting htop - sudo apt-get install htop - and type htop to look at running processes and see what may be eating memory. Let me know if you have any questions I may be able to help you if you hop on my ts or message me on curse.
 
Last edited:

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
What Linux disto are you running? Type lshw to show your hardware. You may have to force Java 64 with the -d64 param.
My server parameters are as follows and have never had an issue - sudo java -server -d64 -Xmx12G -Xms12G -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:parallelGCThreads=2 -XX:+AggressiveOpts -jar ftb-infinity-1.11.2.jar nogui

If you don't have it I would recommend getting htop - sudo apt-get install htop - and type htop to look at running processes and see what may be eating memory. Let me know if you have any questions I may be able to help you if you hop on my ts or message me on curse.
Why are you running the server as root? If it doesn't run as non root user it is because you have the wrong permissions set on the server files which you should rather fix then work around it by running your server as root.
 
  • Like
Reactions: Inebriated_One

Inebriated_One

New Member
Jul 29, 2019
2
0
0
Why are you running the server as root? If it doesn't run as non root user it is because you have the wrong permissions set on the server files which you should rather fix then work around it by running your server as root.
Good catch, I was typing too fast. I do not run my server as root. - excerpt "sudo" from previous line.
 
  • Like
Reactions: lenscas

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
Good catch, I was typing too fast. I do not run my server as root. - excerpt "sudo" from previous line.
Looking through your post yet again I notice that you don't set the permgen, I guess you are using java 8?
If that is the case your jvm arguments won't help as the op is using java 7 and his problem seems to be that either the permgen flag doesn't get read or gets overwritten for some reason.
However as @twisterxz didn't reply yet after saying he would try my suggestion he either got it fixed and forgot to mention it or has not yet got time to check it, either way I think it would be best to wait until he replies unless you see a major error that others won't see.