[GH-ISSUE #557] [SOLVED] Problem after clean install #448

Closed
opened 2026-02-27 02:01:32 +03:00 by kerem · 19 comments
Owner

Originally created by @moritzknorr on GitHub (Dec 15, 2015).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/557

Hello,

thanks for your awesome tool!
Since steam requires the token, i setup a new v-server and started an installation from scratch.
I get the following errors:

  • [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
  • [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
  • [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
  • Could not establish connection to Steam servers.

Do you have any idea, what i can do?

log.txt

Originally created by @moritzknorr on GitHub (Dec 15, 2015). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/557 Hello, thanks for your awesome tool! Since steam requires the token, i setup a new v-server and started an installation from scratch. I get the following errors: - [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. - [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. - [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. - Could not establish connection to Steam servers. Do you have any idea, what i can do? [log.txt](https://github.com/dgibbs64/linuxgsm/files/62320/log.txt)
kerem 2026-02-27 02:01:32 +03:00
Author
Owner
<!-- gh-comment-id:164832553 --> @dgibbs64 commented on GitHub (Dec 15, 2015): https://github.com/dgibbs64/linuxgsm/wiki/FAQ#s_api-fail-steamapi_init-failed-steamapi_issteamrunning-failed
Author
Owner

@moritzknorr commented on GitHub (Dec 15, 2015):

Ill get the following error, when i try to connect.

http://imgur.com/UBRWDaO

<!-- gh-comment-id:164880090 --> @moritzknorr commented on GitHub (Dec 15, 2015): Ill get the following error, when i try to connect. http://imgur.com/UBRWDaO
Author
Owner

@UltimateByte commented on GitHub (Dec 15, 2015):

sv_lan 0 ?

<!-- gh-comment-id:164915414 --> @UltimateByte commented on GitHub (Dec 15, 2015): sv_lan 0 ?
Author
Owner

@moritzknorr commented on GitHub (Dec 16, 2015):

is set.
I think the last line of the log file is relevant.

L 12/16/2015 - 09:51:54: server_cvar: "sv_alltalk" "1"
Stopping 0 worker threads
Starting 1 worker threads
1 threads. 745,269 ticks
exec: couldn't exec gamemode_casual_server.cfg
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 730
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Setting breakpad minidump AppID = 740
Logging into Steam gameserver account with logon token '6D42FABExxxxxxxxxxxxxxxxxxxxxxxx'
FillInMachineIDInfo took a total of 3 milliseconds
Could not establish connection to Steam servers.

<!-- gh-comment-id:165036157 --> @moritzknorr commented on GitHub (Dec 16, 2015): is set. I think the last line of the log file is relevant. L 12/16/2015 - 09:51:54: server_cvar: "sv_alltalk" "1" Stopping 0 worker threads Starting 1 worker threads 1 threads. 745,269 ticks exec: couldn't exec gamemode_casual_server.cfg Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'. Initializing Steam libraries for secure Internet server [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed. Setting breakpad minidump AppID = 730 Looking up breakpad interfaces from steamclient Calling BreakpadMiniDumpSystemInit Setting breakpad minidump AppID = 740 Logging into Steam gameserver account with logon token '6D42FABExxxxxxxxxxxxxxxxxxxxxxxx' FillInMachineIDInfo took a total of 3 milliseconds Could not establish connection to Steam servers.
Author
Owner

@UltimateByte commented on GitHub (Dec 16, 2015):

I'd be more worried about this :

"./srcds_run: 1: ./srcds_run: gdb: not found
WARNING: Please install gdb first."

Is gdb installed ?
Also, any firewall to configure ?

Ignore the "[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed" as long as it's not pointing out a missing .so file. This error is "normal" (in a valve's perspective...).

<!-- gh-comment-id:165039244 --> @UltimateByte commented on GitHub (Dec 16, 2015): I'd be more worried about this : "./srcds_run: 1: ./srcds_run: gdb: not found WARNING: Please install gdb first." Is gdb installed ? Also, any firewall to configure ? Ignore the "[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed" as long as it's not pointing out a missing .so file. This error is "normal" (in a valve's perspective...).
Author
Owner

@moritzknorr commented on GitHub (Dec 16, 2015):

I installed gdb, thank you.
I started again with a fresh os and counter the same error.

The port is opened to external access, as you can see here:
http://imgur.com/GdeQoEv

Here is a new log file.
http://pastebin.com/wSQBsTbf

<!-- gh-comment-id:165042280 --> @moritzknorr commented on GitHub (Dec 16, 2015): I installed gdb, thank you. I started again with a fresh os and counter the same error. The port is opened to external access, as you can see here: http://imgur.com/GdeQoEv Here is a new log file. http://pastebin.com/wSQBsTbf
Author
Owner

@UltimateByte commented on GitHub (Dec 16, 2015):

Not using Debian 8 ? Affraid ? ^^
It's perfectly stable for me (and i got many many stuff onto it).

What about the other ports ?
I assume port 27015 should be enough for server query and connexion with steam, but who knows...

port="27015"
sourcetvport="27020"
clientport="27005"

Also, this line could be the problem :
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.

Maybe you're gonna have to find it and copy it to the right location.

I wanted a few CS GO servers BTW, i got some time this morning, let me a moment to make a coffe, eat something, and i'll test a fresh server too on my Debian 8 and see what happens !

<!-- gh-comment-id:165045412 --> @UltimateByte commented on GitHub (Dec 16, 2015): Not using Debian 8 ? Affraid ? ^^ It's perfectly stable for me (and i got many many stuff onto it). What about the other ports ? I assume port 27015 should be enough for server query and connexion with steam, but who knows... port="27015" sourcetvport="27020" clientport="27005" Also, this line could be the problem : [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so. Maybe you're gonna have to find it and copy it to the right location. I wanted a few CS GO servers BTW, i got some time this morning, let me a moment to make a coffe, eat something, and i'll test a fresh server too on my Debian 8 and see what happens !
Author
Owner

@UltimateByte commented on GitHub (Dec 16, 2015):

Well, after a correction of my IP that i mistyped (L-O-L), it seems to work.
Yep, i confirm it works by connecting to it and killing some bots...
I'm not sure why it wouldn't work for you.

Did you create a new user for this server, and make the installation at the root of the home directory of that user ?

<!-- gh-comment-id:165050799 --> @UltimateByte commented on GitHub (Dec 16, 2015): Well, after a correction of my IP that i mistyped (L-O-L), it seems to work. Yep, i confirm it works by connecting to it and killing some bots... I'm not sure why it wouldn't work for you. Did you create a new user for this server, and make the installation at the root of the home directory of that user ?
Author
Owner

@UltimateByte commented on GitHub (Dec 16, 2015):

For your information, here is where i find steamclient.so

csgotrain@lrob:~$ find -name steamclient.so
./.steam/sdk32/steamclient.so
./serverfiles/bin/steamclient.so
./steamcmd/linux32/steamclient.so

<!-- gh-comment-id:165051405 --> @UltimateByte commented on GitHub (Dec 16, 2015): For your information, here is where i find steamclient.so csgotrain@lrob:~$ find -name steamclient.so ./.steam/sdk32/steamclient.so ./serverfiles/bin/steamclient.so ./steamcmd/linux32/steamclient.so
Author
Owner

@moritzknorr commented on GitHub (Dec 16, 2015):

Hi UltimateByte,
thanks for your effort and support. :)

I am using Debian 7 Wheezy. But it worked before the login-token update.

PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"

My search is finding exactly your files.

csgoserver@lvps91-250-##-##:~$ find -name steamclient.so
./steamcmd/linux32/steamclient.so
./.steam/sdk32/steamclient.so
./serverfiles/bin/steamclient.so

Here are my iptable rules:

-A INPUT -j SteamServers
-A INPUT -p udp -m udp --dport 27015 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 27015 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 27020 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 27005 -j ACCEPT

Yes, i followed the tutorial in the documentation:

csgoserver@lvps91-250-98-74:~$ ls -lah
total 64K
drwxr-xr-x 8 csgoserver csgoserver 4.0K Dec 16 10:18 .
drwxr-xr-x 4 root       root       4.0K Dec 16 10:49 ..
-rw------- 1 csgoserver csgoserver  335 Dec 16 10:58 .bash_history
-rw-r--r-- 1 csgoserver csgoserver  220 Dec 16 09:16 .bash_logout
-rw-r--r-- 1 csgoserver csgoserver 3.4K Dec 16 09:16 .bashrc
-rw-r--r-- 1 csgoserver csgoserver  675 Dec 16 09:16 .profile
drwxr-xr-x 3 csgoserver csgoserver 4.0K Dec 16 09:49 .steam
drwxr-xr-x 8 csgoserver csgoserver 4.0K Dec 16 09:46 Steam
-rwxr-xr-x 1 csgoserver csgoserver 4.2K Dec 16 09:50 csgoserver
drwxr-xr-x 2 csgoserver csgoserver 4.0K Dec 16 09:50 functions
-rwxr-xr-x 1 csgoserver csgoserver 3.6K Dec 16 09:49 gsquery.py
drwxr-xr-x 4 csgoserver csgoserver 4.0K Dec 16 09:49 log
drwxr-xr-x 7 csgoserver csgoserver 4.0K Dec 16 09:50 serverfiles
drwxr-xr-x 5 csgoserver csgoserver 4.0K Dec 16 09:46 steamcmd
<!-- gh-comment-id:165052923 --> @moritzknorr commented on GitHub (Dec 16, 2015): Hi UltimateByte, thanks for your effort and support. :) I am using Debian 7 Wheezy. But it worked before the login-token update. ``` PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=debian ANSI_COLOR="1;31" HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="http://bugs.debian.org/" ``` My search is finding exactly your files. ``` csgoserver@lvps91-250-##-##:~$ find -name steamclient.so ./steamcmd/linux32/steamclient.so ./.steam/sdk32/steamclient.so ./serverfiles/bin/steamclient.so ``` Here are my iptable rules: ``` -A INPUT -j SteamServers -A INPUT -p udp -m udp --dport 27015 -j ACCEPT -A INPUT -p tcp -m tcp --dport 27015 -j ACCEPT -A INPUT -p tcp -m tcp --dport 27020 -j ACCEPT -A INPUT -p tcp -m tcp --dport 27005 -j ACCEPT ``` Yes, i followed the tutorial in the documentation: ``` csgoserver@lvps91-250-98-74:~$ ls -lah total 64K drwxr-xr-x 8 csgoserver csgoserver 4.0K Dec 16 10:18 . drwxr-xr-x 4 root root 4.0K Dec 16 10:49 .. -rw------- 1 csgoserver csgoserver 335 Dec 16 10:58 .bash_history -rw-r--r-- 1 csgoserver csgoserver 220 Dec 16 09:16 .bash_logout -rw-r--r-- 1 csgoserver csgoserver 3.4K Dec 16 09:16 .bashrc -rw-r--r-- 1 csgoserver csgoserver 675 Dec 16 09:16 .profile drwxr-xr-x 3 csgoserver csgoserver 4.0K Dec 16 09:49 .steam drwxr-xr-x 8 csgoserver csgoserver 4.0K Dec 16 09:46 Steam -rwxr-xr-x 1 csgoserver csgoserver 4.2K Dec 16 09:50 csgoserver drwxr-xr-x 2 csgoserver csgoserver 4.0K Dec 16 09:50 functions -rwxr-xr-x 1 csgoserver csgoserver 3.6K Dec 16 09:49 gsquery.py drwxr-xr-x 4 csgoserver csgoserver 4.0K Dec 16 09:49 log drwxr-xr-x 7 csgoserver csgoserver 4.0K Dec 16 09:50 serverfiles drwxr-xr-x 5 csgoserver csgoserver 4.0K Dec 16 09:46 steamcmd ```
Author
Owner

@UltimateByte commented on GitHub (Dec 16, 2015):

You're welcome, we're all in the same boat of game server admins :p
Yeah, i just discovered this token crap... Is your GSLT status fine ?
Because your config seems perfectly fine.

<!-- gh-comment-id:165053605 --> @UltimateByte commented on GitHub (Dec 16, 2015): You're welcome, we're all in the same boat of game server admins :p Yeah, i just discovered this token crap... Is your GSLT status fine ? Because your config seems perfectly fine.
Author
Owner

@moritzknorr commented on GitHub (Dec 16, 2015):

i solved the problem...

When generating the GSLT-Token (here: https://steamcommunity.com/dev/managegameservers) i used 740 as app-id, instead of 730. I though i had to use the 740, since it is the new id.
http://imgur.com/TpfJ0AO

I think i lack the experience of the server mechanics.
Nevertheless, it works fow now. :)

Thank you so much for your support.
Your hint with the gslt status led me to try the other app-id

<!-- gh-comment-id:165055625 --> @moritzknorr commented on GitHub (Dec 16, 2015): i solved the problem... When generating the GSLT-Token (here: https://steamcommunity.com/dev/managegameservers) i used 740 as app-id, instead of 730. I though i had to use the 740, since it is the new id. http://imgur.com/TpfJ0AO I think i lack the experience of the server mechanics. Nevertheless, it works fow now. :) Thank you so much for your support. Your hint with the gslt status led me to try the other app-id
Author
Owner

@UltimateByte commented on GitHub (Dec 16, 2015):

Nice ! No worries, server mechanics will come, and there's always new issues to solve anyways... :p
I actually didn't remember the CS GO ID, so i used the one suggested on the GSLT registration page that was 730 ! I guess i've been lucky on this one... ^^

<!-- gh-comment-id:165056467 --> @UltimateByte commented on GitHub (Dec 16, 2015): Nice ! No worries, server mechanics will come, and there's always new issues to solve anyways... :p I actually didn't remember the CS GO ID, so i used the one suggested on the GSLT registration page that was 730 ! I guess i've been lucky on this one... ^^
Author
Owner

@moritzknorr commented on GitHub (Dec 16, 2015):

the thing is, when you install csgo, it installs the app-id 740...

<!-- gh-comment-id:165057081 --> @moritzknorr commented on GitHub (Dec 16, 2015): the thing is, when you install csgo, it installs the app-id 740...
Author
Owner

@dgibbs64 commented on GitHub (Dec 16, 2015):

Do I need to change the csgo appid?

<!-- gh-comment-id:165163477 --> @dgibbs64 commented on GitHub (Dec 16, 2015): Do I need to change the csgo appid?
Author
Owner

@dgibbs64 commented on GitHub (Dec 16, 2015):

Am i right in saying that the GSLT required you select 730 (https://steamdb.info/app/730/) instead of 740 (https://steamdb.info/app/740/)?

If so it may be worth me adding some documentation about this

<!-- gh-comment-id:165277642 --> @dgibbs64 commented on GitHub (Dec 16, 2015): Am i right in saying that the GSLT required you select 730 (https://steamdb.info/app/730/) instead of 740 (https://steamdb.info/app/740/)? If so it may be worth me adding some documentation about this
Author
Owner

@UltimateByte commented on GitHub (Dec 17, 2015):

Yes, the install appid is 740 but the GSLT appid is 730. Valve...

<!-- gh-comment-id:165424183 --> @UltimateByte commented on GitHub (Dec 17, 2015): Yes, the install appid is 740 but the GSLT appid is 730. Valve...
Author
Owner

@dgibbs64 commented on GitHub (Jan 22, 2016):

https://github.com/dgibbs64/linuxgsm/wiki/Game-Server-Login-Token#generate-a-token the wiki now advised to use appid 740 for CSGO. CLosing this

<!-- gh-comment-id:174053975 --> @dgibbs64 commented on GitHub (Jan 22, 2016): https://github.com/dgibbs64/linuxgsm/wiki/Game-Server-Login-Token#generate-a-token the wiki now advised to use appid 740 for CSGO. CLosing this
Author
Owner

@lock[bot] commented on GitHub (Jul 19, 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.

<!-- gh-comment-id:406332316 --> @lock[bot] commented on GitHub (Jul 19, 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.
Sign in to join this conversation.
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
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#448
No description provided.