mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
240 stars 94 forks source link

1: Failed to write configuration: Failed initialize settings instance #745

Open JonnyBrando opened 3 years ago

JonnyBrando commented 3 years ago

Issue and Steps to Reproduce

Installing 0.4.x works fine.

Fresh install of 0.5.x works fine ON A NEW SERVER with my current config.

If 0.4 has been on a server, the installer fails when building the nsc.ini file.

Happens when upgrading. Happens if 0.4.X is uninstalled/service removed/folder removed. Same error.

MSIEXEC /I <PATH>\NSCP-0.5.2.41-x64.msi /LOG <PATH>\install.log /NORESTART REBOOT=ReallySuppress

Expected Behavior

Installer should be able to read/leave, rebuild, or create the nsc.ini file without issues

Actual Behavior

Installer proceeds, unpacks new files, does read the INI file and update the installer appropriately, but crashes & rolls back

Details

Additional Details

NSClient++ log:

attached
[AUTMSADMIN1_V5_FRESHINSTALL.txt](https://github.com/mickem/nscp/files/6857178/AUTMSADMIN1_V5_FRESHINSTALL.txt)
[AUTMSADMIN1_V5_UPGRADE_NOTRANSFORM.txt](https://github.com/mickem/nscp/files/6857179/AUTMSADMIN1_V5_UPGRADE_NOTRANSFORM.txt)
[AUTMSADMIN1_V5_UPGRADE_TRANSFORMS.txt](https://github.com/mickem/nscp/files/6857180/AUTMSADMIN1_V5_UPGRADE_TRANSFORMS.txt)
[AUTMSADMIN1_V4_WORKING.txt](https://github.com/mickem/nscp/files/6857181/AUTMSADMIN1_V4_WORKING.txt)