Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP Put fails OpenVMS to Linux

 
FreeFall
Occasional Advisor

SFTP Put fails OpenVMS to Linux

Hi,

I'm trying to use SFTP to move a file from an OpenVMS system to an FTP appliance. The 'put' fails and leaves an empty file on the destination.

Source:

TCPIP> show ver

HP TCP/IP Services for OpenVMS Alpha Version V5.6
on an AlphaServer 800 5/500 running OpenVMS V8.3

sftp "-V"
dkb300:[sys0.syscommon.][sysexe]tcpip$ssh_sftp2.exe;1: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on AlphaServer 800 5/500 - VMS V8.3
-----

Destination:

Kernel:
Linux 2.6.5-7.283-smp #1 SMP Wed Nov 29 16:55:53 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux

OS:
SUSE LINUX Enterprise Server 9 (x86_64)
VERSION = 9
PATCHLEVEL = 3

Device:
Axway (formerly Tumbleweed) Secure Transport Appliance
-----

sftp> debug 3
sftp> put login.com
SshFCGlob/SSHFC_GLOB.C:753: Adding file login.com to file list without globbing...
SshFCGlob/SSHFC_GLOB.C:625: File list is at its end.
SshFCGlob/SSHFC_GLOB.C:930: Destroying global data...
SshFCRecurse/SSHFC_RECURSE.C:362: File is "raw", and it needs to be parsed.
Ssh2SftpServer/SSHFILEXFERS.C:2776: Received SSH_FXP_STAT
Ssh2SftpServer/SSHFILEXFERS.C:2798: SSH_FXP_STAT login.com
Ssh2SftpServer/SSHFILEXFERS.C:2800: Statting file `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:2860: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:2928: attrs->size=1461
SshFCRecurse/SSHFC_RECURSE.C:487: File login.com is not a directory. Adding it to list...
SshFCRecurse/SSHFC_RECURSE.C:602: No more files in this list.
SshFCTransfer/SSHFC_TRANSFER.C:2321: File list has 2 files.
SshFCTransfer/SSHFC_TRANSFER.C:346: Setting next source file item...
SshFCTransfer/SSHFC_TRANSFER.C:575: Next source file is /login.com .
SshFCTransfer/SSHFC_TRANSFER.C:1297: Statting source file login.com...
Ssh2SftpServer/SSHFILEXFERS.C:2776: Received SSH_FXP_STAT
Ssh2SftpServer/SSHFILEXFERS.C:2798: SSH_FXP_STAT login.com
Ssh2SftpServer/SSHFILEXFERS.C:2800: Statting file `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:2860: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:2928: attrs->size=1461
SshFCTransfer/SSHFC_TRANSFER.C:1370: Statting destination file . before trying to remove it...
SshFCTransfer/SSHFC_TRANSFER.C:1589: Statting destination file to check len ./login.com...
Ssh2SftpServer/SSHFILEXFERS.C:1903: Received SSH_FXP_OPEN
Ssh2SftpServer/SSHFILEXFERS.C:1981: SSH_FXP_OPEN login.com
Ssh2SftpServer/SSHFILEXFERS.C:1997: Downloading `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:2064: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:1272: (MAXFOPENARGS * sizeof(unsigned int)) + ARGSTRSIZ is 291
Ssh2SftpServer/SSHFILEXFERS.C:1272: (MAXFOPENARGS * sizeof(unsigned int)) + ARGSTRSIZ is 291
SshFCTransfer/SSHFC_TRANSFER.C:1394: Statting destination file ./login.com...
SshReadLine/SSHREADLINE.C:3718: Uninitializing ReadLine...
FATAL: BUILD23$:[TCPIP_V56_BL9.SRC.SSH2]SSHFC_TRANSFER.C;1:1743 SshFCTransfer (function name unavailable) Assertion failed: tdata->current_dest_file->attributes->flags & 0x00000004


%TCPIP-F-SSH_FATAL, non-specific fatal error condition

----

note that we have a VMS Multinet box as well which does not have a problem sending files to the same destination.

Any thoughts?
9 REPLIES 9
Hoff
Honored Contributor

Re: SFTP Put fails OpenVMS to Linux

Look for and load an ECO kit, then contact HP support should a support agreement be in place and/or use Multinet and/or try a different sftp daemon.

Similar errors have been reported before:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1261792

Googling for

SSHFC_TRANSFER.C SshFCTransfer Assertion failed

will kick over a couple of more.
Steven Schweda
Honored Contributor

Re: SFTP Put fails OpenVMS to Linux

> HP TCP/IP Services for OpenVMS Alpha Version V5.6
> on an AlphaServer 800 5/500 running OpenVMS V8.3

Around here:

alp $ tcpip show version

HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 4
on a COMPAQ Professional Workstation XP1000 running OpenVMS V8.3


I'd vote for a little ECO action before
anything else. (TCPIP is none too good when
it's current, and it can be much worse when
it's old.)
FreeFall
Occasional Advisor

Re: SFTP Put fails OpenVMS to Linux



Okay, now I have:

HP TCP/IP Services for OpenVMS Alpha Version V5.6 - ECO 4
on an AlphaServer 800 5/500 running OpenVMS V8.3

Still the exact same problem. Multinet is not an option unfortunately. We're in the process of contacting HP however I'm not optimistic.
Steven Schweda
Honored Contributor

Re: SFTP Put fails OpenVMS to Linux

> Okay, now I have:

Looks like mine.

> Still the exact same problem. [...]

How "exact same"? My transcript (below)
seems to differ from yours, even before
things go bad.

Hmmm. Around here, no such problem.

I don't have a Secure Transport Appliance,
but I do have something like a GNU/Linux
system:

debi# uname -a
Linux debi 2.6.26-2-mckinley #1 SMP Thu Nov 5 03:58:10 UTC 2009 ia64 GNU/Linux

debi# ssh -V
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007

debi# /usr/sbin/sshd -V
sshd: illegal option -- V
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
[...]

ALP $ sftp root@debi
root@debi's password:
sftp> debug 3
sftp> put login.com
SshFCGlob/SSHFC_GLOB.C:874: Adding file login.com to file list without globbing...
SshFCGlob/SSHFC_GLOB.C:720: File list is at its end.
SshFCGlob/SSHFC_GLOB.C:1051: Destroying global data...
SshFCRecurse/SSHFC_RECURSE.C:401: File is "raw", and it needs to be parsed.
Ssh2SftpServer/SSHFILEXFERS.C:3235: Received SSH_FXP_STAT
Ssh2SftpServer/SSHFILEXFERS.C:3308: SSH_FXP_STAT login.com
Ssh2SftpServer/SSHFILEXFERS.C:3310: Statting file `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:3445: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:3549: attrs->size=6166
SshFCRecurse/SSHFC_RECURSE.C:571: File login.com is not a directory. Adding it to list...
SshFCRecurse/SSHFC_RECURSE.C:748: No more files in this list.
SshFCTransfer/SSHFC_TRANSFER.C:2463: File list has 2 files.
SshFCTransfer/SSHFC_TRANSFER.C:355: Setting next source file item...
SshFCTransfer/SSHFC_TRANSFER.C:561: Next source file is /login.com .
SshFCTransfer/SSHFC_TRANSFER.C:1283: Statting source file login.com...
Ssh2SftpServer/SSHFILEXFERS.C:3235: Received SSH_FXP_STAT
Ssh2SftpServer/SSHFILEXFERS.C:3308: SSH_FXP_STAT login.com
Ssh2SftpServer/SSHFILEXFERS.C:3310: Statting file `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:3445: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:3549: attrs->size=6166
SshFCTransfer/SSHFC_TRANSFER.C:1432: Statting destination file . before trying to remove it...
SshFCTransfer/SSHFC_TRANSFER.C:1654: Statting destination file to check len ./login.com...
Ssh2SftpServer/SSHFILEXFERS.C:2281: Received SSH_FXP_OPEN
Ssh2SftpServer/SSHFILEXFERS.C:2359: SSH_FXP_OPEN login.com
Ssh2SftpServer/SSHFILEXFERS.C:2375: Downloading `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:2442: rfm=FAB$C_VAR
SshFCTransfer/SSHFC_TRANSFER.C:1456: Statting destination file ./login.com...
SshFCTransferCore/SSHFC_TRCORE.C:369: Starting transfer for file login.com, destination ./login.com
SshFCTransferCore/SSHFC_TRCORE.C:377: Calling OpenVMS$reset_terminal_pasthru()
SshFCTransferCore/SSHFC_TRCORE.C:498: transfer_shred entered
SshFCTransferCore/SSHFC_TRCORE.C:846: transfer_write_out entered
SshFCTransferCore/SSHFC_TRCORE.C:846: transfer_write_out entered
SshFCTransferCore/SSHFC_TRCORE.C:846: transfer_write_out entered
SshFCTransferCore/SSHFC_TRCORE.C:846: transfer_write_out entered
login.com | 6.0kB | 6.0 kB/s | TOC: 00:00:01 | 100%
SshFCTransferCore/SSHFC_TRCORE.C:877: Writer finished.
SshFCTransfer/SSHFC_TRANSFER.C:1943: Destination file attributes not available or that file is not a regular file; not changing attributes.
SshFCTransfer/SSHFC_TRANSFER.C:1972: Closing source file login.com...
SshFCTransfer/SSHFC_TRANSFER.C:1989: Closing dest file ./login.com...
SshFCTransfer/SSHFC_TRANSFER.C:2036: Finished with file ./login.com.
SshFCTransfer/SSHFC_TRANSFER.C:355: Setting next source file item...
SshFCTransfer/SSHFC_TRANSFER.C:375: No more source files in this list.
SshFCGlob/SSHFC_GLOB.C:198: Destroying thread data...
sftp> Ssh2SftpServer/SSHFILEXFERS.C:2949: Received SSH_FXP_CLOSE
Ssh2SftpServer/SSHFILEXFERS.C:2951: SSH_FXP_CLOSE
Ssh2SftpServer/SSHFILEXFERS.C:3053: Closed file `login.com' (handle=649dcd)


Now, it _is_ TCPIP, so it hung there without
displaying a prompt until I hit Return, but
then it resumed (sub-?) normal operation:

sftp> quit
SshUnixPipeStream/SSHUNIXPIPESTREAM.C:481: ssh_pipe_stream_destroy
SshReadLine/SSHREADLINE.C:3728: Uninitializing ReadLine...


And, at the far end:

debi# ls -l log*
-rwxr-xr-x 1 root root 6166 Mar 5 09:42 login.com


> [...] however I'm not optimistic.

One never knows.
FreeFall
Occasional Advisor

Re: SFTP Put fails OpenVMS to Linux



Sorry, here is what I see:

sftp> put login.com
SshFCGlob/SSHFC_GLOB.C:874: Adding file login.com to file list without globbing...
SshFCGlob/SSHFC_GLOB.C:720: File list is at its end.
SshFCGlob/SSHFC_GLOB.C:1051: Destroying global data...
SshFCRecurse/SSHFC_RECURSE.C:401: File is "raw", and it needs to be parsed.
Ssh2SftpServer/SSHFILEXFERS.C:3235: Received SSH_FXP_STAT
Ssh2SftpServer/SSHFILEXFERS.C:3308: SSH_FXP_STAT login.com
Ssh2SftpServer/SSHFILEXFERS.C:3310: Statting file `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:3445: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:3549: attrs->size=1461
SshFCRecurse/SSHFC_RECURSE.C:571: File login.com is not a directory. Adding it to list...
SshFCRecurse/SSHFC_RECURSE.C:748: No more files in this list.
SshFCTransfer/SSHFC_TRANSFER.C:2463: File list has 2 files.
SshFCTransfer/SSHFC_TRANSFER.C:355: Setting next source file item...
SshFCTransfer/SSHFC_TRANSFER.C:561: Next source file is /login.com .
SshFCTransfer/SSHFC_TRANSFER.C:1283: Statting source file login.com...
Ssh2SftpServer/SSHFILEXFERS.C:3235: Received SSH_FXP_STAT
Ssh2SftpServer/SSHFILEXFERS.C:3308: SSH_FXP_STAT login.com
Ssh2SftpServer/SSHFILEXFERS.C:3310: Statting file `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:3445: rfm=FAB$C_VAR
Ssh2SftpServer/SSHFILEXFERS.C:3549: attrs->size=1461
SshFCTransfer/SSHFC_TRANSFER.C:1432: Statting destination file . before trying to remove it...
SshFCTransfer/SSHFC_TRANSFER.C:1654: Statting destination file to check len ./login.com...
Ssh2SftpServer/SSHFILEXFERS.C:2281: Received SSH_FXP_OPEN
Ssh2SftpServer/SSHFILEXFERS.C:2359: SSH_FXP_OPEN login.com
Ssh2SftpServer/SSHFILEXFERS.C:2375: Downloading `login.com'
Ssh2SftpServer/SSHFILEXFERS.C:2442: rfm=FAB$C_VAR
SshFCTransfer/SSHFC_TRANSFER.C:1456: Statting destination file ./login.com...
SshReadLine/SSHREADLINE.C:3728: Uninitializing ReadLine...
FATAL: BUILD12$:[TCPIP_V56_BLECO4.SRC.SSH2]SSHFC_TRANSFER.C;1:1835 SshFCTransfer (function name unavailable) Assertion failed: tdata->current_dest_file->attributes->flags & 0x00000004


The only difference that jumps out at me is the 'attrs->size=6166' vs 'attrs->size=1461'.

My disk is ODS-2. I wondered if it would work with an ODS-5 Disk for some reason - I tried it and still fails in exactly the same fashion.