YanWenKun / barotrauma-server-docker

🐳 Dockerfile for 🤿 Barotrauma Dedicated Server. | 《潜渊症》独立服务器 Docker 镜像。
https://hub.docker.com/r/yanwk/barotrauma-server
MIT License
35 stars 2 forks source link

Server not showing up in server browser #8

Closed tbys closed 4 months ago

tbys commented 5 months ago

I'm using the slim version. The server runs fine and I can direct connect to it, but it does not show up in the server browser. Port 27015 and 27016 are forwarded, albeit to different ports on the WAN side (17115 and 17116).

The server log does have some errors in it.

Starting barotrauma-server-slim ... done                                                                         [20/8619]
Attaching to barotrauma-server-slim            
barotrauma-server-slim         | Redirecting stderr to '/root/Steam/logs/stderr.txt'
barotrauma-server-slim         | Logging directory: '/root/Steam/logs'                                    
barotrauma-server-slim         | [  0%] Checking for available updates...                                                 
barotrauma-server-slim         | [----] Verifying installation...
barotrauma-server-slim         | UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1718904263
barotrauma-server-slim         | -- type 'quit' to exit --                                                                
barotrauma-server-slim         | Loading Steam API...OK                                                                   
barotrauma-server-slim         | Redirecting stderr to '/home/runner/Steam/logs/stderr.txt'                               
barotrauma-server-slim         | Logging directory: '/home/runner/Steam/logs'
barotrauma-server-slim         | [  0%] Checking for available updates...
barotrauma-server-slim         | [----] Verifying installation...
barotrauma-server-slim         | UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1718904263
barotrauma-server-slim         | -- type 'quit' to exit --
barotrauma-server-slim         | Loading Steam API...OK
barotrauma-server-slim         |                                                                                          
barotrauma-server-slim         | Connecting anonymously to Steam Public...OK                                              barotrauma-server-slim         | Waiting for client config...OK
barotrauma-server-slim         | Waiting for user info...OK
barotrauma-server-slim         | Success! App '1026340' already up to date.
barotrauma-server-slim         | Barotrauma Dedicated Server 1.5.9.1 (ReleaseLinux, branch release/summer-update-hotfix-2,
 revision bedd89e25a)
barotrauma-server-slim         | Output redirection detected; colored text and command input will be disabled.
barotrauma-server-slim         | Redirected input is detected but is not supported by this application. Input will be igno
red.
barotrauma-server-slim         | Loading game settings
barotrauma-server-slim         | Initializing SteamManager
barotrauma-server-slim         | Initializing GameScreen
barotrauma-server-slim         | dlopen failed trying to load:                                                            
barotrauma-server-slim         | steamclient.so
barotrauma-server-slim         | with error:
barotrauma-server-slim         | steamclient.so: cannot open shared object file: No such file or directory
barotrauma-server-slim         | [S_API] SteamAPI_Init(): Loaded '/home/runner/.steam/sdk64/steamclient.so' OK.  (First tr
ied local 'steamclient.so')
barotrauma-server-slim         | CAppInfoCacheReadFromDiskThread took 3 milliseconds to initialize
barotrauma-server-slim         | Setting breakpad minidump AppID = 602960
barotrauma-server-slim         | SteamInternal_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded no]
barotrauma-server-slim         | [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils004 before SteamAPI_Init
 succeeded.
barotrauma-server-slim         | Selected sub: Azimuth
barotrauma-server-slim         | Selected shuttle: Hemulen
barotrauma-server-slim         | [06/29/2024 09:02:54]
barotrauma-server-slim         |   Starting the server...
barotrauma-server-slim         | [06/29/2024 09:02:54]
barotrauma-server-slim         |   Using Lidgren networking. Manual port forwarding may be required. If players cannot con
nect to the server, you may want to use the in-game hosting menu (which uses Steamworks and EOS networking and does not re
quire port forwarding).
barotrauma-server-slim         | [06/29/2024 09:02:54]
barotrauma-server-slim         |   Server started
YanWenKun commented 5 months ago

Errors on loading steamclient.so if fine, the server will find it elsewhere, or it won't run at all.

Errors on [S_API FAIL] is inevitable because we use anonymous account to login SteamCMD. Otherwise we will have to do a complicated and risky (of losing Steam account) login. That's more suitable for a manually built & maintained server.

I guess the game's public server list now require a Steam ID. But before that, check IsPublic in serversettings.xml :-)

tbys commented 5 months ago

Thank you for your response!

IsPublic is set to "True":

$ docker exec -it 17a2f6d20eea grep Public serversettings.xml
  IsPublic="True"
tbys commented 4 months ago

Errors on [S_API FAIL] is inevitable because we use anonymous account to login SteamCMD. Otherwise we will have to do a complicated and risky (of losing Steam account) login. That's more suitable for a manually built | maintained server.

I see.

In my case I can just ask my friends to direct join from the server list using my IP address so I'll manage without.

Thank you anyway :+1: