Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-61

JITL SCP job with UNC path for the settings local_dir and recursive=false should work

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.6, 1.8.3, 1.9
    • None
    • Windows

    Description

      General

      • If you use UNC paths then note that the JobScheduler service has an account which has sufficient permissions to connect with the remote host from the UNC path.
      • Otherwise the UNC path is not found and you get an exception
        directory does not exist: <local_dir>

        .

      Current Situation

      • Using the SCP JITL job with a UNC path (here: \\8of9\c\tmp\scp) for the local_dir parameter and the setting recursive=false results in the local_dir setting being used twice for different purposes ("get" instead of "put"):
        \\8of9\c\tmp\scp\8of9\c\tmp\scp\1.txt
      • In consequence an exception is raised:
        2013-08-05 17:00:23.574 [info]   java.io.IOException: Error during SCP transfer. 
        2013-08-05 17:00:23.574 [info]   	at com.trilead.ssh2.SCPClient.put(SCPClient.java:575) 
        2013-08-05 17:00:23.574 [info]   	at com.trilead.ssh2.SCPClient.put(SCPClient.java:533) 
        2013-08-05 17:00:23.574 [info]   	at com.trilead.ssh2.SCPClient.put(SCPClient.java:411) 
        2013-08-05 17:00:23.574 [info]   	at sos.scheduler.job.JobSchedulerSCPJob.spooler_process(JobSchedulerSCPJob.java:258) 
        2013-08-05 17:00:23.574 [info]   Caused by: java.io.FileNotFoundException: \\8of9\c\tmp\scp\8of9\c\tmp\scp\1.txt (Das System kann den angegebenen Pfad nicht finden) 
        2013-08-05 17:00:23.574 [info]   	at java.io.FileInputStream.open(Native Method) 
        2013-08-05 17:00:23.574 [info]   	at java.io.FileInputStream.<init>(Unknown Source) 
        2013-08-05 17:00:23.574 [info]   	at com.trilead.ssh2.SCPClient.sendFiles(SCPClient.java:188) 
        2013-08-05 17:00:23.574 [info]   	at com.trilead.ssh2.SCPClient.put(SCPClient.java:571) 
        2013-08-05 17:00:23.574 [info]   	... 3 more
        

      Workaround

      • The problem does not occur with the setting recursive=true

      Attachments

        Activity

          People

            oh Oliver Haufe
            oh Oliver Haufe
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d