Uploaded image for project: 'YADE - Yet Another Data Exchange Tool'
  1. YADE - Yet Another Data Exchange Tool
  2. YADE-303

Removing source files when using a jump host should work

    XMLWordPrintable

Details

    Description

      Current Situation

      • If you start a JADE profile to transfer files via a jump host with the options operation=copytointernet and remove_files=true then you get the error:
        main DEBUG 13:09:54,913   (Jade4DMZ.java:610) ::RemoveFilesOnIntranet Jade4DMZ::RemoveFilesFromIntranet 
        main DEBUG 13:09:54,914   (SOSVfsTransferFileBaseClass.java:591) ::logDEBUG (SOSVfsTransferFileBaseClass::FileExists) SOSVfs_D_156: SourceFileName = /tmp/jade-6d4d7f88-3191-40a5-bbda-ed7c30b98be3/test.txt 
        main ERROR 13:09:54,914   (SOSVfsTransferBaseClass.java:1207) ::logEXCEPTION (SOSVfsSFtpJCraft::getClient) SOSVfs_E_190: 'sshConnection Object' is not initialized (NULL) 
        main ERROR 13:09:54,914   (SOSVfsTransferBaseClass.java:1100) ::RaiseException SOSVfs_E_196: ChannelSftp can't be created. (SOSVfs_E_190: 'sshConnection Object' is not initialized (NULL)) 
        main TRACE 13:09:54,914   (JobSchedulerException.java:155) ::saveException  
        com.sos.JSHelper.Exceptions.JobSchedulerException: SOSVfs_E_190: 'sshConnection Object' is not initialized (NULL)
                at com.sos.VirtualFileSystem.common.SOSVfsTransferBaseClass.RaiseException(SOSVfsTransferBaseClass.java:1116)
                at com.sos.VirtualFileSystem.SFTP.SOSVfsSFtpJCraft.getClient(SOSVfsSFtpJCraft.java:865)
                at com.sos.VirtualFileSystem.SFTP.SOSVfsSFtpJCraft.size(SOSVfsSFtpJCraft.java:404)
                at com.sos.VirtualFileSystem.common.SOSVfsTransferBaseClass.getFileSize(SOSVfsTransferBaseClass.java:920)
                at com.sos.VirtualFileSystem.common.SOSVfsTransferFileBaseClass.FileExists(SOSVfsTransferFileBaseClass.java:68)
                at com.sos.VirtualFileSystem.DataElements.SOSFileListEntry.FileExists(SOSFileListEntry.java:415)
                at com.sos.DataExchange.Jade4DMZ.RemoveFilesOnIntranet(Jade4DMZ.java:614)
                at com.sos.DataExchange.Jade4DMZ.Execute(Jade4DMZ.java:198)
                at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.Execute(SOSDataExchangeEngine4DMZMain.java:69)
                at com.sos.DataExchange.SOSDataExchangeEngine4DMZMain.main(SOSDataExchangeEngine4DMZMain.java:27)
        main TRACE 13:09:54,916   (SOSVfsTransferBaseClass.java:923) ::getFileSize SOSVfs_E_134: 'getFileSize()' failed:SOSVfs_E_196: ChannelSftp can't be created. 
        main DEBUG 13:09:54,916   (SOSVfsTransferFileBaseClass.java:591) ::logDEBUG (SOSVfsTransferFileBaseClass::FileExists) SOSVfs_D_157: flgResult = false for File /tmp/jade-6d4d7f88-3191-40a5-bbda-ed7c30b98be3/test.txt.
        
      • In the log you see also that JADE tries a "FileExists" for a temporäre file on the jump host instead of the real source file.

      Desired Behavior

      • remove_files=true should work with operation=copytointernet

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              oh Oliver Haufe
              Mahendra Patidar Mahendra Patidar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified