mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #117] [ns2server] will not start except in debug #94
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @braxton33 on GitHub (Jul 17, 2014).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/117
Originally assigned to: @dgibbs64 on GitHub.
Setup and got ns2server running with the debug flag, however, when i try just ./ns2server start it says it starts ok, and ./ns2server details returns online, however the server is not up, and neither is the web sever.
When using ./ns2server start it says starting and OK
details shows ONLINE
i go to console and the only thing that shows up is:
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 4920
It doesn't load the rest of the stuff that i get in debug mode and nothing is assessable.
I'm running Centos 6.5, epel repo with all the required rpms.
@dgibbs64 commented on GitHub (Jul 17, 2014):
I will have a look later when I'm back. My test one is up and running currently. Press return in the console. Sometimes it does not load all the text unless you press return. Do you mean the server is fully up and running in debug mode?
@braxton33 commented on GitHub (Jul 17, 2014):
I've pressed return, tried entering text, nothing happens. It doesn't go past those 2 lines. But yes in debug mode it runs perfectly. It's running and active right now in fact.
@dgibbs64 commented on GitHub (Jul 17, 2014):
How odd. Never seen this problem before. Really. Not sire on this one :-/.
@braxton33 commented on GitHub (Jul 17, 2014):
What process runs the server in the background for retrieval? Seems like it's just holding or waiting for something...
In debug it just powers straight through the first few lines and continues onto "starting web server" or w/e the line there is... Never happens in normal start though.
@braxton33 commented on GitHub (Jul 17, 2014):
Decided to break down and look at the script (was being lazy) It looks like you don't stick it into a tmux session with debug mode...
I can however run tmux fine as the ns2server user and execute commands in real time... Not sure what else is different.
@dgibbs64 commented on GitHub (Jul 17, 2014):
What user are you running as?
@braxton33 commented on GitHub (Jul 17, 2014):
[ns2server@Curlbox ~]$
@WSG-ViViV commented on GitHub (Jul 25, 2014):
Hi, I participated in the conversation because I have exactly the same problem, I want to say that I am in a Debian 7.5 installation.
The console remains locked with the message:
[S_API FAIL] SteamAPI_Init () failed; SteamAPI_IsSteamRunning () failed.
Setting Breakpad minidump AppID = 4920
If you need additional information I am available.
I found your script very practical and enormously facilitates the creation of game server.
Hoping solve the problem
I apologize in advance for my English is google translate: P
@dgibbs64 commented on GitHub (Jul 25, 2014):
Thanks for the info. Im currently putting together a better development environment to work on these scripts as its getting difficult to manage. This will be used for testing debian ubuntu and centos installations. Until then I cannot really test well. As soon as its complete I will take a look. Currently I have no idea what is causing thos
@dgibbs64 commented on GitHub (Jul 26, 2014):
I can confirm I also get the issue. I will investigate
@dgibbs64 commented on GitHub (Jul 26, 2014):
Looks like it is only specific to natural selection 2. Mights of been an update the to server that may of stopped it working in tmux maybe
@dgibbs64 commented on GitHub (Aug 5, 2014):
Found a fix. Change the following on line 594
#tmux new-session -d -s ${servicename} "${executable} ${parms}|tee -a '${consolelog}'"
tmux new-session -d -s ${servicename} "${executable} ${parms}"
This will resolve the issue. However I need to find a better fix for this.
@dgibbs64 commented on GitHub (Aug 5, 2014):
Found a fix that also improves console logging. I will apply this fix to all scripts as well
tmux new-session -d -s ${servicename} "${executable} ${parms}"
tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@dgibbs64 commented on GitHub (Aug 5, 2014):
Fix will be in next release
@braxton33 commented on GitHub (Aug 5, 2014):
I'm still not sure this is fixed (or perhaps it was broken AGAIN by the most recent update..)
Running your new patch I do get further in the server startup cycle, however, the server doesn't get listed in the server list, and does not respond to the web admin console. Finally it does not continue on sending messages as it does in debug mode once the map loads...
@braxton33 commented on GitHub (Aug 5, 2014):
From the text of the console log it appears that it's just loading a blank slate with
tmux new-session -d -s ${servicename} "${executable} ${parms}"
tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
It's not naming the server, its not loading any mods, etc... The map it loads is not the map that's set to load in the top of the startup script... I traced parms and it looks basically identical for this function as it does for the debug function...
@braxton33 commented on GitHub (Aug 6, 2014):
Yeah... Parms is not the issue, at least to say, if i echo it just above the server start command it shows up properly... I'm still not convinced that it's transferring all the way through the command properly.. Perhaps tmux doesn't like so many variables and refuses to see beyond the executable...
@dgibbs64 commented on GitHub (Aug 6, 2014):
I have just tested this myself. I can confirm your error. Again works in console. but not with tmux. Looks like all the parms are not being passed on in tmux.

@dgibbs64 commented on GitHub (Aug 6, 2014):
I have confirmed that making the server password protected appears to fix the issue.
Im guessing that tmix does not like empty variables like -password ""
I will have a play with this
@dgibbs64 commented on GitHub (Aug 6, 2014):
Can you replace line 595 with this please and let me know if it works. I think this fixes the issue
tmux new-session -d -s ${servicename} "${executable} '${parms}'"
@braxton33 commented on GitHub (Aug 6, 2014):
The issue remains.. Still doesn't bring in the parms data.
tmux new-session -d -s ${servicename} "${executable} '${parms}'"
tmux pipe-pane -o -t ${servicename} "exec cat >> '${consolelog}'"
@braxton33 commented on GitHub (Aug 6, 2014):
perhaps creating a new variable that precombines executable + parms will allow it to pass through properly..? I'm not very familiar with tmux and usually use screen. Another alternative would be instead of creating a variable, creating a small .sh file with the entire executable + parms string in there and just run the temp .sh file instead of the variables.
(actually have been running debug mode in a screen session as a work around for a while now lol)
@dgibbs64 commented on GitHub (Oct 6, 2014):
Addressed the issue here. The user will have to manually add the password to the parms. This is explained in the script next to the parms
github.com/dgibbs64/linuxgameservers@fbd9120d76@lock[bot] commented on GitHub (Jul 20, 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.