CM2Walki / Squad

Dockerfile for automated build of a Squad gameserver: https://hub.docker.com/r/cm2network/squad/
https://CM2.Network
MIT License
36 stars 20 forks source link

Missing Files causing container crash #25

Open MartinPezet opened 1 year ago

MartinPezet commented 1 year ago

When started the container will download all the required files from steam cmd, then stop with the below error:

Clearing Mods...
find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
exited with code 127

This will not allow for persistent volumes either so I cannot give you what it has downloaded and what it hasn't

Here is my docker-compose:

version: "3"

services:
  squad:
    image: cm2network/squad
    stdin_open: true
    tty: true
    restart: always
    network_mode: "host"
    volumes:
      - /squad/:/home/steam/squad-dedicated/

    environment:
      - PORT=7787
      - QUERYPORT=27165
      - RCONPORT=21114
      - FIXEDMAXPLAYERS=80

    ports:
      - 7787:7787/tcp
      - 7788:7788/tcp
      - 27165:27165/tcp
      - 27166:27166/tcp
      - 21114:21114/tcp
      - 7787:7787/udp
      - 7788:7788/udp
      - 27165:27165/udp
      - 27166:27166/udp
      - 21114:21114/udp

Am I missing anything? @CM2Walki

CM2Walki commented 1 year ago

Seems like the developers changed some paths. I'll have to look into it.

CM2Walki commented 1 year ago

I wasn't able to replicate the issue on my end. The server went past Clearing Mods... and started up successfully.

For your setup the issue is likely that the installation didn't complete successfully and therefor the path doesn't exist. Could you post your full container startup log (including steamcmd)?

igorzab commented 1 year ago

I have the same issue, I get ERROR! Failed to install app '403240' (Requires 64bit operating system) during the installation.

Cevap05 commented 1 year ago

I wasn't able to replicate the issue on my end. The server went past Clearing Mods... and started up successfully.

For your setup the issue is likely that the installation didn't complete successfully and therefor the path doesn't exist. Could you post your full container startup log (including steamcmd)?

Hey there I am running into the same issue. I would like to ultimately do with with another Unreal Engine game, but wanted a base to work with so chose to use this Squad one. I simply ran the docker-compose file example from Squad template page you have. I receive same error. I will provide the crash (well not even booting) log here. Hoping you can assist as I would like this to work and use as basis for another game. Thanks!

My guess the image data is not actually being pulled in? Not sure why.

-PS: Well thats odd because the image size seems to be fine?

REPOSITORY         TAG       IMAGE ID       CREATED         SIZE
cm2network/squad   latest    2de5dd3851d2   2 hours ago     428MB
[+] Running 6/6
 ✔ squad 5 layers [⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                 11.1s 
   ✔ 9e3ea8720c6d Pull complete                                                                                   4.2s 
   ✔ 21962b6762b9 Pull complete                                                                                  10.5s 
   ✔ 4f4fb700ef54 Pull complete                                                                                  10.6s 
   ✔ b930d3d71017 Pull complete                                                                                  10.7s 
   ✔ 84d696db6b16 Pull complete                                                                                  10.8s 
[+] Running 1/1
 ✔ Container squad  Created                                                                                       0.2s 
Attaching to squad
squad  | Loading Steam Release Branch
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | [  0%] Downloading update...
squad  | [  0%] Checking for available updates...
squad  | [----] Download complete.
squad  | [----] Extracting package...
squad  | [----] Extracting package...
squad  | [----] Extracting package...
squad  | [----] Extracting package...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Installing update...
squad  | [----] Cleaning up...
squad  | [----] Update complete, launching Steamcmd...
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.56 (72573740 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.00 (0 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.56 (72573740 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.56 (72573740 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.00 (0 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.56 (72573740 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
quit
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.56 (72573740 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
squad  | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
squad  | [  0%] Checking for available updates...
squad  | [----] Verifying installation...
squad  | Steam Console Client (c) Valve Corporation - version 1682708339
squad  | -- type 'quit' to exit --
squad  | Loading Steam API...OK
squad  | 
squad  | Connecting anonymously to Steam Public...OK
squad  | Waiting for client config...OK
squad  | Waiting for user info...OK
squad  |  Update state (0x11) preallocating, progress: 0.00 (0 / 12861565037)
squad  | Error! App '403240' state is 0x212 after update job.
squad  | sed: can't read /home/steam/squad-dedicated/SquadGame/ServerConfig/Rcon.cfg: No such file or directory
squad  | Clearing Mods...
squad  | find: '/home/steam/squad-dedicated/SquadGame/Plugins/Mods/*': No such file or directory
squad  | bash: /home/steam/squad-dedicated/SquadGameServer.sh: No such file or directory
squad exited with code 127
^CGracefully stopping... (press Ctrl+C again to force)
Aborting on container exit...
[+] Running 1/0
 ✔ Container squad  Stopped                                                                                       0.0s 
canceled
Cevap05 commented 1 year ago

Error! App '403240' state is 0x212 after update job.

UPDATE: Supposedly this error may have to do with "Low Storage Space". I'm on a very small 10GB VM on AWS just to try this out. I will try out this tomorrow on my actual HOME vm where I have much more storage space. If this is the problem then I will message here.

Cevap05 commented 1 year ago

So, to update. I created a new VM with 200gb storage. Did not run into that error anymore previously mentioned. Although I did run into the "Code 127" error when I tried to launch the server using the docker-compose example mentioned in the front page. Rather I ran the basic docker run command on the front page being:

docker run -d --net=host -v /home/steam/squad-dedicated/ --name=squad-dedicated cm2network/squad

That seemed to work fine. Using the default ports, just required port forwarding on proper ports on router and good to go.