How to fix “[SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion” when installing Artifactory as a service on windows

Loren Yeung
2021-08-25 06:09

Subject

Artifactory can fail to start up when installing on Windows Server 2016 or Windows 10, throwing the following error:
[SC] StartService FAILED 1053: The service did not respond to the start or control request in a timely fashion

Affected Versions

Artifactory versions 4.16 and above

Details

The installation can add a 'ఁ' symbol into the registry, which interferes with Artifactory during start up.  

Resolution

Upon further investigation into the registry editor, the ImagePath appears to be incorrect, under:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Artifactory
C:\Users\artifactory\jfrog-artifactory-pro-5.8.3\artifactory-pro-5.8.3\bin\artifactory-service.exe *<SYMBOL>*//RS//artifactory

Correcting this to:
C:\Users\artifactory\jfrog-artifactory-pro-5.8.3\artifactory-pro-5.8.3\bin\artifactory-service.exe //RS//artifactory

fixes the issue