#7d2d A21 shutdown hangs

20 messages · Page 1 of 1 (latest)

soft coyote
#

Hello,
I have a 7d2d server that does not want to shutdown properly. This prevents me from doing scheduled restarts.

Back on A20 I don't recall these issues, but its been a couple of months. We picked the game back up on A21 and I also migrated to different hardware.

The egg uses telnet to show the console log and I guess the stop command is sent to the telnet session and not bash.

The official stop command is "Shutdown" this shuts the server down but the bash / telnet window is still open making PT think the server is still trying to shutdown.

I usually just kill the server and start it back up. However today I've done some testing and found exit will work to close the telnet / bash session.

I tried shutdown && exit for the stop command, but the sever still hangs. I think the exit command is also going to the telnet session so is not closing bash.

If it helps the eggs startup command is this

./7DaysToDieServer.x86_64 -configfile=serverconfig.xml -quit -batchmode -nographics -dedicated -ServerPort=${SERVER_PORT} -ServerDisabledNetworkProtocols=${SERVER_DISABLED_NETWORK_PROTOCOLS} -ServerMaxPlayerCount=${MAX_PLAYERS} -GameDifficulty=${GAME_DIFFICULTY} -ControlPanelEnabled=false -TelnetEnabled=true -TelnetPort=${TELNET_PORT} -TelnetPassword=${PASSWORD} -logfile logs/latest.log & echo -e "Checking on telnet connection" && until nc -z -v -w5 127.0.0.1 ${TELNET_PORT}; do echo "Waiting for telnet connection..."; sleep 5; done && $( [[ -z ${PASSWORD} ]] && printf %s "telnet -E 127.0.0.1 ${TELNET_PORT}" || printf %s "rcon -t telnet -a 127.0.0.1:${TELNET_PORT} -p {{PASSWORD}}" )

Here is the Egg I use
https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/7_days_to_die

I've tried removing telnet from startup, but then there is no console and the shutdown command does not work at all.
Any suggestions on gracefully shutting the server down?

Thank you

GitHub

Service eggs for the pterodactyl panel. Contribute to parkervcp/eggs development by creating an account on GitHub.

tidal lark
#

Is your 7d2d server starting correctly, I know when we moved to A21 just the other day, it was bootlooping, think it was related to the server config file

soft coyote
#

Yes it is booting fine now. Through the process I had to reinstall a few times. Then I found out when I was restoring the A20 config is where I went wrong because they changed some of the key config names.

Once I just edited the A21 config its been booting fine.

I just can't schedule a restart because it will hang

pure fulcrum
#

Does the server react at all when you you try to restart it ? Any console output suggesting it saved game

soft coyote
whole mason
#

yeah i have this too as of recent and haven't dug into it

#

its just the shutdown cmd sent, it saves everything and sits there

pure fulcrum
#

Yeah I think the telnet process is staying open, not noticing the disconnection. I've seen it with the ark servers

soft coyote
soft coyote
#

Here is my workaround for anyone else having this issue.

ember sierra
#

I have the same issue with 7d2d and ark server.

lost chasm
broken kayak
soft coyote
#

I've been playing on a friends UDL a20 server so not looked into for a while. I still have the server so can test any suggestions. I did post a work around if you get the timing right should work.

broken kayak
desert spade
broken kayak
desert spade
broken kayak