mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #593] [ns2] Unable to load game_setup.xml on centos 7 #479
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#479
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 @rolandpoulter on GitHub (Dec 29, 2015).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/593
Not sure if this is the appropriate place for this. There is a thread on unknown worlds forum but it wasn't very helpful: http://forums.unknownworlds.com/discussion/136479/unable-to-load-game-setup-xml
I'm running this in a VM with CentOS 7 installed. Here is my console output:
The web admin server responds with a page that says "Server loading..."
I can find the server in the games list, but it I can't fully join the server. It stays "Connecting..." for a while and eventually times out.
@UltimateByte commented on GitHub (Dec 30, 2015):
Hi there. I'm sorry for your issue. Seems like you're not the only one experiencing this, either windows and linux. I can guess that it's not a script issue and that you should try to address this to game devs.
@UltimateByte commented on GitHub (Dec 30, 2015):
Btw, "invalid command line" makes me think it could be a start option issue. Could you please copy your main script's parms="" line ?
Maybe they changed some start options. Do you have a changelog of their last update (or preferably their last server update) ?
@rolandpoulter commented on GitHub (Dec 31, 2015):
Here are the params, I'm not sure if the problem has to do with
config_pathor not.Not sure where I can find a changelog, but I'll try to get one of the ns2 devs or someone with more experience running a ns2 server.
@UltimateByte commented on GitHub (Jan 1, 2016):
Maybe try with no parms and add them one by one to hopefully get one that's causing issues ?
Could possibly be a quote symbol issue as i got some while trying to get hurtworld server to work.
Edit : sorry for closing, that was accidental (mobile phone's tactile...)
@Turbine1991 commented on GitHub (Jan 6, 2016):
Roland, I tried your runline exactly - substituting my IP address.
Having an empty mods field gave me "Error: Invalid command line ()" with other errors. Please remove it for now and post your output. Mine started successfully without it.
@jaredballou commented on GitHub (Jan 6, 2016):
Is this server available for free? I can try to reproduce it, I have CentOS 6 and 7 boxes here.
@Turbine1991 commented on GitHub (Jan 6, 2016):
Hosting is free, the instructions are under the "Linux Setup" section of: http://wiki.unknownworlds.com/ns2/Dedicated_Server
@UltimateByte commented on GitHub (Jan 6, 2016):
Just tried installing, seems like you need a steam account owning this game to get it working.
@Turbine1991 commented on GitHub (Jan 7, 2016):
Sorry, I'll clarify - any Steam account will work, it does not have to own the game for the dedicted server.
@UltimateByte commented on GitHub (Jan 7, 2016):
Thanks.
So i just tried under Debian 8.2 which is my server's distro, and got it working without an issue.
Here is my ns2server config :
Start Variables
defaultmap="ns2_summit"
port="27150"
maxplayers="24"
ip="37.187.152.67"
updateonstart="off"
servername="NS2 Server"
webadminuser="admin"
webadminpass="admin"
webadminport="8010"
configpath="server1"
modstorage="server1/Workshop"
mods=""
password=""
Do you have anything significatively different compared to that ?
Maybe your port 8080 is already used ? That's why i changed mine, i thought it was already in use (but it's actually not).
@Turbine1991 commented on GitHub (Jan 7, 2016):
The OP seemed to have trouble with CentOS. Debian and Ubuntu seem to work off the bat.
@UltimateByte commented on GitHub (Jan 7, 2016):
The OP isn't responding anymore btw ://
Seems like you found the solution : remove the empty -mods ""
Anything else to add @Turbine1991 ?
@Turbine1991 commented on GitHub (Jan 7, 2016):
I'm satisfied. :)
@UltimateByte commented on GitHub (Jan 7, 2016):
Thanks for your help mate :)
@rolandpoulter commented on GitHub (Jan 8, 2016):
Sorry for the delayed response. I tried removing
modsand it did not resolve the issue unfortunately. No need to re-open the bug. I'll try to find help from the ns2 community since this is not a problem with this project. Thanks for the help here, much appreciated. 😄BTW, removing mods gave me the same output either way:
@UltimateByte commented on GitHub (Jan 8, 2016):
Thought you left forever :p
I'm interested in finding a solution as it could affect all CentOS users.
We could include a fix for that if you can figure out what's causing that issue.
Please, keep us informed !
Are you running your ns2 with that exact line as a start_parms, or did you transfer the variables for us to see them ?
@jaredballou commented on GitHub (Jan 13, 2016):
Are you using selinux? Run the following command:
getenforce
Also, do
ls -lZ game_setup.xml
and that'll give us the SELinux context. And, you've got the files owned by the game server user, and permissions are OK? If you want to create an account for me on the box, I'd be glad to pop in and take a peek.
@UltimateByte commented on GitHub (Jan 22, 2016):
Closing for now, please keep us informed if anything relevant to fix.
Otherwise, i advise you to use the steam forum for general support : https://steamcommunity.com/groups/linuxgsm/discussions
@JLATORRE89 commented on GitHub (May 8, 2017):
I know this post was closed; but I am experiencing the same issue.
Picking up with the information that @jaredballou requested:
[ns2server@ns2 ns2]$ ls -lZ game_setup.xml
-rwxrwxr-x. ns2server ns2server unconfined_u:object_r:user_home_t:s0 game_setup.xml
Additional Information:
[ns2server@ns2 ns2]$ cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
Firewall dump:
[root@ns2 ~]# firewall-cmd --list-ports
27015/tcp 27015/udp 27016/udp 8080/tcp 8081/tcp 27016/tcp
[ns2server@ns2 ns2]$ sestatus
SELinux status: disabled
Running the command directly using:
./server_linux32 -name " Awesome NS2 Server" -port 27015 -webadmin -webdomain "192.168.1.26" -webuser ##admin## -webpassword ##password## -webport 8080 -map ns2_summit -limit 16
Console Output:
Build 314
Linux
Server tickrate 30, client sendrate 20, bandwidth limit per player 51200
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 4920
Connected to Steam servers
Mod : Fetching Extensions...
Mod : Remote Host returned: 24ab7638 2900408b 2d5a11f0
Mod : Mounting Extension 2d5a11f0
Mod : Mounting Extension 2900408b
Mod : Mounting Extension 24ab7638
Web server running at 192.168.1.26:8080
VAC Enabled
Downloading mods
Finished downloading and installing mods
[ 1.572] Worker 00 : Mounting mod 'UWE Lambda Extension' from /home/ns2server/.config/Natural Selection 2/Workshop/m24ab7638_1479570870/
[ 1.572] Worker 00 : Mounting mod 'UWE Delta Extension' from /home/ns2server/.config/Natural Selection 2/Workshop/m2900408b_1489127862/
[ 1.572] Worker 00 : Mounting mod 'UWE Omega Extension' from /home/ns2server/.config/Natural Selection 2/Workshop/m2d5a11f0_1489181694/
[ 1.583] Worker 00 : Error: Unable to open 'game_setup.xml' (usage 0x1)
[ 1.583] Worker 00 : Error: Unable to load 'game_setup.xml'!
Documentation: https://wiki.unknownworlds.com/ns2/Dedicated_Server#CentOS
@Turbine1991 commented on GitHub (May 9, 2017):
Does the server appear to connect to? It may not be an error, more a warning.
@JLATORRE89 commented on GitHub (May 10, 2017):
@Turbine1991 negative, I cannot see the server in the game server listing.
The server status page still displays "Loading server..." after 10 minutes.
Did a complete reinstall of the OS and followed: https://gameservermanagers.com/lgsm/ns2server/
Same result.
@Turbine1991 commented on GitHub (May 10, 2017):
What's your runline?
@JLATORRE89 commented on GitHub (May 11, 2017):
@Turbine1991 by runline do you mean what command do I use to start the server?
After installing the script, I use the default command: ./ns2server start
executed from: /home/ns2server
@Turbine1991 commented on GitHub (May 11, 2017):
@JLATORRE89 I forgot this is for a server manager. You should try set it up natively and run it, just to rule out whether it's a manager issue or a system issue.
Although I do run NS2 on Ubuntu. CentOS is too slow for game hosting imo, it's just too outdated (very stable) and not very optimised. Are you stuck to using this OS?
@JLATORRE89 commented on GitHub (May 11, 2017):
@Turbine1991 I pretty much went with CentOS 7 because it is based on RHEL and is fairly stable.
I spun up another VM that is running Ubuntu 16, used the server manager; I can now see the dashboard as expected.
A key difference I noticed was fixes were not applied during the CentOS 7 install.
The manual install for CentOS 7 did not work either. I will make a note on the NS2 forum.
Ubuntu start:
[ WARN ] Starting ns2-server: Configuration file missing!
/home/ns2server/server1
Downloading Natural Selection 2 Config
default configs from https://github.com/GameServerManagers/Game-Server-Configs
fetching check_ip.sh...OK
fetching info_config.sh...OK
fetching check_status.sh...OK
fetching fix_steamcmd.sh...OK
[ .... ] Fix ns2-server: Applying steamclient.so general fix: Natural Selection [ INFO ] Fix ns2-server: Applying steamclient.so general fix: Natural Selection [ OK ] Fix ns2-server: Applying steamclient.so general fix: Natural Selection 2
fetching logs.sh...OK
[ OK ] Starting ns2-server: Zuper Rookie Server
Thanks for all the help! =]
@Turbine1991 commented on GitHub (May 12, 2017):
I wouldn't call small game servers mission critical, for NS2 I'd think performance is as important as stability. I've never had it crash/lock up on me since they fixed the crashes a long time ago.
@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.