Skip Menu |

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

Report information
The Basics
Id: 58634
Status: rejected
Worked: 30 min
Priority: 0/
Queue: Net-SFTP-Foreign

People
Owner: salva [...] cpan.org
Requestors: Heather.Fischer [...] nisc.coop
Cc:
AdminCc:

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



CC: "heather.fischer [...] nisc.coop" <Heather.Fischer [...] nisc.coop>
Subject: Couldn't set stat remote file.
Date: Wed, 23 Jun 2010 08:41:38 -0500
To: <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Heather Fischer <Heather.Fischer [...] nisc.coop>
Good morning Salva, I was hoping I wouldn't have to bother you again. However, I'm receiving the error in red below when attempting to sftp put a file to a remote server. I experienced this issue with a different remote Windows server a few weeks back and implemented the put "copy_perm => 0" solution I found on the Internet and it solved the issue with that server. Now, we are experiencing this issue with another server. Today, I found in the module's FAQs to add "late_set_perm => 1" to the put and I did, but we are still receiving the error. -------Begin /pro/bin/mm/secfiletrans_test.pl Wed Jun 23 05:16:39 2010------- Parameters passed: --flow put --protocol sftp --rhost ftp.maccnet.com <ftp://ftp.maccnet.com/> --user C2001 --password ****** --rdir ./611i_amain --ldir /flat/02520/tapext --filename *USAOZ --clean rename --arcdir /flat/02520/tapextbkup Wed Jun 23 05:16:39 2010 Attempting to connect to ftp.maccnet.com <ftp://ftp.maccnet.com/> via sftp... Successfully change directory to ./611i_amain on ftp.maccnet.com <ftp://ftp.maccnet.com/> Error type: SFTP Put ERROR on /flat/02520/tapext/355864-1.d.USAOZ to tmp.355864-1.d.USAOZ.tmp on ftp.maccnet.com <ftp://ftp.maccnet.com/> : Couldn't setstat remote file (setstat)': File not found. --------End /pro/bin/mm/secfiletrans_test.pl Wed Jun 23 05:16:59 2010-------- Killed by signal 1. 02520dbs:/pro/bin/mm:# Put command: $sftp->put("$ldir/$tranfle", "$tmplclfle", resume => 1, copy_perm => 0, late_set_perm => 1); I am able to successful put the file if it already exists on the remote server so it sounds like the explanation in the FAQ for this error is the issue. Now I just need a solution. Do you have any other options or parameters I can try? Debug output: 02520dbs:/pro/bin/mm:# ./secfiletranmacc_test.sh OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to ftp.maccnet.com [209.74.236.48] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type -1 debug1: identity file /root/.ssh/id_rsa type 1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version 1.36_sshlib GlobalSCAPE debug1: no match: 1.36_sshlib GlobalSCAPE debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.2 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'ftp.maccnet.com' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:25 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received MACC FTP Serverdebug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/identity debug1: Offering public key: /root/.ssh/id_rsa debug1: Server accepts key: pkalg ssh-rsa blen 149 debug1: read PEM private key done: type RSA Authenticated with partial success. debug1: Authentications that can continue: password debug1: Next authentication method: password debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LC_ALL = C debug1: Sending env LANG = En_US debug1: Sending subsystem: sftp debug1: channel 0: free: client-session, nchannels 1 debug1: fd 0 clearing O_NONBLOCK debug1: fd 1 clearing O_NONBLOCK <http://www.nisc.coop/> Heather Fischer___________________ Senior Systems Specialist National Information Solutions Cooperative 3201 Nygren Drive Mandan, ND 58554 **Email: heather.fischer@nisc.coop <mailto:heather.fischer@nisc.coop> **Phone: 866.WWW.NISC (866.999.6472) ext 6776 **Direct: 701-667-6776 P Please consider the environment before printing this email.
Download attae80.gif
image/gif 5.2k
attae80.gif
Subject: Re: [rt.cpan.org #58634] Couldn't set stat remote file.
Date: Wed, 23 Jun 2010 07:31:35 -0700 (PDT)
To: bug-Net-SFTP-Foreign [...] rt.cpan.org
From: Salvador Fandino <sfandino [...] yahoo.com>
Show quoted text
----- Original Message ----
> From: Heather Fischer via RT <bug-Net-SFTP-Foreign@rt.cpan.org> > Sent: Wed, June 23, 2010 3:41:33 PM > Subject: [rt.cpan.org #58634] Couldn't set stat remote file.
try... $sftp->put("$ldir/$tranfle", "$tmplclfle", resume => 1, copy_perm => 0, copy_time => 0); - Salva
Subject: RE: [rt.cpan.org #58634] Couldn't set stat remote file.
Date: Wed, 23 Jun 2010 10:37:08 -0500
To: <bug-Net-SFTP-Foreign [...] rt.cpan.org>
From: Heather Fischer <Heather.Fischer [...] nisc.coop>
That worked great! Thank you! Heather Fischer___________________ Senior Systems Specialist National Information Solutions Cooperative 3201 Nygren Drive Mandan, ND 58554 **Email: heather.fischer@nisc.coop **Phone: 866.WWW.NISC (866.999.6472) ext 6776 **Direct: 701-667-6776 P Please consider the environment before printing this email. Show quoted text
-----Original Message----- From: Salvador \"FandiƱo\" via RT [mailto:bug-Net-SFTP-Foreign@rt.cpan.org] Sent: Wednesday, June 23, 2010 9:32 AM To: Heather Fischer Subject: Re: [rt.cpan.org #58634] Couldn't set stat remote file. <URL: https://rt.cpan.org/Ticket/Display.html?id=58634 >
----- Original Message ----
> From: Heather Fischer via RT <bug-Net-SFTP-Foreign@rt.cpan.org> > Sent: Wed, June 23, 2010 3:41:33 PM > Subject: [rt.cpan.org #58634] Couldn't set stat remote file.
try... $sftp->put("$ldir/$tranfle", "$tmplclfle", resume => 1, copy_perm => 0, copy_time => 0); - Salva
not a bug