I am using the latest pro trial version to retrieve mailboxed EDI data from GXS (ICS). They use SSL-Implicit on high ports. I can connect OK and the server "sends" the file but zero bytes are actually transferred.
Here is part of the log (with ip and port changed for security). Any Ideas?
150 Opening data connection for transfer.
TYPE I
200 TYPE set to I
PASV
227 123,123,123,123,12,345
RETR DFSABCOT
Connect socket #1220 to 123.123.123.123, port 1234...
150 Opening data connection for transfer.
226-Closing data connection - action successful.
Extraction command SNRF: 92920121BSD
DFSABCOT - 0 bytes transferred
MDTM DFSABCOT
226
Transfer time: 00:01:02
Zero byte downloads from GXS (ICS)
I am actually consulting and setting this up for several clients. I had similar issues with a competitive product. They recommended a using a switch "/ibm" that resolved the issue.
The interesting thing about CoreFTP is that it hangs after the retrieve command until the "Transfered 0 bytes" message.
The interesting thing about CoreFTP is that it hangs after the retrieve command until the "Transfered 0 bytes" message.
[quote="CP"]the only thing that comes to mind for the /ibm setting, is that possibly the data channel is not being encrypted.[/quote]
That is most likely correct. When I run Wireshark, the data itself is encrypted but the packet info is not.
Here is the log from the other program that works:
*Processing script: C:\Program Files\FTP\GXS-SSL-TEST.s.
Line 1: WORKINGDIR "H:"
*Working directory: H:
Line 2: :Top
Line 3: TRACELOG "\ssl\ssl-trace.log" /new /debug
*Trace log file ready - \ssl\ssl-trace Mon Dec 07 10.46.16 2009.log
Line 4: SESSIONLOG "\ssl\ssl-session.log"
Line 5: LOG "\ssl\ssl-log.log" /new /all
*Script log file ready - \ssl\ssl-log Mon Dec 07 10.46.16 2009.log
Line 6: LOOPCOUNT 1
Line 7: :LogonLoop
Line 8: FTPLOGON "LOGINID-SSL" /timeout=60 /allowerrors /pasvport=6366 /pasv /servertype=FTPSIMP /restrictipaddr /ibm
*Logging on to <loginid-ssl> as implicit SSL/FTP.
*Logon in progress...
*Logon successful.
*IBM Host Features enabled.
Line 9: IFERROR= $ERROR_SUCCESS GOTO Operation1
Line 10: :Operation1
Line 11: LOOPCOUNT 1
Line 12: :CommandLoop1
Line 13: FTPLIST
* 7 items listed to "H:\sitelist.txt".
Line 14: IFERROR= $ERROR_SUCCESS GOTO Operation2
Line 15: :Operation2
Line 16: LOOPCOUNT 1
Line 17: :FileLoop1
Line 18: RCVFILE "%DFSABCOT%012345AB" /as "GXStest.txt" /timeout=60
*Receiving to "H:\GXStest.txt"
*Complete, received 23 bytes in 3 seconds (7 cps)
*Download complete, 1 file received.
Line 19: IFERROR= $ERROR_SUCCESS GOTO Disconnect
Line 20: :Disconnect
Line 21: FTPLOGOFF
*Logoff successful.
Line 22: MESSAGEBOX "Link disconnected"
Line 23: :Exit
Line 24: STOP
*Script Stopped
[/code]
That is most likely correct. When I run Wireshark, the data itself is encrypted but the packet info is not.
Here is the log from the other program that works:
*Processing script: C:\Program Files\FTP\GXS-SSL-TEST.s.
Line 1: WORKINGDIR "H:"
*Working directory: H:
Line 2: :Top
Line 3: TRACELOG "\ssl\ssl-trace.log" /new /debug
*Trace log file ready - \ssl\ssl-trace Mon Dec 07 10.46.16 2009.log
Line 4: SESSIONLOG "\ssl\ssl-session.log"
Line 5: LOG "\ssl\ssl-log.log" /new /all
*Script log file ready - \ssl\ssl-log Mon Dec 07 10.46.16 2009.log
Line 6: LOOPCOUNT 1
Line 7: :LogonLoop
Line 8: FTPLOGON "LOGINID-SSL" /timeout=60 /allowerrors /pasvport=6366 /pasv /servertype=FTPSIMP /restrictipaddr /ibm
*Logging on to <loginid-ssl> as implicit SSL/FTP.
*Logon in progress...
*Logon successful.
*IBM Host Features enabled.
Line 9: IFERROR= $ERROR_SUCCESS GOTO Operation1
Line 10: :Operation1
Line 11: LOOPCOUNT 1
Line 12: :CommandLoop1
Line 13: FTPLIST
* 7 items listed to "H:\sitelist.txt".
Line 14: IFERROR= $ERROR_SUCCESS GOTO Operation2
Line 15: :Operation2
Line 16: LOOPCOUNT 1
Line 17: :FileLoop1
Line 18: RCVFILE "%DFSABCOT%012345AB" /as "GXStest.txt" /timeout=60
*Receiving to "H:\GXStest.txt"
*Complete, received 23 bytes in 3 seconds (7 cps)
*Download complete, 1 file received.
Line 19: IFERROR= $ERROR_SUCCESS GOTO Disconnect
Line 20: :Disconnect
Line 21: FTPLOGOFF
*Logoff successful.
Line 22: MESSAGEBOX "Link disconnected"
Line 23: :Exit
Line 24: STOP
*Script Stopped
[/code]
Thanks;
I was able to transfer files using the IBM IE/FTP server type and a post login script of GET %DFSABCOT%012345AB (their required format).
My next problem is using a command line script. Plain FTP works but SSL does not.
I copied the site, changing just the destination IP, port and connection type to FTP. Both "Sites" pulled down a file and placed it; un-renamed; in the CoreFTP root folder.
So I removed the "get script" and ran this from the commad line:
corecmd.exe -output h:\coreftp\out.log -site USERID-test-FTP -d /%DFSAEROT%015237DA -p h:\coreftp\ -FN coreftptest.txt -log h:\coreftp\core.log
then I changed just the site name to reference the SSL. The FTP command worked as expected. It renamed the file and put it in the proper place. The SSL failed to pull the file.
Here are the CoreFTP logs:
---- Begin FTP Success -----------------
Started on Tuesday December 08, 2009 at 14:37:PM
Connect socket #608 to 123.123.123.123, port 21...220 Enterprise FTP server (version 7249) ready.
USER USERID
331 User name okay, need password.
PASS **********
230-User logged in, proceed.
Current Default Relationship - Recv: USERID APRF: *BINARY
Get option: single
230
Keep alive off...PWD
200-Command Okay.
ID: USERID, Current TR - Recv: USERID, APRF: *BINARY, Dir: S.
Get option: single.
200
CWD
501-Syntax errors in parameter.
usage: %[recipient id]%[APRF]
where either [recipient] or [APRF] can be omitted.
(to change your current default SEND relationship).
%% (places you in your 'HOME' TR).
&['s'|'single'] ('get' command gets single file).
&['m'|'multiple'] ('get' command gets multiple files).
501
Error loading directory...TYPE A
200 TYPE set to A
PASV
227 Entering Passive Mode (123,123,123,123,69,69)
RETR %DFSABCOT%012345AB
150 Opening data connection for transfer.
226-Closing data connection - action successful.
Extraction command SNRF: 09120819376LIW
226
coreftptest.txt - 23 bytes transferred
MDTM %DFSABCOT%012345AB
500 Syntax error, command unrecognised.
QUIT
221 Service closing control connection.
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 1
Total downloaded data: 23
--------- End FTP Success ----------------
-------- Begin SSL Failure ---------------
Started on Tuesday December 08, 2009 at 14:53:PM
Resolving sftp.gxs123.com...
Connect socket #608 to 123.123.123.123, port 6366...TLSv1, cipher TLSv1/SSLv3 (DHE-RSA-AES256-SHA) - 256 bit
USER USERID
331-220 Enterprise FTP server (version 7249) ready.
331 User name okay, need password.
PASS **********
230-User logged in, proceed.
Current Default Relationship - Recv: USERID APRF: *BINARY
Keep alive off...PWD
Get option: single
230
CWD
ID: USERID, Current TR - Recv: USERID, APRF: *BINARY, Dir: S.
Get option: single.
200
Transferred 0 bytes in 0.008 seconds
PWD
TYPE A
501-Syntax errors in parameter.
_usage: %[recipient id]%[APRF]
where either [recipient] or [APRF] can be omitted.
(to change your current default SEND relationship).
No response from server, disconnecting...Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
-------- End SSL Failure -----------------
I was able to transfer files using the IBM IE/FTP server type and a post login script of GET %DFSABCOT%012345AB (their required format).
My next problem is using a command line script. Plain FTP works but SSL does not.
I copied the site, changing just the destination IP, port and connection type to FTP. Both "Sites" pulled down a file and placed it; un-renamed; in the CoreFTP root folder.
So I removed the "get script" and ran this from the commad line:
corecmd.exe -output h:\coreftp\out.log -site USERID-test-FTP -d /%DFSAEROT%015237DA -p h:\coreftp\ -FN coreftptest.txt -log h:\coreftp\core.log
then I changed just the site name to reference the SSL. The FTP command worked as expected. It renamed the file and put it in the proper place. The SSL failed to pull the file.
Here are the CoreFTP logs:
---- Begin FTP Success -----------------
Started on Tuesday December 08, 2009 at 14:37:PM
Connect socket #608 to 123.123.123.123, port 21...220 Enterprise FTP server (version 7249) ready.
USER USERID
331 User name okay, need password.
PASS **********
230-User logged in, proceed.
Current Default Relationship - Recv: USERID APRF: *BINARY
Get option: single
230
Keep alive off...PWD
200-Command Okay.
ID: USERID, Current TR - Recv: USERID, APRF: *BINARY, Dir: S.
Get option: single.
200
CWD
501-Syntax errors in parameter.
usage: %[recipient id]%[APRF]
where either [recipient] or [APRF] can be omitted.
(to change your current default SEND relationship).
%% (places you in your 'HOME' TR).
&['s'|'single'] ('get' command gets single file).
&['m'|'multiple'] ('get' command gets multiple files).
501
Error loading directory...TYPE A
200 TYPE set to A
PASV
227 Entering Passive Mode (123,123,123,123,69,69)
RETR %DFSABCOT%012345AB
150 Opening data connection for transfer.
226-Closing data connection - action successful.
Extraction command SNRF: 09120819376LIW
226
coreftptest.txt - 23 bytes transferred
MDTM %DFSABCOT%012345AB
500 Syntax error, command unrecognised.
QUIT
221 Service closing control connection.
Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 1
Total downloaded data: 23
--------- End FTP Success ----------------
-------- Begin SSL Failure ---------------
Started on Tuesday December 08, 2009 at 14:53:PM
Resolving sftp.gxs123.com...
Connect socket #608 to 123.123.123.123, port 6366...TLSv1, cipher TLSv1/SSLv3 (DHE-RSA-AES256-SHA) - 256 bit
USER USERID
331-220 Enterprise FTP server (version 7249) ready.
331 User name okay, need password.
PASS **********
230-User logged in, proceed.
Current Default Relationship - Recv: USERID APRF: *BINARY
Keep alive off...PWD
Get option: single
230
CWD
ID: USERID, Current TR - Recv: USERID, APRF: *BINARY, Dir: S.
Get option: single.
200
Transferred 0 bytes in 0.008 seconds
PWD
TYPE A
501-Syntax errors in parameter.
_usage: %[recipient id]%[APRF]
where either [recipient] or [APRF] can be omitted.
(to change your current default SEND relationship).
No response from server, disconnecting...Total uploaded files: 0
Total uploaded data: 0
Total downloaded files: 0
Total downloaded data: 0
-------- End SSL Failure -----------------
[quote="CP"]If you are using the command line, could you post what you are using so I can set up a test to run for a while on a gxs server?[/quote]
You mean my logon information!???
I'm not sure I understand what you mean by "what you are using"?
The command I'm sending is:
corecmd.exe -output h:\coreftp\out.log -site USERID-test-FTP -d /%DFSAEROT%015237DA -p h:\coreftp\ -FN coreftptest.txt -log h:\coreftp\core.log
btw, why don't the BBCode features work in the Forum? I have them turned on in my profile.
You mean my logon information!???
I'm not sure I understand what you mean by "what you are using"?
The command I'm sending is:
corecmd.exe -output h:\coreftp\out.log -site USERID-test-FTP -d /%DFSAEROT%015237DA -p h:\coreftp\ -FN coreftptest.txt -log h:\coreftp\core.log
btw, why don't the BBCode features work in the Forum? I have them turned on in my profile.
[quote="CP"]If you are using the command line, could you post what you are using so I can set up a test to run for a while on a GXS server?[/quote]
Do you need to a test ID? If so, I can have one setup and send you the information in a private message. I would like to get this working soon so I can tell the customers to go ahead and purchase your Pro product.
Do you need to a test ID? If so, I can have one setup and send you the information in a private message. I would like to get this working soon so I can tell the customers to go ahead and purchase your Pro product.