Can't connect to own NS2 Server
SEK2000_Fan
Germany Join Date: 2015-08-13 Member: 207106Members
Hey guys,
I am new here and here and did not find the exact problem/solution in this forum, so I start my own "Discussion"
I got a root Server at "1und1" (ISP in Germany), running the last Ubuntu Version.
Since my Website almost doesn't cause any traffic or cpu-time I wanted to install an NS2 Server for this phantastic game.
I used this how2: http://wiki.unknownworlds.com/ns2/Dedicated_Server#Ubuntu
And everything went good.
Server is up and running, BUT if I connect client says: "waiting for server" resulting in a connection time-out several minutes later.
I opened up 27015 and 27016 with "iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport poooortnumber -j ACCEPT"
:/etc/iptables# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:27015
ACCEPT udp -- anywhere anywhere udp dpt:27016
ACCEPT tcp -- anywhere anywhere tcp dpt:27016
ACCEPT tcp -- anywhere anywhere tcp dpt:27015
Still just "waiting for server" if I want to connect to "SEK200 Fan" Server.
Did I do something wrong? I don't get any error or something.
I am new here and here and did not find the exact problem/solution in this forum, so I start my own "Discussion"
I got a root Server at "1und1" (ISP in Germany), running the last Ubuntu Version.
Since my Website almost doesn't cause any traffic or cpu-time I wanted to install an NS2 Server for this phantastic game.
I used this how2: http://wiki.unknownworlds.com/ns2/Dedicated_Server#Ubuntu
And everything went good.
Server is up and running, BUT if I connect client says: "waiting for server" resulting in a connection time-out several minutes later.
I opened up 27015 and 27016 with "iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport poooortnumber -j ACCEPT"
:/etc/iptables# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp -- anywhere anywhere udp dpt:27015
ACCEPT udp -- anywhere anywhere udp dpt:27016
ACCEPT tcp -- anywhere anywhere tcp dpt:27016
ACCEPT tcp -- anywhere anywhere tcp dpt:27015
Still just "waiting for server" if I want to connect to "SEK200 Fan" Server.
Did I do something wrong? I don't get any error or something.
Comments
btw. you can close TCP if you dont work with Webadmin
I dont know how to config the ns2 server on linux but shoulnd't this port represent the game port instead of the query port?
Also can you verify that the server has loaded the map? I had the "Wait for server" error once too. Caused by a mod that was no longer available on the workshop but server still tried to download the mod from steam.
still "waiting for server"
on the shell it still got no error
Press Ctrl-C to exit
Build 275
Ubuntu x86_64
Server tickrate 30, client sendrate 20, bandwidth limit per player 25600
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 4920
Connected to Steam servers
Web server running at 212.227.250.60:8080
[ 2.043] Worker 03 : Error: Unable to open 'game_setup.xml' (usage 0x1)
[ 2.043] Worker 03 : Error: Unable to load 'game_setup.xml'!
VAC Enabled
Client connecting (87.152.36.171)
Client disconnected (87.152.36.171) Quit
[69820.489] Unbound/Unknown : Error: Web error [400]
[69820.581] Unbound/Unknown : Error: Web error [400]
Client connecting (90.17.196.58)
Client disconnected (90.17.196.58) Quit
Client connecting (91.188.37.123)
Client connecting (93.47.218.131)
Client disconnected (91.188.37.123) Timeout
Client disconnected (93.47.218.131) Quit
That's your deal-breaker. It seems like the server binary is not able to find the game logic scripts. Use ./ns2server validate to make sure your game files are not corrupted.
still same errors....
Do you start the ns2 server from inside the ns2server folder?
what's inside the serverfiles folder.
Wait...
the Serverfiles Folder...
Also I use Daniel Gibbs's script.
After build 275, you can not connect to your server.
And the web admin tells you that server is loading.
I think "[ 2.043] Worker 03 : Error: Unable to open 'game_setup.xml' (usage 0x1)" leads to this problem.
But I wonder why is unable to "open".
Even if you just download server files using Daniel Gibbs's script and run the server by original command. Also I validate the server files.
I think Daniel Gibbs's script is great convenient to maintain the server, and I do not know where I can get more detail logs why unable to open that xml.
I posted at here: http://forums.unknownworlds.com/discussion/136479/unable-to-load-game-setup-xml
You can see steam connection log which shows that you have connected.
well i tried the -verbose command, here is the log:
That doesn't really look like a verbose log. Try to run server_linux32 directly with -verbose from inside the serverfiles folder just to test if it's an issue with ns2 or with the management script.
Edit: Damn it's too early. Okay seems like something is off with the FileSystemCache under Linux will dig into it.
If that file is present, the only thing I can think of that would cause that error is if you are using the "-game" option on the commandline ... which sounds weird.
Also what version of Ubuntu are you using?
We've had no problems on 15.04, also by default traffic should be allowed unless you've written a rule to drop all traffic prior to the ones you've disclosed.
To flush ip tables, simply run:
Other than that, you could try upgrade the distro? Although I'm pretty sure people have run a server using that version in the past.
ns2server@s17194895:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
ns2server@s17194895:~$ ./ns2server start
[ OK ] Update ns2-server: Checking for update: Server logs: No update requested/home/ns2server/functions/fn_update_check: line 56: [: : integer expression expected
[ INFO ] Update ns2-server: Forcing update to correct issue
loading fn_update_dl...OK
[ OK ] Update ns2-server: Updating SEK2000 Fans
Redirecting stderr to '/home/ns2server/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Logging in user 'xxxaver1' to Steam Public...Logged in OK
Waiting for license info...OK
ERROR! Failed to install app '4920' (No subscription)
[ OK ] Update ns2-server: Updating SEK2000 Fans
Redirecting stderr to '/home/ns2server/Steam/logs/stderr.txt'
[ 0%] Checking for available updates...
Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...OK.
Logging in user 'xxxaver1' to Steam Public...Logged in OK
Waiting for license info...OK
ERROR! Failed to install app '4920' (No subscription)
[ .... ] Update ns2-server: Checking for update: SteamCMDgrep: : No such file or directory
[ FAIL ] Update ns2-server: Checking for update: SteamCMD: Not returning version infons2server@s17194895:~$
Yeah you can't use 4920 if the used steam account doesn't own ns2 The very reason 4940 exists.