CounterStrikeSharp on Debian 13 Startup-Problem
Dear CounterStrikeSharp-Community, after upgrading my Linux-Server from Debian 12 to Debian 13, i realised that CounterStrikeSharp was not loading anymore. This is what i could find in the logs: [META] Failed to load plugin addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp: /home/cs2server/serverfiles/game/csgo/addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp.so: cannot enable executable stack as shared object requires: Invalid argument [META] Loaded 0 plugins.
I am using latest CounterStrikeSharp Version 1.0.343 and latest Metamod Dev Build Version 2.0 - 1367. Is it a current compatibility issue with Debian 13 or a dependency i am missing now?
Thanks in advance and kind regards, nerzlakai96
Update: This issue seems to be due to stricter security on Debian 13, the probable fix is to clear the executable stack with "execstack -c /home/cs2server/serverfiles/game/csgo/addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp.so". However, Debian 13 has removed execstack too so it can not be installed anymore using "apt install execstack".
Would it be possible in a future CounterStrikeSharp update to provide a .so file with the executable stack flag removed, so it works on Debian 13?
In order for Sharp to run on Debian 13, it would have to be created yourself, as Sharp is not built for the current version. Therefore, the file is not provided for Debian 13, as otherwise Sharp would no longer run on older versions or could cause problems.
Once you have created cs2 Sharp yourself on your server, it will also run natively on Debian without steamrt.
The change to make it run on Debian 13 is already in the code and ready to go without any further changes.
Hey Matlord93, thank you for your answer :)
I found a similar way to execstack using patchelf (apt install patchelf) to clear the executable stack: patchelf --clear-execstack /home/cs2server/serverfiles/game/csgo/addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp.so
I can confirm, this is working as well on Debian 13.
Hey Matlord93, thank you for your answer :)
I found a similar way to execstack using patchelf (apt install patchelf) to clear the executable stack: patchelf --clear-execstack /home/cs2server/serverfiles/game/csgo/addons/counterstrikesharp/bin/linuxsteamrt64/counterstrikesharp.so
I can confirm, this is working as well on Debian 13.
This worked for me and now CSSharp is listed properly