Error occurred during action execution under user credentials.
search cancel

Error occurred during action execution under user credentials.

book

Article ID: 418379

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

A step with use of a specific credentials is failing with following error :

"Error occurred during action execution under <username> credentials(Unable to run action for user <username>. Verify the user running Nolio agent has privileges to impersonate other users, and that user <username> has permissions on Nolio installation folder.)."

 

In nolio_all.log of the Agent we could see this :

//Child process creation initiated
2025-10-17 10:35:03,389 [job-<jobid>-jobServer-<jobserverid>-3:<step Name>:<Action Type>] INFO  (com.nolio.platform.shared.datamodel.execution.remote.ProcessesInvoker:295) - new process for <username> sum of active processes: 1
...
//Various internal checks are running for child process
2025-10-17 10:35:03,446 [job-<jobid>-jobServer-<jobserverid>-3:<step Name>:<Action Type>] DEBUG (com.nolio.platform.shared.datamodel.execution.remote.WindowsProcessesExecutor:69) - loading profile...
...
2025-10-17 10:35:03,493 [job-<jobid>-jobServer-<jobserverid>-3:<step Name>:<Action Type>] DEBUG (com.nolio.platform.shared.datamodel.execution.remote.WindowsProcessesExecutor:71) - loading user environment...
...
2025-10-17 10:35:03,496 [job-<jobid>-jobServer-<jobserverid>-3:<step Name>:<Action Type>] DEBUG (com.nolio.platform.shared.datamodel.execution.remote.WindowsProcessesExecutor:78) - creating process....
...
//Action result is evaluated as FAILED 20 seconds after child process creation is initiated
2025-10-17 10:35:23,827 [job-<jobid>-jobServer-<jobserverid>-3:<step Name>:<Action Type>] INFO  (com.nolio.platform.shared.comm.PublicRelationsService:149) - nodeUpdate| ... | ... | FAILED_PAUSED
...
//Child process is finally ready after 26 seconds
2025-10-17 10:35:29,136 [ProcessInvoker-Server-0] DEBUG (com.nolio.platform.shared.datamodel.execution.remote.ProcessesInvoker:486) - Handling remote process request... 
2025-10-17 10:35:29,175 [main] DEBUG (root:186) - [<username>] connect successfully. sending username <username>

Environment

Release Automation - All Versions.

Cause

The impersonated action work in a way that the main agent process is supposed to create a new child process as a target user and establish server-client communication channel with it. Then the impersonated action is run inside of the child process. But in some environment the child process creation as a non-local user could take time, probably due to authentication and security checks invoked by OS. 
By the time the process creation and OS checks were all complete and the child process was ready for usage, the action was already in a FAILED state.
By default the timeout is 20 seconds. If the child process creation is taking more than 20 seconds we get this error.

Resolution

Increase the timeout for process creation on the agent :

  1. Edit file <nolio_agent_path>\conf\processes.properties
  2. Change the line

    # process timeout in milliseconds
    process.timeout=20000

    by this for a timeout of 60 seconds :

    # process timeout in milliseconds
    process.timeout=60000

  3. Save the modification and recycle the Nolio Agent service.