jammsen / docker-sons-of-the-forest-dedicated-server

Docker container to easily provision and manage Sons of the Forest Dedicated Server with Wine
https://hub.docker.com/r/jammsen/sons-of-the-forest-dedicated-server
134 stars 19 forks source link

Failing to start gameserver #18

Closed norimicry closed 11 months ago

norimicry commented 1 year ago

Getting stuck in a loop when trying to start the game server. This is on a fresh installation. Running on Windows 11 with WSL2. Here is the error:


2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | Redirecting stderr to '/root/Steam/logs/stderr.txt'
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | [  0%] Checking for available updates...
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | [----] Verifying installation...
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | Steam Console Client (c) Valve Corporation - version 1689034828
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | -- type 'quit' to exit --
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | OK
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | @sSteamCmdForcePlatformType windows
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | "@sSteamCmdForcePlatformType" = "windows"
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | force_install_dir /sonsoftheforest
2023-07-16 13:52:24 sons-of-the-forest-dedicated-server  | 
2023-07-16 13:52:26 sons-of-the-forest-dedicated-server  | Connecting anonymously to Steam Public...OK
2023-07-16 13:52:26 sons-of-the-forest-dedicated-server  | Waiting for client config...OK
2023-07-16 13:52:26 sons-of-the-forest-dedicated-server  | Waiting for user info...OK
2023-07-16 13:52:26 sons-of-the-forest-dedicated-server  | app_update 2465200 validate
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 0.08 (2515992 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 6.97 (229916103 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 19.01 (627602703 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 32.29 (1065885967 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 45.54 (1503142767 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 57.65 (1902902682 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 70.62 (2330895571 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 84.02 (2773394715 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 92.09 (3039684523 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  |  Update state (0x5) verifying install, progress: 96.37 (3180891682 / 3300729847)
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  | Success! App '2465200' fully installed.
2023-07-16 13:52:45 sons-of-the-forest-dedicated-server  | quit
2023-07-16 13:52:47 sons-of-the-forest-dedicated-server  | 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
2023-07-16 13:52:48 sons-of-the-forest-dedicated-server  | 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
2023-07-16 13:52:48 sons-of-the-forest-dedicated-server  | 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
2023-07-16 13:52:48 sons-of-the-forest-dedicated-server  | 0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
2023-07-16 13:52:51 sons-of-the-forest-dedicated-server  | >>> Starting the gameserver
2023-07-16 13:52:51 sons-of-the-forest-dedicated-server  | 0110:err:module:LdrInitializeThunk "UnityPlayer.dll" failed to initialize, aborting
2023-07-16 13:52:51 sons-of-the-forest-dedicated-server  | 0110:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\sonsoftheforest\\SonsOfTheForestDS.exe" failed, status c0000005```
jammsen commented 1 year ago

The log looks fine to me, that dll error you might want to bring up in the steam dedicated support forum: https://steamcommunity.com/app/1326470/discussions/0/3808404524164518482/

Im supporting the Docker-Part of the gameserver, but i dont write the gameserver itself.

norimicry commented 1 year ago

Same files run fine without going through Docker. Wondering if its a wine issue.

jammsen commented 1 year ago

Try fresh-install with docker system prune and make sure you download my image fresh again.

norimicry commented 1 year ago

Steps I've just taken:

  1. docker system prune and clear all directory / installations
  2. docker pull jammsen/sons-of-the-forest-dedicated-server
  3. Create /game & /steamcmd directories
  4. In server directory, run docker run --rm -i -t -p 8766:8766/udp -p 27016:27016/udp -p 9700:9700/udp -v $(pwd)/steamcmd:/steamcmd -v $(pwd)/game:/sonsoftheforest --name sons-of-the-forest-dedicated-server jammsen/sons-of-the-forest-dedicated-server:latest

Edit: The UnityPlayer.dll file in question is there and matches the one present on my local installation. Just doesn't seem to be processed by Wine.


>>> Doing an update of the gameserver
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/root/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1689034828
-- type 'quit' to exit --
Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
OK
@sSteamCmdForcePlatformType windows
"@sSteamCmdForcePlatformType" = "windows"
force_install_dir /sonsoftheforest

Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
app_update 2465200 validate
 Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
 Update state (0x5) verifying install, progress: 0.80 (26394342 / 3300729847)
 Update state (0x5) verifying install, progress: 6.63 (218848020 / 3300729847)
 Update state (0x5) verifying install, progress: 18.95 (625325253 / 3300729847)
 Update state (0x5) verifying install, progress: 32.17 (1061846869 / 3300729847)
 Update state (0x5) verifying install, progress: 44.46 (1467384342 / 3300729847)
 Update state (0x5) verifying install, progress: 54.82 (1809557386 / 3300729847)
 Update state (0x5) verifying install, progress: 64.17 (2117935022 / 3300729847)
 Update state (0x5) verifying install, progress: 77.48 (2557288430 / 3300729847)
 Update state (0x5) verifying install, progress: 89.36 (2949689192 / 3300729847)
 Update state (0x1) running, progress: 0.00 (0 / 0)
Success! App '2465200' fully installed.
quit
>>> Checking if Wine is set in bashrc
>>> Setting up Wine in bashrc
>>> Setting up WineConfig and waiting 15 seconds
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
>>> Starting the gameserver
0118:err:module:LdrInitializeThunk "UnityPlayer.dll" failed to initialize, aborting
0118:err:module:LdrInitializeThunk Initializing dlls for L"Z:\\sonsoftheforest\\SonsOfTheForestDS.exe" failed, status c0000005```
jammsen commented 1 year ago

That looks weird to me, you have multiple times errors where steamcmd cant open a file and the gameserver failed to do something with a file. Whats your User/Permission schema on this? Does Docker run rootfull or root-less? Post a "ls -alR" on the parent directory please.

jammsen commented 1 year ago

Any updates on this? @cavazoshj

norimicry commented 1 year ago

@jammsen i switched to running this on a physical Ubuntu server build with docker and was able to run it successfully with no problems. Seems like a WSL issue by that logic. If you’d like me to provide that info for your own reference, I still can.

jammsen commented 12 months ago

If you want to provide it for others feel free, always welcome to have a "good answer" at the end of a problem you know?

Feel free to close this issue after that.

Also very happy to hear it works after going to a more native Docker-Solution, WSL is cool for some things about real hosting should be done on Debian/Ubuntu with current Docker version if you ask for "my" opinion. 😎