Closed mapl closed 9 years ago
Does that file exist, sounds like it isn't being installed properly leading to an error.
just created a new MineCraft server without any issues
srcds installation script creates a docker container which has no network access:
installer:~$ mkdir steamcmd && cd steamcmd
installer:~$ curl -O http://media.steampowered.com/installer/steamcmd_linux.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3096k 100 3096k 0 0 22.5M 0 --:--:-- --:--:-- --:--:-- 22.7M
installer:~$ tar -xzvf steamcmd_linux.tar.gz && rm -rf steamcmd_linux.tar.gz
linux32/
linux32/libstdc++.so.6
linux32/steamcmd
steamcmd.sh
steam.sh
installer:~$ cd /home/pp-tf2srv_yt8ir/public
installer:~$ chown -R pp-tf2srv_yt8ir:scalesuser *
installer:~$ chmod +x steamcmd.sh
installer:~$ docker start pp-tf2srv_yt8ir
pp-tf2srv_yt8ir
installer:~$ docker exec -it pp-tf2srv_yt8ir steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/container +app_update 232250 +quit
Redirecting stderr to '/home/container/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[ 0%] Checking for available update...
SteamUpdater: Error: Download failed: http error 0
[ 0%] Download Complete.
[----] Verifying installation...
[ 0%] Downloading Update...
[ 0%] Checking for available update...
SteamUpdater: Error: Download failed: http error 0
[ 0%] Download Complete.
SteamUpdater: Error: Steam needs to be online to update. Please confirm your network connection and try again.
[ 0%] !!! Fatal Error: Steam needs to be online to update. Please confirm your network connection and try again.
installer:~$ docker stop pp-tf2srv_yt8ir
pp-tf2srv_yt8ir
installer:~$ cd /home/pp-tf2srv_yt8ir/public
installer:~$ mkdir -p .steam/sdk32
installer:~$ cp steamcmd/linux32/steamclient.so .steam/sdk32/steamclient.so
cp: cannot stat 'steamcmd/linux32/steamclient.so': No such file or directory
installer:~$ chown -R pp-tf2srv_yt8ir:scalesuser *
installer:~$ exit 0
Enhancement Request: log issues like network issues during the execution of - [VERBOSE] Running major installer process - and print them into scales log.
[VERBOSE] Installer process has completed - this message should not occur if something critical happens inside the install shell script
Thanks for the log, I'll take a look when I get a chance. Is it possible that this was an error due to a network issue not caused by docker/Scales?
Also, I'll add it to my notes to have Scales log that type of stuff to files better.
Im unable to reproduce your error on my machine.
Additionally, support for logging the installer was added in 777f0cd
oh this was quick :) well, I installed debian 8 on a vm with scales and had also no issues (establishing connection from within the docker container to the internet) but on the real server I there is the connection issue.
Will look into this
ok found the issue,
The gameroot provider is running a special cronjob every minute which also removes any tun interfaces. I disabled the cronjob and networking of docker container starts working again!
btw: your installer log works fine :)
Thank you
Web GUI (Control Server):
Server is starting... exec: "./srcds_run": stat ./srcds_run: no such file or directory [Scales] [WARNING] This server has been detected as crashed by the management daemon. Restarting now... exec: "./srcds_run": stat ./srcds_run: no such file or directory [Scales] [WARNING] This server has been detected as crashed by the management daemon. The restart process is being skipped due to the frequency at which this server is crashing (< 60 seconds between crashes).
verbose log on cli:
[2015-11-06 00:47:59] [INFO] + ========================================== + [2015-11-06 00:47:59] [INFO] | Scales logs all information, (inc. errors) | [2015-11-06 00:47:59] [INFO] | into the logs/ directory. Please check | [2015-11-06 00:47:59] [INFO] | there before asking for help with bugs. | [2015-11-06 00:47:59] [INFO] | | [2015-11-06 00:47:59] [INFO] | Submit bug reports at the following link: | [2015-11-06 00:47:59] [INFO] | https://github.com/PufferPanel/Scales | [2015-11-06 00:47:59] [INFO] + ========================================== + [2015-11-06 00:47:59] [INFO] Loaded plugin bungeecord.js... [2015-11-06 00:48:00] [INFO] Loaded plugin minecraft.js... [2015-11-06 00:48:00] [INFO] Loaded plugin srcds.js... [2015-11-06 00:48:00] [INFO] Scales is now listening on port 5656 [2015-11-06 00:48:00] [INFO] Scales is now listening to Socket.IO on port 5657 [2015-11-06 00:48:00] [INFO] Scales is now listening for uploads on port 5658 [2015-11-06 00:48:00] [VERBOSE] All scripts in /lib/scripts successfully had their permissions updated. [2015-11-06 00:48:00] [VERBOSE] Loaded server configuration for 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:48:12] [VERBOSE] Completed permissions preflight for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:48:13] [VERBOSE] Attempting to spawn server process for pp-tf2tes_nw8xj [2015-11-06 00:48:14] [VERBOSE] Detached docker container for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:48:14] [WARN] Attempting to kill crashed process (pid: 16135) for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:48:14] [WARN] Server process for 19255ab5-a024-4137-add7-caa97f8e2534 killed after crash, server is now rebooting... [2015-11-06 00:48:14] [VERBOSE] Completed permissions preflight for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:48:14] [ERROR] An error occured attempting to kill docker container for 19255ab5-a024-4137-add7-caa97f8e2534 { "meta": "Error response from daemon: Cannot kill container pp-tf2tes_nw8xj: notrunning: Container e85a4b17e53a5d0e096261739d6f2f6fbec80c9508908377544b2c572cdee86e is not running\nError: failed to kill containers: [pp-tf2tes_nw8xj]\n" }
Installation before with first start and crash:
[2015-11-06 00:17:34] [VERBOSE] All scripts in /lib/scripts successfully had their permissions updated. [2015-11-06 00:27:42] [VERBOSE] Loaded server configuration for 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:27:42] [VERBOSE] Creating base config file for 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:27:43] [VERBOSE] Finished basic install process for new server, preparing to complete full install process. [2015-11-06 00:27:43] [VERBOSE] Attempting to gather user information to create a container for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:27:43] [VERBOSE] Creating docker container for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:27:43] [VERBOSE] Successfully added a new docker container for 19255ab5-a024-4137-add7-caa97f8e2534. [2015-11-06 00:27:43] [VERBOSE] Running major installer process for 19255ab5-a024-4137-add7-caa97f8e2534 which could take a few minutes to complete. Do not stop Scales during this process. [2015-11-06 00:27:43] [VERBOSE] Creating user pp-tf2tes_nw8xj on the server. [2015-11-06 00:29:10] [VERBOSE] Installer process has completed for for 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:29:10] [VERBOSE] Major install process completed and PufferPanel notified. [2015-11-06 00:29:46] [VERBOSE] Completed permissions preflight for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:29:46] [VERBOSE] Attempting to spawn server process for pp-tf2tes_nw8xj [2015-11-06 00:29:48] [VERBOSE] Detached docker container for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:29:48] [WARN] Attempting to kill crashed process (pid: 11416) for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:29:48] [WARN] Server process for 19255ab5-a024-4137-add7-caa97f8e2534 killed after crash, server is now rebooting... [2015-11-06 00:29:48] [VERBOSE] Completed permissions preflight for server 19255ab5-a024-4137-add7-caa97f8e2534 [2015-11-06 00:29:48] [ERROR] An error occured attempting to kill docker container for 19255ab5-a024-4137-add7-caa97f8e2534 Error response from daemon: Cannot kill container pp-tf2tes_nw8xj: notrunning: Container d8d0cae46d53cf510a47f38a46e15f2cb16de5fa72310614ed69d0e2b891b709 is not running Error: failed to kill containers: [pp-tf2tes_nw8xj]