Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Windows support #14

Open
Dids opened this issue Mar 27, 2017 · 5 comments
Open

Investigate Windows support #14

Dids opened this issue Mar 27, 2017 · 5 comments
Assignees
Labels
enhancement Provides features, tweaks or other enhancements. pinned Pinned issues will not be automatically marked stale.

Comments

@Dids
Copy link
Contributor

Dids commented Mar 27, 2017

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

@Dids Dids added the enhancement Provides features, tweaks or other enhancements. label Mar 27, 2017
@Dids Dids self-assigned this Mar 27, 2017
@stale
Copy link

stale bot commented Aug 20, 2018

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 stale bot added the wontfix Issues that will not be fixed. label Aug 20, 2018
@Dids Dids added pinned Pinned issues will not be automatically marked stale. and removed wontfix Issues that will not be fixed. labels Aug 21, 2018
@hexnaught
Copy link

hexnaught commented Aug 17, 2019

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

@dpleshkov
Copy link

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..

@Dids
Copy link
Contributor Author

Dids commented Jan 8, 2020

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.

@EvanSchalton
Copy link

EvanSchalton commented May 6, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Provides features, tweaks or other enhancements. pinned Pinned issues will not be automatically marked stale.
Projects
None yet
Development

No branches or pull requests

4 participants