ThirdBlog-Top

Thursday, July 2, 2015

Understand Troubleshooting

TroubleShooting

If you're running a 64-bit version of Linux, you need 32 bit binaries, since SteamCMD is only available as 32 bit.

If you get the error message

./steamcmd.sh: line 29: /home/$USER/Steam/linux32/steamcmd: No such file or directory
then you are most likely running 64 a bit system and missing 32 bit libraries.

To do so, you need to install ia32-libs. To do so, run the following bit of code:

dpkg --add-architecture i386
apt-get update
apt-get install ia32-libs
The package is big (~200MB isn't uncommon) and has a lot of dependancies so it may take some time.

For other linux distrubutions, see the Valve wiki article

'GLIBC_2.15' not found

If you get the error message

Failed to open dedicated_srv.so (/lib/i386-linux-gnu/libm.so.6: version `GLIBC_2.15' not found (required by bin/dedicated_srv.so))
You most likely have outdated GLIBC libraries and will need to update them.

This has happened because you chose to use a different distribution (or version of a distribution) than the one Valve used to create the tools. Those tools are expecting components from that Linux distribution. (See 'Notice' above!)

To deal with this without switching to Ubuntu 12.04 32-bit, run the following bit of code:

wget http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.15-0ubuntu10.11_i386.deb
dpkg -x libc6_2.15-0ubuntu10.11_i386.deb tmp/
cd tmp/lib/i386-linux-gnu/
cp * /your-garrysmod-directory/bin/
For CentOS you need to install the EPEL Repo and dpkg first:

yum install dpkg
Alternatively you could switch to:

Ubuntu Server 12.04+
CentOS 7
These distros have been confirmed working and are the most supported.

Addons Not Working

As you are getting your server up and running you may notice some issues with particular addons not working. This problem seems to be affecting legacy addons with folders containing capitals. To fix this issue it may be required to change all directories to lowercase names and all Lua code pointing to these directories accordingly.

WORKSHOP
Workshop for Dedicated Servers

Dedicated servers can install addons straight from workshop collections, but it requires an addition to the startup parameter. The server will download the collection at startup.

Create collection

First of all create a collection and find your collection ID. Do note that your collection needs to be public, else, srcds won't be able to access it!

API/Auth Key

You need a Steam API Key to use this system. You can get one by signing in here. You should keep your key secret.

Applying the command-line parameter

Append the following parameter to the server startup command-line:

+host_workshop_collection WORKSHOPID -authkey YOURKEYGOESHERE
An example could be:

+host_workshop_collection 123456789 -authkey XXXXXF3C2XXXXXXXXX997XX0635XXXXX
Example

The example below starts a dedicated server with 20 player slots. It downloads or updates all of the addons in collection 157384458. This collection includes the Zombie Survival gamemode and a few maps. It sets the gamemode to zombiesurvival and loads one of the downloaded maps.

srcds.exe +maxplayers 20 -console -authkey YOURKEYGOESHERE +host_workshop_collection 157384458 +gamemode zombiesurvival +map zs_cleanoffice_v2
Every time you restart your server it will check that these addons are all up to date.


Still Confused?

No comments:

Post a Comment