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

Cannot access /config/ServerSettings.15777 #60

Closed
fryfrog opened this issue Oct 30, 2021 · 7 comments
Closed

Cannot access /config/ServerSettings.15777 #60

fryfrog opened this issue Oct 30, 2021 · 7 comments

Comments

@fryfrog
Copy link
Contributor

fryfrog commented Oct 30, 2021

Describe the Bug

Success! App '1690800' already up to date.
chmod: cannot access '/config/ServerSettings.15777': No such file or directory

Your Runtime Command or Docker Compose File

sudo docker run --rm --name=satisfactory-server -h satisfactory-server -e DEBUG=false -e PUID=921 -e PGID=921 -e MAXPLAYERS=4 -e STEAMBETA=true -v /hot/docker/satisfactory-server:/config -p 7777:7777/udp -p 15000:15000/udp -p 15777:15777/udp

System Specs (please complete the following information):

LSB_VERSION=1.4
DISTRIB_ID=Arch
DISTRIB_RELEASE=rolling
DISTRIB_DESCRIPTION="Arch Linux"
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
LOGO=archlinux

Additional Context
I don't know what the ServerSettings.15777 file is actually for, but in my fork I've done fryfrog@42bbee4 which just touches the file and uses 644 instead of 775 and that gets me further. I haven't pull requested that because I'm not sure what it is for.

@wolveix
Copy link
Owner

wolveix commented Oct 30, 2021

Thanks for taking the time to submit this issue :)

That file is created by the game to store server settings, such as who the administrator is and user permissions. It should get created before that point on run.sh L40 | ln -sf /config/ServerSettings.15777 "${GAMESAVESDIR}/ServerSettings.15777".

I've run this several times and haven't run into the issue you're experiencing at all.

I'll do some testing and report back.

@fryfrog
Copy link
Contributor Author

fryfrog commented Oct 30, 2021

Ahh, then that might be due to the next issue I was going to ask about which is mine is core dumping w/ the above work around, so I'll continue to fiddle w/ stuff. Do you Discord or IRC or anything?

[2021.10.30-14.58.46:978][  0]LogActor: Warning: SetReplicates called on non-initialized actor Default__FGSimulatedWheeledVehicle. Directly setting bReplicates is the correct procedure for pre-init actors.
[2021.10.30-14.58.47:128][  0]LogNiagara: Warning: NiagaraSystem /Game/FactoryGame/VFX/Factory/Doors/NS_DoorClose_01.NS_DoorClose_01 IsReadyToRunInternal() failed due to missing SystemScript.  Spawn[<none>] Update[<none>]
[2021.10.30-14.58.48:367][  0]LogPakFile: Precache HighWater 16MB

[2021.10.30-14.58.48:367][  0]LogPakFile: Precache HighWater 32MB

[2021.10.30-14.58.48:367][  0]LogPakFile: PrecaSignal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554
che HighWater 48MB

[2021.10.30-14.58.48:367][  0]LogPakFile: Precache HighWater 64MB

[2021.10.30-14.58.48:367][  0]LogNiagara: Warning: NiagaraSystem /Game/FactoryGame/VFX/World/AmbientLife/Flies/NS_Fireflies_01.NS_Fireflies_01 IsReadyToRunInternal() failed due to missing SystemScript.  Spawn[<none>] Update[<none>]
[2021.10.30-14.58.48:367][  0]LogNiagara: Warning: NiagaraSystem /Game/FactoryGame/VFX/World/AmbientLife/Bats/NS_Bats_01.NS_Bats_01 IsReadyToRunInternal() failed due to missing SystemScript.  Spawn[<none>] Update[<none>]
[2021.10.30-14.58.48:524][  0]GameAnalyticsModule: Display: GameAnalyticsModule has started!
[2021.10.30-14.58.48:524][  0]LogStreaming: Warning: Failed to read file '../../../FactoryGame/Saved/SaveGames/GameAnalytics.sav' error.
[2021.10.30-14.58.48:662][  0]LogAudioCaptureCore: Display: No Audio Capture implementations found. Audio input will be silent.
[2021.10.30-14.58.48:662][  0]LogAudioCaptureCore: Display: No Audio Capture implementations found. Audio input will be silent.
[2021.10.30-14.58.48:687][  0]LogUObjectArray: 49601 objects as part of root set at end of initial load.
[2021.10.30-14.58.48:687][  0]LogUObjectArray: 2 objects are not in the root set, but can never be destroyed because they are in the DisregardForGC set.
[2021.10.30-14.58.48:687][  0]LogUObjectAllocator: 15768640 out of 0 bytes used by permanent object pool.
[2021.10.30-14.58.48:687][  0]LogUObjectArray: CloseDisregardForGC: 49601/49601 objects in disregard for GC pool
[2021.10.30-14.58.48:688][  0]LogEngine: Initializing Engine...
[2021.10.30-14.58.48:690][  0]LogStats: UGameplayTagsManager::InitializeManager -  0.001 s
[2021.10.30-14.58.48:700][  0]LogInit: Initializing FReadOnlyCVARCache
[2021.10.30-14.58.48:701][  0]LogNetVersion: Set ProjectVersion to 0.0.1.0. Version Checksum will be recalculated on next use.
[2021.10.30-14.58.48:701][  0]LogInit: Texture streaming: Disabled
[2021.10.30-14.58.48:734][  0]LogOnline: OSS: Creating online subsystem instance for: STEAM
[2021.10.30-14.58.48:735][  0]LogOnline: Warning: STEAM: Steam API failed to initialize!
[2021.10.30-14.58.48:735][  0]LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
[2021.10.30-14.58.48:735][  0]LogOnline: OSS: Creating online subsystem instance for: STEAM
[2021.10.30-14.58.48:735][  0]LogOnline: Warning: STEAM: Steam API failed to initialize!
[2021.10.30-14.58.48:735][  0]LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
[2021.10.30-14.58.48:735][  0]LogOnline: OSS: Creating online subsystem instance for: STEAM
[2021.10.30-14.58.48:735][  0]LogOnline: Warning: STEAM: Steam API failed to initialize!
[2021.10.30-14.58.48:735][  0]LogOnline: Display: STEAM: OnlineSubsystemSteam::Shutdown()
CommonUnixCrashHandler: Signal=11
[2021.10.30-14.58.48:762][  0]LogCore: === Critical error: ===
Unhandled Exception: SIGSEGV: invalid attempt to read memory at address 0x0000000000000070

[2021.10.30-14.58.48:762][  0]LogCore: Fatal error!

0x00007fa65eb088cf libUE4Server-FactoryGame-Linux-Shipping.so!UFGServerSubsystem::Initialize(FSubsystemCollectionBase&) [D:/ws/SB-160502110050-fad/UE4/Games/FactoryGame/Source/FactoryGame/Private/Server/FGServerSubsystem.cpp:170]
0x00007fa68772940a libUE4Server-Engine-Linux-Shipping.so!FSubsystemCollectionBase::AddAndInitializeSubsystem(UClass*) [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Engine/Private/Subsystems/SubsystemCollection.cpp:209]
0x00007fa687728a3e libUE4Server-Engine-Linux-Shipping.so!FSubsystemCollectionBase::Initialize(UObject*) [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Engine/Private/Subsystems/SubsystemCollection.cpp:132]
0x00007fa68715f56f libUE4Server-Engine-Linux-Shipping.so!UGameInstance::Init() [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Engine/Private/GameInstance.cpp:99]
0x00007fa65e8d2c51 libUE4Server-FactoryGame-Linux-Shipping.so!UFGGameInstance::Init() [D:/ws/SB-160502110050-fad/UE4/Games/FactoryGame/Source/FactoryGame/Private/FGGameInstance.cpp:78]
0x00007fa687139fe3 libUE4Server-Engine-Linux-Shipping.so!UGameEngine::Init(IEngineLoop*) [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Engine/Private/GameEngine.cpp:1107]
0x00007fa65e8d26ba libUE4Server-FactoryGame-Linux-Shipping.so!UFGGameEngine::Init(IEngineLoop*) [D:/ws/SB-160502110050-fad/UE4/Games/FactoryGame/Source/FactoryGame/Private/FGGameEngine.cpp:40]
0x0000000000214c4e UE4Server-Linux-Shipping!FEngineLoop::Init() [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp:4008]
0x000000000021623c UE4Server-Linux-Shipping!GuardedMain(char16_t const*) [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Launch/Private/Launch.cpp:153]
0x00007fa685212dc5 libUE4Server-UnixCommonStartup-Linux-Shipping.so!CommonUnixMain(int, char**, int (*)(char16_t const*), void (*)()) [D:/ws/SB-160502110050-fad/UE4/Engine/Source/Runtime/Unix/UnixCommonStartup/Private/UnixCommonStartup.cpp:264]
0x00007fa68506609b libc.so.6!__libc_start_main(+0xea)
0x0000000000214709 UE4Server-Linux-Shipping!_start()

[2021.10.30-14.58.48:779][  0]LogExit: Executing StaticShutdownAfterError
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
/home/steam/run.sh: line 53:    66 Segmentation fault      (core dumped) Engine/Binaries/Linux/UE4Server-Linux-Shipping FactoryGame -log -NoSteamClient -unattended

@wolveix
Copy link
Owner

wolveix commented Oct 30, 2021

Huh, seems like you're getting all of the fun issues! Run the container again but with -e DEBUG=true and paste the output here?

Yeah sure thing, you can reach me on DIscord as Wolveix#2211 :)

@fryfrog
Copy link
Contributor Author

fryfrog commented Oct 30, 2021

I've included the requested output below and also a link to a log of a clean startup where this occurs.

Debugging enabled (the container will exit after printing the debug info)

Printing environment variables:
declare -x DEBUG="true"
declare -x GAMECONFIGDIR="/config/gamefiles/FactoryGame/Saved"
declare -x GAMESAVESDIR="/home/steam/.config/Epic/FactoryGame/Saved/SaveGames"
declare -x HOME="/root"
declare -x HOMEDIR="/home/steam"
declare -x HOSTNAME="satisfactory-server"
declare -x MAXPLAYERS="4"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
declare -x PGID="921"
declare -x PUID="921"
declare -x PWD="/config"
declare -x SHLVL="1"
declare -x SKIPUPDATE="false"
declare -x STEAMAPPID="1690800"
declare -x STEAMBETA="true"
declare -x STEAMCMDDIR="/home/steam/steamcmd"
declare -x USER="steam"


Disk usage:
257/315GB (1%)

Curent user:
uid=0(root) gid=0(root) groups=0(root)

Proposed user:
uid=921(?) gid=921(?) groups=921(?)

Exiting...

https://0bin.net/paste/qJOzPRGW#RBhdm5IvITyJ0-W2odFu7AienkcxPQNKghR7b3qadeW

Edit: Forgot to redirect stderr -> stdout so the chmod error was missing.

@fryfrog
Copy link
Contributor Author

fryfrog commented Oct 30, 2021

It seems like at the point the ln is done, the only thing that would have run is the steam update. Having no experience w/ this, I wouldn't expect download/update to create config files... I'd expect that from the first run?

https://github.com/wolveix/satisfactory-server/blob/main/run.sh#L31

@fryfrog
Copy link
Contributor Author

fryfrog commented Oct 30, 2021

For fun, I tested it on my much wimpier test server and it slowly gets to the same point of...

Success! App '1690800' fully installed.
chmod: cannot access '/config/ServerSettings.15777': No such file or directory

So I think maybe this file just doesn't exist until the gameserver is actually run?

@wolveix
Copy link
Owner

wolveix commented Oct 30, 2021

Yeah you're totally right. I just tested without the file there and it broke. It works fine as it is since ln can work even if the file doesn't exist yet. But then when you try to chmod it, it fails since that won't work unless the file is there aha.

wolveix added a commit that referenced this issue Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants