Skip Menu |

This queue is for tickets about the Net-xFTP CPAN distribution.

Report information
The Basics
Id: 56410
Status: resolved
Priority: 0/
Queue: Net-xFTP

People
Owner: turnerjw784 [...] yahoo.com
Requestors: instantni.med [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: delete method doesn't work
Date: Fri, 9 Apr 2010 14:22:28 +1200
To: bug-Net-xFTP [...] rt.cpan.org
From: Tomas Friml <instantni.med [...] gmail.com>
Hi Jim, I'm trying to remove some remote files sitting on SFTP server. Everything works perfectly, delete() returns non-zero value, message() returns "0: no error" but the files are still sitting on the server :). Other methods (put, get, cwd, dir) work perfectly, just delete doesn't do anything. Any ideas? I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on CentOS 5.4 No debug messages as Debug => 1 works only with normal FTP module, it doesn't show anything for SFTP. Btw. this module is very helpful, so thanks for good work so far :). Aren't you planning to include FTPSSL (Net::FTPSSL) as well? Cheers, Tom
Greetings, Tom. Let's see if we can narrow this down a bit - have or can you try writing a small script to delete a file with the lower-level Net::SFTP.do_remove() method? This is what delete() uses. If not, then my guess would be some type of permissions issue. If so, then we need to continue to investigate Net::xFTP & i need to get a copy of the part of your code that is failing. Regards, Jim On Thu Apr 08 22:22:45 2010, instantni.med@gmail.com wrote: Show quoted text
> Hi Jim, > > I'm trying to remove some remote files sitting on SFTP server. Everything > works perfectly, delete() returns non-zero value, message() returns "0: no > error" but the files are still sitting on the server :). Other methods
(put, Show quoted text
> get, cwd, dir) work perfectly, just delete doesn't do anything. Any ideas? > > I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on CentOS 5.4 > > No debug messages as Debug => 1 works only with normal FTP module, it > doesn't show anything for SFTP. > > Btw. this module is very helpful, so thanks for good work so far :).
Aren't Show quoted text
> you planning to include FTPSSL (Net::FTPSSL) as well? > > Cheers, > > Tom
Subject: Re: [rt.cpan.org #56410] delete method doesn't work
Date: Fri, 9 Apr 2010 23:03:05 +1200
To: bug-Net-xFTP [...] rt.cpan.org
From: Tomas Friml <instantni.med [...] gmail.com>
Hi Jim, Thanks for swift response. I wrote little script using Net::SFTP directly and it seems to be working (even the debugging). I wonder where the problem is. Here is part of the script where I do the connection (if it helps): ... if ($port) { $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG, port => $port, user => $username, password => $password )); } else { $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG, user => $username, password => $password )); } ... $ftp->binary; if ($pasv) { $ftp->pasv; } that's basically all connection part with $type = 'SFTP'. For the actual removal I just call if (!$ftp->delete($filename)) { # do something bad } I'm afraid that's it. Not sure if it helps though :) Cheers, Tom 2010/4/9 Jim Turner via RT <bug-Net-xFTP@rt.cpan.org> Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 > > > Greetings, Tom. > > Let's see if we can narrow this down a bit - have or can you try writing > a small script to delete a file with the lower-level > Net::SFTP.do_remove() method? This is what delete() uses. If not, then > my guess would be some type of permissions issue. If so, then we need > to continue to investigate Net::xFTP & i need to get a copy of the part > of your code that is failing. > > Regards, > > Jim > > > > On Thu Apr 08 22:22:45 2010, instantni.med@gmail.com wrote:
> > Hi Jim, > > > > I'm trying to remove some remote files sitting on SFTP server. Everything > > works perfectly, delete() returns non-zero value, message() returns "0:
> no
> > error" but the files are still sitting on the server :). Other methods
> (put,
> > get, cwd, dir) work perfectly, just delete doesn't do anything. Any
> ideas?
> > > > I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on CentOS 5.4 > > > > No debug messages as Debug => 1 works only with normal FTP module, it > > doesn't show anything for SFTP. > > > > Btw. this module is very helpful, so thanks for good work so far :).
> Aren't
> > you planning to include FTPSSL (Net::FTPSSL) as well? > > > > Cheers, > > > > Tom
> > > >
Subject: Re: [rt.cpan.org #56410] delete method doesn't work
Date: Thu, 22 Apr 2010 10:52:18 +1200
To: bug-Net-xFTP [...] rt.cpan.org
From: Tomas Friml <instantni.med [...] gmail.com>
Hi Jim, No ideas? Or you are busy? :) Cheers, Tom 2010/4/9 Tomas Friml <instantni.med@gmail.com> Show quoted text
> Hi Jim, > > Thanks for swift response. I wrote little script using Net::SFTP directly > and it seems to be working (even the debugging). I wonder where the problem > is. Here is part of the script where I do the connection (if it helps): > > ... > if ($port) { > $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG, port => > $port, user => $username, password => $password )); > } else { > $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG, user => > $username, password => $password )); > } > ... > $ftp->binary; > if ($pasv) { > $ftp->pasv; > } > > that's basically all connection part with $type = 'SFTP'. For the actual > removal I just call > > if (!$ftp->delete($filename)) { > # do something bad > } > > I'm afraid that's it. Not sure if it helps though :) > > Cheers, > > Tom > > 2010/4/9 Jim Turner via RT <bug-Net-xFTP@rt.cpan.org> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 >
>> >> Greetings, Tom. >> >> Let's see if we can narrow this down a bit - have or can you try writing >> a small script to delete a file with the lower-level >> Net::SFTP.do_remove() method? This is what delete() uses. If not, then >> my guess would be some type of permissions issue. If so, then we need >> to continue to investigate Net::xFTP & i need to get a copy of the part >> of your code that is failing. >> >> Regards, >> >> Jim >> >> >> >> On Thu Apr 08 22:22:45 2010, instantni.med@gmail.com wrote:
>> > Hi Jim, >> > >> > I'm trying to remove some remote files sitting on SFTP server.
>> Everything
>> > works perfectly, delete() returns non-zero value, message() returns "0:
>> no
>> > error" but the files are still sitting on the server :). Other methods
>> (put,
>> > get, cwd, dir) work perfectly, just delete doesn't do anything. Any
>> ideas?
>> > >> > I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on CentOS 5.4 >> > >> > No debug messages as Debug => 1 works only with normal FTP module, it >> > doesn't show anything for SFTP. >> > >> > Btw. this module is very helpful, so thanks for good work so far :).
>> Aren't
>> > you planning to include FTPSSL (Net::FTPSSL) as well? >> > >> > Cheers, >> > >> > Tom
>> >> >> >>
>
On Wed Apr 21 18:52:32 2010, instantni.med@gmail.com wrote: Show quoted text
> Hi Jim, > > No ideas? Or you are busy? :)
Oh sorry - I have no good ideas & am out of town. The biggest pbm. is I no longer have access to an SFTP server to test against, so I guess I'll have to figure out how to set one up when I get back! I saw your test code saying that calling the method directly seems to work, but when called within xFTP, it fails silently, correct? I can either try to set up a server next wk when I'm back or can you provide me access to one to test against? Again, sorry for letting this slip! Regards, Jim Show quoted text
> > Cheers, Tom > > 2010/4/9 Tomas Friml <instantni.med@gmail.com> >
> > Hi Jim, > > > > Thanks for swift response. I wrote little script using Net::SFTP
> directly
> > and it seems to be working (even the debugging). I wonder where the
> problem
> > is. Here is part of the script where I do the connection (if it
> helps):
> > > > ... > > if ($port) { > > $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG,
> port =>
> > $port, user => $username, password => $password )); > > } else { > > $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG,
> user =>
> > $username, password => $password )); > > } > > ... > > $ftp->binary; > > if ($pasv) { > > $ftp->pasv; > > } > > > > that's basically all connection part with $type = 'SFTP'. For the
> actual
> > removal I just call > > > > if (!$ftp->delete($filename)) { > > # do something bad > > } > > > > I'm afraid that's it. Not sure if it helps though :) > > > > Cheers, > > > > Tom > > > > 2010/4/9 Jim Turner via RT <bug-Net-xFTP@rt.cpan.org> > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 >
> >> > >> Greetings, Tom. > >> > >> Let's see if we can narrow this down a bit - have or can you try
> writing
> >> a small script to delete a file with the lower-level > >> Net::SFTP.do_remove() method? This is what delete() uses. If not,
> then
> >> my guess would be some type of permissions issue. If so, then we
> need
> >> to continue to investigate Net::xFTP & i need to get a copy of the
> part
> >> of your code that is failing. > >> > >> Regards, > >> > >> Jim > >> > >> > >> > >> On Thu Apr 08 22:22:45 2010, instantni.med@gmail.com wrote:
> >> > Hi Jim, > >> > > >> > I'm trying to remove some remote files sitting on SFTP server.
> >> Everything
> >> > works perfectly, delete() returns non-zero value, message()
> returns "0:
> >> no
> >> > error" but the files are still sitting on the server :). Other
> methods
> >> (put,
> >> > get, cwd, dir) work perfectly, just delete doesn't do anything.
> Any
> >> ideas?
> >> > > >> > I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on
> CentOS 5.4
> >> > > >> > No debug messages as Debug => 1 works only with normal FTP
> module, it
> >> > doesn't show anything for SFTP. > >> > > >> > Btw. this module is very helpful, so thanks for good work so far
> :).
> >> Aren't
> >> > you planning to include FTPSSL (Net::FTPSSL) as well? > >> > > >> > Cheers, > >> > > >> > Tom
> >> > >> > >> > >>
> >
Subject: Re: [rt.cpan.org #56410] delete method doesn't work
Date: Thu, 22 Apr 2010 15:23:33 +1200
To: bug-Net-xFTP [...] rt.cpan.org
From: Tomas Friml <instantni.med [...] gmail.com>
I'll be damned! I did a bit of testing again and it seems to be working ok now! I didn't change the script, just did some updates of packages recently. No idea why it didn't work and now it does (the debug info still doesn't work though), can't get it not working again :(. So sorry I wasted your time. If it stops working again, I'll investigate properly... Thanks and sorry again Tom 2010/4/22 Jim Turner via RT <bug-Net-xFTP@rt.cpan.org> Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 > > > On Wed Apr 21 18:52:32 2010, instantni.med@gmail.com wrote:
> > Hi Jim, > > > > No ideas? Or you are busy? :)
> > Oh sorry - I have no good ideas & am out of town. The biggest pbm. > is I no longer have access to an SFTP server to test against, so I guess > I'll have to figure out how to set one up when I get back! I saw your > test code saying that calling the method directly seems to work, but > when called within xFTP, it fails silently, correct? I can either try > to set up a server next wk when I'm back or can you provide me access to > one to test against? > > Again, sorry for letting this slip! > > Regards, > > Jim > > >
> > > > Cheers, Tom > > > > 2010/4/9 Tomas Friml <instantni.med@gmail.com> > >
> > > Hi Jim, > > > > > > Thanks for swift response. I wrote little script using Net::SFTP
> > directly
> > > and it seems to be working (even the debugging). I wonder where the
> > problem
> > > is. Here is part of the script where I do the connection (if it
> > helps):
> > > > > > ... > > > if ($port) { > > > $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG,
> > port =>
> > > $port, user => $username, password => $password )); > > > } else { > > > $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG,
> > user =>
> > > $username, password => $password )); > > > } > > > ... > > > $ftp->binary; > > > if ($pasv) { > > > $ftp->pasv; > > > } > > > > > > that's basically all connection part with $type = 'SFTP'. For the
> > actual
> > > removal I just call > > > > > > if (!$ftp->delete($filename)) { > > > # do something bad > > > } > > > > > > I'm afraid that's it. Not sure if it helps though :) > > > > > > Cheers, > > > > > > Tom > > > > > > 2010/4/9 Jim Turner via RT <bug-Net-xFTP@rt.cpan.org> > > > > > > <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 >
> > >> > > >> Greetings, Tom. > > >> > > >> Let's see if we can narrow this down a bit - have or can you try
> > writing
> > >> a small script to delete a file with the lower-level > > >> Net::SFTP.do_remove() method? This is what delete() uses. If not,
> > then
> > >> my guess would be some type of permissions issue. If so, then we
> > need
> > >> to continue to investigate Net::xFTP & i need to get a copy of the
> > part
> > >> of your code that is failing. > > >> > > >> Regards, > > >> > > >> Jim > > >> > > >> > > >> > > >> On Thu Apr 08 22:22:45 2010, instantni.med@gmail.com wrote:
> > >> > Hi Jim, > > >> > > > >> > I'm trying to remove some remote files sitting on SFTP server.
> > >> Everything
> > >> > works perfectly, delete() returns non-zero value, message()
> > returns "0:
> > >> no
> > >> > error" but the files are still sitting on the server :). Other
> > methods
> > >> (put,
> > >> > get, cwd, dir) work perfectly, just delete doesn't do anything.
> > Any
> > >> ideas?
> > >> > > > >> > I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on
> > CentOS 5.4
> > >> > > > >> > No debug messages as Debug => 1 works only with normal FTP
> > module, it
> > >> > doesn't show anything for SFTP. > > >> > > > >> > Btw. this module is very helpful, so thanks for good work so far
> > :).
> > >> Aren't
> > >> > you planning to include FTPSSL (Net::FTPSSL) as well? > > >> > > > >> > Cheers, > > >> > > > >> > Tom
> > >> > > >> > > >> > > >>
> > >
> > > >
Subject: Re: [rt.cpan.org #56410] delete method doesn't work
Date: Sat, 22 May 2010 14:49:37 -0700 (PDT)
To: bug-Net-xFTP [...] rt.cpan.org
From: Jim Turner <turnerjw784 [...] yahoo.com>
Hi Tomas,     I see in the bug-system that you seem to have this issue resolved.  That's great!  I now once again have access to an SFTP server, so if you have any more pbms w/ the SFTP part of Net::xFTP, let me know.  Oh, & by the way, I'm adding Net::FTPSSL to Net::xFTP and ptkftp & hope to release new versions of each soon.  Unless I hear from you again with a week or so, I'll mark the bug closed. Thanks again, Jim --- On Wed, 4/21/10, Tomas Friml via RT <bug-Net-xFTP@rt.cpan.org> wrote: From: Tomas Friml via RT <bug-Net-xFTP@rt.cpan.org> Subject: Re: [rt.cpan.org #56410] delete method doesn't work To: Date: Wednesday, April 21, 2010, 5:52 PM        Queue: Net-xFTP Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 > Hi Jim, No ideas? Or you are busy? :) Cheers, Tom 2010/4/9 Tomas Friml <instantni.med@gmail.com> Show quoted text
> Hi Jim, > > Thanks for swift response. I wrote little script using Net::SFTP directly > and it seems to be working (even the debugging). I wonder where the problem > is. Here is part of the script where I do the connection (if it helps): > > ... >      if ($port) { >         $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG, port => > $port, user => $username, password => $password )); >       } else { >         $ftp = Net::xFTP->new($type, $hostname, ( Debug => $DEBUG, user => > $username, password => $password )); >       } > ... >     $ftp->binary; >     if ($pasv) { >       $ftp->pasv; >     } > > that's basically all connection part with $type = 'SFTP'. For the actual > removal I just call > >     if (!$ftp->delete($filename)) { >        # do something bad >     } > > I'm afraid that's it. Not sure if it helps though :) > > Cheers, > > Tom > > 2010/4/9 Jim Turner via RT <bug-Net-xFTP@rt.cpan.org> > > <URL: https://rt.cpan.org/Ticket/Display.html?id=56410 >
>> >> Greetings, Tom. >> >> Let's see if we can narrow this down a bit - have or can you try writing >> a small script to delete a file with the lower-level >> Net::SFTP.do_remove() method?  This is what delete() uses.  If not, then >> my guess would be some type of permissions issue.  If so, then we need >> to continue to investigate Net::xFTP & i need to get a copy of the part >> of your code that is failing. >> >> Regards, >> >> Jim >> >> >> >> On Thu Apr 08 22:22:45 2010, instantni.med@gmail.com wrote:
>> > Hi Jim, >> > >> > I'm trying to remove some remote files sitting on SFTP server.
>> Everything
>> > works perfectly, delete() returns non-zero value, message() returns "0:
>> no
>> > error" but the files are still sitting on the server :). Other methods
>> (put,
>> > get, cwd, dir) work perfectly, just delete doesn't do anything. Any
>> ideas?
>> > >> > I'm using Net::SFTP (0.10), Net::xFTP (0.3b1), perl 5.8.8 on CentOS 5.4 >> > >> > No debug messages as Debug => 1 works only with normal FTP module, it >> > doesn't show anything for SFTP. >> > >> > Btw. this module is very helpful, so thanks for good work so far :).
>> Aren't
>> > you planning to include FTPSSL (Net::FTPSSL) as well? >> > >> > Cheers, >> > >> > Tom
>> >> >> >>
>
No news => good news. Latest vsn is 0.43. Marking closed. Jim