thelastnoc / dayz-sa_linuxserver

40 stars 14 forks source link

Server does not start #28

Closed Xapu1337 closed 2 years ago

Xapu1337 commented 2 years ago

Hey, I've been facing an issue where the server returns "missing parameter hostName" even though hostname is defined within serverDZ.cfg, any ideas why?

.dayzserver.cfg

######################################
#      dayzserver config file        #
# the parameter have to be within "" #
# otherwise the server wont start!   #
############################################################################
# https://forums.dayz.com/topic/239635-dayz-server-files-documentation/
# launch parameters documentation
#############################################################################

# DayZ SteamID
appid=1042420
dayz_id=221100
#stable=223350
#exp_branch=1042420

# IMPORTANT PARAMETERS - DO NOT REMOVE!
config=serverDZ.cfg
port=2302

#hos DayZ Mods from Steam Workshop
# to enable mods, remove the # below and list the Mods like this: "-mod=@Mod1;@Mod2;@Mod3"
workshop="-mod=@Bed-Respawning;@BuildEverywhere;@Building Fortifications;@CF;@Community-Online-Tools;@Craftable Bone Knives;@Dabs Framework;@DayZ Editor Loader;@DayZ-Expansion;@DayZ-Expansion-Book;@DayZ-Expansion-Core;@DayZ-Expansion-Licensed;@DayZ-Expansion-Vehicles;@GrandeHordes;@MuchStuffPack;@SkyZ - Skybox Overhaul;@Trader;@VanillaPlusPlusMap;@Zeroy-FishingZ"

# optional - just remove the # to enable
BEpath="-BEpath=${HOME}/serverfiles/battleye/"
profiles="-profiles=${HOME}/serverprofile/"
#logs="-dologs -adminlog -netlog"

# modify carefully! server won't start if syntax is corrupt!
dayzparameter=" -config=${config} -port=${port} -freezecheck ${BEpath} ${profiles} ${logs}"

serverDZ.cfg

hostname = "Testing";  // Server name
#password = "";              // Password to connect to the server
passwordAdmin = "";         // Password to become a server admin

enableWhitelist = 0;        // Enable/disable whitelist (value 0-1)

maxPlayers = 60;            // Maximum amount of players

verifySignatures = 2;       // Verifies .pbos against .bisign files. (only 2 is supported)
forceSameBuild = 1;         // When enabled, the server will allow the connection only to clients with same the .exe revision as the server (value 0-1)

disableVoN = 0;             // Enable/disable voice over network (value 0-1)
vonCodecQuality = 20;        // Voice over network codec quality, the higher the better (values 0-30)

disable3rdPerson=0;         // Toggles the 3rd person view for players (value 0-1)
disableCrosshair=0;         // Toggles the cross-hair (value 0-1)

disablePersonalLight = 1;   // Disables personal light for all clients connected to server
lightingConfig = 0;         // 0 for brighter night setup, 1 for darker night setup

serverTime="SystemTime";    // Initial in-game time of the server. "SystemTime" means the local time of the machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, f.e. "2015/4/8/17/23" .
serverTimeAcceleration=12;  // Accelerated Time (value 0-24)// This is a time multiplier for in-game time. In this case, the time would move 24 times faster than normal, so an entire day would pass in one hour.
serverNightTimeAcceleration=1;  // Accelerated Nigh Time - The numerical value being a multiplier (0.1-64) and also multiplied by serverTimeAcceleration value. Thus, in case it is set to 4 and serverTimeAcceleration is set to 2, night time would move 8 times faster than normal. An entire night would pass in 3 hours.
serverTimePersistent=0;     // Persistent Time (value 0-1)// The actual server time is saved to storage, so when active, the next server start will use the saved time value.

guaranteedUpdates=1;        // Communication protocol used with game server (use only number 1)

loginQueueConcurrentPlayers=5;  // The number of players concurrently processed during the login process. Should prevent massive performance drop during connection when a lot of people are connecting at the same time.
loginQueueMaxPlayers=500;       // The maximum number of players that can wait in login queue

instanceId = 1;             // DayZ server instance id, to identify the number of instances per box and their storage folders with persistence files

storeHouseStateDisabled = false;// Disable houses/doors persistence (value true/false), usable in case of problems with persistence
storageAutoFix = 1;         // Checks if the persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1)

class Missions
{
    class DayZ
    {
        template="dayzOffline.enoch"; // Mission to load on server startup. <MissionName>.<TerrainName>
                              // Vanilla mission: dayzOffline.chernarusplus
                              // DLC mission: dayzOffline.enoch
    };
};
Xapu1337 commented 2 years ago

Log after termination is initiated:

20:35:33 Dedicated host created.
20:35:33 [Inputs] Loading inputs default "bin/constants.xml"
20:35:33 [Inputs] Loading inputs default "bin/specific.xml"
20:35:33 [Inputs] Loading inputs default "VanillaPPMap/data/modded_Inputs.xml"
20:35:33 [Inputs] Loading inputs default "DabsFramework/Scripts/Data/Inputs.xml"
20:35:33 [Inputs] Loading inputs default "JM/COT/Scripts/Data/Inputs.xml"
20:35:33 !!! [Inputs] Cannot Register "UAObjectModuleDeleteOnCursor" non-existent input - Fix Preset!
20:35:33 [Inputs] Loading inputs default "DayZEditorLoader/Scripts/Data/Inputs.xml"
20:35:33 [Inputs] Loading inputs default "DayZExpansion/Vehicles/Scripts/Data/Inputs.xml"
20:35:33 [Inputs] Loading inputs default "DayZExpansion/Book/Scripts/Data/Inputs.xml"
20:35:33 [Inputs] Loading inputs default "DayZExpansion/Scripts/Data/Inputs.xml"
20:35:33 !!! [Inputs] Attempt to register duplicate exclusion group "chatexpansion"
20:35:33 [Inputs] Loading inputs cfg "/home/dayzserver/serverprofile/users/Survivor\Server.core.xml"
20:35:33 [Inputs] Exporting inputs cfg "/home/dayzserver/serverprofile/users/Survivor\Server.core.xml"
20:35:40 [ERROR][Server config] :: hostName parameter is missing.
20:35:40 [Server] :: termination in: 10
20:35:41 [Server] :: termination in: 9
20:35:42 [Server] :: termination in: 8
20:35:43 [Server] :: termination in: 7
thelastnoc commented 2 years ago

In your serverDZ.cfg

password = ""; <--- remove the