Issue with ftp upload using explicit SSL

510 views
Skip to first unread message

spencer@3ex

unread,
Oct 28, 2009, 8:10:23 AM10/28/09
to SOFTplus GSiteCrawler
Hello,

we are very new to gsite crawler so please bear with us.

We have to use explicit SSL to upload files to our website.

when we try to upload the test file we get the following error

FTP Connection 28/10/2009 11:54
GSiteCrawler v1.23 rev. 286
----------------------------------------
Connecting to 194.143.179.40...
Using FTP/SSL (explicit)
Connect to 194.143.179.40:21 with user suttons
Connected.
220
234 AUTH command ok. Expecting TLS Negotiation.
Connected.
331 Password required for suttons.
230 User logged in.
Password ok
*** CONNECTION OK ***
257 "/" is current directory.
Checking Remote Directory ...
250 CWD command successful.
Directory exists
250 CWD command successful.
250 CWD command successful.
Putting C:\Program Files\SOFTplus\GSiteCrawler\Projects\Sample_Site\
$test.xml ...
200 Type set to I.
227 Entering Passive Mode (194,143,179,40,19,42).
ERROR!: Connect method failed. No connection could be made because the
target machine actively refused it. This usually results from trying
to connect to a service that is inactive on the foreign host - i.e.
one with no server application running.
Put failed: Error 10061: Connect method failed. No connection could be
made because the target machine actively refused it. This usually
results from trying to connect to a service that is inactive on the
foreign host - i.e. one with no server application running.
Putting C:\Program Files\SOFTplus\GSiteCrawler\Projects\Sample_Site\
$test.xml.gz ...
534 Policy requires SSL.
Put failed: 534 Policy requires SSL.
TOTAL 2 ERRORS.
221 Goodbye.
Connection Closed.


looking at the logs on the ftp server we find the following when we
get to the data transfer section
SSL+policy+requires+SSL+for+data+channel.


I assume gsitecrawler is logging in using ftp with explicit SSL but
then reverting to plain ftp for data transfer.

Is there anyway to ensure we continue to use ftp over explicit SSL at
all times?

For verification purposes we have used filezilla to connect to the
same site and to upload a test file this works as expected. I have
included this log ( not sure if it is of any use though )
Status: Connecting to 194.143.179.40:21...
Status: Connection established, waiting for welcome message...
Response: 220
Command: AUTH TLS
Response: 234 AUTH command ok. Expecting TLS Negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Command: USER suttons
Status: TLS/SSL connection established.
Response: 331 Password required for suttons.
Command: PASS ********
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Response: 200 PBSZ command successful.
Command: PROT P
Response: 200 PROT command successful.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Status: Directory listing successful
Status: Connecting to 194.143.179.40:21...
Status: Connection established, waiting for welcome message...
Response: 220
Command: AUTH TLS
Response: 234 AUTH command ok. Expecting TLS Negotiation.
Status: Initializing TLS...
Status: Verifying certificate...
Command: USER suttons
Status: TLS/SSL connection established.
Response: 331 Password required for suttons.
Command: PASS ********
Response: 230 User logged in.
Command: OPTS UTF8 ON
Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Command: PBSZ 0
Response: 200 PBSZ command successful.
Command: PROT P
Response: 200 PROT command successful.
Status: Connected
Status: Starting upload of C:\test.xml
Command: CWD /
Response: 250 CWD command successful.
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PASV
Response: 227 Entering Passive Mode (194,143,179,40,19,45).
Command: STOR test.xml
Response: 150 Opening BINARY mode data connection.
Response: 226 Transfer complete.
Status: File transfer successful
Status: Retrieving directory listing...
Command: PASV
Response: 227 Entering Passive Mode (194,143,179,40,19,46).
Command: LIST -a
Response: 125 Data connection already open; Transfer starting.
Response: 226 Transfer complete.
Status: Directory listing successful
Status: Disconnected from server

any help you can give would be greatly appreciated


Kind regards


Spencer Clark

webado

unread,
Oct 28, 2009, 8:37:05 AM10/28/09
to SOFTplus GSiteCrawler
Sorry, I cannot tell, I don't use this for my server.

But does your ftp address reflect the SSL ? Are you using ftps://....
for the host address?

spencer@3ex

unread,
Oct 29, 2009, 9:40:55 AM10/29/09
to SOFTplus GSiteCrawler


I dont think the issue is with connecting to the server using ftpes as
this works. We can see from the log that we connect correctly to the
server.

Where it goes wrong is when we try to upload the file. At this point
the log indicates

534 Policy requires SSL.
Put failed: 534 Policy requires SSL.

to me this would indicate that while the login to the server was made
using secure ftp over explicit SSL the data transfer is being
attempted just as ftp and this is the reason for the failure. To me
it would seem to be the upload program in gsitecrawler that may be the
cause of the issue.

If we use a program like filezilla we can succesfully upload a file to
this site using ftpes.

Is there any way to check if the ftp upload using gsitecrawler is
working correctly using ftpes ?

Kind regards


Spencer Clark
> > Spencer Clark- Hide quoted text -
>
> - Show quoted text -

Christina S

unread,
Oct 30, 2009, 1:23:54 AM10/30/09
to gsitec...@googlegroups.com
I cannot check because I don't have an SSL cert anywhere.

I fail to see how the upload function can change protocol - I thought that
was established at connect time. But what do I know ...
Christina
www.webado.net

Reply all
Reply to author
Forward
0 new messages