[GH-ISSUE #880] SDTD: Telnet issue Shutdown/Monitor #711

Closed
opened 2026-02-27 02:03:17 +03:00 by kerem · 9 comments
Owner

Originally created by @ManyStrongWords on GitHub (Jun 12, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/880

Upon running the monitor command the console is filled with this message until the server crashes.
Monitor: Querying port: 192.168.0.86: : 5 : ERROR: No port supplied.
Also when running shutdown the server is never shutdown gracefully as the telnet does not connect. I have telnet defined in the sdtd-server.xml is there another spot I am missing? telnet works for cbsm

Distro Details

Distro: Ubuntu 16.04 LTS
Arch: x86_64
Kernel: 4.4.0-22-generic
Hostname: govicserver
tmux: tmux 2.1
GLIBC: 2.23

Performance

Uptime: 0d, 0h, 28m
Avg Load: 3.22, 3.35, 2.53

Mem: total used free
Physical: 15G 3.3G 9.4G
Swap: 509M 0B 509M

Storage

Filesystem: /dev/vda1
Total: 246G
Used: 69G
Available: 165G
Serverfiles: 3.0G
#7 Days To Die Server Details

Server name:
Server IP: XXXXXXX
Status: ONLINE

sdtdserver Script Details

Service name: sdtd-server
sdtdserver version: 210516
User: govicserver
GLIBC required: 2.15
Email alert: on
Update on start: off
Location: /home/govicserver
Config file: /home/govicserver/serverfiles/sdtd-server.xml

Backups

No Backups created

Command-line Parameters

./7DaysToDieServer.x86 -logfile /home/govicserver/log/server/output_log__2016-06-11__19-48-28.txt -quit -batchmode -nographics -dedicated -configfile=/home/govicserver/serverfiles/sdtd-server.xml

Ports

Change ports by editing the parameters in:
/home/govicserver/serverfiles/sdtd-server.xml

Useful port diagnostic command:
netstat -atunp | grep 7DaysToDie

DESCRIPTION DIRECTION PORT PROTOCOL

Game/RCON INBOUND udp
Query INBOUND udp
WebAdmin INBOUND tcp
Telnet INBOUND tcp

WebAdmin

WebAdmin enabled:
WebAdmin url: http://XXXXXXX:
WebAdmin password:

Telnet

Telnet enabled:
Telnet address: XXXXXXXXX
Telnet password:

Status: ONLINE

Originally created by @ManyStrongWords on GitHub (Jun 12, 2016). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/880 Upon running the monitor command the console is filled with this message until the server crashes. Monitor: Querying port: 192.168.0.86: : 5 : ERROR: No port supplied. Also when running shutdown the server is never shutdown gracefully as the telnet does not connect. I have telnet defined in the sdtd-server.xml is there another spot I am missing? telnet works for cbsm # Distro Details Distro: Ubuntu 16.04 LTS Arch: x86_64 Kernel: 4.4.0-22-generic Hostname: govicserver tmux: tmux 2.1 GLIBC: 2.23 # Performance Uptime: 0d, 0h, 28m Avg Load: 3.22, 3.35, 2.53 Mem: total used free Physical: 15G 3.3G 9.4G Swap: 509M 0B 509M # Storage Filesystem: /dev/vda1 Total: 246G Used: 69G Available: 165G Serverfiles: 3.0G #7 Days To Die Server Details Server name: Server IP: XXXXXXX Status: ONLINE # sdtdserver Script Details Service name: sdtd-server sdtdserver version: 210516 User: govicserver GLIBC required: 2.15 Email alert: on Update on start: off Location: /home/govicserver Config file: /home/govicserver/serverfiles/sdtd-server.xml # Backups No Backups created # Command-line Parameters ./7DaysToDieServer.x86 -logfile /home/govicserver/log/server/output_log__2016-06-11__19-48-28.txt -quit -batchmode -nographics -dedicated -configfile=/home/govicserver/serverfiles/sdtd-server.xml # Ports Change ports by editing the parameters in: /home/govicserver/serverfiles/sdtd-server.xml Useful port diagnostic command: netstat -atunp | grep 7DaysToDie DESCRIPTION DIRECTION PORT PROTOCOL > Game/RCON INBOUND udp > Query INBOUND udp > WebAdmin INBOUND tcp > Telnet INBOUND tcp # WebAdmin WebAdmin enabled: WebAdmin url: http://XXXXXXX: WebAdmin password: # Telnet Telnet enabled: Telnet address: XXXXXXXXX Telnet password: Status: ONLINE
Author
Owner

@Ormira commented on GitHub (Jul 28, 2016):

I can confirm than the PR #943 also fixed the monitor issue on my side.
For the shutdown to work correctly, I have to set a telnet password, it does not work without (I think it's the expect script in functions/command_stop.sh that get stuck waiting for "password:". Not sure how to change it yet.

<!-- gh-comment-id:235942826 --> @Ormira commented on GitHub (Jul 28, 2016): I can confirm than the PR #943 also fixed the monitor issue on my side. For the shutdown to work correctly, I have to set a telnet password, it does not work without (I think it's the expect script in functions/command_stop.sh that get stuck waiting for "password:". Not sure how to change it yet.
Author
Owner

@UltimateByte commented on GitHub (Jul 28, 2016):

Thanks for the feedback.
For the Telnet thing, i didn't experiment with it yet, but aren't you supposed to set a password anyways ?

<!-- gh-comment-id:235943413 --> @UltimateByte commented on GitHub (Jul 28, 2016): Thanks for the feedback. For the Telnet thing, i didn't experiment with it yet, but aren't you supposed to set a password anyways ?
Author
Owner

@Ormira commented on GitHub (Jul 28, 2016):

You can leave the password empty, the server then restrict the connection to the localhost.

<!-- gh-comment-id:235944608 --> @Ormira commented on GitHub (Jul 28, 2016): You can leave the password empty, the server then restrict the connection to the localhost.
Author
Owner

@UltimateByte commented on GitHub (Jul 28, 2016):

Well, so you're kinda compelled to put one, aren't you ?
In the end, the interesting question is : How does it shutdown with & without a password ? Is it working properly ? Or should we make a statement so that it force closes instantly if no password is set ?

<!-- gh-comment-id:235952132 --> @UltimateByte commented on GitHub (Jul 28, 2016): Well, so you're kinda compelled to put one, aren't you ? In the end, the interesting question is : How does it shutdown with & without a password ? Is it working properly ? Or should we make a statement so that it force closes instantly if no password is set ?
Author
Owner

@Ormira commented on GitHub (Jul 28, 2016):

The sdtd server restrict the telnet admin connection to localhost, not the game client connection.
With a password set, the script shutdown correctly via telnet.
Without password, the script try localhost, public IP, then abruptly close tmux.

<!-- gh-comment-id:236040525 --> @Ormira commented on GitHub (Jul 28, 2016): The sdtd server restrict the telnet admin connection to localhost, not the game client connection. With a password set, the script shutdown correctly via telnet. Without password, the script try localhost, public IP, then abruptly close tmux.
Author
Owner

@ManyStrongWords commented on GitHub (Jul 28, 2016):

I'm confused where am i supposed to define the password so lgsm can use it? Or is your pull request a fix for the issue?

<!-- gh-comment-id:236042539 --> @ManyStrongWords commented on GitHub (Jul 28, 2016): I'm confused where am i supposed to define the password so lgsm can use it? Or is your pull request a fix for the issue?
Author
Owner

@Ormira commented on GitHub (Jul 28, 2016):

The password is configured in serverfiles/sdtd-server.xml on the line
<property name="TelnetPassword" value=""/> <!-- Password to gain entry to telnet interface -->
But my pull request is needed to let lgsm to parse the config file and be able to connect via telnet.

<!-- gh-comment-id:236044205 --> @Ormira commented on GitHub (Jul 28, 2016): The password is configured in serverfiles/sdtd-server.xml on the line `<property name="TelnetPassword" value=""/> <!-- Password to gain entry to telnet interface -->` But my pull request is needed to let lgsm to parse the config file and be able to connect via telnet.
Author
Owner

@dgibbs64 commented on GitHub (Aug 10, 2016):

So the summery of the issue is.

Without the telnet password set Graceful shutdown fails.

This could be because the stop command is waiting for a password it cannot provide.

<!-- gh-comment-id:239022027 --> @dgibbs64 commented on GitHub (Aug 10, 2016): So the summery of the issue is. Without the telnet password set Graceful shutdown fails. This could be because the stop command is waiting for a password it cannot provide.
Author
Owner

@lock[bot] commented on GitHub (Jul 18, 2018):

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.

<!-- gh-comment-id:406088173 --> @lock[bot] commented on GitHub (Jul 18, 2018): 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.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#711
No description provided.