rust-server icon indicating copy to clipboard operation
rust-server copied to clipboard

Investigate Windows support

Open Dids opened this issue 7 years ago • 5 comments

Look at running the container on Windows and see what the major pain points there are, especially regarding volumes (filesystem, paths and permissions).

Dids avatar Mar 27 '17 19:03 Dids

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 20 '18 21:08 stale[bot]

Running docker on windows, I cloned the repo (with git config --global core.autocrlf = false set) and added the following run_modded.ps1 script;

# It complains that the directory doesn't exist, if we don't manually create it
# I am running the modded server, which uses the 'rust-server-modded' subfolder.
mkdir rust-server-modded
docker build -t didstopia/rust-server:latest .

# Run a modded server
# I am running this on the same PC as the game, to make sure it is working right now
# I have removed the '--network=host' arg just for simplicity.
docker run -p 0.0.0.0:28215:28015 -p 0.0.0.0:28215:28015/udp -p 28216:28216 -p 0.0.0.0:8082:8080 -m 2g -v ${pwd}/rust_data_modded:/steamcmd/rust -e RUST_SERVER_STARTUP_ARGUMENTS="-batchmode -load -nographics -logfile /dev/stdout +server.secure 1 +server.saveinterval 60" -e RUST_RCON_PORT=28216 -e RUST_UPDATE_CHECKING=0 -e RUST_BRANCH="public" -e RUST_UPDATE_BRANCH="public" -e RUST_OXIDE_ENABLED=1 --name rust-server-modded -d didstopia/rust-server:latest

docker logs -f rust-server-modded

I ran this, and the container built fine, then ran fine. So I would say that this should be good to go on windows to be honest, almost as is.


Only issue I am facing right now is that when I try to connect in game with client.connect 127.0.0.1:28215 - My auth is failing, possibly due to game/server version mis-match, or a steam connection issue. Might look into it at a later date. I solved this in the meantime by running server.secure false via the RCON console and have connected just fine.

Auth was working fine after starting up the container a second time. Looks like Auth was an issue with my end/steam.

Edit: Issue with the container just, stopping.. Unsure why. Need to look into this too. Last thing logs show is this, everything above it is just standard output, chat, etc.

./start.sh: line 204:    97 Killed                  /steamcmd/rust/RustDedicated $RUST_STARTUP_COMMAND +server.identity "$RUST_SERVER_IDENTITY" +server.seed "$RUST_SERVER_SEED" +server.hostname "$RUST_SERVER_NAME" +server.url "$RUST_SERVER_URL" +server.headerimage "$RUST_SERVER_BANNER_URL" +server.description "$RUST_SERVER_DESCRIPTION" +server.worldsize "$RUST_SERVER_WORLDSIZE" +server.maxplayers "$RUST_SERVER_MAXPLAYERS" +server.saveinterval "$RUST_SERVER_SAVE_INTERVAL" 2>&1,
+ pkill -f nginx,,
.,
+ echo Exiting..,
+ exit

hexnaught avatar Aug 17 '19 11:08 hexnaught

Have this issue too, and I'm attempting to run this docker on macOS.

Output:

[3.5s] Height Map

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[0.6s] Biome Map

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[3.6s] Topology Map

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[1.1s] Splat Map

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[4.4s] Mountains

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[22.5s] Harbors

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

[99.5s] Large Monuments

(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

./start.sh: line 204:    94 Killed                  /steamcmd/rust/RustDedicated $RUST_STARTUP_COMMAND +server.identity "$RUST_SERVER_IDENTITY" +server.seed "$RUST_SERVER_SEED" +server.hostname "$RUST_SERVER_NAME" +server.url "$RUST_SERVER_URL" +server.headerimage "$RUST_SERVER_BANNER_URL" +server.description "$RUST_SERVER_DESCRIPTION" +server.worldsize "$RUST_SERVER_WORLDSIZE" +server.maxplayers "$RUST_SERVER_MAXPLAYERS" +server.saveinterval "$RUST_SERVER_SAVE_INTERVAL" 2>&1
+ pkill -f nginx
+ echo Exiting..
+ exit
Exiting..

dpleshkov avatar Jan 08 '20 05:01 dpleshkov

Sounds like it's running out of resources (memory, CPU, disk space), with memory being the usual culprit. The bigger the map, the more resources the container will need.

Dids avatar Jan 08 '20 08:01 Dids

FWIW; I opened all of the shell scripts in vscode and pressed F1 and typed Change End of Line Sequence and selected LF then saved the shell script, re-built the image and everything worked as expected (so far -- downloading rust now).

EvanSchalton avatar May 06 '21 19:05 EvanSchalton