View previous topic :: View next topic |
Author |
Message |
FreeManAtomic Guru


Joined: 01 Feb 2005 Posts: 365
|
Posted: Tue Mar 07, 2006 3:53 pm Post subject: rsync locale |
|
|
Ciao,
sto cercando di configurare un rsync locale in modo che i gentoo-client facciano il sync dal server interno in modo da velocizzarsi.
Ho seguito gli howto, ho anche scaricato e configurato ebuild gentoo-mirror-rsync, dal lato server sembra tutto ok niente errori.
Ma quando tento di fare il sync con un client ottengo quest'errore:
apel_619 alfredo # emerge --sync
>>> starting rsync with rsync://172.16.100.10/gentoo-portage...
>>> checking server timestamp ...
This is rsync of spek
@ERROR: invalid uid nobody
rsync: connection unexpectedly closed (62 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(189)
>>> retry ...
Sul server nn esistono nobody, devo crearli ho c'e' qualcosa di nn aggiornato in cio che ho letto?
Grazie |
|
Back to top |
|
 |
Ilvalle Guru


Joined: 07 Mar 2005 Posts: 325 Location: Gallarate - ITALY
|
Posted: Tue Mar 07, 2006 4:15 pm Post subject: |
|
|
ciao credo ti mancano un paio di linee sui permessi:
Ti posto il mio:
Code: | ada ~ # cat /etc/rsyncd.conf
uid = nobody
gid = nobody
use chroot = yes
read only = yes
#limit access to private LAN's
hosts allow=192.168.0.0/255.255.0.0
hosts deny=*
max connections = 3
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd
log file = /var/log/rsync.log
log format = %t %a %m %f %b
syslog facility = local3
timeout = 300
[gentoo-portage]
path = /usr/portage
exclude = distfiles/
|
ciao Paolo |
|
Back to top |
|
 |
FreeManAtomic Guru


Joined: 01 Feb 2005 Posts: 365
|
Posted: Tue Mar 07, 2006 7:56 pm Post subject: |
|
|
il mio file di conf e uguale al tuo |
|
Back to top |
|
 |
Ilvalle Guru


Joined: 07 Mar 2005 Posts: 325 Location: Gallarate - ITALY
|
Posted: Tue Mar 07, 2006 8:13 pm Post subject: |
|
|
Ottimo!
Cmq io ho installato soltanto
Code: |
net-misc/rsync
Latest version available: 2.6.0-r6
Latest version installed: 2.6.0-r6
Size of downloaded files: 517 kB
Homepage: http://rsync.samba.org/
Description: File transfer program to keep remote files into sync
License: GPL-2
|
Nessun gentoo-mirror-rsync, e funziona senza problemi.
i log del server non dicono nulla?
Paolo |
|
Back to top |
|
 |
FreeManAtomic Guru


Joined: 01 Feb 2005 Posts: 365
|
Posted: Tue Mar 07, 2006 8:19 pm Post subject: |
|
|
no non dicono niente! |
|
Back to top |
|
 |
X-Drum Advocate


Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Wed Mar 08, 2006 12:04 pm Post subject: |
|
|
Ilvalle wrote: | Ottimo!
Cmq io ho installato soltanto
Code: |
net-misc/rsync
Latest version available: 2.6.0-r6
Latest version installed: 2.6.0-r6
Size of downloaded files: 517 kB
Homepage: http://rsync.samba.org/
Description: File transfer program to keep remote files into sync
License: GPL-2
|
Nessun gentoo-mirror-rsync, e funziona senza problemi.
|
esatto, è opinione diffusa che ormai il pacchetto gentoo-mirror-rsync sia obsoleto
e mal mantenuto, basta usare rsync, adeguatamente configurato:
/etc/rsyncd.conf
Code: | # General settings
uid = nobody
gid = nobody
use chroot = yes
timeout = 800
max connections = 50
pid file = /var/run/rsyncd.pid
motd file = /etc/rsync/rsyncd.motd
# Access
#hosts allow=*
#hosts deny=*
# Logging
transfer logging = no
log format = %t %a %m %f %b
syslog facility = local3
log file = /var/log/gentoo-rsync.log
[gentoo-portage]
path = /home/gentoobuilds/snapshots/gentoo-current/portage
comment = Private Gentoo Linux Portage tree mirror
exclude = distfiles/ packages/
read only = true
|
edit: scusate non avevo notato il post con la configurazione _________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
 |
FreeManAtomic Guru


Joined: 01 Feb 2005 Posts: 365
|
Posted: Wed Mar 08, 2006 1:42 pm Post subject: |
|
|
gentoo-mirror-rsync l'ho installato dopo aver visto che solo rsync non funzionava  |
|
Back to top |
|
 |
bender86 Guru


Joined: 18 Mar 2005 Posts: 484
|
Posted: Wed Mar 08, 2006 2:04 pm Post subject: Re: rsync locale |
|
|
FreeManAtomic wrote: | @ERROR: invalid uid nobody |
Non hai un utente nobody? Code: | nobody:x:65534:65534:nobody:/:/bin/false |
|
|
Back to top |
|
 |
FreeManAtomic Guru


Joined: 01 Feb 2005 Posts: 365
|
Posted: Wed Mar 08, 2006 5:39 pm Post subject: Re: rsync locale |
|
|
bender86 wrote: | FreeManAtomic wrote: | @ERROR: invalid uid nobody |
Non hai un utente nobody? Code: | nobody:x:65534:65534:nobody:/:/bin/false |
|
no nel mio passwd non c'e'! Lo posso aggiungere tranquillamente? Oppure devo prima indagare sulla sua assenza? |
|
Back to top |
|
 |
|