SP crashing on linux?

All other Source.Python topics and issues.
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Wed Aug 31, 2016 1:15 pm

tried editing ___init___.py and now the server doesnt "crash" but SP still fails to operate as intended.

calling sp from console results in an unregistered command, even though SP is in the console.log as loading correctly and registering the command.

after trying to go through SP installation dirs and properly assigning permissions so that it may work as intended, i had no luck.

just did the yolo

Code: Select all

chmod 777 opt -R
and STILL didnt get a core_settings.ini

whoever has installed on linux, what distro are you using? beginning to lose my drive with the project im working on and would really like to get back to testing.....
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: SP crashing on linux?

Postby L'In20Cible » Wed Aug 31, 2016 1:33 pm

burnSTATION wrote:tried editing ___init___.py and now the server doesnt "crash" but SP still fails to operate as intended.

And what do you get in the console? :rolleyes:
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Wed Aug 31, 2016 1:49 pm

L'In20Cible wrote:And what do you get in the console? :rolleyes:


i got so mad at that VM that i blew it up and im installing SRCDS on debian now. will update shortly with my findings. If this works i should be able to easily identify the problem as to why it wasnt working on centos
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: SP crashing on linux?

Postby L'In20Cible » Wed Aug 31, 2016 1:55 pm

Well, the console would have told you exactly what was going wrong since it was able to catch the crash, therefore printing it to the console. Which most likely means the installation was correct but something was conflicting.
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Wed Aug 31, 2016 2:14 pm

I have found the problem (finally)

on debian i had to do install lib32z1 to solve the issue i have been having all night. (thanks iPlayer, youre the real MVP)

going to blow this VM up now and try 1 more time on centos with zlibc to see if this was the culprit.
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Wed Aug 31, 2016 3:41 pm

After thinking I had pinned the issue on why it wasn't working in CentOS, and replicating my exact process from debian to CentOS (while obviously using the correct packages on each distro) It still isn't working

Here is the console.log from where I currently am with the CentOS installtion

Code: Select all

Plugins: found file "source-python.vdf"
[Source.Python] Loading...
[Source.Python] Connecting interfaces...
[Source.Python] Retrieving engine interfaces...
[Source.Python] Interface VEngineServer023 at f65ede40
[Source.Python] Interface GAMEEVENTSMANAGER002 at f66309c0
[Source.Python] Interface ISERVERPLUGINHELPERS001 at f666ee80
[Source.Python] Interface EngineTraceServer004 at f66305c0
[Source.Python] Interface IEngineSoundServer003 at f66302c8
[Source.Python] Interface VEngineRandom001 at f65edb50
[Source.Python] Interface VFileSystem017 at f7099980
[Source.Python] Interface VEngineServerStringTable001 at f663eba0
[Source.Python] Interface VPhysics031 at f52c2c00
[Source.Python] Interface VPhysicsCollision007 at f52c2d40
[Source.Python] Interface VPhysicsSurfaceProps001 at f52c3300
[Source.Python] Interface MDLCache004 at f50aa5e0
[Source.Python] Interface VoiceServer002 at f65ede44
[Source.Python] Retrieving game interfaces...
[Source.Python] Interface PlayerInfoManager002 at f2dab028
[Source.Python] Interface BotManager001 at f2dab024
[Source.Python] Interface ServerGameDLL005 at f2ed68b8
[Source.Python] Interface VSERVERTOOLS001 at f2d87984
[Source.Python] Retrieving global variables...
[Source.Python] Initializing mathlib...
[Source.Python] Initializing server and say commands...
[Source.Python] Registering say and say_team commands...
[Source.Python] Registering ConVar accessor...
[Source.Python] Initializing python...
[Source.Python] Python home path set to /opt/csgo_ds/csgo/addons/source-python/Python3
[Source.Python] Python version 3.5.1 (default, Mar  9 2016, 19:58:51)
[GCC 4.8.4] initialized!
[Source.Python] Setting sys.argv...
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/source-python to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/Python3/plat-linux to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/Python3/lib-dynload to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/site-packages to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/custom to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/plugins to path
[Source.Python] Initializing _memory module
[Source.Python] Initializing _bitbuffers module
[Source.Python] Initializing _colors module
[Source.Python] Initializing _commands._client module
[Source.Python] Initializing _commands module
[Source.Python] Initializing _commands._say module
[Source.Python] Initializing _commands._server module
[Source.Python] Initializing _cvars module
[Source.Python] Initializing _effects module
[Source.Python] Initializing _effects._base module
[Source.Python] Initializing _engines module
[Source.Python] Initializing _engines._server module
[Source.Python] Initializing _engines._sound module
[Source.Python] Initializing _engines._trace module
[Source.Python] Initializing _entities._constants module
[Source.Python] Initializing _entities._helpers module
[Source.Python] Initializing _entities._helpers module
[Source.Python] Initializing _entities module
[Source.Python] Initializing _entities._factories module
[Source.Python] Initializing _entities._datamaps module
[Source.Python] Initializing _entities._props module
[Source.Python] Initializing _entities._entity module
[Source.Python] Initializing _core module
[Source.Python] Initializing _events module
[Source.Python] Initializing _globals module
[Source.Python] Initializing _keyvalues module
[Source.Python] Initializing _listeners module
[Source.Python] Initializing _mathlib module
[Source.Python] Initializing _messages module
[Source.Python] Initializing _net_channel module
[Source.Python] Initializing _physics module
[Source.Python] Initializing _players._bots module
[Source.Python] Initializing _players._constants module
[Source.Python] Initializing _players._helpers module
[Source.Python] Initializing _players module
[Source.Python] Initializing _players._voice module
[Source.Python] Initializing _filters._recipients module
[Source.Python] Initializing _steam module
[Source.Python] Initializing _stringtables module
[Source.Python] Initializing _studio module
[Source.Python] Initializing _studio._constants module
[Source.Python] Initializing _studio._cache module
[Source.Python] Initializing _weapons._constants module
[Source.Python] Initializing _weapons._scripts module
[Source.Python] Loading main module...
[Source.Python] Failed to load the main module.
[Source.Python] Could not initialize python.
Failed to load plugin "addons/source-python"
[Source.Python] Unloading...
[Source.Python] Unhooking all functions...
[Source.Python] Shutting down python...
[Source.Python] Unloading main module...
[Source.Python] Failed to unload the main module.
[Source.Python] Clearing all commands...
[Source.Python] Unregistering ConVar...
[Source.Python] Disconnecting interfaces...
[Source.Python] Resetting cache notifier...
[Source.Python] Unloaded successfully.
maxplayers set to 64


Same issue as before, "Could not initialize python." Also dont have a core_settings.ini in ../cfg/source-python/; Not really sure where to go from here. I have confirmed read/write permissions, checked file ownerships, installed and tried every C related library I can think of and still cant get this working properly on RHEL.

Thank you to everyone who has been helping me try to track down the root of this problem. Hopefully soon we can get it figured out and I can rest easy.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: SP crashing on linux?

Postby satoon101 » Wed Aug 31, 2016 3:47 pm

And if you again change the primary __init__ to use this change?:
viewtopic.php?f=10&t=1299&p=8523#p8523

This will show why the main module failed to load.
Image
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Wed Aug 31, 2016 4:08 pm

satoon101 wrote:And if you again change the primary __init__ to use this change?:
viewtopic.php?f=10&t=1299&p=8523#p8523

This will show why the main module failed to load.


Ah, had forgotten about this trick. Here is the contents of console.log;

Code: Select all

#
#Console initialized.
#Using breakpad minidump system 740/13546.358.DC
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#CGameEventManager::AddListener: event 'player_connect' unknown.
#CGameEventManager::AddListener: event 'player_disconnect' unknown.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
Failed to load gamerulescvars.txt, game rules cvars might not be reported to management tools.
Server is hibernating
CResponseSystem:  scripts/talker/response_rules.txt (1636 rules, 484 criteria, and 1450 responses)
No web api auth key specified - workshop downloads will be disabled.
Plugins: found file "source-python.vdf"
[Source.Python] Loading...
[Source.Python] Connecting interfaces...
[Source.Python] Retrieving engine interfaces...
[Source.Python] Interface VEngineServer023 at f6541e40
[Source.Python] Interface GAMEEVENTSMANAGER002 at f65849c0
[Source.Python] Interface ISERVERPLUGINHELPERS001 at f65c2e80
[Source.Python] Interface EngineTraceServer004 at f65845c0
[Source.Python] Interface IEngineSoundServer003 at f65842c8
[Source.Python] Interface VEngineRandom001 at f6541b50
[Source.Python] Interface VFileSystem017 at f6fed980
[Source.Python] Interface VEngineServerStringTable001 at f6592ba0
[Source.Python] Interface VPhysics031 at f5216c00
[Source.Python] Interface VPhysicsCollision007 at f5216d40
[Source.Python] Interface VPhysicsSurfaceProps001 at f5217300
[Source.Python] Interface MDLCache004 at f4ffe5e0
[Source.Python] Interface VoiceServer002 at f6541e44
[Source.Python] Retrieving game interfaces...
[Source.Python] Interface PlayerInfoManager002 at f2cff028
[Source.Python] Interface BotManager001 at f2cff024
[Source.Python] Interface ServerGameDLL005 at f2e2a8b8
[Source.Python] Interface VSERVERTOOLS001 at f2cdb984
[Source.Python] Retrieving global variables...
[Source.Python] Initializing mathlib...
[Source.Python] Initializing server and say commands...
[Source.Python] Registering say and say_team commands...
[Source.Python] Registering ConVar accessor...
[Source.Python] Initializing python...
[Source.Python] Python home path set to /opt/csgo_ds/csgo/addons/source-python/Python3
[Source.Python] Python version 3.5.1 (default, Mar  9 2016, 19:58:51)
[GCC 4.8.4] initialized!
[Source.Python] Setting sys.argv...
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/source-python to path
[Source.Python] Setting sys.argv...
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/source-python to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/Python3/plat-linux to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/Python3/lib-dynload to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/site-packages to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/custom to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/plugins to path
[Source.Python] Initializing _memory module
[Source.Python] Initializing _bitbuffers module
[Source.Python] Initializing _colors module
[Source.Python] Initializing _commands._client module
[Source.Python] Initializing _commands module
[Source.Python] Initializing _commands._say module
[Source.Python] Initializing _commands._server module
[Source.Python] Initializing _cvars module
[Source.Python] Initializing _effects module
[Source.Python] Initializing _effects._base module
[Source.Python] Initializing _engines module
[Source.Python] Initializing _engines._server module
[Source.Python] Initializing _engines._sound module
[Source.Python] Initializing _engines._trace module
[Source.Python] Initializing _entities._constants module
[Source.Python] Initializing _entities._helpers module
[Source.Python] Initializing _entities module
[Source.Python] Initializing _entities._factories module
[Source.Python] Initializing _entities._datamaps module
[Source.Python] Initializing _entities._props module
[Source.Python] Initializing _entities._entity module
[Source.Python] Initializing _core module
[Source.Python] Initializing _events module
[Source.Python] Initializing _globals module
[Source.Python] Initializing _keyvalues module
[Source.Python] Initializing _listeners module
[Source.Python] Initializing _mathlib module
[Source.Python] Initializing _messages module
[Source.Python] Initializing _net_channel module
[Source.Python] Initializing _physics module
[Source.Python] Initializing _players._bots module
[Source.Python] Initializing _players._constants module
[Source.Python] Initializing _players._helpers module
[Source.Python] Initializing _players module
[Source.Python] Initializing _players._voice module
[Source.Python] Initializing _filters._recipients module
[Source.Python] Initializing _steam module
[Source.Python] Initializing _stringtables module
[Source.Python] Initializing _studio module
[Source.Python] Initializing _studio._constants module
[Source.Python] Initializing _studio._cache module
[Source.Python] Initializing _weapons._constants module
[Source.Python] Initializing _weapons._scripts module
[Source.Python] Loading main module...
[Source.Python] Retrieving the current cache notifier...
[Source.Python] Setting the new cache notifier...
[Source.Python] Loaded successfully.
maxplayers set to 64
ConVarRef cl_embedded_stream_video_playing doesn't point to an existing ConVar
maxplayers set to 64
ConVarRef cl_embedded_stream_video_playing doesn't point to an existing ConVar
Execing config: valve.rc
Execing config: default.cfg
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Execing config: joystick.cfg
Execing config: autoexec.cfg
Setting mapgroup to 'mg_active'
Execing config: modsettings.cfg
mode MP, dedicated No, ports 27015 SV / 27005 CL
CServerGameDLL::ApplyGameSettings game settings payload received:
  ::ExecGameTypeCfg {
    map {
      mapname de_dust2
    }
  }
---- Host_NewGame ----
Execing config: game.cfg
Hunk_OnMapStart: 41943040
ConVarRef r_staticlight_streams doesn't point to an existing ConVar
Host_NewGame on map de_dust2
GameTypes: initializing game types interface from GameModes.txt.
GameTypes: merging game types interface from gamemodes_server.txt.
Failed to load gamemodes_server.txt
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
ConVarRef room_type doesn't point to an existing ConVar
bot_autodifficulty_threshold_high - 5.0
bot_autodifficulty_threshold_low - -2.0
bot_chatter - normal
bot_defer_to_human_goals - 0
bot_defer_to_human_items - 1
bot_difficulty - 1
bot_quota - 10
bot_quota_mode - normal
bot_allow_grenades - 1
bot_allow_pistols - 1
bot_allow_sub_machine_guns - 1
bot_allow_shotguns - 1
bot_allow_rifles - 1
bot_allow_snipers - 1
bot_allow_machine_guns - 1
sv_auto_adjust_bot_difficulty - 1
sv_bots_get_easier_each_win - 0
sv_bots_force_rebuy_every_round - 0
sv_bots_get_harder_after_each_wave - 0
mp_playercashawards - 1
cash_player_bomb_defused - 300
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_interact_with_hostage - 150
cash_player_killed_enemy_default - 300
cash_player_killed_enemy_factor - 1
cash_player_killed_hostage - -1000
cash_player_killed_teammate - -300
cash_player_rescued_hostage - 1000
cash_player_respawn_amount - 0
cash_player_get_killed - 0
mp_teamcashawards - 1
cash_team_elimination_bomb_map - 3250
cash_team_elimination_hostage_map_t - 1000
cash_team_elimination_hostage_map_ct - 2000
cash_team_hostage_alive - 0
cash_team_hostage_interaction - 500
cash_team_loser_bonus - 1400
cash_team_loser_bonus_consecutive_rounds - 500
cash_team_planted_bomb_but_defused - 800
cash_team_rescued_hostage - 0
cash_team_terrorist_win_bomb - 3500
cash_team_win_by_defusing_bomb - 3250
cash_team_win_by_hostage_rescue - 3500
cash_team_win_by_time_running_out_bomb - 3250
cash_team_win_by_time_running_out_hostage - 3250
cash_team_survive_guardian_wave - 1000
mp_afterroundmoney - 0
mp_buytime - 90
mp_buy_anywhere - 0
mp_buy_during_immunity - 0
mp_startmoney - 800
mp_maxmoney - 16000
sv_buy_status_override - -1
mp_death_drop_defuser - 1
mp_death_drop_grenade - 2
mp_death_drop_gun - 1
mp_deathcam_skippable - 1
mp_defuser_allocation - 0
mp_give_player_c4 - 1
mp_free_armor - 0
mp_molotovusedelay - 15.0
mp_weapons_allow_zeus - 1
mp_weapons_allow_map_placed - 0
mp_weapons_glow_on_ground - 0
mp_ct_default_melee - weapon_knife
mp_ct_default_secondary - weapon_hkp2000
mp_ct_default_primary -
mp_ct_default_grenades -
mp_t_default_melee - weapon_knife
mp_t_default_secondary - weapon_glock
mp_t_default_primary -
mp_t_default_grenades -
mp_buy_allow_grenades - 1
mp_weapons_allow_typecount - 5
mp_freezetime - 6
mp_force_pick_time - 15
mp_halftime - 0
mp_match_can_clinch - 1
mp_maxrounds - 0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime_hostage - 0
mp_timelimit - 5
mp_warmuptime - 30
mp_warmuptime_all_players_connected - 60
mp_warmup_pausetimer - 0
mp_halftime_pausetimer - 0
mp_default_team_winner_no_objective - -1
mp_hostagepenalty - 10
mp_solid_teammates - 1
sv_allow_votes - 1
sv_alltalk - 0
sv_auto_full_alltalk_during_warmup_half_end - 1
sv_deadtalk - 0
sv_ignoregrenaderadio - 0
mp_teammates_are_enemies - 0
mp_damage_scale_ct_body - 1.0
mp_damage_scale_ct_head - 1.0
mp_damage_scale_t_body - 1.0
mp_damage_scale_t_head - 1.0
mp_friendlyfire - 0
ff_damage_reduction_bullets - 0.1
ff_damage_reduction_grenade - 0.25
ff_damage_reduction_grenade_self - 1
ff_damage_reduction_other - 0.25
mp_limitteams - 2
spec_freeze_panel_extended_time - 0.0
spec_freeze_time - 2.0
mp_forcecamera - 1
mp_respawn_immunitytime - 4.0
mp_respawn_on_death_t - 0
mp_respawn_on_death_ct - 0
mp_display_kill_assists - 1
mp_use_respawn_waves - 0
mp_respawnwavetime_ct - 10.0
mp_respawnwavetime_t - 10.0
mp_randomspawn - 0
mp_randomspawn_los - 1
mp_randomspawn_dist - 0
mp_radar_showall - 0
mp_force_assign_teams - 0
sv_gravity - 800
sv_accelerate - 5.5
sv_stopspeed - 80
sv_airaccelerate - 12
sv_wateraccelerate - 10
sv_waterfriction - 1
sv_friction - 5.2
sv_bounce - 0
sv_maxvelocity - 3500
sv_maxspeed - 320
sv_bot_buy_grenade_chance - 33
sv_bot_buy_smoke_weight - 1
sv_bot_buy_flash_weight - 1
sv_bot_buy_decoy_weight - 1
sv_bot_buy_molotov_weight - 1
sv_bot_buy_hegrenade_weight - 6
sv_guardian_min_wave_for_heavy - 0
sv_guardian_max_wave_for_heavy - 0
sv_guardian_heavy_count - 0
sv_guardian_max_wave_for_heavy - 0
sv_guardian_heavy_count - 0
sv_guardian_heavy_all - 0
mp_ggprogressive_round_restart_delay - 15.0
mp_ggtr_bomb_defuse_bonus - 1.0
mp_ggtr_bomb_detonation_bonus - 1.0
mp_ggtr_bomb_pts_for_flash - 4
mp_ggtr_bomb_pts_for_he - 3
mp_ggtr_bomb_pts_for_molotov - 5
mp_ggtr_bomb_pts_for_upgrade - 2.0
mp_ggtr_bomb_respawn_delay - 0.0
mp_ggtr_end_round_kill_bonus - 1
mp_ggtr_halftime_delay - 0.0
mp_ggtr_last_weapon_kill_ends_half - 0
sv_arms_race_vote_to_restart_disallowed_after - 0
mp_coop_force_join_ct - 0
bot_allow_rogues - 1
mp_guardian_special_kills_needed - 10
mp_guardian_special_weapon_needed - awp
mp_guardian_player_dist_min - 1300
mp_guardian_player_dist_max - 2000
mp_guardian_target_site - -1
mp_hostages_spawn_force_positions -
mp_hostages_spawn_same_every_round - 1
mp_guardian_bot_money_per_wave - 800
sv_disable_show_team_select_menu - 0
mp_hostages_max - 2
spec_replay_enable - 0
mp_round_restart_delay - 7.0
mp_coopmission_bot_difficulty_offset - 0
sv_duplicate_playernames_ok - 0
mp_anyone_can_pickup_c4 - 0
mp_c4_cannot_be_defused - 0
mp_c4timer - 40
mp_coopmission_mission_number - 0
weapon_reticle_knife_show - 0
mp_death_drop_c4 - 1
Executing dedicated server config file
Execing config: server.cfg
exec: couldn't exec server.cfg
Execing config: gamemode_competitive.cfg
Execing config: gamemode_competitive_server.cfg
exec: couldn't exec gamemode_competitive_server.cfg
GameTypes: set convars for game type/mode (classic:0/competitive:1):
  exec {
    exec gamemode_competitive.cfg
    exec gamemode_competitive_server.cfg
  }
Set Gravity 800.0 (0.250 tolerance)
Failed to load models/weapons/w_knife_gg_dropped.mdl!
Failed to load models/weapons/w_eq_taser_dropped.mdl!
Invalid file size for host.txt
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Created class baseline: 22 classes, 8708 bytes.
Initializing Steam libraries for secure Internet server
Logging into Steam gameserver account with logon token '418731E2xxxxxxxxxxxxxxxxxxxxxxxx'
Connection to Steam servers successful.
   Public IP is 107.23.204.188.
Assigned persistent gameserver Steam ID [G:1:615586].
VAC secure mode is activated.
Received server welcome from GC.
GC Connection established for server version 358, instance idx 1
Unknown command "sp"
Host state 5 at Wed Aug 31 16:05:32 2016
 -- SIGINT received, hibernating server, shutting down now.
[Source.Python] Unloading...
[Source.Python] Unhooking all functions...
[Source.Python] Shutting down python...
[Source.Python] Unloading main module...
[Source.Python] Failed to unload the main module.
[Source.Python] Clearing all commands...
[Source.Python] Unregistering ConVar...
[Source.Python] Disconnecting interfaces...
[Source.Python] Resetting cache notifier...
[Source.Python] Unloaded successfully.
Datacenter::EnableUpdate( 0 ), current state = 1

Permissions:

Code: Select all

[root@ip-172-31-30-129 csgo]# ll | grep cfg
drwxr-xr-x. 4 root root      4096 Aug 31 15:17 cfg
-rwxr-xr-x. 1 root root     19807 Aug 31 14:31 demo_polish_settings.cfg
-rwxr-xr-x. 1 root root       424 Aug 31 14:31 dxsupport_override.cfg
-rwxr-xr-x. 1 root root      4480 Aug 31 14:38 shader_cache.cfg
-rwxr-xr-x. 1 root root       301 Aug 31 14:43 unusedcontent.cfg
-rwxr-xr-x. 1 root root      1573 Aug 31 14:42 whitelist_beta.cfg
-rwxr-xr-x. 1 root root      2435 Aug 31 14:38 whitelist.cfg
[root@ip-172-31-30-129 csgo]# cd cfg
[root@ip-172-31-30-129 cfg]# ll | grep source
drwxr-xr-x. 2 root root     22 May 21 09:43 source-python
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: SP crashing on linux?

Postby satoon101 » Wed Aug 31, 2016 4:20 pm

Well that's....interesting. It doesn't fail, which makes sense, but it doesn't print anything related to why it would fail before the try/except was added. I'm not sure under what circumstances that could even possibly happen.

Wait, are you executing srcds_run as root? That's usually not a great idea. Also, you'll need the same permissions for ../addons/source-python/

I always chown on the whole server directory for myself or a specific "steam" user, then chmod it to make sure that user can read/write files in all directories.
Image
User avatar
La Muerte
Administrator
Posts: 180
Joined: Sun Jul 15, 2012 1:48 pm
Location: Belgium
Contact:

Re: SP crashing on linux?

Postby La Muerte » Wed Aug 31, 2016 4:31 pm

I'm able to run SP just fine on CentOS7,

although it didn't work for me on CentOS6 due to glibc being on a too old version which isn't supported by SP.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: SP crashing on linux?

Postby Ayuto » Wed Aug 31, 2016 4:32 pm

It doesn't show why it failed, because that's the output of the console.log. If print() is being used, the output is only visible directly in the server's console.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: SP crashing on linux?

Postby satoon101 » Wed Aug 31, 2016 4:43 pm

Ah, I though console.log would show everything ever printed to console. Ok, change that to this then:

Syntax: Select all

def load():
"""Load Source.Python's Python side."""
def try_to_setup(func):
try:
func()
except:
import sys
from core import echo_console
exc_type, exc_value, exc_traceback = sys.exc_info()
echo_console('Unable to {} due to an {}:'.format(func.__name__.replace('_', ' '), exc_type.__name__))
echo_console('\t', exc_value)

try_to_setup(setup_core_settings)
try_to_setup(setup_logging)
try_to_setup(setup_hooks)
try_to_setup(setup_translations)
try_to_setup(setup_global_pointers)
try_to_setup(setup_sp_command)
try_to_setup(setup_auth)
try_to_setup(setup_user_settings)
try_to_setup(setup_entities_listener)
try_to_setup(setup_versioning)
try_to_setup(setup_sqlite)


Or, since you should definitely have access to the server's console, look there for what prints out.
Image
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Wed Aug 31, 2016 9:50 pm

satoon101 wrote:Wait, are you executing srcds_run as root? That's usually not a great idea.

Just running as root for the time being while trying to get SP to run properly. will obviously chown to user steam and run as steam user later.
satoon101 wrote:Ah, I though console.log would show everything ever printed to console. Ok, change that to this then:

Syntax: Select all

def load():
"""Load Source.Python's Python side."""
def try_to_setup(func):
try:
func()
except:
import sys
from core import echo_console
exc_type, exc_value, exc_traceback = sys.exc_info()
echo_console('Unable to {} due to an {}:'.format(func.__name__.replace('_', ' '), exc_type.__name__))
echo_console('\t', exc_value)

try_to_setup(setup_core_settings)
try_to_setup(setup_logging)
try_to_setup(setup_hooks)
try_to_setup(setup_translations)
try_to_setup(setup_global_pointers)
try_to_setup(setup_sp_command)
try_to_setup(setup_auth)
try_to_setup(setup_user_settings)
try_to_setup(setup_entities_listener)
try_to_setup(setup_versioning)
try_to_setup(setup_sqlite)


Or, since you should definitely have access to the server's console, look there for what prints out.

Will try this shortly.
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Thu Sep 01, 2016 1:43 am

I see the line about not being able to generate core_settings.ini but the exception is blank (lol)

Code: Select all

Plugins: found file "source-python.vdf"
[Source.Python] Loading...
[Source.Python] Connecting interfaces...
[Source.Python] Retrieving engine interfaces...
[Source.Python] Interface VEngineServer023 at f6579e40
[Source.Python] Interface GAMEEVENTSMANAGER002 at f65bc9c0
[Source.Python] Interface ISERVERPLUGINHELPERS001 at f65fae80
[Source.Python] Interface EngineTraceServer004 at f65bc5c0
[Source.Python] Interface IEngineSoundServer003 at f65bc2c8
[Source.Python] Interface VEngineRandom001 at f6579b50
[Source.Python] Interface VFileSystem017 at f7025980
[Source.Python] Interface VEngineServerStringTable001 at f65caba0
[Source.Python] Interface VPhysics031 at f524ec00
[Source.Python] Interface VPhysicsCollision007 at f524ed40
[Source.Python] Interface VPhysicsSurfaceProps001 at f524f300
[Source.Python] Interface MDLCache004 at f50365e0
[Source.Python] Interface VoiceServer002 at f6579e44
[Source.Python] Retrieving game interfaces...
[Source.Python] Interface PlayerInfoManager002 at f2d37028
[Source.Python] Interface BotManager001 at f2d37024
[Source.Python] Interface ServerGameDLL005 at f2e628b8
[Source.Python] Interface VSERVERTOOLS001 at f2d13984
[Source.Python] Retrieving global variables...
[Source.Python] Initializing mathlib...
[Source.Python] Initializing server and say commands...
[Source.Python] Registering say and say_team commands...
[Source.Python] Registering ConVar accessor...
[Source.Python] Initializing python...
[Source.Python] Python home path set to /opt/csgo_ds/csgo/addons/source-python/Python3
[Source.Python] Python version 3.5.1 (default, Mar  9 2016, 19:58:51)
[GCC 4.8.4] initialized!
[Source.Python] Setting sys.argv...
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/source-python to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/Python3/plat-linux to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/Python3/lib-dynload to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/site-packages to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/packages/custom to path
[Source.Python] Adding /opt/csgo_ds/csgo/addons/source-python/plugins to path
[Source.Python] Initializing _memory module
[Source.Python] Initializing _bitbuffers module
[Source.Python] Initializing _colors module
[Source.Python] Initializing _bitbuffers module
[Source.Python] Initializing _colors module
[Source.Python] Initializing _commands._client module
[Source.Python] Initializing _commands module
[Source.Python] Initializing _commands._say module
[Source.Python] Initializing _commands._server module
[Source.Python] Initializing _cvars module
[Source.Python] Initializing _effects module
[Source.Python] Initializing _effects._base module
[Source.Python] Initializing _engines module
[Source.Python] Initializing _engines._server module
[Source.Python] Initializing _engines._sound module
[Source.Python] Initializing _engines._trace module
[Source.Python] Initializing _entities._constants module
[Source.Python] Initializing _entities._helpers module
[Source.Python] Initializing _entities module
[Source.Python] Initializing _entities._factories module
[Source.Python] Initializing _entities._datamaps module
[Source.Python] Initializing _entities._props module
[Source.Python] Initializing _entities._entity module
[Source.Python] Initializing _core module
[Source.Python] Initializing _events module
[Source.Python] Initializing _globals module
[Source.Python] Initializing _keyvalues module
[Source.Python] Initializing _listeners module
[Source.Python] Initializing _mathlib module
[Source.Python] Initializing _messages module
[Source.Python] Initializing _net_channel module
[Source.Python] Initializing _physics module
[Source.Python] Initializing _players._bots module
[Source.Python] Initializing _players._constants module
[Source.Python] Initializing _players._helpers module
[Source.Python] Initializing _players module
[Source.Python] Initializing _players._voice module
[Source.Python] Initializing _filters._recipients module
[Source.Python] Initializing _steam module
[Source.Python] Initializing _stringtables module
[Source.Python] Initializing _studio module
[Source.Python] Initializing _studio._constants module
[Source.Python] Initializing _studio._cache module
[Source.Python] Initializing _weapons._constants module
[Source.Python] Initializing _studio._cache module
[Source.Python] Initializing _weapons._constants module
[Source.Python] Initializing _weapons._scripts module
[Source.Python] Loading main module...
[Source.Python] Failed to load the main module.
[Source.Python] Could not initialize python.
Failed to load plugin "addons/source-python"
[Source.Python] Unloading...
[Source.Python] Unhooking all functions...
[Source.Python] Shutting down python...
[Source.Python] Unloading main module...
[Source.Python] Failed to unload the main module.
[Source.Python] Clearing all commands...
[Source.Python] Unregistering ConVar...
[Source.Python] Disconnecting interfaces...
[Source.Python] Resetting cache notifier...
[Source.Python] Unloaded successfully.
maxplayers set to 64
Unable to setup core settings due to an ImportError:
ConVarRef cl_embedded_stream_video_playing doesn't point to an existing ConVar
Execing config: valve.rc
Execing config: default.cfg
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Execing config: joystick.cfg
Execing config: autoexec.cfg
Setting mapgroup to 'mg_active'
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: SP crashing on linux?

Postby L'In20Cible » Thu Sep 01, 2016 1:50 am

Replace this line:

Syntax: Select all

echo_console('\t', exc_value)

With:

Syntax: Select all

echo_console(exc_value)

Unlike print, echo_console only takes 1 argument.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: SP crashing on linux?

Postby satoon101 » Thu Sep 01, 2016 2:12 am

Yeah, sorry about that. Just did a simple copy/paste and replace, should have been more careful. My guess is that it's a permission error, though. It's really the only thing that makes any sense.
Image
burnSTATION
Junior Member
Posts: 27
Joined: Wed Mar 16, 2016 5:56 pm

Re: SP crashing on linux?

Postby burnSTATION » Thu Sep 01, 2016 2:13 am

console.log has the same content within it.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: SP crashing on linux?

Postby L'In20Cible » Thu Sep 01, 2016 2:18 am

I'm not too sure about the permission, since he get an ImportError, which is confusing. Did you install Python on that VM? If so, it may conflict trying to import something from there for the same reasons as this: http://wiki.sourcepython.com/general/known-issues.html
User avatar
iPlayer
Developer
Posts: 590
Joined: Sat Nov 14, 2015 8:37 am
Location: Moscow
Contact:

Re: SP crashing on linux?

Postby iPlayer » Thu Sep 01, 2016 2:22 am

Did you install Python on that VM?

Isn't Python/Python3 installed on many distros by default?
Image /id/its_iPlayer
My plugins: Map Cycle • Killstreaker • DeadChat • Infinite Jumping • TripMines • AdPurge • Bot Damage • PLRBots • Entity AntiSpam

Hail, Companion. [...] Hands to yourself, sneak thief. Image
User avatar
Doldol
Senior Member
Posts: 200
Joined: Sat Jul 07, 2012 7:09 pm
Location: Belgium

Re: SP crashing on linux?

Postby Doldol » Thu Sep 01, 2016 2:32 am

I'd recommend https://gameservermanagers.com/ if you're running a Linux (V)DS, it's a nice wrapper around your server and aot it warns about permission/ownership issues.

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests