BackupPC-users

Re: [BackupPC-users] ftp Xfer mode error: "can't retrieve remote directory contents of :"

2012-01-26 00:58:39
Subject: Re: [BackupPC-users] ftp Xfer mode error: "can't retrieve remote directory contents of :"
From: Michael Stepner <michaelstepner AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 26 Jan 2012 00:56:41 -0500
Hello everyone,

I've done a little more testing, and noted the differences in the log on the FTP server side between when I log on using gFTP and when BackupPC attempts to log on.

With gFTP I get:
   SYST
   215 UNIX emulated by Filezilla

With BackupPC, no such message appears.

The only other difference is that gFTP sends a "LIST -aL" command, whereas BackupPC simply sends "LIST".  I don't expect this matters, though.

I've done my best to provide as much information as possible documenting the problem - if there's anything more that would be useful, please let me know.  I'd really appreciate some guidance here.

-Michael


Here are the full server side logs:

For gFTP:
(000090)26/01/2012 0:49:32 AM - (not logged in) (xxx.xxx.xxx.xxx)> Connected, sending welcome message...
(000090)26/01/2012 0:49:32 AM - (not logged in) (xxx.xxx.xxx.xxx)> 220-FileZilla Server version 0.9.39 beta
(000090)26/01/2012 0:49:32 AM - (not logged in) (xxx.xxx.xxx.xxx)> 220-written by Tim Kosse (Tim.Kosse AT gmx DOT de)
(000090)26/01/2012 0:49:32 AM - (not logged in) (xxx.xxx.xxx.xxx)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000090)26/01/2012 0:49:32 AM - (not logged in) (xxx.xxx.xxx.xxx)> USER backup
(000090)26/01/2012 0:49:32 AM - (not logged in) (xxx.xxx.xxx.xxx)> 331 Password required for backup
(000090)26/01/2012 0:49:33 AM - (not logged in) (xxx.xxx.xxx.xxx)> PASS  ********************
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> 230 Logged on
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> SYST
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> 215 UNIX emulated by FileZilla
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> TYPE I
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> 200 Type set to I
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> PWD
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> 257 "/" is current directory.
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> PASV
(000090)26/01/2012 0:49:33 AM - backup (xxx.xxx.xxx.xxx)> 227 Entering Passive Mode (xx,xxx,xxx,xx,xxx,xxx)
(000090)26/01/2012 0:49:34 AM - backup (xxx.xxx.xxx.xxx)> LIST -aL
(000090)26/01/2012 0:49:34 AM - backup (xxx.xxx.xxx.xxx)> 150 Connection accepted
(000090)26/01/2012 0:49:34 AM - backup (xxx.xxx.xxx.xxx)> 226 Transfer OK

For BackupPC:
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> Connected, sending welcome message...
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> 220-FileZilla Server version 0.9.39 beta
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> 220-written by Tim Kosse (Tim.Kosse AT gmx DOT de)
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> 220 Please visit http://sourceforge.net/projects/filezilla/
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> USER backup
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> 331 Password required for backup
(000089)26/01/2012 0:45:13 AM - (not logged in) (xxx.xxx.xxx.xxx)> PASS ********************
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 230 Logged on
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> TYPE I
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 200 Type set to I
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> CWD /
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 250 CWD successful. "/" is current directory.
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> PWD
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 257 "/" is current directory.
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> PWD
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 257 "/" is current directory.
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> PASV
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 227 Entering Passive Mode (xx,xxx,xxx,xx,xxx,xxx)
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> LIST
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 150 Connection accepted
(000089)26/01/2012 0:45:13 AM - backup (xxx.xxx.xxx.xxx)> 226 Transfer OK
(000089)26/01/2012 0:45:18 AM - backup (xxx.xxx.xxx.xxx)> disconnected.


On 22 January 2012 04:19, Michael Stepner <michaelstepner AT gmail DOT com> wrote:
Hello,

I'm having an issue with both of my ftp xfer hosts.  I'm using BackupPC 3.2.1.  Both FTP servers are running Filezilla Server on Windows systems, and are perfectly accessible using gFTP as my ftp client.

The backup starts, but then terminates within a few seconds.

LOG file:

2012-01-22 04:00:02 Full backup of foo.hopto.org failed
2012-01-22 04:00:07 Backup aborted (0)



XferLOG:

ftp full backup for host foo.hopto.org started on directory /
remotels: can't retrieve remote directory contents of :
handleDir failed: can't retrieve remote directory contents of :
 fail       0       -/-           0
Full backup of foo.hopto.org failed
Backup aborted (0)
Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0)



host.pl:

$Conf{XferMethod} = 'ftp';
$Conf{FtpUserName} = 'foobar';
$Conf{FtpPasswd} = 'foobar';
$Conf{FtpPassive} = 1;
$Conf{FtpShareName} = '/';

$Conf{PingPath} = '/etc/backuppc/checkftp.sh';
$Conf{PingCmd} = '$pingPath $host';



As I said above, this happens for both of my two ftp xfer hosts.  They both have an almost identical configuration, in terms of the files they're sharing, the FTP server software & configuration, and the BackupPC configuration.

An aside: checkftp.sh is just a short script which runs nmap to "ping" the port 21 on the ftp server. I assume this isn't relevant, since the pinging is running successfully.

An one odd thing is that one of these hosts backed up just fine a few days ago when I set it up, but it no longer works.  I realized this just an hour ago, as I tried to add the second ftp xfer host.

Any assistance you can provide would be appreciated!

Thank you,

Michael

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/