Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm setting up a box running Ubuntu 8.10 to rsync my FreeBSD server(s). I want to pull data down to the Ubuntu box, then send it all upstream to an offsite data center. But first I have to get rsync to work.
rsync: writefd_unbuffered failed to write 461 bytes [sender]: Broken pipe (32)
rsync: connection unexpectedly closed (1258 bytes received so far) [sender]
rsync error: error allocating core memory buffers (code 22) at io.c(600) [sender=3.0.5]
And after that error, it won't run anymore - the error keeps happening. If it were just running out of memory, a restart ought to fix it, but doesn't. The box should be adequate - 2.4 GHz dual P4 with 1 GB ram.
Also: I know there must be a better way to connect to the source, but how? I've been mounting the server via SFTP in the GUI (hence the .gvfs path) which is probably not the fastest way. But ssh thru the shell doesn't seem to work.
rsync daemon is NOT running on the source FreeBSD server.
I'll send whatever add'l info people would like to see - thanks in advance!
I assume the remote path is "/home/administrator/.gvfs/sftp for root on myserver" and the spaces have been escaped.
However, if you are pulling from a remote server, you don't mention the remote anywhere. Why isn't it something like
rsync -options user@remote:/path /local_path
I tried user@remote:/path - didn't work. So I resorted to mounting the server in Gnome, and using the local mount point (the .gvfs directory) as the source.
I tried user@remote:/path - didn't work. So I resorted to mounting the server in Gnome, and using the local mount point (the .gvfs directory) as the source.
I don't think that will work very well, tell me, have you an ssh server running on the remote machine, and the keys setup correctly for remote login?
I don't think that will work very well, tell me, have you an ssh server running on the remote machine, and the keys setup correctly for remote login?
Yes, I can ssh into the remote machine from the command line. And the rsync error doesn't happen until after it asks me for the password (but I'm not getting a password error). I haven't set up keys yet for unattended login in rsync.
Thinking that my partitioning & mountpoint scheme might have been contributing to the problem, I yanked the second hard drive I was using before and re-partitioned using vanilla defaults on one drive.
Now rsync doesn't work at all! Different options give different errors. Here's the log results from several attempts. #2 was the closest, but in no case did anything get copied!
2009/06/10 14:02:14 [18264] building file list
2009/06/10 14:02:14 [18264] drwxrwx--- 4096 2009/06/08 11:22:41 .
2009/06/10 14:02:15 [18264] sent 57 bytes received 12 bytes 138.00 bytes/sec
2009/06/10 14:02:15 [18264] total size is 0 speedup is 0.00
This will only work if you have SSH keys setup between your machine you are sitting at, and the machine with IP 192.168.1.4! You won't have these problems when you setup keys between your machines for unattended rsync. check out the link I sent you earlier!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.