Re: Sitecopy times out

Joe Orton <[email protected]> Tue, 6 Jun 2006 08:19:33 +0100
Newsgroups gmane.comp.web.sitecopy
Message-ID <[email protected]>
On Sun, Jun 04, 2006 at 08:11:03AM +0100, Theo Carr-Brion wrote:
> I am having problems using sitecopy (0.16.3) to upload some files. Every 
> operation just times out.
> 
>  I can connect to the web site using the ftp command and copy files. However 
> when doing a dir command it says entering passive mode or something like that 
> and freezes. I have been told to type epsv4 and that fixes the ftp command.
> 
> I have tried ftp nopasv but that does not help.
> 
> It all worked a few months ago but since then I have updated to Suse 10.1 so 
> something like the firewall might have changed.

Sounds likely.  sitecopy will only by default use EPSV for IPv6 
addresses, but you can force it by applying the patch below.  Does that 
help?

Index: src/ftp.c
===================================================================
--- src/ftp.c	(revision 1019)
+++ src/ftp.c	(working copy)
@@ -762,7 +762,7 @@
         ret = FTP_ERROR;
 
         if (sess->rfc2428 != rfc2428_bad
-            && ne_iaddr_typeof(sess->pi_curaddr) == ne_iaddr_ipv6) {
+            && ne_iaddr_typeof(sess->pi_curaddr) == ne_iaddr_ipv4) {
             ret = execute(sess, "EPSV");
             if (ret == FTP_PASSIVE) sess->rfc2428 = rfc2428_ok;
         }

_______________________________________________
sitecopy maillist  -  [email protected]
http://dav.lyra.org/mailman/listinfo/sitecopy