Jump to content

Linux Dedicated Server Problems - Not posting to External IP [SOLVED]


kyrottimus

Recommended Posts

I cannot get my linux dedicated server (using SteamCMD) to become reachable in the "Search by IP" function. 

 

tried this:

 

http://avorion.gamepedia.com/Setting_up_a_server#Starting_the_server_.28Linux.29

 

I've searched and searched.  Found these links:

 

https://github.com/GameServerManagers/LinuxGSM/issues/1271

 

http://www.avorion.net/forum/index.php/topic,973.0.html

 

I've tried the -app_update 565060 -beta beta validate thing in SteamCMD,

 

I've tried to manually declare ports in command line (such as ./server.sh --port 27000 --query-port 27003...etc.), --use-steam-networking 1

 

I've forwarded all ports (27000 TCP/UDP, 27003 UDP, 27020 TCP/UDP, 27021 TCP/UDP) on my router and in the gufw firewall...I even tried disabling the firewall to see if it was a port.

 

Did linux terminal command: netstat -tulpn

while server was running and 27003,27020,27021 were posting udp but nothing at 27000.

Is the server failing to post 27000? 

 

Game does NOT show up in my LAN search, but if I go to search by IP and punch in the manual internal IP of the hosting machine (192.168.1.2) it posts and is reachable (from within the network) there.

 

I'm still getting this error in my server startup terminal messages (don't know what it means):

 

[s_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.

Setting breakpad minidump AppID = 445220

Game Port: 27000

Steam Port: 27021

Steam Query Port: 27020

Polling Port: 27003

 

 

I'm not new at this, I've been using SteamCMD for my insurgency server for over a year now on Linux, never had issues with ports like this or the server not posting.

 

Here is the output of my terminal:

Enabled Traces: 
Avorion server Beta 0.10.2 r7448 running on Ubuntu 14.04.2 LTS starting up in "/home/server/.avorion/galaxies/avorion_galaxy"
CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz 2 Cores
name: NWMTGG Avorion Dedicated Linux Server
seed: dmkI4HYPYv
port: 27000
max online players: 8
save interval: 600
broadcast interval: 5
max loaded sector time: 300
weak update: yes
worker threads: 1
difficulty: Easy
infiniteResources: no
collision: 0.25
access list: Blacklist
public: yes
authentication: yes
listed: no
steam networking: yes
administrators: 'server' 'kyrottimus' 
Starting up 1 worker threads.... ok
Loading jumping entities... ok
[s_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 445220
Game Port: 27000
Steam Port: 27021
Steam Query Port: 27020
Polling Port: 27003

Server startup complete.
Server connected to Steam successfully
Server is VAC Secure!
Game Server Steam ID: 90107155277360135
/stop
Server is shutting down.
Saving factions...
Saving sectors...
Saving jumping ships...
Saving settings...
waiting for unfinished sector generation jobs...
waiting for unfinished sector save jobs...
shutting down networking...
cleaning up communicators...
waiting for unfinished sector generation jobs...
waiting for unfinished sector save jobs...
shutting down galaxy...
shutting down faction database...
shutting down sector database...
cleaning up timers...
Server shutdown successful.

 

 

Here is the output of my latest serverlog:

Mon Feb 27 16:53:22 2017| Enabled Traces: 
Mon Feb 27 16:53:22 2017| Avorion server Beta 0.10.2 r7448 running on Ubuntu 14.04.2 LTS starting up in "/home/server/.avorion/galaxies/avorion_galaxy"
Mon Feb 27 16:53:22 2017| CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz 2 Cores
Mon Feb 27 16:53:22 2017| name: NWMTGG Avorion Dedicated Linux Server
Mon Feb 27 16:53:22 2017| seed: dmkI4HYPYv
Mon Feb 27 16:53:22 2017| port: 27000
Mon Feb 27 16:53:22 2017| max online players: 8
Mon Feb 27 16:53:22 2017| save interval: 600
Mon Feb 27 16:53:22 2017| broadcast interval: 5
Mon Feb 27 16:53:22 2017| max loaded sector time: 300
Mon Feb 27 16:53:22 2017| weak update: yes
Mon Feb 27 16:53:22 2017| worker threads: 1
Mon Feb 27 16:53:22 2017| difficulty: Easy
Mon Feb 27 16:53:22 2017| infiniteResources: no
Mon Feb 27 16:53:22 2017| collision: 0.25
Mon Feb 27 16:53:22 2017| access list: Blacklist
Mon Feb 27 16:53:22 2017| public: yes
Mon Feb 27 16:53:22 2017| authentication: yes
Mon Feb 27 16:53:22 2017| listed: no
Mon Feb 27 16:53:22 2017| steam networking: yes
Mon Feb 27 16:53:22 2017| administrators: 'server' 'kyrottimus' 
Mon Feb 27 16:53:22 2017| Starting up 1 worker threads.... ok
Mon Feb 27 16:53:22 2017| Loading jumping entities... ok
Mon Feb 27 16:53:23 2017| Game Port: 27000
Mon Feb 27 16:53:23 2017| Steam Port: 27021
Mon Feb 27 16:53:23 2017| Steam Query Port: 27020
Mon Feb 27 16:53:23 2017| Polling Port: 27003
Mon Feb 27 16:53:23 2017| 
Mon Feb 27 16:53:23 2017| Server connected to Steam successfully
Mon Feb 27 16:53:23 2017| Server is VAC Secure!
Mon Feb 27 16:53:23 2017| Game Server Steam ID: 90107155277360135
Mon Feb 27 17:02:32 2017| Server is shutting down.
Mon Feb 27 17:02:32 2017| Saving factions...
Mon Feb 27 17:02:32 2017| Saving sectors...
Mon Feb 27 17:02:32 2017| Saving jumping ships...
Mon Feb 27 17:02:32 2017| scheduled save for sector (0:0), 0x7ffc4efafe80, entities: 0
Mon Feb 27 17:02:32 2017| saving sector (0:0)
Mon Feb 27 17:02:32 2017| sector (0:0) saved to "/home/server/.avorion/galaxies/avorion_galaxy/jumps.dat"
Mon Feb 27 17:02:32 2017| Saving settings...
Mon Feb 27 17:02:32 2017| waiting for unfinished sector generation jobs...
Mon Feb 27 17:02:32 2017| waiting for unfinished sector save jobs...
Mon Feb 27 17:02:32 2017| shutting down networking...
Mon Feb 27 17:02:32 2017| UDP closed
Mon Feb 27 17:02:32 2017| Server UDP: Connection closed
Mon Feb 27 17:02:32 2017| cleaning up communicators...
Mon Feb 27 17:02:32 2017| waiting for unfinished sector generation jobs...
Mon Feb 27 17:02:32 2017| waiting for unfinished sector save jobs...
Mon Feb 27 17:02:32 2017| shutting down galaxy...
Mon Feb 27 17:02:32 2017| shutting down faction database...
Mon Feb 27 17:02:32 2017| shutting down sector database...
Mon Feb 27 17:02:32 2017| cleaning up timers...
Mon Feb 27 17:02:32 2017| Server shutdown successful.

 

Tried variations of listed, unlisted, public, not, use-steam-networking yes and no, etc.

 

Please advise.

 

 

Box I'm using as a server:

Linux Mint 17.1 XFCE 64b

2GB Sysram

3.0GHz Core2Duo

Link to comment
Share on other sites

Also, update...this is happening too:

 

https://www.avorion.net/forum/index.php?topic=1470.0

 

I can get it to bind to 27000 port and 27003 if I disable steam networking and turn off authentication and listing...but the server still is showing up as red (i.e. unreachable) to me if I enter the external ip the Multiplayer: Join by IP window.

Link to comment
Share on other sites

Also, update...this is happening too:

 

https://www.avorion.net/forum/index.php?topic=1470.0

 

I can get it to bind to 27000 port and 27003 if I disable steam networking and turn off authentication and listing...but the server still is showing up as red (i.e. unreachable) to me if I enter the external ip the Multiplayer: Join by IP window.

 

I'll keep posting here as I discover more about what's going on.

 

Outcome A:

So, when I disable steam networking and turn off authentication and listing, ports 27000 and 27003 (via netstat -tulpn command) are active while 27020 and 27021 are not. 

 

Outcome B:

With steam networking/authentication active, ports 27003, 27020 and 27021 are active and 27000 is not.

 

 

In NEITHER case can anybody join my server the proper way. 

 

I've only tested Outcome B with having a friend join my game after I've joined via the local IP (which is posting in the Multiplayer: Join IP field using the local IP number).

 

When I get home from work, I will have a friend try to join my game from me in it via steam while server is in Outcome A scenario.  I doubt it will since the steam ports aren't functioning in that setup.

 

I want to leave the server up so friends can come and go as they please, and not require my presence in the game to join (obviously).  The fact that they can join illustrates (I think) the way the server routes or allocates the ports. 

 

When I get home from work I'll do a

./server.sh --port 27000 -t network

and dump the traced network log into here, to hopefully have someone look it over and help me figure out wth is going on.

 

For the record, I have entered

app_update 565060 -beta beta validate

while logged into SteamCMD as anonymous as two days ago and again yesterday so the server is as up-to-date as I am aware.

Link to comment
Share on other sites

Ok, did a

./server.sh --port 27000 -t network

for each setup (A and B, with and without steam networking):

 

Setup A

Steam networking disabled, public/authentication/listing turned off; ports 27000 and 27003 are confirmed active while 27020 and 27021 are not (confirmed via netstat -tulpn command). 

 

Server Log, Setup A:

Tue Feb 28 19:59:26 2017| Enabled Traces: network 
Tue Feb 28 19:59:26 2017| Avorion server Beta 0.10.2 r7448 running on Ubuntu 14.04.2 LTS starting up in "/home/server/.avorion/galaxies/avorion_galaxy"
Tue Feb 28 19:59:26 2017| CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz 2 Cores
Tue Feb 28 19:59:26 2017| name: NWMTGG Avorion Dedicated Linux Server
Tue Feb 28 19:59:26 2017| seed: dmkI4HYPYv
Tue Feb 28 19:59:26 2017| port: 27000
Tue Feb 28 19:59:26 2017| max online players: 8
Tue Feb 28 19:59:26 2017| save interval: 600
Tue Feb 28 19:59:26 2017| broadcast interval: 5
Tue Feb 28 19:59:26 2017| max loaded sector time: 300
Tue Feb 28 19:59:26 2017| weak update: yes
Tue Feb 28 19:59:26 2017| worker threads: 1
Tue Feb 28 19:59:26 2017| difficulty: Easy
Tue Feb 28 19:59:26 2017| infiniteResources: no
Tue Feb 28 19:59:26 2017| collision: 0.25
Tue Feb 28 19:59:26 2017| access list: Blacklist
Tue Feb 28 19:59:26 2017| public: yes
Tue Feb 28 19:59:26 2017| authentication: no
Tue Feb 28 19:59:26 2017| listed: no
Tue Feb 28 19:59:26 2017| steam networking: no
Tue Feb 28 19:59:26 2017| administrators: 'server' 'kyrottimus' 
Tue Feb 28 19:59:26 2017| Starting up 1 worker threads.... ok
Tue Feb 28 19:59:26 2017| Loading jumping entities...Loaded 26 jumping entities.
Tue Feb 28 19:59:26 2017|  ok
Tue Feb 28 19:59:26 2017| Server: Binding listener to port 27000
Tue Feb 28 19:59:26 2017| Server: Listening on port 27000
Tue Feb 28 19:59:26 2017| Server UDP: Starting up at port 27000.
Tue Feb 28 19:59:26 2017| Server UDP: Starting up receiving.
Tue Feb 28 19:59:26 2017| Server UDP: Resolving localhost, port: 12345
Tue Feb 28 19:59:26 2017| Server UDP: Send packet to 127.0.0.1, port: 12345, size: 1024
Tue Feb 28 19:59:26 2017| Server UDP: Starting up at port 27003.
Tue Feb 28 19:59:26 2017| Server UDP: Starting up receiving.
Tue Feb 28 19:59:26 2017| Server UDP: Resolving localhost, port: 12345
Tue Feb 28 19:59:26 2017| Server UDP: Send packet to 127.0.0.1, port: 12345, size: 1024
Tue Feb 28 19:59:26 2017| The server will not be authenticated via Steam and won't show up in public server lists.
Tue Feb 28 19:59:38 2017| Server is shutting down.
Tue Feb 28 19:59:38 2017| Saving factions...
Tue Feb 28 19:59:39 2017| Saving sectors...
Tue Feb 28 19:59:39 2017| Saving jumping ships...
Tue Feb 28 19:59:39 2017| scheduled save for sector (0:0), 0x7ffefa3016f0, entities: 26
Tue Feb 28 19:59:39 2017| saving sector (0:0)
Tue Feb 28 19:59:39 2017| sector (0:0) saved to "/home/server/.avorion/galaxies/avorion_galaxy/jumps.dat"
Tue Feb 28 19:59:39 2017| Saving settings...
Tue Feb 28 19:59:39 2017| waiting for unfinished sector generation jobs...
Tue Feb 28 19:59:39 2017| waiting for unfinished sector save jobs...
Tue Feb 28 19:59:39 2017| shutting down networking...
Tue Feb 28 19:59:39 2017| BaseServer::~BaseServer()
Tue Feb 28 19:59:39 2017| Server TCP: Shutting down sender thread.
Tue Feb 28 19:59:39 2017| Server TCP: Shutting down receiver thread.
Tue Feb 28 19:59:39 2017| Server TCP: Closing connection.
Tue Feb 28 19:59:39 2017| Server TCP: Connection closed.
Tue Feb 28 19:59:39 2017| UDP closed
Tue Feb 28 19:59:39 2017| Server UDP: Connection closed
Tue Feb 28 19:59:39 2017| UDP closed
Tue Feb 28 19:59:39 2017| Server UDP: Connection closed
Tue Feb 28 19:59:39 2017| cleaning up communicators...
Tue Feb 28 19:59:39 2017| waiting for unfinished sector generation jobs...
Tue Feb 28 19:59:39 2017| waiting for unfinished sector save jobs...
Tue Feb 28 19:59:39 2017| shutting down galaxy...
Tue Feb 28 19:59:39 2017| shutting down faction database...
Tue Feb 28 19:59:39 2017| shutting down sector database...
Tue Feb 28 19:59:39 2017| cleaning up timers...
Tue Feb 28 19:59:39 2017| Server shutdown successful.

 

Setup B

Steam networking enabled, authentication and listing turned off, public turned on; ports 27003, 27020 and 27021 are active and 27000 is not (confirmed via netstat -tulpn command).

 

Server Log, Setup B:

Tue Feb 28 20:01:36 2017| Enabled Traces: network 
Tue Feb 28 20:01:36 2017| Avorion server Beta 0.10.2 r7448 running on Ubuntu 14.04.2 LTS starting up in "/home/server/.avorion/galaxies/avorion_galaxy"
Tue Feb 28 20:01:36 2017| CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz 2 Cores
Tue Feb 28 20:01:36 2017| name: NWMTGG Avorion Dedicated Linux Server
Tue Feb 28 20:01:36 2017| seed: dmkI4HYPYv
Tue Feb 28 20:01:36 2017| port: 27000
Tue Feb 28 20:01:36 2017| max online players: 8
Tue Feb 28 20:01:36 2017| save interval: 600
Tue Feb 28 20:01:36 2017| broadcast interval: 5
Tue Feb 28 20:01:36 2017| max loaded sector time: 300
Tue Feb 28 20:01:36 2017| weak update: yes
Tue Feb 28 20:01:36 2017| worker threads: 1
Tue Feb 28 20:01:36 2017| difficulty: Easy
Tue Feb 28 20:01:36 2017| infiniteResources: no
Tue Feb 28 20:01:36 2017| collision: 0.25
Tue Feb 28 20:01:36 2017| access list: Blacklist
Tue Feb 28 20:01:36 2017| public: yes
Tue Feb 28 20:01:36 2017| authentication: no
Tue Feb 28 20:01:36 2017| listed: no
Tue Feb 28 20:01:36 2017| steam networking: yes
Tue Feb 28 20:01:36 2017| administrators: 'server' 'kyrottimus' 
Tue Feb 28 20:01:37 2017| Starting up 1 worker threads.... ok
Tue Feb 28 20:01:37 2017| Loading jumping entities...Loaded 26 jumping entities.
Tue Feb 28 20:01:37 2017|  ok
Tue Feb 28 20:01:37 2017| Server UDP: Starting up at port 27003.
Tue Feb 28 20:01:37 2017| Server UDP: Starting up receiving.
Tue Feb 28 20:01:37 2017| Server UDP: Resolving localhost, port: 12345
Tue Feb 28 20:01:37 2017| Server UDP: Send packet to 127.0.0.1, port: 12345, size: 1024
Tue Feb 28 20:01:37 2017| Game Port: 27000
Tue Feb 28 20:01:37 2017| Steam Port: 27021
Tue Feb 28 20:01:37 2017| Steam Query Port: 27020
Tue Feb 28 20:01:37 2017| Polling Port: 27003
Tue Feb 28 20:01:37 2017| 
Tue Feb 28 20:01:37 2017| Server connected to Steam successfully
Tue Feb 28 20:01:38 2017| Server is not VAC Secure!
Tue Feb 28 20:01:38 2017| Game Server Steam ID: 90107176478364675
Tue Feb 28 20:01:46 2017| Server is shutting down.
Tue Feb 28 20:01:46 2017| Saving factions...
Tue Feb 28 20:01:46 2017| Saving sectors...
Tue Feb 28 20:01:46 2017| Saving jumping ships...
Tue Feb 28 20:01:46 2017| scheduled save for sector (0:0), 0x7fffc4a2f9f0, entities: 26
Tue Feb 28 20:01:46 2017| saving sector (0:0)
Tue Feb 28 20:01:46 2017| sector (0:0) saved to "/home/server/.avorion/galaxies/avorion_galaxy/jumps.dat"
Tue Feb 28 20:01:46 2017| Saving settings...
Tue Feb 28 20:01:46 2017| waiting for unfinished sector generation jobs...
Tue Feb 28 20:01:46 2017| waiting for unfinished sector save jobs...
Tue Feb 28 20:01:46 2017| shutting down networking...
Tue Feb 28 20:01:46 2017| UDP closed
Tue Feb 28 20:01:46 2017| Server UDP: Connection closed
Tue Feb 28 20:01:46 2017| cleaning up communicators...
Tue Feb 28 20:01:46 2017| waiting for unfinished sector generation jobs...
Tue Feb 28 20:01:46 2017| waiting for unfinished sector save jobs...
Tue Feb 28 20:01:46 2017| shutting down galaxy...
Tue Feb 28 20:01:46 2017| shutting down faction database...
Tue Feb 28 20:01:46 2017| shutting down sector database...
Tue Feb 28 20:01:46 2017| cleaning up timers...
Tue Feb 28 20:01:46 2017| Server shutdown successful.

 

 

Again, friends can join via steam if I'm already in the game (joining via Multiplayer: Join IP menu using localhost IP, NOT the external IP), and either invite them or they select "join game" from my steam friend window.

 

I'm seeing a lot of port 12345 in those logs, I assumed that it was the server to test-send/receive packets. 

 

There has got to be something preventing this from posting to the external IP.  I know it's not my firewall, I've added all exceptions to it and even tried disabling it.  I know it's not my router, as I've forwarded all correct ports (at least with the KNOWN required ports of 27000TCP/UDP, 27003UDP, 27020TCP/UDP and 27021TCP/UDP).

 

If a friend can join using steam, there has to be a way in.  It is possible for them to join from an external IP, but they to use the steam protocols to piggy-back off of my current game.

 

Maybe someone knows of a workaround to allow for friends to join (using Steam) while I'm not in the server?  There has to be some kind of a solution.  I know from my extensive searching that this was a problem with the Avorion Dedicated server before and that at one point (not too long ago) an update fixed it for most.

 

Maybe it got reintroduced?  Maybe I'm missing something.  I would really appreciate some help as I love the hell out of this game, and have already bought two copies, one for myself and my friend and have gotten several others to buy it.  I love supporting developers with this kind of EA structure and overall game design (and those who support Linux right out of the gate).

 

I realize Koonschi is VERY busy (epic busy), but if someone else out there has been down this road (recently; on this current dedicated server beta version) and have figured it out, I would immensely appreciate any help you might have in this matter.

 

I've used the search command, poured over every post I could, googled the hell out of this, tried any variation I can think of or am aware of in the server settings/start commands to make this work and I'm starting to think the server and/or steam have some kind of port conflict, or some kind of port/socket failure within the server itself.

 

Or I could have just screwed something up that I haven't thought of or am missing.

 

Please, is there anybody out there?

Link to comment
Share on other sites

I fixed it: I was in the router.  Netgear WNR2000.

 

I was right, ports were forwarded correctly. 

 

BUT, apparently there were other conflicts.

 

Things I did to make it WORK:

*Same Ports were forwarded on two different computers: First listing will nullify second, delete first listing if 2nd is desired.

 

*turned off UPnP

 

*in WAN setup, I unchecked "Default DMZ Server" (which grayed out the local IP of the computer in question I had assigned for an earlier dedicated server)

 

*Made sure Disable IGMP Proxying was Checked

 

*Made sure Disable SIP ALG was unchecked

 

*NAT Filtering was set to "Secure"

 

*MTU Size was at 1500 (default)

 

*in QoS Setup, made sure "Turn Internet Access QoS On" was checked

 

*"Enable Upstream QoS" was checked, uplink bandwidth was set to www.speedtest.net average upload speed (I rounded down)

 

*Added QoS priority ruling for the port-range in question (27000-27021) and gave it highest

 

*Make sure my server.sh file had the command --port 2700

 

*made sure in both server.sh and server.ini files had outlined that my server was Listed, Public, useSteam but NOT steam authenticated

 

Whew, took me the better part of a week (around a busy work schedule) to mess with this, turns out this dedicated server and my router did not get along.

 

I don't get it how scrds_ins (insurgency server) seemed to work fine, opened the ports as needed, scrds_ins don't care, scrds_ins didn't give a s%#$.

 

SO yes, Avorion dedicated server is a might bit picky, but I think I satiated her needs. 

 

It works, hallelujah.

 

:-X thanks for everyone's help.....

 

(honestly, I only hope this thread can help someone with the same issues I had).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...