1 Reply Latest reply on Feb 29, 2016 11:44 AM by mc2000

    uploading files using the scheduler has errors

    mc2000

      Hello,

       

      I have been going crazy attempting to upload files to another (Linux) server and I am getting errors.

      once I figured out how to get the sites to show up when using the scheduler, i used the export and import rather then re-create accounts.

       

      a users guide with examples would be really great!  i can find any such thing.

       

      so the issue i am see is this...   I can connect using the browser and upload files with no issues.  when i use the scheduler, I have to specfiy the local and remote directories.  this is where things get interesting.  I am placed in a home directory on the remote side, so for the remote side I just use / and for the local side i click on the folder icon and navigate to the folder E:\folder\folder1  and I would assume that everything in folder1 would be uploaded.  Wrong! it tries to create the remotefolder2 and dose not have permissions and so it fails.  why is it trying to create folders?  in the help man, it says that the directory listed in the local and remote will grab everything in that folder and says nothging about trying to create that folder.  I just want to move files in that local folder1 to the remotefolder2.

       

      the Actions I have tried so far is as follows:

      Upload: "E:\localfolder\localfolder1" to "/"

      Upload: "E:\localfolder\localfolder1" to "/remotefolder/remotefolder1/remotefolder2"

      Upload: "E:\localfolder\localfolder1\*.*" to "/"

       

      any trailing "/" or "\" are removed when you hit save.

       

      when I add the /remotefolder/remotefolder1/remotefolder2 to the remote folder location, the error logs show it attempts to create remote directories remotefolder/remotefolder1/remotefolder2

       

      I have changed the site profile advanced options \ file transfer \ transfer mode to Binary.

       

      here is the thing i don't understand.  I can connect using the browser and see the remote site, and i can transfer files to and delete on the remote end with no issues at all and the logs are much smaller.  only when trying to use the scheduler is where things go goofy.

       

       

      [07] Sat 27Feb16 12:18:15 - SSH_MSG_USERAUTH_REQUEST: user: XXXXXX; service: ssh-connection; type: publickey

      [08] Sat 27Feb16 12:18:15 - SSH_MSG_USERAUTH_PK_OK: public key algorithm accepted

      [07] Sat 27Feb16 12:18:15 - SSH_MSG_USERAUTH_REQUEST: user: XXXXXX; service: ssh-connection; type: publickey

      [08] Sat 27Feb16 12:18:16 - SSH_MSG_USERAUTH_SUCCESS: authentication successful

      [03] Sat 27Feb16 12:18:16 - Login successful.

      [07] Sat 27Feb16 12:18:16 - SSH_MSG_CHANNEL_OPEN: type: session; local channel: 0

      [08] Sat 27Feb16 12:18:16 - SSH_MSG_CHANNEL_OPEN_CONFIRMATION: local channel: 0; remote channel: 0

      [07] Sat 27Feb16 12:18:16 - SSH_MSG_CHANNEL_REQUEST: remote channel: 0; request type: subsystem; subsytem: sftp

      [08] Sat 27Feb16 12:18:16 - SSH_MSG_CHANNEL_SUCCESS: channel request succeeded; local channel: 0

      [07] Sat 27Feb16 12:18:16 - SSH_FXP_INIT: client version: 6

      [08] Sat 27Feb16 12:18:16 - SSH_FXP_VERSION: server version: 3

      [03] Sat 27Feb16 12:18:16 - Negotiated SFTP version 3

      [07] Sat 27Feb16 12:18:16 - SSH_FXP_REALPATH: translating path: .

      [08] Sat 27Feb16 12:18:16 - SSH_FXP_NAME: translated path: /remotefolder/remotefolder1/remotefolder2

      [13] Sat 27Feb16 12:18:16 - (Action: "E:\localfolder\localfolder1" to "/") - Uploading from "E:\localfolder\localfolder" to "/"

      [07] Sat 27Feb16 12:18:16 - SSH_FXP_STAT: path: /localfolder1/Test Doc.txt

      [08] Sat 27Feb16 12:18:16 - SSH_FXP_STATUS: status: SSH_FX_NO_SUCH_FILE; description: No such file

      [03] Sat 27Feb16 12:18:16 - Sending: E:\localfolder\localfolder1\Test Doc.txt -> /remotefolder2/Test Doc.txt

      [07] Sat 27Feb16 12:18:16 - SSH_FXP_STAT: path: /remotefolder2

      [03] Sat 27Feb16 12:18:16 - Connecting to "XXX.XXX.XXX.XXX" on port 22.

      [03] Sat 27Feb16 12:18:16 - Connected to XXX.XXX.XXX.XXX:22 from XXX.XXX.XXX.XXX:57917.

      [03] Sat 27Feb16 12:18:16 - Negotiating SSH2 session with server...

      [03] Sat 27Feb16 12:18:16 - Client Identification: SSH-2.0-FTP Voyager_16.2.0.328

      [03] Sat 27Feb16 12:18:16 - Server Identification: SSH-2.0-OpenSSH_5.3

      [03] Sat 27Feb16 12:18:16 - Initializing key exchange process...

      [03] Sat 27Feb16 12:18:16 - Selected key exchange algorithm: diffie-hellman-group1-sha1

      [08] Sat 27Feb16 12:18:16 - SSH_FXP_STATUS: status: SSH_FX_NO_SUCH_FILE; description: No such file

      [07] Sat 27Feb16 12:18:16 - SSH_FXP_MKDIR: path: /remotefolder2

      [08] Sat 27Feb16 12:18:16 - SSH_FXP_STATUS: status: SSH_FX_PERMISSION_DENIED; description: Permission denied

      [04] Sat 27Feb16 12:18:16 - Unable to create parent folder for upload: /remotefolder2

      [04] Sat 27Feb16 12:18:16 - Upload failed: Could not create target path for "/remotefolder2/Test Doc.txt"

      [04] Sat 27Feb16 12:18:16 - Retrying failed transfer (attempt 2 out of 3)...

       

      any help would be great.

       

      thanks,

        • Re: uploading files using the scheduler has errors
          mc2000

          OK, I got it figured out with the help of an Admin on the receiving side.

           

          so in order to make the scheduled porting to automatically work, in the remote path you need to specify the absolute path.

           

          so the home folder on the receiving end is a Linux server, and the home directory is specified as /folder/folder1/folder2.  so in the remote file or folder location you need to specify the following: ~folder2

          That did the trick,  "/" does not work!