Automic Workload Automation

 View Only

  • 1.  V24 Java based agent on Windows not picking up User environment variables

    Posted Jan 27, 2025 04:51 AM

    Hello, I'm testing with the Automic v24.3HF2 engine with the V24.3 agent on Windows using the CAU JRE.  I have the default Agent settings.

    It seems like the V24 agent does not pick up the login users local environment settings, but instead uses those of the administrator.

    running echo %APPDATA% on V21 returns (where my-myserviceaccount is the login used)

    C:\Users\my-serviceaccount\AppData\Roaming

    and v24 returns

    C:\WINDOWS\system32\config\systemprofile\AppData\Roaming

    This causes problems running Python, as the libraries will be installed into the users home location. So running pip install oracledb --user works on V21 but not v24 erroring with

    ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Roaming\\Python\\Python312\\site-packages\\pycparser\\__init__.py'

    Python should be installing the package into the defined by %APPDATA% which is writeable and private to the user.  Keychains defined in V21 aren't available to the login in V24.

    Is there a setting I'm missing to inherit the user environment variables rather than administrator?



  • 2.  RE: V24 Java based agent on Windows not picking up User environment variables

    Posted Jan 27, 2025 07:26 AM

    Hi,

    I just tested V24.3 Windows agent (set command) and it picked the login user environment. All default settings on Agent side.

    Regards

    Pothen




  • 3.  RE: V24 Java based agent on Windows not picking up User environment variables

    Broadcom Employee
    Posted Jan 27, 2025 10:22 AM

    Hi @Leon Carroll

    quick test on my side shows that I can reproduce the behavior when the user was never fully logged on to the system (== successful logon to Window's UI). 

    Michael



    ------------------------------
    Michael K. Dolinek

    Engineering Program Manager | Agile Operation Division
    Broadcom Software
    ------------------------------



  • 4.  RE: V24 Java based agent on Windows not picking up User environment variables

    Posted Jan 28, 2025 11:09 AM

    Thanks, most of our service accounts are non-interactive ad based user accounts.  I've tried logging in with a user that does have interactive rights, but I still got the same issue.  I'm happy to demo this, I've got a case open with Tricise and they have provided me the Broadcom tracking number for this - DE165536