rcp: lost connection on certain files only

rcp: lost connection on certain files only

Post by Vikas Agnihotr » Sun, 05 Dec 2004 11:20:51



rcp f1 remote:f1 # works fine
rcp f2 remote:f2 # works fine
rcp f3 remote:f3
gives rcp: lost connection

Plenty of disk space everywhere, these are small 5MB files.

I renamed it, copied it to another name, still no go.

Tried ftp, same result. netout: tcp/ip or something error

Is it possible that the contents of the file are somehow interfering
with the rcp/ftp protocol?

Never seen this before

Comments? Thanks

 
 
 

rcp: lost connection on certain files only

Post by Martin Carpente » Sun, 05 Dec 2004 13:29:13



> Is it possible that the contents of the file are
> somehow interfering with the rcp/ftp protocol?

I saw some Really Weird Stuff with rcp under 2.5 or 2.6. There was a
patch... sorry I can't remember more than that. That doesn't explain your
FTP problem though.

 
 
 

rcp: lost connection on certain files only

Post by Scott Howar » Sun, 05 Dec 2004 14:57:38



Quote:> rcp f1 remote:f1 # works fine
> rcp f2 remote:f2 # works fine
> rcp f3 remote:f3
> gives rcp: lost connection

What OSes?  I've seen this before in either Solaris 2.5.1 or 2.6, and it
was fixed in a patch. If you're back on an old OS then make sure you're
patched to date.

Otherwise, what is the network between the two machines? Any
firewalls/IDS/etc which might be screwing with things?

Quote:> Is it possible that the contents of the file are somehow interfering
> with the rcp/ftp protocol?

With the protocol? No.  With the implementation of the protocol (ie, a
bug), it's certainly possible, but if you're running Solaris at both ends
then it's unlikely unless you're running an old version of something
somewhere...

  Scott

 
 
 

rcp: lost connection on certain files only

Post by Vikas Agnihotr » Thu, 09 Dec 2004 11:52:37



> What OSes?  I've seen this before in either Solaris 2.5.1 or 2.6, and it
> was fixed in a patch. If you're back on an old OS then make sure you're
> patched to date.

Solaris 8 on both ends

Quote:> Otherwise, what is the network between the two machines? Any
> firewalls/IDS/etc which might be screwing with things?

VPN-based WAN network. Firewall, router, etc sure, the usual network
stuff. Dont know why that would interfere with just one specific file!

Quote:> With the protocol? No.  With the implementation of the protocol (ie, a
> bug), it's certainly possible, but if you're running Solaris at both ends
> then it's unlikely unless you're running an old version of something
> somewhere...

Nope.

Strangely enough, when I compress/gzip the file, it copies fine!

So, it does seem like some specific sequence of bytes in the file is
causing both the rcp and ftp to barf?! I have *never* seen anything like
this!

Thanks

 
 
 

rcp: lost connection on certain files only

Post by Beard » Thu, 09 Dec 2004 16:56:28



> So, it does seem like some specific sequence of bytes in the file is
> causing both the rcp and ftp to barf?! I have *never* seen anything like
> this!

<OT: The Power of Bytes>

Try this one for freaky: some while back, I was
cut'n'pasting from a harmless website (Sun, actually) into a
vi session zlogin'd into an S10 Zone. When I did the paste
operation, part of the cut text would go into the vi
session, but then something in the text would abort the vi,
abort the zlogin session, and cause the remaining text from
the paste operation to be interpreted by the shell in my
session in the Global Zone; giving loads of shell errors.. I
could never pin it down, as the effects were slightly
different each time, but eventually, I had to cut'n'paste
into an ed session in the running Zone instead. I know there
are obvious workarounds, but its just the way it happened.
Confoozed I certainly was.

</OT: The Power of Bytes>

 
 
 

1. RCP:LOST CONNECTION

Hello,

I am facing a problem in remote copy of  big files(>2MB) from
Unix(Solaris)
server to Vax(Vms) server and in getting back the file.
I am getting a message " RCP :Lost connection".
The file will get transfered to the Vax server, but with lot of errors.
 The same is working fine with Alpha(Open-vms) server.
My observation is that VMS server is not receiving the files properly
that too files which are sent from Unix server.

Can anybody help me  in solving the problem.
Thanks in advance.

Best Regards,
Ramya Swapnila P

2. Solaris memory usage

3. ? rcp: connection lost, one user only

4. Netscape distribution

5. rcp: How to exclude certain files?

6. Recognizing Flashpoint BT-930 upon Linux boot up

7. Redial lost PPP connection only between certain hours?

8. AWK examples?

9. rcp and rcmd: xxx: Connection reset by peer when copying many files

10. Giving certain users access to certain files

11. FTP: lost connection while transfering multiple files

12. Lost Connections with modem connections (ppp)

13. rcp file host:/file returns stty error