Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1891

The Agent cannot to find the dotnet folder in the %TEMP% directory

    XMLWordPrintable

Details

    Description

      Current Situation

      • The Agent is able to create the dotnet* folder inside %TEMP% directory at the time when Agent starts up but later on the dotnet folder is no longer available. This can happen due to cleanup procedures in Windows that remove the contents of the %TEMP% folder, preferably if the Agent Windows Service is operated for a longer time (weeks, months).
      • Later on, when the Agent executes a PowerShell job, cannot to find the dotnet* folder inside the %TEMP% directory and throws the error like below:
        [ERROR]  COM-80020009 java.lang.Exception: Can't initialize jni4net Bridge. Directory not found: C:\windows\TEMP\dotnet3239250060014003145
        
      • This problem does not affect execution of shell jobs with Agents but is limited to PowerShell jobs with Windows.

      Desired Behavior

      • The dotnet folder should always be available for an Agent.
      • Switching the temporary folder for dotnet libraries to the folder with the fixed name "dotnet" inside the Agent's "tmp" directory.

      Workaround

      • Do not delete temporary files in the %TEMP% folder that are owned by the Agent.
      • Restarting the Agent will again create the dotnet folder inside the %TEMP% directory.

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            Anuj-Mandloi Anuj Mandloi (Inactive)
            Robert Ehrlich Robert Ehrlich
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: