Docker container "stuck" preallocating files when using NFS mounts for /config #370
Replies: 2 comments 1 reply
-
Hey @yannickb85, sorry to hear you're experiencing issues when using NFS. Unfortunately, there are too many variables at play here for me to easily help you diagnose the issue. Of course it is an infrastructure issue, so it's out-of-scope for this repo. I converted your issue into a discussion, in the hopes that someone else may be able to assist you further. I'd start with the usual suspects, being disk permissions and such. The issue is specifically with |
Beta Was this translation helpful? Give feedback.
-
I read somewhere that file allocation (falloc) works differently on nfs3 vs nfs4.x and the steam client uses that to reserve space on the disk. That made me check how the mounts were configured and they were mounted like this:
Notice mountvers=3 I created an extra storageclass with mountoptions to force being mounted with nfs4.1 and it works! So if that might help anyone here is the storage class that I am using.
Thank you @wolveix , we're having a blast with the dedicated server! |
Beta Was this translation helpful? Give feedback.
-
Describe the Bug
I'm able to run my exact same setup minus the NFS mounts but I'm failing to have it working using NFS mounts for the /config and /config/gamefiles folders. I also tried only a single mount for /config with the same results.
The volumes appear to be mounted correctly and permissions seems fine as I see folders and a few files being created in the startup process.
I also tried combinations of ROOTLESS: false + running the container as root and get the same result.
Your Runtime Command or Docker Compose File
helm install satisfactory k8s-at-home/satisfactory -f values.yaml -n satisfactory2
values.yaml
deployment.yaml
pvc-config.yaml
pv-config.yaml
pvc-server-cache.yaml
pv-server-cache.yaml
Debug Output
Run the container with
DEBUG=true
as an environment variable, and it'll print out the system specs requested below, aswell as a bunch of information about your container (version, environment variables, etc.)
System Specs (please complete the following information):
===== START ISSUE REPORT =====
OS: Linux 6.7.4-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Feb 5 22:21:14 UTC 2024 x86_64 GNU/Linux
CPU: QEMU Virtual CPU version 2.5+
BIOS pc-i440fx-8.1 CPU @ 2.0GHz
RAM: 13GB/15GB
HDD: 27GB/100GB (27% used)
===== END ISSUE REPORT =====
NFS Server Disk Space
Disks are SSD type disks.
root@nfs:/var/nfs/general# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/fedora-nfs 50G 4.3G 46G 9% /var/nfs/general
Logs
===== Satisfactory Server 1.8.9 =====
https://github.com/wolveix/satisfactory-server
WARNING: VMOVERRIDE is enabled, skipping CPU model check. Satisfactory might crash!
Checking available memory: 13GB detected
Clearing old Satisfactory logs (set LOG=true to disable this)
Setting autosave number to 5
Setting max objects to 2162688
Setting max tick rate to 30
Setting server streaming to 1
Setting timeout to 30
Setting max players to 4
Checking available storage: 45GB detected
Downloading the latest version of the game...
Redirecting stderr to '/home/steam/.steam/steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[ 0%] Checking for available update...
[----] Downloading update (0 of 48,188 KB)...
[ 0%] Downloading update (0 of 48,188 KB)...
[ 0%] Downloading update (0 of 48,188 KB)...
[ 0%] Downloading update (1,852 of 48,188 KB)...
[ 3%] Downloading update (5,789 of 48,188 KB)...
[ 12%] Downloading update (9,077 of 48,188 KB)...
[ 18%] Downloading update (11,773 of 48,188 KB)...
[ 24%] Downloading update (14,320 of 48,188 KB)...
[ 29%] Downloading update (16,675 of 48,188 KB)...
[ 34%] Downloading update (19,467 of 48,188 KB)...
[ 40%] Downloading update (21,932 of 48,188 KB)...
[ 45%] Downloading update (24,364 of 48,188 KB)...
[ 50%] Downloading update (26,750 of 48,188 KB)...
[ 55%] Downloading update (29,173 of 48,188 KB)...
[ 60%] Downloading update (31,831 of 48,188 KB)...
[ 66%] Downloading update (34,360 of 48,188 KB)...
[ 71%] Downloading update (36,775 of 48,188 KB)...
[ 76%] Downloading update (39,301 of 48,188 KB)...
[ 81%] Downloading update (40,924 of 48,188 KB)...
[ 84%] Downloading update (42,135 of 48,188 KB)...
[ 87%] Downloading update (43,524 of 48,188 KB)...
[ 90%] Downloading update (44,789 of 48,188 KB)...
[ 92%] Downloading update (46,072 of 48,188 KB)...
[ 95%] Downloading update (47,421 of 48,188 KB)...
[ 98%] Downloading update (48,188 of 48,188 KB)...
[100%] Download Complete.
[----] Applying 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...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...
Redirecting stderr to '/home/steam/.steam/steam/logs/stderr.txt'
Logging directory: '/home/steam/.steam/steam/logs'
[ 0%] Checking for available updates...
[----] Verifying installation...
[ 0%] Downloading update...
[ 0%] Checking for available updates...
[----] Download complete.
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
UpdateUI: skip show logosteamcmd.sh[11]: Restarting steamcmd by request...
Redirecting stderr to '/home/steam/.steam/steam/logs/stderr.txt'
Logging directory: '/home/steam/.steam/steam/logs'
[ 0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1731433425
-- type 'quit' to exit --
Loading Steam API...OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Update state (0x11) preallocating, progress: 12.24 (527065982 / 4305824412)
Update state (0x11) preallocating, progress: 55.14 (2374216283 / 4305824412)
Update state (0x11) preallocating, progress: 74.31 (3199541115 / 4305824412) <-- Always gets stuck around here (% varies)
Mounts content
After starting the container here is the volume content
cat satisfactory2-debug-logs/tree-nfs-satisfactory2-satisfactory-config-pvc-1ffe6478-7142-40ef-a267-5d13da0eab8b.txt
cat satisfactory2-debug-logs/tree-nfs-satisfactory2-satisfactory-server-cache-pvc-e52b4edd-7504-487b-be5f-717a5ff87d4d.txt
Additional context
As previously mentioned, I am able to successfully start this exact setup without the volume mounts. Which means I had to manually create a cron+script to backup/restore saves/blueprints in the meantime.
I'm suspecting an NFS issue here since the setup works without it, but unsure what I'm looking for / if I'm looking at the correct issue.
Beta Was this translation helpful? Give feedback.
All reactions