Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

Installing on Linux

These two messages only concern installing the server on your own machine or on a VPS, with SteamCMD (see a Garry's Mod server on a VPS).

./steamcmd.sh: line 29: /home/$USER/Steam/linux32/steamcmd: No such file or directory

The file does exist, but the system cannot run it: SteamCMD is a 32-bit program, and a 64-bit Linux does not always have the 32-bit libraries it needs. To fix it:

  1. type uname -m: the answer x86_64 confirms a 64-bit system;
  2. on recent Debian or Ubuntu, install the required library with sudo apt install lib32gcc-s1; for other distributions, the Garry's Mod wiki points to Valve's SteamCMD wiki;
  3. run SteamCMD again.

WARNING: Failed to load 32-bit libtinfo.so.5 or libncurses.so.5., followed by Please install (lib32tinfo5 / ncurses-libs.i686 / equivalent) to enable readline.

This is only a warning: the server works. The library that handles input in the console (arrow keys, command history) is missing. Install your distribution's equivalent package if you want that convenience, otherwise ignore it.

One last point from the official wiki: stop the server before updating it with SteamCMD, otherwise the update fails.

02

GSLT token and the server list

Since May 2020, every Garry's Mod server should have a GSLT (Steam Game Server Login Token). Without one, the server is heavily penalised in the server list ranking. The token is created on the steamcommunity.com/dev/managegameservers page, with app ID 4000, then passed at launch:

+sv_setsteamaccount YOURTOKEN

Connection to Steam servers lost. (Steam error code 6)

If this message appears in the console and players are disconnected, the same token is being used on two or more servers. Create a separate token for each server, paste it into that server's launch line, then restart it.

Two other cases come down to the token:

  • the server no longer starts: an invalid or expired token prevents it. Check that it still exists on the Steam page and that it is copied in full;
  • you changed your Steam account password: all your tokens are then invalidated. Regenerate them from the same page and replace them on each server.

For a test server you do not want to show in the list, add +hide_server 1. If the server still cannot be found while the token is fine, check its ports with the game server ports guide.

03

Reading a Lua error

The official Garry's Mod wiki uses this example:

[ERROR]addons/my_addon/lua/autorun/server/sv_my_addon_autorun.lua:2: attempt to call global 'Print' (a nil value)
 1. unknown - addons/my_addon/lua/autorun/server/sv_my_addon_autorun.lua:2

The first line holds three pieces of information: the file at fault (the folder after addons/ names the addon), the line number (:2) and the error itself. The numbered lines below show where the code was called from. In the game console, a server-side error is shown in blue and a client-side error in yellow; a red or white message is not a Lua error but an engine error.

  • attempt to call global 'Print' (a nil value): the script calls a function that does not exist. Here, a typo: the function is called print, in lower case. Other causes given by the wiki: a function defined only on the client called on the server (or the reverse), or a function never created because its own file contains an error.
  • attempt to index global 'varname' (a nil value): the script reads a variable that does not exist, because it belongs to the other side (client or server), it is defined later in the code, or its name is misspelt. In practice, this is also what you get from an addon that relies on another addon or on a gamemode the server does not have.

Even if you are not a developer, the steps are the same: find the addon from the path, update it, check on its page whether it needs another addon or a specific gamemode (for example DarkRP), then remove it to confirm it is the culprit. Send the full error to its author. On Linux, the wiki also notes that old addons whose folders contain capital letters may not work: rename those folders in lower case.

04

Syntax errors and files not found

These errors stop a whole file from loading. Everything it was meant to create is then missing, which triggers further a nil value errors in a cascade: always fix the first error in the console.

  • unexpected symbol near 'symbol': Lua found a symbol it does not know how to interpret. Most often, a then forgotten after an if, or a bracket or brace closed in the wrong place.
  • 'symbol1' expected near 'symbol2': Lua expected a different symbol. When the second one is <eof> (end of file), as in 'end' expected near '<eof>', a block was not closed before the end of the file. Causes listed by the wiki: a missing or extra end, == instead of =, a comma forgotten between two items in a table.
  • Couldn't include file 'file' - File not found (<nowhere>): the code includes, with include or AddCSLuaFile, a file that does not exist or is empty. Another frequent cause: the file was added while the server was running. Add the missing file, check that it is not empty, then restart the server.

These syntax errors often appear after editing a configuration file, such as the DarkRP jobs file: go back over the line given and the ones just above it. The DarkRP jobs guide gives examples of correct files.

05

Missing content and the Workshop

When players see red "ERROR" models or purple and black checkered textures, they are missing an addon's content: models, textures, sounds or a map. .lua files download on their own, but content does not: the server has to declare it. The official wiki describes three methods, from fastest to slowest:

  • Workshop: in a server-side file, for example lua/autorun/server/workshop.lua, add one resource.AddWorkshop("150455514") line per addon, with its Workshop number. Only declare addons that contain more than Lua: the others slow down loading for nothing.
  • FastDL: a web server serves the files, set with sv_downloadurl (see the FastDL guide).
  • Download from the game server: capped at 64 kB/s, and sv_allowdownload opens the door to abuse. Best avoided.

With a collection loaded by +host_workshop_collection, the collection must be public or unlisted, otherwise the server cannot read it. If the current map is part of the collection, the console shows Making workshop map available for client download: that is the sign players will receive it. For the gamemode, the message is Making workshop gamemode available for client download. The addons and Workshop collection guide covers the setup in detail.

06

On CloudFive

On our Garry's Mod hosting plans, from €2 per month, DarkRP, a Workshop collection and ULX install in one click from the manager.cloudfive.fr customer area. From the server's page:

  • Console and logs: Lua errors arrive live, with the path of the addon at fault.
  • Files: you fix a configuration file in the editor or over SFTP, then restart.
  • Backups: make one before adding or updating an addon, so you can roll back if it breaks the server.
  • Tier: if the server is short of resources, change tier from the customer area.
  • Protection: Anti-DDoS Premium is included, with a profile specific to Garry's Mod.

The servers run in France on a Ryzen 9 9950X, with DDR5 memory and NVMe storage, monthly with no commitment. Support answers in French 7 days a week by ticket, on Discord and by phone. To go further, see ULX and ULib and optimising a Garry's Mod server.

07

Frequently asked questions

How do I read a Lua error on Garry's Mod?

The first line gives the file at fault, the line number and the error. The folder after addons/ names the addon responsible. In the console, a server error is shown in blue and a client error in yellow.

What does “attempt to index global (a nil value)” mean?

The script uses a variable that does not exist: it belongs to the other side (client or server), it is defined later, its name is misspelt, or the addon depends on another addon or on a gamemode the server does not have. Update the addon and check its dependencies.

Why do players see ERROR models on my server?

They are missing an addon's content: only Lua files download on their own. Add resource.AddWorkshop with the addon's number in a server-side file, or serve the files over FastDL.

What does “Steam error code 6” mean on a Garry's Mod server?

The message “Connection to Steam servers lost. (Steam error code 6)” usually means the same GSLT token is being used on two servers. Create a separate token for each server and restart.

How do I fix “Couldn't include file”?

The code includes a file that is missing or empty, or that was added while the server was running. Check that the file exists in the right place and is not empty, then restart the server.

Our plans

Going further.

The plans covered in this guide, hosted in France and protected by our anti-DDoS, with no commitment.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay