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

Server not starting #41

Closed jamerk closed 1 year ago

jamerk commented 2 years ago

Hello, this is a fantastic piece of software and thank you very much for making it. I'm having an issue with the server manager not being able to start the DayZ server itself, I can start the DayZ server from a batch script and the server manager will see it and manage it but then the server manager cannot manage restarts, which is something I'm after. Here is what the console looks like (It just keeps saying "Server not found." unless I manually start the server via my batch script):

@2022-10-24T22:45:23.324Z | IMPORTANT | Manager    | Starting DZSM Version: 2.1.1
@2022-10-24T22:45:23.339Z | IMPORTANT | Config     | Trying to read config at: C:\dayzserver\server-manager.json
@2022-10-24T22:45:23.339Z | IMPORTANT | Config     | Successfully read config
@2022-10-24T22:45:23.339Z | INFO      | Database   | Database Setup: node 14.17.0 : v83-win32-x64
@2022-10-24T22:45:24.605Z | IMPORTANT | Manager    | Initially checking SteamCMD, Server Installation and Mods. Please wait. This may take some minutes...
@2022-10-24T22:45:24.605Z | IMPORTANT | SteamCMD   | Checking/Installing SteamCMD
Redirecting stderr to 'C:\steamcmd\logs\stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation - version 1666144101
-- type 'quit' to exit --
Loading Steam API...OK

@2022-10-24T22:45:26.621Z | IMPORTANT | REST       | App listening on the http://127.0.0.1:8080
@2022-10-24T22:45:26.621Z | WARN      | Discord    | Not starting discord bot, because no bot token was provided
@2022-10-24T22:45:26.621Z | IMPORTANT | Monitor    | Starting to watch server
@2022-10-24T22:45:26.636Z | IMPORTANT | Manager    | Server Manager initialized successfully
@2022-10-24T22:45:26.636Z | IMPORTANT | Manager    | Waiting for first server monitor tick..
@2022-10-24T22:45:26.636Z | IMPORTANT | RCON       | Listening on 0.0.0.0:52110
@2022-10-24T22:45:26.761Z | IMPORTANT | Monitor    | Server not found. Starting...
@2022-10-24T22:45:26.792Z | INFO      | Monitor    | Writing server cfg
@2022-10-24T22:45:57.371Z | WARN      | Monitor    | Detected possible server crash. Restarting...
@2022-10-24T22:45:57.371Z | IMPORTANT | Monitor    | Server not found. Starting...
@2022-10-24T22:45:57.417Z | INFO      | Monitor    | Writing server cfg
@2022-10-24T22:46:29.042Z | WARN      | Monitor    | Detected possible server crash. Restarting...
@2022-10-24T22:46:29.042Z | IMPORTANT | Monitor    | Server not found. Starting...
@2022-10-24T22:46:29.074Z | INFO      | Monitor    | Writing server cfg
@2022-10-24T22:47:00.621Z | WARN      | Monitor    | Detected possible server crash. Restarting...
@2022-10-24T22:47:00.621Z | IMPORTANT | Monitor    | Server not found. Starting...
@2022-10-24T22:47:00.668Z | INFO      | Monitor    | Writing server cfg
@2022-10-24T22:47:32.309Z | WARN      | Monitor    | Detected possible server crash. Restarting...
@2022-10-24T22:47:32.309Z | IMPORTANT | Monitor    | Server not found. Starting...
@2022-10-24T22:47:32.341Z | INFO      | Monitor    | Writing server cfg
@2022-10-24T22:48:03.887Z | WARN      | Monitor    | Detected possible server crash. Restarting...
@2022-10-24T22:48:03.887Z | IMPORTANT | Monitor    | Server not found. Starting...
@2022-10-24T22:48:03.934Z | INFO      | Monitor    | Writing server cfg

And here is my server-manager.json:

{

    "instanceId": "dayz",

    "loglevel": 1,

    "admins": [
        {
            "userId": "admin",
            "userLevel": "admin",
            "password": "ADMIN PASS"
        }
    ],

    "webPort": 8080,
    "publishWebServer": false,
    "discordBotToken": "",
    "discordChannels": [],
    "experimentalServer": false,
    "serverPath": "C:/dayzserver",
    "serverExe": "DayZServer_x64.exe",
    "serverPort": 2302,
    "serverCfgPath": "serverDZ.cfg",
    "profilesPath": "DayZServerprofiles",
    "battleyePath": "",
    "rconPassword": "RCON PASS",
    "rconPort": 2306,
    "localMods": [
      "@CF",
      "@TraderPlus",
      "@Free Helicopters",
      "@Mortys Weapons",
      "@Land Rover Defender 110",
      "@Instant Flag",
      "@ChernarusRP AE86",
      "@Jeep Cherokee 1984",
      "@GunnerTruckOshkosh",
      "@Dayz Navigation",
      "@SimpleAutorun",
      "@BasicMap",
      "@MiniMap",
      "@Care Packages",
      "@CodeLock",
      "@MMG Base Storage",
      "@MMG - Mightys Military Gear",
      "@CarCover",
      "@Ear-Plugs",
      "@Modified Hunger and Hydration",
      "@Killfeed","@InventoryPlus",
      "@BaseBuildingPlus",
      "@Unlimited Stamina",
      "@Breachingcharge",
      "@VPPNotifications",
      "@VPPAdminTools",
      "@Basic Territories",
      "@COCAs_NoVehicleDamageMOD",
      "@Unknown Ghillie Mod",
      "@SchanaParty"
    ],
    "serverMods": [],
    "doLogs": true,
    "adminLog": true,
    "netLog": true,
    "freezeCheck": true,
    "filePatching": false,
    "scriptDebug": false,
    "scrAllowFileWrite": false,
    "limitFPS": -1,
    "cpuCount": -1,
    "serverLaunchParams": [],
    "serverProcessPollIntervall": 30000,
    "backupPath": "backups",
    "backupMaxAge": 7,
    "steamCmdPath": "C:/steamcmd",
    "steamUsername": "STEAM USER",
    "steamPassword": "STEAM PASS",
    "steamWorkshopPath": "Workshop",
    "steamWsMods": [],
    "updateModsBeforeServerStart": false,
    "updateModsOnStartup": false,
    "updateServerBeforeServerStart": false,
    "updateServerOnStartup": false,
    "linkModDirs": false,
    "copyModDeepCompare": false,
    "events": [],
    "metricPollIntervall": 10000,
    "metricMaxAge": 2592000,
    "hooks": [],
    "serverCfg": {
        "hostname": "Server Name",
        "maxPlayers": 60,
        "motd": [],
        "motdInterval": 1,
        "password": "SERVER PASS",
        "passwordAdmin": "ADMIN PASS",
        "enableWhitelist": 0,
        "BattlEye": 1,
        "verifySignatures": 2,
        "forceSameBuild": 1,
        "guaranteedUpdates": 1,
        "allowFilePatching": 0,
        "steamQueryPort": 2305,
        "maxPing": 200,
        "speedhackDetection": 1,
        "disableVoN": 0,
        "vonCodecQuality": 20,
        "disable3rdPerson": 0,
        "disableCrosshair": 0,
        "disableBaseDamage": 0,
        "disableContainerDamage": 0,
        "disableRespawnDialog": 0,
        "respawnTime": 5,
        "enableDebugMonitor": 0,
        "disablePersonalLight": 1,
        "lightingConfig": 0,
        "serverTime": "SystemTime",
        "serverTimeAcceleration": 4,
        "serverNightTimeAcceleration": 16,
        "serverTimePersistent": 1,
        "loginQueueConcurrentPlayers": 5,
        "loginQueueMaxPlayers": 500,
        "simulatedPlayersBatch": 20,
        "multithreadedReplication": 1,
        "networkRangeClose": 20,
        "networkRangeNear": 150,
        "networkRangeFar": 1000,
        "networkRangeDistantEffect": 4000,
        "defaultVisibility": 1375,
        "defaultObjectViewDistance": 1375,
        "instanceId": 1,
        "storeHouseStateDisabled": false,
        "storageAutoFix": 1,
        "timeStampFormat": "Short",
        "logAverageFps": 30,
        "logMemory": 30,
        "logPlayers": 30,
        "logFile": "server_console.log",
        "adminLogPlayerHitsOnly": 0,
        "adminLogPlacement": 0,
        "adminLogBuildActions": 0,
        "adminLogPlayerList": 0,
        "Missions": {
            "DayZ": {
                "template": "dayzOffline.chernarusplus"
            }
        },
        "enableCfgGameplayFile": 1
    }
}
raytrax commented 2 years ago

You should remove the mods and test if it start without problem ;)

mr-guard commented 1 year ago

I am going to close this, as its really old. If the issue persists, please open another one.