This forum has been archived. Please find the new support board at https://support.cubecoders.com/

SRCDS/GMod - Status issue on linux

  • 182 Views
  • Last Post 17 April 2017
Bobert42 posted this 12 April 2017

Amp does not show the status of srcds/GMod instance. Also the console shows nothing.

I'm running Ubuntu 16.04.2 LTS and AMP Release "TN/SR0" v1.4.6.9

Server is starting fine on pressing start but abort does not kill it. It seams that the server has an other PID than AMP expects.

20 Comments
Order By: Standard | Newest | Votes
Mike posted this 12 April 2017

Does the server actually start so that you can connect and get in game?

Bobert42 posted this 12 April 2017 - Last edited 12 April 2017

yes server starts fine and i can join. I can control the server per ssh without a problem. Just the web interface does not show anything.

the server console via ssh shows "[ModuleShared:Core Debug] : Arguments: h --ppid 18243 -o pid,command" but the real pid is 18248.

Tested it a few times with the result that the pid of the server is always 5 bigger than AMP expects.

Mike posted this 13 April 2017 - Last edited 13 April 2017

That command there is AMP trying to find the child process. PPID 18243 owns 18248. Processes work in trees so it sometimes has to go down and find the right one.

Is VAC enabled? AMP doesn't try and monitor the server until its successfully connected to RCON and it won't try and do that until it has confirmation that VAC is enabled.

Bobert42 posted this 13 April 2017 - Last edited 13 April 2017

In the treeview I can see that 18243 was the parent process which has multiple child processes. 18248 was the one shown as server itself.
VAC should be enabled. (VAC secure mode is activated.)
The message is shown when server start has finished and I can join the server but still no status change and console output in AMP.
On every server start the arguments give the server a different rcon_password. Should it be like that? Right now I don't give the server a rcon_password myself. Would it maybe help to set one and save the same password inside AMP? If so how would I do it since it appears that I can't add Arguments myself. Tried inside srcdsModule.kvp but it didn't use it.

Mike posted this 13 April 2017

AMP sets its own RCON password. Does AMPs log show it managing to connect to RCON?

Bobert42 posted this 13 April 2017 - Last edited 13 April 2017

that is showing in AMPLOG when I start the server.

[19:15:48] [WebMethods:Core Activity] : Starting the application.
[19:15:48] [ModuleShared:Core Debug] : Starting process ./srcds/4020/srcds_run
[19:15:48] [ModuleShared:Core Debug] : Working Directory: ./srcds/4020
[19:15:48] [ModuleShared:Core Debug] : Arguments: -game garrysmod -console -usercon +sv_pure 1 +map ttt_lego +maxplayers 14 +rcon_password 650c82df8a1046beb8a496b935be9b6b -ip xxx.xxx.xxx.xxx -port 27015 +log on +logaddress_add 127.0.0.1:39002 +host_workshop_collection xxxxxxxxx -authkey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx +gamemode terrortown
[19:15:48] [ModuleShared:Core Debug] : Starting process /bin/ps
[19:15:48] [ModuleShared:Core Debug] : Working Directory: /home/AMP/.ampdata/instances/TTT
[19:15:48] [ModuleShared:Core Debug] : Arguments: h --ppid 741 -o pid,command


It seams that it is not trying to.

Mike posted this 13 April 2017

Trying to connect to RCON happens much later, it happens just after the point where the server says that VAC is enabled.

Bobert42 posted this 13 April 2017

Nothing in AMPLOG or Gamlog.

AMPLOG

[18:13:44] [WebMethods:Core Activity] : Starting the application.
[18:13:44] [ModuleShared:Core Debug] : Starting process ./srcds/4020/srcds_run
[18:13:44] [ModuleShared:Core Debug] : Working Directory: ./srcds/4020
[18:13:44] [ModuleShared:Core Debug] : Arguments: -game garrysmod -console -usercon +sv_pure 1 +map ttt_lego +maxplayers 14 +rcon_password <password> -ip xxx.xxx.xxx.xxx -port yyyyy +log on +logaddress_add xxx.xxx.xxx.xxx:yyyyy +sv_setsteamaccount xxxxxxxxxxxxxxx -net_port_try 1 +host_workshop_collection xxxxxxxxx -authkey xxxxxxxxx +gamemode terrortown
[18:13:44] [ModuleShared:Core Debug] : Starting process /bin/ps
[18:13:44] [ModuleShared:Core Debug] : Working Directory: /home/AMP/.ampdata/instances/TTT
[18:13:44] [ModuleShared:Core Debug] : Arguments: h --ppid 8495 -o pid,command

Gamelog:

Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Logging into Steam game server account
L 04/13/2017 - 18:13:55: server_cvar: "sv_contact" "xxxxxxxxxxx"
L 04/13/2017 - 18:13:55: server_cvar: "sv_password" "***PROTECTED***"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_posttime_seconds" "15"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_haste_minutes_per_death" "0.5"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_roundtime_minutes" "7"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_round_limit" "5"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_time_limit_minutes" "40"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_traitor_pct" "0.25"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_detective_pct" "0.13"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_detective_min_players" "5"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_detective_karma_min" "700"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_postround_dm" "1"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_no_nade_throw_during_prep" "1"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_idle_limit" "120"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_namechange_kick" "0"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_namechange_bantime" "0"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_detective_hats" "1"
L 04/13/2017 - 18:13:55: server_cvar: "decalfrequency" "60"
L 04/13/2017 - 18:13:55: server_cvar: "ttt_det_credits_starting" "2"
'banned_user.cfg' not present; not executing.
'banned_ip.cfg' not present; not executing.
[Karmabet] Loaded 41 language strings for language german
Unknown command "karmabet_karmabet_reward_type"
[Karmabet] SQLite Module has been loaded.
Connection to Steam servers successful.
   Public IP is xxx.xxx.xxx.xxx.
Assigned persistent gameserver Steam ID <id>.
VAC secure mode is activated.

and that's all. Server is running and I could connect now.
Is there some way to activate Debug or something to get even more information?

Mike posted this 13 April 2017

Are you seeing the steam server log in AMPs console?

Bobert42 posted this 13 April 2017

No. I always look at it directly per SSH (attaching the instance) or FTP.

Mike posted this 13 April 2017

Look at the actual web console to see if the log lines are showing there. If not then srcds isn't connecting to AMPs logger properly.

Bobert42 posted this 13 April 2017

Thats what I see in the webinterface. ServerConsole

or do you mean something else?

WagicalGale posted this 15 April 2017

I am having this same error, same with all the logs and the console is blank

Mike posted this 15 April 2017 - Last edited 15 April 2017

Okay, in AMPs configuration is srcds set up to be bound to 0.0.0.0 or to a specific IP address?

Looks like srcds isn't connecting to AMPs logger so AMP doesn't know what's going on and makes no attempt to connect RCON.

Bobert42 posted this 16 April 2017

I have tested it with 127.0.0.1 and the actual IP-address of the server always with the same result.

Mike posted this 16 April 2017 - Last edited 16 April 2017

Try setting it to be bound to 0.0.0.0. What's happening is that the srcds server isn't connecting to AMPs logger so gotta find out why. Right now I can't reproduce this.

Bobert42 posted this 17 April 2017

Just tested it with 0.0.0.0. Nothing changed.
I tested it also with a new instance of srcds without changing any configuration and still the same.

Mike posted this 17 April 2017

Are you perchance on an OpenVZ system?

Bobert42 posted this 17 April 2017

It is an virtual server based on Virtuozzo when I'm not mistaken.

Mike posted this 17 April 2017

Yeah so it's OpenVZ under the hood. Might be a network binding issue, wait for the next update which has some extra logging in place.