GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.25k stars 813 forks source link

server-start.sh issue #1626

Closed DobriyDed closed 6 years ago

DobriyDed commented 6 years ago

Cronjob task at nigh found update for application. During steamcmd app_update process server-start.sh and ..gamenamehere64.json was rewrited. In result , all memory parameters for java are gone. Server start with only 1/4 of needed memory (default params from app) and crashed several times until file changes are found and reversed.

Possible solutions

UltimateByte commented 6 years ago

What are you even talking about ? Did I miss an episode or something ?

Minimum information - to get help Which game server you are running (e.g Rust/CS:GO).

https://github.com/GameServerManagers/LinuxGSM/wiki/Support

A link that might help: https://github.com/GameServerManagers/LinuxGSM/wiki/Cronjobs

DobriyDed commented 6 years ago

Sorry for my google translate :-) Project Zomboid server. appid 380870 Contains start-server.sh and ProjectZomboid64.json by default. After issung "pzserver start", this files used for startup

During execution of steamcmd "app_update" command (pzserver u or fu) this 2 files was overwrited by update (new version of game comed out yesterday) . Main issue is -Xms and -Xmx parameters is reset to default values,far below current server configuration demands. So , server start to stall from "out of memory".

Looking for possible problem solutions. As a wild guess,

DobriyDed commented 6 years ago

As a temporally solution just revoked write permissions from this files. Still looking for better ways

Jacksay commented 6 years ago

Hi, I'm okay with DobriyDed, Great way will be a paramter added to config server file like memory=5000 And LGSM replace in server-start.sh / ProjectZomboidXX.json with that data.

MarkL4YG commented 6 years ago

I don't think that would be necessary... using the common and instance configs the setting should persist over updates since only the _default config is overwritten afaik.

dgibbs64 commented 6 years ago

Is there anything else required for this? If not will automatically close in 30 days

no-response[bot] commented 6 years ago

This issue has been automatically closed because there has been no response to this issue and is now stale.

markim commented 5 years ago

I just want to put my 2 cents in.

The game updated it's minimum requirements for memory usage. I spawned a server with 1 GB of ram, and was able to follow the LinuxGSM page pretty easily (minus a couple caveats below)

The problem is when all dependencies are there, running

./pzserver start

The user error is that it just fails to start.

Printing out the console log I can see that it was a minimum memory requirement. That might be something good print to the screen though!

(About the dependency issue with latest Ubuntu) Also, on a fresh droplet from digital ocean, as root, On Ubuntu 18.10 x64: https://linuxgsm.com/lgsm/pzserver/

I try to run the command to install the packages. First thing I note is I have to preface with:

snap install jq

Then I can run the majority of the commands on the page (I took out jq):

sudo dpkg --add-architecture i386; sudo apt update; sudo apt install mailutils postfix curl wget file bzip2 gzip unzip bsdmainutils python util-linux ca-certificates binutils bc jq tmux lib32gcc1 libstdc++6 libstdc++6:i386 default-jre

But then even afterwards I have to run this afterwards to get the snap plug in to get rid of a warning:

sudo apt install rng-tools

I'm probably not going to check this much more, but thank you all for the hard work and have a great weekend.

LinuxGSM
Project Zomboid Linux Game Server - LinuxGSM
LinuxGSM is a command line tool for quick, simple deployment and management of a Project Zomboid Linux dedicated game server.
lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.