[Server Administration] Cannot launch rust on Ubuntu 20.04 due to missing dependencies (I think)

Hello, I’m trying to host my own Rust instance on Linux using the steamcmd guide.

The server is fairly default, aside from me making it use ssh keys instead of passwords. I also installed UFW which is more than likely not affecting this whatsoever (I opened the rust server and rcon ports however).

Steps taken so far:

  1. Setup a user specifically to handle the rust dedicated server software.
  2. Installed rust via steamcmd
  3. Use a basic bash script to launch the RustDedicated service with some command line arguments.

Troubleshooting Steps so far:

  1. Removed Steamapps folder and reinstalled
  2. Ensured permissions are correct.

The problem is I get the following log output.

Found path: /home/steam/.steam/steamapps/common/rust_dedicated/RustDedicated
Mono path[0] = '/home/steam/.steam/steamapps/common/rust_dedicated/RustDedicated_Data/Managed'
Mono config path = '/home/steam/.steam/steamapps/common/rust_dedicated/RustDedicated_Data/MonoBleedingEdge/etc'
Preloaded 'libRakNet.so'
Preloaded 'libRustNative.so'
eac_server.so [x64] :: OnLoad()
Preloaded 'libeac_server.so'
Preloaded 'libeasyanticheat.so'
Preloaded 'libsteam_api.so'
Preloaded 'libsteam_api.so'
Preloaded 'steamclient.so'
Unable to preload the following plugins:
        libRenderer.so
Initialize engine version: 2019.4.22f1 (9fdda2fe27ad)
[Subsystems] Discovering subsystems at path /home/steam/.steam/steamapps/common/rust_dedicated/RustDedicated_Data/UnitySubsystems
Forcing GfxDevice: Null
GfxDevice: creating device client; threaded=0
NullGfxDevice:
    Version:  NULL 1.0 [1.0]
    Renderer: Null Device
    Vendor:   Unity Technologies
Begin MonoManager ReloadAssembly
- Completed reload, in  0.106 seconds
Shader 'TextMeshPro/Distance Field': fallback shader 'TextMeshPro/Mobile/Distance Field' not found
UnloadTime: 9.529003 ms
Bootstrap Startup
Unable to open archive file: Bundles/Bundles
(Filename:  Line: 584)

Failed to read data for the AssetBundle 'Bundles'.
(Filename:  Line: 450)

Couldn't load root AssetBundle - Bundles/Bundles
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

ThrowError: Couldn't load root AssetBundle - Bundles/Bundles
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

Here is the bash script I am running to launch the server:

#!/bin/sh
clear while : do
  exec ~/.steam/steamapps/common/rust_dedicated/RustDedicated -batchmode -nographics \
  -server.ip 0.0.0.0 \
  -server.port 28015 \
  -server.maxplayers 75 \
  -server.hostname "some name" \
  -server.identity "some identity" \
  -server.level "Procedural Map" \
  -server.seed 12093120930219 \
  -server.worldsize 3500 \
  -server.saveinterval 300 \
  -server.globalchat true \
  -server.description "description" \
  -server.headerimage "image.url" \
  -rcon.ip 0.0.0.0 \
  -rcon.port 28016 \
  -rcon.password "hunter1" \
  -rcon.web 1
  echo "\nRestarting server...\n" done

I cannot connect via rcon or via client.connect since obviously the server isn’t launching properly. Any assistance would be greatly appreciated.

The server is located in

~/.steam/steamapps/common/rust_dedicated/RustDedicated

Librenderer.so is in the plugins folder and its permissions are correctuser:correctuser-rwxr-xr-x (751 I think in octal sense)

Any help would be greatly appreciated.

The solution was changing over to the following script:

Thanks to @Dennis.sh on Discord for his support.

#!/bin/bash
cd ~/.steam/steamapps/common/rust_dedicated/
clear while : do
  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)
  ./RustDedicated -batchmode \
  -nographics \
  -server.port 28015 \
  -server.maxplayers 75 \
  -server.hostname "some name" \
  -server.identity "some identity" \
  -server.level "Procedural Map" \
  -server.seed 12093219 \
  -server.worldsize 1200 \
  -server.saveinterval 300 \
  -server.globalchat true \
  -server.description "description" \
  -server.headerimage "image.url" \
  -rcon.port 28016 \
  -rcon.password "hunter" \
  -rcon.web 1
  echo "\nRestarting server...\n" done

1 Like