sponsored links



No announcement yet.

sftp issue when trying to push a file

  • Filter
  • Time
  • Show
Clear All
new posts

  • sftp issue when trying to push a file

    Hey folks,.. I did several thousands of sftp transfers on daily-basis with success but with a specific file which before worked good.. now I have an error, see below the log from QSH:

    remote open("/remote_path/myfile1.txt"): Failure
    debug2: channel 0: read<=0 rfd 4 len 0
    debug2: channel 0: read failed
    debug2: channel 0: close_read
    debug2: channel 0: input open -> drain
    debug2: channel 0: ibuf empty
    debug2: channel 0: send eof
    debug2: channel 0: input drain -> closed
    debug2: channel 0: rcvd close
    debug2: channel 0: output open -> drain
    debug3: channel 0: will not send data after close
    debug2: channel 0: obuf empty
    debug2: channel 0: close_write
    debug2: channel 0: output drain -> closed
    debug2: channel 0: almost dead
    debug2: channel 0: gc: notify user
    debug2: channel 0: gc: user detached
    debug2: channel 0: send close
    debug2: channel 0: is dead
    debug2: channel 0: garbage collecting
    debug1: channel 0: free: client-session, nchannels 1
    debug3: channel 0: status: The following connections are open:
    #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

    debug3: fd 0 is not O_NONBLOCK
    debug3: fd 1 is not O_NONBLOCK
    Transferred: sent 3824, received 3592 bytes, in 0.2 seconds
    Bytes per second: sent 17858.9, received 16775.4
    debug1: Exit status -1

    what can be the root-issue? To be mentioned that initially was good.

    with this specific process for which I have this error for myfile1.txt I do sftp for 3 files, 2 with success and this one with error, below you can find the permissions on UNIX side for all the three files:
    -rw-rwxr-- 1 RMT_USR CLIENT_WRITE 95850 Apr 9 07:00 myfile1.txt
    -rw-rwxr-- 1 RMT_USR CLIENT_WRITE 4278285 Apr 9 09:55 myfile2.txt
    -rw-rwxr-- 1 RMT_USR CLIENT_WRITE 506970 Apr 9 07:00 myfile3.txt

    To be mentioned also that I send the files using SFTP_RMT_USR with which I login on UNIX platform during the QSH session, in batch mode and the files are consumed by RMT_USR, from client side...

    Any idea will be useful..

    One more observation.. when I login on AS400 side using the sftp AS400 user, SFTPUSR, which has the keys in IFS, and start PASE with STRQSH and performed the sftp command:
    sftp -vvv -b /home/SFTPUSR/mydir/sftp_script SFTP_RMT_USR@rmt_host > /home/SFTPUSR/logman_1004.txt 2>&1
    was with success

  • #2
    In interactive sftp session works well.. I don't find the root issue yet...


    sponsored links