Problem Server backrolling itself.

  • 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

Elgskred

New Member
Jul 29, 2019
37
0
0
Hello

My server backrolled itself about an hour last night
Here is the paste on last nights log.
http://pastebin.com/GDBNU7ac
As you can see on line 335. the server just starts itself up again, there are no errors or logged events indicating a reason for this. Any idea on what could have triggered it?

Info:
Unleashed 1.1.7
All mods enabled
MCPC+ /w PEX and ForgeBackup
 

Francis Baster

New Member
Jul 29, 2019
295
0
0
Are you running a server wrapper which restarts your server after a crash? It sounds like the Minecraft process was abruptly terminated for some unknown reason and was then started again. If Minecraft is not given time to save the map during shutdown, rollback will occur. A good workaround for this is to regularly send the /save-all command to the console, this ensures any crashes etc will not result in more rollback than since the last /save-all command was used.

You can use most server wrappers (I use Minecraft Remote Toolkit) to execute /save-all at regular intervals.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
I use McMyAdmin partly for this reason, there is a option to make it save everything regardless if it was a crash or shutdown.
 

Elgskred

New Member
Jul 29, 2019
37
0
0
The auto-restart must be a built in feature of one of my installed mods. Because the server did a forced restart at the same time tonight, right about 03:17.
And the thing about the restart, there are no crash logs created, so it would seem that the server just stops what it's doing and starting over.

I'll try out one of the server wrappers you mentioned.
 

Elgskred

New Member
Jul 29, 2019
37
0
0
Unleashed mod list:http://ftbwiki.org/Feed_The_Beast_Unleashed
Extra mods:
TreeCapitator
MCPC+ /w PEX
ForgeBackup
BspkrsCore


And just to make things interesting, my server did not restart itself last night. After two nights in a row where the server restarted itself on the exact same time (03:17), it went on all night now.
The only change I made was enabling the /save-on feature of MCPC+.
 

Francis Baster

New Member
Jul 29, 2019
295
0
0
Unleashed mod list:http://ftbwiki.org/Feed_The_Beast_Unleashed
Extra mods:
TreeCapitator
MCPC+ /w PEX
ForgeBackup
BspkrsCore


And just to make things interesting, my server did not restart itself last night. After two nights in a row where the server restarted itself on the exact same time (03:17), it went on all night now.
The only change I made was enabling the /save-on feature of MCPC+.

May I ask what method you use to start your server? Are you just using the ServerStart.sh/bat? Is your server hosted by a MInecraft hosting company, on a VPS / dedicated server that you manage, or home hosted?
 

Elgskred

New Member
Jul 29, 2019
37
0
0
The server is hosted via my home server.
It's started trough the ServerStart.bat
Startup script:
java -Xms4096M -Xmx4096M -XX: permSize=128m -jar ftbserver.jar nogui

I added the Remote Toolkit to my testserver yesterday, so I'll probably configure it and add it to the running server sometime this weekend
 

Francis Baster

New Member
Jul 29, 2019
295
0
0
The server is hosted via my home server.
It's started trough the ServerStart.bat
Startup script:
java -Xms4096M -Xmx4096M -XX: permSize=128m -jar ftbserver.jar nogui

I added the Remote Toolkit to my testserver yesterday, so I'll probably configure it and add it to the running server sometime this weekend

Initially I suspected some external application was terminating and then restarting Minecraft, but if you are just running the start-script to start your server then this seems unlikely. Honestly I am at a loss as to what has caused this.
 

Connor Gavitt

New Member
Jul 29, 2019
1,091
-1
0
Could be somebody did /stop and it didn't save right then they started it up again? Looks like the server received a shutdown command to me.
 

Elgskred

New Member
Jul 29, 2019
37
0
0
I'am having problems getting RemoteToolkit to run. It keeps throwing the error: java.lang.outofmemoryerror permgen space
And it still throws the error even after adjusting the permsize of the new startup .bat file.
Just to point out, the normal startup file works without problems, but the startup file related to remotetoolkit just won't start up properly.
I don't have access to the logs right now, but I can post them when I come home.

Also, I got the remotetoolkit to run properly BEFORE i installed MCPC+, is there any known compatibility issues?
 

Francis Baster

New Member
Jul 29, 2019
295
0
0
I'am having problems getting RemoteToolkit to run. It keeps throwing the error: java.lang.outofmemoryerror permgen space
And it still throws the error even after adjusting the permsize of the new startup .bat file.
Just to point out, the normal startup file works without problems, but the startup file related to remotetoolkit just won't start up properly.
I don't have access to the logs right now, but I can post them when I come home.

Also, I got the remotetoolkit to run properly BEFORE i installed MCPC+, is there any known compatibility issues?

MCPC+ will often require 128M of permgen space whereas you can get sometimes manage to get away with the default 56M without it. With Remote Toolkit you need to edit toolkit/wrapper.properties in order to change to permgen allocation, and also the heap space allocation.

http://paste.ubuntu.com/6599305/

Here is my wrapper.properties, you can see how I have set the Perm Space allocation on line 9.
Code:
-XX:PermSpace=256M
Notice that you need to escape the : and = characters. \ is the escape character, so it looks like
Code:
-XX\:PermSpace\=256M

The arguments must be comma seperated. Heap space allocation is configured on lines 4 and 14, this is what Remote Toolkit will use for -Xmx and -Xms.

The .bat file used to start Remote Toolkit should not be edited, any Java arguments placed here will affect the wrapper itself and not the Minecraft server.
 
Last edited:
  • Like
Reactions: Elgskred

Francis Baster

New Member
Jul 29, 2019
295
0
0
Ha!
You sir, are a saviour. Thanks a heap :)

No problem. You can also see on line 8 of wrapper.properties you can configure how often it sends /save-all to the console with server-saveall-period. I have it set to 10 minute intervals, setting to 0 will disable it. You may want to edit toolkit/messages.txt and blank out auto-save-start and auto-save-complete, otherwise your in-game chat will get spammed every save period.

The fact you got any roll-back at all indicates that you may have suffered from a disk-queue overload, where the server can't save the map fast enough. Using /save-all will halt the server until the disk write queue is cleared, which can help if this is indeed your problem. If your server is hosted on a VPS this can be a common problem, considering that FTB can demand large amounts of disk write bandwidth.