Didstopia / rust-server

Provides a dedicated linux server for Rust (the game) running inside a Docker container.
MIT License
244 stars 104 forks source link

Latest update badly broken #59

Closed Hardcore-fs closed 4 years ago

Hardcore-fs commented 4 years ago

been fine for ages but after latest pull: on startup after the "header" you added....

Running as user: docker chown: changing ownership of '/steamcmd/rust/rust.env': Operation not permitted chown: changing ownership of '/steamcmd/rust/steamapps/libraryfolders.vdf': Operation not permitted chown: changing ownership of '/steamcmd/rust/steamapps/shadercache': Operation not permitted chown: changing ownership of '/steamcmd/rust/steamapps/appmanifest_258550.acf': Operation not permitted

for every file in the container

until:

`Waiting for user info...OK force_install_dir /steamcmd/rust app_info_update 1 app_update 258550 validate Update state (0x0) : Timed out waiting for update to start, bailing. Error! App '258550' state is 0x204 after update job. quit applicationmanager.cpp (927) : Assertion Failed: m_bStateChangesSavedToDisk Downloading and installing latest Oxide.. x RustDedicated_Data/: Can't restore time x RustDedicated_Data/Managed/: Can't restore time x RustDedicated_Data/Managed/Assembly-CSharp.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/Facepunch.Console.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/Facepunch.Network.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/Facepunch.Rcon.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/Mono.Data.Tds.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/MySql.Data.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/NewAssembly.dll: Can't unlink already-existing object .........

x RustDedicated_Data/Managed/x86/sqlite3.dll: Can't unlink already-existing object bsdtar: Error exit delayed from previous errors. chmod: cannot access '/steamcmd/rust/CSharpCompiler.x86_x64': No such file or directory chmod: changing permissions of '/dev/null': Operation not permitted Starting web server.. Log rotation disabled! Starting Rust.. Found path: /steamcmd/rust/RustDedicated Unable to open log file, exiting. Exiting.. `

***Then after deleting container and trying a clean "restart" of docker****

`Listening for IPv4 broadcast on: 27036 Logged in OK Waiting for user info...OK force_install_dir /steamcmd/rust app_info_update 1 app_update 258550 validate Update state (0x0) : Timed out waiting for update to start, bailing. Error! App '258550' state is 0x204 after update job. quit applicationmanager.cpp (927) : Assertion Failed: m_bStateChangesSavedToDisk Downloading and installing latest Oxide.. x RustDedicated_Data/: Can't restore time x RustDedicated_Data/Managed/: Can't restore time x RustDedicated_Data/Managed/Assembly-CSharp.dll: Can't unlink already-existing object .....

x RustDedicated_Data/Managed/x86/libsqlite3.so: Can't unlink already-existing object x RustDedicated_Data/Managed/x86/mono-2.0.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/x86/msvcp140.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/x86/msvcr120.dll: Can't unlink already-existing object x RustDedicated_Data/Managed/x86/sqlite3.dll: Can't unlink already-existing object bsdtar: Error exit delayed from previous errors. chmod: cannot access '/steamcmd/rust/CSharpCompiler.x86_x64': No such file or directory chmod: changing permissions of '/dev/null': Operation not permitted Starting web server.. Log rotation disabled! Starting Rust.. Found path: /steamcmd/rust/RustDedicated Unable to open log file, exiting. Exiting..`

Dids commented 4 years ago

Since it's now running as a non-root user by default, volume permissions should be adjusted to reflect this. Stop your container and run chown -R 1000:1000 /path/to/your/volume and it should work fine.

Hardcore-fs commented 4 years ago

Ah.... still broken....

perhaps a note or something in the header.... since it just updates , without any warnings.... or notes...

chown -R 1000:1000 /path/to/your/mapped_container_volume

also after this correction ......i'm seeing this:

`Loading Steam API...Failed to init SDL priority manager: SDL not found Failed to set thread priority: per-thread setup failed Failed to set thread priority: per-thread setup failed

Update state (0x5) validating, progress: 94.61 (4540115843 / 4798520693) Update state (0x5) validating, progress: 98.22 (4712914273 / 4798520693) Failed to set thread priority: per-thread setup failed Failed to set thread priority: per-thread setup failed Failed to set thread priority: per-thread setup failed Update state (0x61) downloading, progress: 99.70 (6309888 / 6328843)`

& this: chmod: cannot access '/steamcmd/rust/CSharpCompiler.x86_x64': No such file or directory chmod: changing permissions of '/dev/null': Operation not permitted Starting web server.. Log rotation disabled! Starting Rust.. Found path: /steamcmd/rust/RustDedicated Unable to open log file, exiting. Exiting..

which i partially corrected with cp Compiler.x86_x64 CSharpCompiler.x86_x64 chown -R 1000:1000 CSharpCompiler.x86_x64

Which threw this: chmod: changing permissions of '/dev/null': Operation not permitted Starting web server.. Log rotation disabled! Starting Rust.. Found path: /steamcmd/rust/RustDedicated Unable to open log file, exiting. Exiting..

Dids commented 4 years ago

Permission issues have been fixed in the latest version.

Syntactical01 commented 4 years ago

I am still having this issue. I just pulled your image to today, ran it, and got the above error on Windows 10 with 5.5GB of RAM for Docker. Docker runs fine and volume appears to be mounted properly. Is this fix not yet released? CPU usage gets a little high but ram gets no where near the max as I watch the container stats.

╔═════════════════════════════════════════════════╗
║    _____  _     _     _              _          ║
║   |  __ \(_)   | |   | |            (_)         ║
║   | |  | |_  __| |___| |_ ___  _ __  _  __ _    ║
║   | |  | | |/ _| / __| __/ _ \| |_ \| |/ _| |   ║
║   | |__| | | (_| \__ \ || (_) | |_) | | (_| |   ║
║   |_____/|_|\__|_|___/\__\___/| |__/|_|\__|_|   ║
║                               | |               ║
║                               |_|               ║
╠═════════════════════════════════════════════════╣
║ You are using an image that is based on         ║
║ a base image maintained by Didstopia.           ║
║                                                 ║
║ For more information:                           ║
║ https://github.com/Didstopia/docker-base-images ║
╚═════════════════════════════════════════════════╝

Running as user: docker
Installing/updating steamcmd..
x linux32/
x linux32/libstdc++.so.6
x linux32/steamcmd
x steamcmd.sh
x steam.sh
Installing or updating Rust.. (this might take a while, be patient)
Redirecting stderr to '/app/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[  0%] Downloading update (0 of 76,818 KB)...
[  0%] Downloading update (882 of 76,818 KB)...
[  1%] Downloading update (2,677 of 76,818 KB)...
[  3%] Downloading update (4,867 of 76,818 KB)...
[  6%] Downloading update (7,688 of 76,818 KB)...
[ 10%] Downloading update (10,075 of 76,818 KB)...
[ 13%] Downloading update (12,463 of 76,818 KB)...
[ 16%] Downloading update (15,093 of 76,818 KB)...
[ 19%] Downloading update (17,505 of 76,818 KB)...
[ 22%] Downloading update (19,918 of 76,818 KB)...
[ 25%] Downloading update (22,054 of 76,818 KB)...
[ 28%] Downloading update (24,546 of 76,818 KB)...
[ 31%] Downloading update (26,973 of 76,818 KB)...
[ 35%] Downloading update (29,395 of 76,818 KB)...
[ 38%] Downloading update (31,622 of 76,818 KB)...
[ 41%] Downloading update (33,695 of 76,818 KB)...
[ 43%] Downloading update (35,531 of 76,818 KB)...
[ 46%] Downloading update (37,133 of 76,818 KB)...
[ 48%] Downloading update (39,309 of 76,818 KB)...
[ 51%] Downloading update (41,739 of 76,818 KB)...
[ 54%] Downloading update (43,038 of 76,818 KB)...
[ 56%] Downloading update (44,400 of 76,818 KB)...
[ 57%] Downloading update (45,770 of 76,818 KB)...
[ 59%] Downloading update (47,023 of 76,818 KB)...
[ 61%] Downloading update (48,275 of 76,818 KB)...
[ 62%] Downloading update (49,528 of 76,818 KB)...
[ 64%] Downloading update (50,914 of 76,818 KB)...
[ 66%] Downloading update (52,181 of 76,818 KB)...
[ 67%] Downloading update (53,448 of 76,818 KB)...
[ 69%] Downloading update (54,842 of 76,818 KB)...
[ 71%] Downloading update (56,115 of 76,818 KB)...
[ 73%] Downloading update (57,397 of 76,818 KB)...
[ 74%] Downloading update (58,678 of 76,818 KB)...
[ 76%] Downloading update (60,088 of 76,818 KB)...
[ 78%] Downloading update (61,370 of 76,818 KB)...
[ 79%] Downloading update (62,664 of 76,818 KB)...
[ 81%] Downloading update (63,960 of 76,818 KB)...
[ 83%] Downloading update (65,386 of 76,818 KB)...
[ 85%] Downloading update (66,682 of 76,818 KB)...
[ 86%] Downloading update (67,986 of 76,818 KB)...
[ 88%] Downloading update (69,428 of 76,818 KB)...
[ 90%] Downloading update (70,738 of 76,818 KB)...
[ 92%] Downloading update (72,049 of 76,818 KB)...
[ 93%] Downloading update (73,360 of 76,818 KB)...
[ 95%] Downloading update (74,818 of 76,818 KB)...
[ 97%] Downloading update (76,143 of 76,818 KB)...
[ 99%] Downloading update (76,818 of 76,818 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching %appname%...
Redirecting stderr to '/app/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (28 of 51,208 KB)...
[  0%] Downloading update (1,139 of 51,208 KB)...
[  2%] Downloading update (2,611 of 51,208 KB)...
[  5%] Downloading update (4,549 of 51,208 KB)...
[  8%] Downloading update (6,573 of 51,208 KB)...
[ 12%] Downloading update (9,102 of 51,208 KB)...
[ 17%] Downloading update (11,434 of 51,208 KB)...
[ 22%] Downloading update (14,000 of 51,208 KB)...
[ 27%] Downloading update (16,352 of 51,208 KB)...
[ 31%] Downloading update (18,713 of 51,208 KB)...
[ 36%] Downloading update (21,074 of 51,208 KB)...
[ 41%] Downloading update (23,435 of 51,208 KB)...
[ 45%] Downloading update (25,810 of 51,208 KB)...
[ 50%] Downloading update (28,437 of 51,208 KB)...
[ 55%] Downloading update (30,831 of 51,208 KB)...
[ 60%] Downloading update (32,025 of 51,208 KB)...
[ 62%] Downloading update (33,349 of 51,208 KB)...
[ 65%] Downloading update (34,558 of 51,208 KB)...
[ 67%] Downloading update (35,767 of 51,208 KB)...
[ 69%] Downloading update (36,976 of 51,208 KB)...
[ 72%] Downloading update (38,311 of 51,208 KB)...
[ 74%] Downloading update (39,535 of 51,208 KB)...
[ 77%] Downloading update (40,758 of 51,208 KB)...
[ 79%] Downloading update (41,981 of 51,208 KB)...
[ 81%] Downloading update (43,330 of 51,208 KB)...
[ 84%] Downloading update (44,565 of 51,208 KB)...
[ 87%] Downloading update (45,802 of 51,208 KB)...
[ 89%] Downloading update (47,039 of 51,208 KB)...
[ 91%] Downloading update (48,402 of 51,208 KB)...
[ 94%] Downloading update (49,654 of 51,208 KB)...
[ 96%] Downloading update (50,905 of 51,208 KB)...
[ 99%] Downloading update (51,208 of 51,208 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
Redirecting stderr to '/app/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Warning: failed to init SDL thread priority manager: SDL not found
OK.
@sSteamCmdForcePlatformType linux
"@sSteamCmdForcePlatformType" = "linux"

Connecting anonymously to Steam Public...Logged in OK
Waiting for user info...OK
force_install_dir /steamcmd/rust
app_info_update 1
app_update 258550 validate
 Update state (0x5) verifying install, progress: 0.00 (23041 / 5419992681)
 Update state (0x5) verifying install, progress: 2.74 (148330205 / 5419992681)
 Update state (0x5) verifying install, progress: 9.31 (504846045 / 5419992681)
 Update state (0x5) verifying install, progress: 16.36 (886527709 / 5419992681)
 Update state (0x5) verifying install, progress: 22.29 (1208346557 / 5419992681)
 Update state (0x5) verifying install, progress: 29.41 (1594222525 / 5419992681)
 Update state (0x5) verifying install, progress: 35.99 (1950738365 / 5419992681)
 Update state (0x5) verifying install, progress: 42.72 (2315642813 / 5419992681)
 Update state (0x5) verifying install, progress: 49.44 (2679907638 / 5419992681)
 Update state (0x5) verifying install, progress: 56.18 (3044812086 / 5419992681)
 Update state (0x5) verifying install, progress: 63.10 (3420202294 / 5419992681)
 Update state (0x5) verifying install, progress: 69.63 (3773717122 / 5419992681)
 Update state (0x5) verifying install, progress: 76.16 (4128135810 / 5419992681)
 Update state (0x5) verifying install, progress: 83.17 (4507720322 / 5419992681)
 Update state (0x5) verifying install, progress: 90.06 (4881013378 / 5419992681)
 Update state (0x5) verifying install, progress: 94.80 (5138020803 / 5419992681)
 Update state (0x5) verifying install, progress: 98.85 (5357448177 / 5419992681)
 Update state (0x61) downloading, progress: 0.00 (0 / 6476288)
 Update state (0x61) downloading, progress: 0.00 (0 / 6476288)
 Update state (0x61) downloading, progress: 0.00 (0 / 6476288)
 Update state (0x101) committing, progress: 0.00 (0 / 6476288)
Success! App '258550' fully installed.
quit
CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 1 items discarded.
Downloading and installing latest Oxide..
x RustDedicated_Data/
x RustDedicated_Data/Managed/
x RustDedicated_Data/Managed/Assembly-CSharp.dll
x RustDedicated_Data/Managed/Facepunch.Console.dll
x RustDedicated_Data/Managed/Facepunch.Network.dll
x RustDedicated_Data/Managed/Facepunch.Rcon.dll
x RustDedicated_Data/Managed/Mono.Data.Tds.dll
x RustDedicated_Data/Managed/MySql.Data.dll
x RustDedicated_Data/Managed/NewAssembly.dll
x RustDedicated_Data/Managed/Oxide.Core.dll
x RustDedicated_Data/Managed/Oxide.CSharp.dll
x RustDedicated_Data/Managed/Oxide.MySql.dll
x RustDedicated_Data/Managed/Oxide.References.dll
x RustDedicated_Data/Managed/Oxide.Rust.dll
x RustDedicated_Data/Managed/Oxide.SQLite.dll
x RustDedicated_Data/Managed/Oxide.Unity.dll
x RustDedicated_Data/Managed/System.Configuration.Install.dll
x RustDedicated_Data/Managed/System.Data.dll
x RustDedicated_Data/Managed/System.Data.SQLite.dll
x RustDedicated_Data/Managed/System.Drawing.dll
x RustDedicated_Data/Managed/System.Runtime.Serialization.dll
x RustDedicated_Data/Managed/System.Transactions.dll
x RustDedicated_Data/Managed/x64/
x RustDedicated_Data/Managed/x64/libmonoboehm-2.0.so.1
x RustDedicated_Data/Managed/x64/libMonoPosixHelper.so
x RustDedicated_Data/Managed/x64/libsqlite3
x RustDedicated_Data/Managed/x64/libsqlite3.so
x RustDedicated_Data/Managed/x64/sqlite3.dll
x RustDedicated_Data/Managed/x86/
x RustDedicated_Data/Managed/x86/libmonoboehm-2.0.so.1
x RustDedicated_Data/Managed/x86/libMonoPosixHelper.so
x RustDedicated_Data/Managed/x86/libsqlite3
x RustDedicated_Data/Managed/x86/libsqlite3.so
x RustDedicated_Data/Managed/x86/mono-2.0.dll
x RustDedicated_Data/Managed/x86/msvcp140.dll
x RustDedicated_Data/Managed/x86/msvcr120.dll
x RustDedicated_Data/Managed/x86/sqlite3.dll
Starting web server..
Log rotation disabled!
Disabling internal stdout/stderr logging!
Starting Rust..
Found path: /steamcmd/rust/RustDedicated
Unable to open log file, exiting.
Exiting..