When running a PowerShell and a python job on windows agent the job is failing with error" reason: '5 - Access is denied. >libcpprnt/src/FileChannel.cpp#sys::FileChannel::open:241<'."
search cancel

When running a PowerShell and a python job on windows agent the job is failing with error" reason: '5 - Access is denied. >libcpprnt/src/FileChannel.cpp#sys::FileChannel::open:241<'."

book

Article ID: 399412

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

When running a PowerShell / Python job on windows agent using the service account, the job is failing with below error on job job report

U02000254 Error found on completing data for task '1747683059', reason: '5 - Access is denied. >libcpprnt/src/FileChannel.cpp#sys::FileChannel::open:241<'.

Environment

Automation Engine

Windows Agent

Cause

configuration

Resolution

This error can cause due to multiple reasons, please validate all of the  below recommendations.

  1. Service manager on the windows agent should be started with the service account instead of local administrator
  2. Check if the  variable UC_EXT_INTERPRETERS_WINDOWS  is created in client 0 and provides the values for Variable 1 and Variable 2 as below


    Key = PYTHON
    Value 1 = .py
    Value 2 =  point where the phython is installed <FILE>

  3. Verify the permission on the folder, where it is access denied and modify it accordingly.
    Example: Verify the permissions of directory Automation Engine/Agents/Windows/