Troubleshooting K2 Setup Manager: JavaScript Service Provider Logon Failure

Updating service account passwords in Nintex Automation (K2) is a standard maintenance task, typically handled by running the K2 Setup Manager and selecting the Configure option. However, a known bug can sometimes stall this process, specifically when the installer attempts to restart the K2 JavaScript Service Provider.

The Symptom

During the configuration process, the Setup Manager may fail with a System.InvalidOperationException. If you inspect the installation logs, you will see an error similar to this:

The service did not start due to a logon failure Target failed to execute: Start K2 JavaScript Service Provider

This happens because the Setup Manager attempts to start the service before the new credentials have been fully propagated to the Windows Service host, or it fails to override the old cached credentials during the automated start-up sequence.


The Workaround

If you encounter this error, don't worry—you don't need to roll back your entire installation. You can bypass the bug by manually synchronizing the credentials. Follow these steps:

1. Manually Update the Service Credentials

Before re-running the installer, you need to fix the "Logon" property for the specific service mentioned in the error.

  • Open Services.msc on your K2 Host Server.

  • Locate the K2 JavaScript Service Provider.

  • Right-click and select Properties, then navigate to the Log On tab.

  • Update the password for the service account and click Apply.

2. Start the Service

Once the credentials are saved, manually start the service.

  • Right-click the K2 JavaScript Service Provider and select Start.

  • Ensure the status changes to Running and stays that way for at least 30 seconds.

3. Run Setup Manager in 'Recover' Mode

With the service now running on the correct credentials, go back to your installation media.

  • Run the K2 Setup Manager (Setup.exe).

  • Instead of 'Configure', select the Recover option.

  • The Setup Manager will now verify the environment and complete the configuration without getting stuck on the service start-up phase.

Comments

Popular posts from this blog

Blocking Error during K2 5.6 Server migration

Client Credentials flow with K2 Cloud with Odata, Workflow REST or SCIM

Blocking error RegisterServiceInstanceObjects when upgrading to K2 5.6/5.7