Page 1 of 1

SP not loading on my Linux server

Posted: Sun Feb 28, 2016 5:39 pm
by La Muerte
Hello,

I've noticed that using the latest version of SP seems to be causing crashes (also with clean install) at server launch on CS:GO on a Linux server (centos 6).

Console.log:
[Source.Python] Loading...
[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] Failed to unload the main module.
[Source.Python] Unloaded successfully.


After installing an earlier version of SP, which I still had on my computer (5 days old as of today), the server starts just fine without any issues or errors.

Posted: Sun Feb 28, 2016 6:13 pm
by Ayuto
Can you set "developer" (command line argument) to 1 and "sp_logging_level" (core_settings.ini) to 5?

I will also test this as soon as my Linux VM is running and updated again.

Posted: Sun Feb 28, 2016 10:31 pm
by satoon101
Also, are you certain your server is up to date? My Windows server crashed after I updated it until I also updated my SP version.

Posted: Mon Feb 29, 2016 3:13 pm
by La Muerte
Sorry for the late reply,

I've been trying to reproduce this issue on a second gameserver but seem to be unable to (even though its hosted on the same virtual machine).
However I just noticed the issue still happens on my initial gameserver which is running latest version of cs:go and latest sp build (Build #265).

Plugins: found file "source-python.vdf"
[Source.Python] Loading...
[Source.Python] Connecting interfaces...
[Source.Python] Retrieving engine interfaces...
[Source.Python] Interface VEngineServer023 at 15fc3c0
[Source.Python] Interface GAMEEVENTSMANAGER002 at 163fbe0
[Source.Python] Interface ISERVERPLUGINHELPERS001 at 167dc20
[Source.Python] Interface EngineTraceServer004 at 163f7e0
[Source.Python] Interface IEngineSoundServer003 at 163f4e8
[Source.Python] Interface VEngineRandom001 at 15fc0d0
[Source.Python] Interface VFileSystem017 at 54d980
[Source.Python] Interface VEngineServerStringTable001 at 164d940
[Source.Python] Interface VPhysics031 at 29cdba0
[Source.Python] Interface VPhysicsCollision007 at 29cdce0
[Source.Python] Interface VPhysicsSurfaceProps001 at 29ce2a0
[Source.Python] Interface MDLCache004 at 9290e0
[Source.Python] Interface VoiceServer002 at 15fc3c4
[Source.Python] Retrieving game interfaces...
[Source.Python] Interface PlayerInfoManager002 at 3b30f28
[Source.Python] Interface BotManager001 at 3b30f24
[Source.Python] Interface ServerGameDLL005 at 3c5c0f8
[Source.Python] Interface VSERVERTOOLS001 at 3b0d904
[Source.Python] Retrieving global variables...
[Source.Python] Initializing mathlib...
[Source.Python] Initializing server and say commands...
[Source.Python] Initializing python...
[Source.Python] Python home path set to /home/ogp_agent/OGP_User_Files/48/csgo/addons/source-python/Python3
[Source.Python] Python version 3.4.1 (default, Sep 3 2014, 21:28:20)
[GCC 4.4.5] initialized!
[Source.Python] Setting sys.argv...
[Source.Python] Adding /home/ogp_agent/OGP_User_Files/48/csgo/addons/source-python/packages/source-python to path
[Source.Python] Adding /home/ogp_agent/OGP_User_Files/48/csgo/addons/source-python/Python3/plat-linux to path
[Source.Python] Adding /home/ogp_agent/OGP_User_Files/48/csgo/addons/source-python/Python3/lib-dynload to path
[Source.Python] Adding /home/ogp_agent/OGP_User_Files/48/csgo/addons/source-python/packages/site-packages to path
[Source.Python] Adding /home/ogp_agent/OGP_User_Files/48/csgo/addons/source-python/packages/custom to path
[Source.Python] Adding /home/ogp_agent/OGP_User_Files/48/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 _effects._constants 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 _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.


Perhaps I should just re-install the gameserver entirely?

Posted: Mon Feb 29, 2016 3:50 pm
by Ayuto
What about the SP log?

Posted: Mon Feb 29, 2016 3:57 pm
by La Muerte
sp logs are all empty (0 bytes)

[LOG_SETTINGS]
# Set to the logging level to use for Source.Python.

# To show all messages, set to level 5.
# To show debugging messages, set to at least level 4.
# To show informational messages, set to at least level 3.
# To show warning messages, set to at least level 2.
# To show exception messages, set to at least level 1.
# To show only critical and base messages, set to 0.
level = 5

Posted: Mon Feb 29, 2016 5:39 pm
by satoon101
And what about the logging areas variable? You only show the level, but the areas is very important here, too. Even if you don't have it set to log to the SP logs, the file will still be created.

SP not loading on my Linux server

Posted: Mon Feb 29, 2016 7:55 pm
by La Muerte
I've now set areas = 15 but the new sp logs are still empty (after restarting server too), I suppose the issue occurs before the logging is initiated.
Although if nobody else is having similar issues, I suppose I should just freshly re-install my gameserver as SP works fully on my other gameserver.

Edit: in fact, all my normal server logs are also showing as empty even though the server is up and running, i have "log on" in the server.cfg.

Posted: Mon Feb 29, 2016 8:27 pm
by Ayuto
Might be a permission problem?