wolveix / satisfactory-server

A Dockerized version of the Satisfactory dedicated server
https://hub.docker.com/r/wolveix/satisfactory-server
MIT License
1.35k stars 146 forks source link

steamcmd.sh is getting Segmentation fault and Docker container won't start. #188

Closed Reticulmz closed 1 year ago

Reticulmz commented 1 year ago

Describe the Bug steamservice.so not found libSDL3.so is missing steamcmd.sh causes SegmentationFault and Docker container loops

2023-06-15 23:39:47 satisfactory-server  | Waiting for user info...2023-06-15T14:39:49.670150082Z Checking available memory...22GB detected
2023-06-15 23:39:49 satisfactory-server  | Setting autosave number to 30
2023-06-15 23:39:49 satisfactory-server  | Setting crash reporting to True
2023-06-15 23:39:49 satisfactory-server  | Setting max objects number to 2162688
2023-06-15 23:39:49 satisfactory-server  | Setting max tick rate to 120
2023-06-15 23:39:49 satisfactory-server  | Setting timeout number to 30
2023-06-15 23:39:49 satisfactory-server  | Setting max players to 4
2023-06-15 23:39:49 satisfactory-server  | Setting autosave interval to 300s
2023-06-15 23:39:49 satisfactory-server  | Setting disable seasonal events to 0
2023-06-15 23:39:49 satisfactory-server  | Setting network quality number to 3
2023-06-15 23:39:49 satisfactory-server  | Setting auto pause to False
2023-06-15 23:39:49 satisfactory-server  | Setting autosave on disconnect to True
2023-06-15 23:39:49 satisfactory-server  | Checking available storage...927GB detected
2023-06-15 23:39:49 satisfactory-server  | Downloading the latest version of the game...
2023-06-15 23:39:50 satisfactory-server  | Redirecting stderr to '/home/steam/.steam/logs/stderr.txt'
2023-06-15 23:39:50 satisfactory-server  | Looks like steam didn't shutdown cleanly, scheduling immediate update check
2023-06-15 23:39:50 satisfactory-server  | [  0%] Checking for available updates...
2023-06-15 23:39:50 satisfactory-server  | [----] Verifying installation...
2023-06-15 23:39:50 satisfactory-server  | Steam Console Client (c) Valve Corporation - version 1686781763
2023-06-15 23:39:50 satisfactory-server  | -- type 'quit' to exit --
2023-06-15 23:39:50 satisfactory-server  | Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
2023-06-15 23:39:50 satisfactory-server  | dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory
2023-06-15 23:39:50 satisfactory-server  | OK
2023-06-15 23:39:50 satisfactory-server  | 
2023-06-15 23:39:53 satisfactory-server  | Connecting anonymously to Steam Public...OK
2023-06-15 23:39:53 satisfactory-server  | Waiting for client config...OK
2023-06-15 23:40:21 satisfactory-server  | /home/steam/.steam/steamcmd/steamcmd.sh: line 39:    51 Segmentation fault      $DEBUGGER "$STEAMEXE" "$@"

Docker Compose

version: '3'
services:
    satisfactory-server:
        container_name: 'satisfactory-server'
        hostname: 'satisfactory-server'
        image: 'wolveix/satisfactory-server:latest'
        ports:
            - '7777:7777/udp'
            - '15000:15000/udp'
            - '15777:15777/udp'
        volumes:
            - './config:/config'
        environment:
            - MAXPLAYERS=4
            - PGID=1000
            - PUID=1000
            - STEAMBETA=false
            - AUTOSAVEONDISCONNECT=true
            - AUTOPAUSE=false
            - AUTOSAVEINTERVAL=300
            - TIMEOUT=30
            - AUTOSAVENUM=30
        restart: unless-stopped
        deploy:
          resources:
            limits:
              memory: 16G
            reservations:
              memory: 12G

System Specs If you're on Linux, just paste the following block as a single command, and paste the output here.

===== START ISSUE REPORT =====
OS:  Linux ReticulmzMain 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CPU: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
RAM: 11GB/24GB
HDD: 28GB/1007GB (3% used)
===== END ISSUE REPORT =====
wolveix commented 1 year ago

Hey @Reticulmz. This is a steamcmd error, not an issue with our image. I can see that you're using WSL2, are you using Docker installed within Linux? Or are you using Docker for Desktop through Windows? The latter is generally the preferred option :)

Reticulmz commented 1 year ago

Running containers from Docker Desktop on Windows using Docker Desktop's WSL Integration

wolveix commented 1 year ago

Good. Try removing the volume mount to see whether that makes a difference?

deathart commented 1 year ago

Hello i same error in debian:

Loading Steam API...dlmopen steamservice.so failed: steamservice.so: cannot open shared object file: No such file or directory
dlmopen libSDL3.so.0 failed: libSDL3.so.0: cannot open shared object file: No such file or directory
OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK

Edit: If i use image v1.5.0 my probleme is resolved

wolveix commented 1 year ago

@deathart that's not quite the same issue. I suspect you were using a much older image, and manually specifying v1.5.0 resolved this. Please confirm this by trying v1.5.1

Reticulmz commented 1 year ago

I tried deleting the volume mount, but it still crashes.

Reticulmz commented 1 year ago

@wolveix I reinstalled Docker and it fixed it. Thank you for your support!

wolveix commented 1 year ago

@Reticulmz glad you got it figured out! :)