Troubleshoot: Installation error: "Failed to configure service account 'NT AUTHORITY\NETWORK SERVICE'"

The issue: During MOBOTIX HUB Advanced VMS installation process you may see the following error:
Failed to configure service account 'NT AUTHORITY\NETWORK SERVICE'.

This can happen if you are performing the installation by using the default “Network Service” account, and then the Management server will fail:

  • if the installer is run with a local Windows account, or
  • if the installer is run with a user having the same name as the PC/server name, or
  • if you use a domain account but during installation connection to the Domain Controller (DC) is lost.

To make sure that you experience exactly this issue, you can also check the log files from:
C:\ProgramData\MOBOTIX\Installer\
and search for this error:

a) In the file Installer.log :
"Error | An error occurred: 'CFG64018: Failed to configure service account 'NT AUTHORITY\NETWORK SERVICE' on database Surveillance."

b) In the file configuratorI.log :
o Adding service account: NT AUTHORITY\NETWORK SERVICE to the Administrators Role
o CFG64018: Failed to configure service account 'NT AUTHORITY\NETWORK SERVICE' on database Surveillance. Error: MILESTONE

The solution: To avoid this issue during installation, if the machine is joined to a domain and services are set to run as “Network service” account, the following prerequisites are needed:

(The well known workaround to use a local account to run the installer and a local account for the Management Server service was working fine because it was not necessary to add the computers to the admin role.)

  • If no connection with the Active Directory is possible, it is mandatory to select a local account also for the Management Server service, otherwise the installation will always fail.