mr-guard / dayz-server-manager

A server installer and watch-dog for dayz standalone with built-in Discord and RCon bot
MIT License
157 stars 41 forks source link

After adding mode server is stuck in initiating loop #160

Open Avskum opened 2 weeks ago

Avskum commented 2 weeks ago

I added mod via GUI and its in config properly, sadly the server is not starting and is in endless loop.

@2024-10-17T06:59:12.741Z | IMPORTANT | Manager      | Starting DZSM Version: 3.10.0
@2024-10-17T06:59:12.744Z | INFO      | Database     | Database Setup: node 16.16.0 : v93-linux-x64
@2024-10-17T06:59:12.747Z | IMPORTANT | Config       | Trying to read config at: /home/dayz/servers/dayz-server/server-manager.json
@2024-10-17T06:59:12.757Z | IMPORTANT | Config       | Successfully read config
@2024-10-17T06:59:12.881Z | IMPORTANT | Monitor      | Starting to watch server
@2024-10-17T06:59:12.883Z | WARN      | Discord      | Not starting discord bot, because no bot token was provided
@2024-10-17T06:59:12.888Z | IMPORTANT | REST         | App listening on the http://0.0.0.0:8080
@2024-10-17T06:59:12.890Z | IMPORTANT | IngameREST   | Ingame Rest API listening on the http://127.0.0.1:2312
@2024-10-17T06:59:12.890Z | IMPORTANT | Bootstrap    | Server Manager initialized successfully
@2024-10-17T06:59:12.891Z | IMPORTANT | Bootstrap    | Waiting for first server monitor tick..
@2024-10-17T06:59:13.454Z | IMPORTANT | Monitor      | Server not found. Starting...
@2024-10-17T06:59:13.463Z | INFO      | ServerStarte | Writing server cfg
@2024-10-17T06:59:13.464Z | INFO      | ServerStarte | Adjusting dayzsetting.xml
@2024-10-17T06:59:13.480Z | IMPORTANT | Monitor      | Server start initiated...

@2024-10-17T07:00:43.796Z | IMPORTANT | Monitor      | Server not found. Starting...
@2024-10-17T07:00:43.799Z | IMPORTANT | SteamCMD     | Updating DayZ Server using app id: 223350, validating: false
@2024-10-17T07:00:50.093Z | INFO      | SteamCMD     | Skipping copy of mod (1836257061) dir because its already up to date
@2024-10-17T07:00:50.112Z | INFO      | SteamCMD     | Copying @banking key Deadcraft.bikey
@2024-10-17T07:00:50.133Z | INFO      | ServerStarte | Writing server cfg
@2024-10-17T07:00:50.134Z | INFO      | ServerStarte | Adjusting dayzsetting.xml
@2024-10-17T07:00:50.145Z | IMPORTANT | Monitor      | Server start initiated...

@2024-10-17T07:02:20.247Z | IMPORTANT | Monitor      | Server not found. Starting...
@2024-10-17T07:02:20.249Z | IMPORTANT | SteamCMD     | Updating DayZ Server using app id: 223350, validating: false
@2024-10-17T07:02:25.909Z | INFO      | SteamCMD     | Skipping copy of mod (1836257061) dir because its already up to date
@2024-10-17T07:02:25.923Z | INFO      | SteamCMD     | Copying @banking key Deadcraft.bikey
@2024-10-17T07:02:25.940Z | INFO      | ServerStarte | Writing server cfg
@2024-10-17T07:02:25.942Z | INFO      | ServerStarte | Adjusting dayzsetting.xml
@2024-10-17T07:02:25.955Z | IMPORTANT | Monitor      | Server start initiated...
@2024-10-17T07:03:56.346Z | IMPORTANT | Monitor      | Server not found. Starting...
@2024-10-17T07:03:56.348Z | IMPORTANT | SteamCMD     | Updating DayZ Server using app id: 223350, validating: false
@2024-10-17T07:04:02.118Z | INFO      | SteamCMD     | Skipping copy of mod (1836257061) dir because its already up to date
@2024-10-17T07:04:02.123Z | INFO      | SteamCMD     | Copying @banking key Deadcraft.bikey
@2024-10-17T07:04:02.131Z | INFO      | ServerStarte | Writing server cfg
@2024-10-17T07:04:02.132Z | INFO      | ServerStarte | Adjusting dayzsetting.xml
@2024-10-17T07:04:02.144Z | IMPORTANT | Monitor      | Server start initiated...
LeviWilliams commented 2 weeks ago

I've had this happen twice - once when the mod was causing the server to instantly crash on start and then the manager would retry always (you can check the error logs for this). The other case is when the mod pbo wasn't properly published to steam so the manager couldn't copy the files and the server would fail to start. You just gotta look at the logs / remove that mod if its causing trouble.

rklxmok commented 1 week ago

I have noticed, especially with sakhal, most mods will not work or will require a wipe to deploy. Each time I make a change I also have to set facl's to get consistent results. The mgmt app seems to get windosey and puts things in a group called "users" which is common in windows, so you need to create that group on the linux server, and add all of your users into it, the dayz user included.

sudo bash
#add user group and add users into it
groupadd users
usermod -a -G users <your user name>
usermod -a -G users dayz
#kill server manager
systemctl disable dayz-server-manager.service && systemctl stop dayz-server-manager.service
#kill dayzserver process using htop
#make changes, economy, mod etc, remove storage folder if wipe is required**
** rm -R /storage-1  in your running mission folder
systemctl enable dayz-server-manager.service && systemctl start dayz-server-manager.service
#wait 60 seconds, then run the command below
chmod -R 777 /dayz && chown -R dayz:dayz /dayz && setfacl -m g:users:rwx -R /dayz && setfacl -m g:<your users group name here>:rwx -R /dayz && setfacl -m g:dayz:rwx -R /dayz
#check status, if good open server manager
systemctl status dayz-server-manager.service