Suggestions for basic rsync configuration

View: New views
5 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: Suggestions for basic rsync configuration

by Peter Heiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matt McCutchen-7 wrote:
I don't know, but here are a few things you can try.  First, confirm
that the daemon is accepting connections by running "nc localhost 873"
on the remote machine.  You should see the daemon's greeting, beginning
with "@RSYNCD".  Then, attempt to the daemon by running
"nc <remote-server-ip> 873" on the local machine.  If the first command
works but the second times out, then there is something blocking the
connection.  The most common cause would be a firewall, but you say
you've opened the port in the firewall, so I don't know what it could
be.
I got the daemon back up, but I am getting a new error after going through the authorizing process. After putting in the password for authentification, I get the following error:

# rsync -zav --progress realperson@<remote-server-ip>::realperson /random/file-or-directory/
Password:
@ERROR: invalid gid admins
rsync error: error starting client-server protocol (code 5) at main.c(1383) [receiver=2.6.9]


I have "users" set as the gid in my rsync config file. I have also ran rsync --daemon --config=rsyncd.conf to make sure that rsync was lookin at the right config file. Do you have an idea why this returning this error, even though is it otherwise in my config file?
Computers are like air conditioners. They both dont work, if you open windows.

Re: Suggestions for basic rsync configuration

by Wayne Davison-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Mar 26, 2008 at 07:23:46AM -0700, Peter Heiss wrote:
> @ERROR: invalid gid admins
> I have "users" set as the gid in my rsync config file.

Search for the string "admins" in the config file.  You presumably set
the gid in more than one spot, such as in the module's settings.

..wayne..
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Suggestions for basic rsync configuration

by Peter Heiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Wayne Davison-2 wrote:
Search for the string "admins" in the config file.  You presumably set
the gid in more than one spot, such as in the module's settings.
I have checked the config file and have not found any duplicates. Here is my config file:

uid = user
gid = users
read only = true
use chroot = true
transfer logging = true
log format = %h %o %f %l %b
log file = /var/log/rsyncd.log
hosts allow = *
slp refresh = 300

[remote]
        path = /rsync/backup_out
        comment = Verzeichnis fuer rsync
        auth users = root
        secrets file = /etc/rsyncd.secrets


I am also having problems again with the daemon, it is not responding to repests... instead it just times out. It works fine without any problems when I transfer files without the daemon. I am starting to loose myself here I think with the daemon thing. With everything configured on the Firewall correctly, and with all ports opened, no idea what I am still missing. I think I will just go without the daemon and just use the regular thing without the daemon. Is there anything that you can suggest from my config file? Everthing looks ok to me.
Computers are like air conditioners. They both dont work, if you open windows.

Re: Suggestions for basic rsync configuration

by Matt McCutchen-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-04-01 at 03:36 -0700, Peter Heiss wrote:

>
> Wayne Davison-2 wrote:
> >
> >
> > Search for the string "admins" in the config file.  You presumably set
> > the gid in more than one spot, such as in the module's settings.
> >
>
> I have checked the config file and have not found any duplicates. Here is my
> config file:
>
> uid = user
> gid = users
> read only = true
> use chroot = true
> transfer logging = true
> log format = %h %o %f %l %b
> log file = /var/log/rsyncd.log
> hosts allow = *
> slp refresh = 300
>
> [remote]
>         path = /rsync/backup_out
>         comment = Verzeichnis fuer rsync
>         auth users = root
>         secrets file = /etc/rsyncd.secrets
>
> I am also having problems again with the daemon, it is not responding to
> repests... instead it just times out. It works fine without any problems
> when I transfer files without the daemon. I am starting to loose myself here
> I think with the daemon thing. With everything configured on the Firewall
> correctly, and with all ports opened, no idea what I am still missing. I
> think I will just go without the daemon and just use the regular thing
> without the daemon. Is there anything that you can suggest from my config
> file? Everthing looks ok to me.

The configuration file looks right to me.  If rsync is still trying to
use group "admins", then either there's a really weird bug in rsync or
it is using a different configuration file than you think.  If you
previously ran an rsync daemon with a different configuration file, be
sure to kill that process before starting another rsync daemon.  Then,
to see what configuration file the daemon is opening, you could strace
it:

strace -f -o daemon.strace rsync --daemon

But maybe you just want to use the rsync over ssh.

Matt

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: Suggestions for basic rsync configuration

by Peter Heiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Matt McCutchen-7 wrote:
On Tue, 2008-04-01 at 03:36 -0700, Peter Heiss wrote:
>
> Wayne Davison-2 wrote:
> >
> >
> > Search for the string "admins" in the config file.  You presumably set
> > the gid in more than one spot, such as in the module's settings.
> >
>
> I have checked the config file and have not found any duplicates. Here is my
> config file:
>
> uid = user
> gid = users
> read only = true
> use chroot = true
> transfer logging = true
> log format = %h %o %f %l %b
> log file = /var/log/rsyncd.log
> hosts allow = *
> slp refresh = 300
>
> [remote]
>         path = /rsync/backup_out
>         comment = Verzeichnis fuer rsync
>         auth users = root
>         secrets file = /etc/rsyncd.secrets
>
> I am also having problems again with the daemon, it is not responding to
> repests... instead it just times out. It works fine without any problems
> when I transfer files without the daemon. I am starting to loose myself here
> I think with the daemon thing. With everything configured on the Firewall
> correctly, and with all ports opened, no idea what I am still missing. I
> think I will just go without the daemon and just use the regular thing
> without the daemon. Is there anything that you can suggest from my config
> file? Everthing looks ok to me.

The configuration file looks right to me.  If rsync is still trying to
use group "admins", then either there's a really weird bug in rsync or
it is using a different configuration file than you think.  If you
previously ran an rsync daemon with a different configuration file, be
sure to kill that process before starting another rsync daemon.  Then,
to see what configuration file the daemon is opening, you could strace
it:

strace -f -o daemon.strace rsync --daemon

But maybe you just want to use the rsync over ssh.

Matt

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
It works now with the daemon, I killed the running rsync process and then started it again with the "--config=<config-file>" command and it works like a charm. Thanks to all of you guys for helping me out here through a long but finally solved post. Thanks a lot for your efforts!!!

Cheers
Computers are like air conditioners. They both dont work, if you open windows.
< Prev | 1 - 2 | Next >