openOMSI GitHub Discord
Dedicated server

Docs / Multiplayer / Dedicated server

Troubleshooting

2 min readEdit this pagedocs/SERVER.md

The server prints why it stops and ends with an exit code a launcher can tell apart:

Exit code Cause Fix
1 The original OMSI 2 was not found at --root (the missing files are listed), or another error printed as Error: … Point --root at a complete installation. run-server … --setup chooses the folder again.
2 server.cfg cannot be read or written, or its map is not installed (the installed maps are listed) Fix the file's permissions or the map key.
3 The UDP port is taken Stop the other server or program, or choose another port.

A taken web_port does not stop the server: it takes another port and logs which. The log goes to standard error. Informational lines go there too: the exit code, not a line, says whether it failed.

Other problems:

  • Players cannot connect over UDP. Open UDP and TCP 27015 and TCP 27025 in the firewall and any cloud security group. Or let players use the tunnel address.
  • "server.cfg: admin_password has fewer than 12 characters": the administration stays off until the password is longer. Servers set up with 8 to 11 characters need a longer one now.
  • The web panel does not open. Check admin_web (a server.cfg from before the panel has none, which means off). From another machine you need remote, an HTTPS proxy and 16-character passwords.
  • The server is not in the public list. The log says why: a flagged name or message, or the service cannot reach the web port. Keep tunnel = 1 or open the web port.
  • A map is missing for players. With share_maps = 0 players install it themselves. Turn it on, or tell them which map to install.
  • Players are sent away for their bus. The vehicles list does not include it. The kick message names the allowed buses.
  • Slow first start. With a long vehicles list, the first start checks every file of every bus. Later starts are faster.

Helper flags#

For your own launcher or scripts:

Flag Does
--root <folder> --list-maps Print the installed maps, one per line, as server.cfg names them (content folder included), and end. Exit code 1 with the missing files when the folder is not a complete OMSI 2.
--root <folder> --server <server.cfg> --list-maps The same, and write a missing server.cfg with its defaults.
--server-map maps/<folder>/global.cfg Start on this map instead of server.cfg's.
--pack-map <map> --pack-to <folder or .zip> Pack a map with everything it uses (above).

Paths with spaces or accents are passed as they are, quoted. Maps are named relative to the OMSI 2 folder. More flags are in Command line.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open