Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
rsync locale
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
FreeManAtomic
Guru
Guru


Joined: 01 Feb 2005
Posts: 365

PostPosted: Tue Mar 07, 2006 3:53 pm    Post subject: rsync locale Reply with quote

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
View user's profile Send private message
Ilvalle
Guru
Guru


Joined: 07 Mar 2005
Posts: 325
Location: Gallarate - ITALY

PostPosted: Tue Mar 07, 2006 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreeManAtomic
Guru
Guru


Joined: 01 Feb 2005
Posts: 365

PostPosted: Tue Mar 07, 2006 7:56 pm    Post subject: Reply with quote

il mio file di conf e uguale al tuo
Back to top
View user's profile Send private message
Ilvalle
Guru
Guru


Joined: 07 Mar 2005
Posts: 325
Location: Gallarate - ITALY

PostPosted: Tue Mar 07, 2006 8:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreeManAtomic
Guru
Guru


Joined: 01 Feb 2005
Posts: 365

PostPosted: Tue Mar 07, 2006 8:19 pm    Post subject: Reply with quote

no non dicono niente!
Back to top
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed Mar 08, 2006 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
FreeManAtomic
Guru
Guru


Joined: 01 Feb 2005
Posts: 365

PostPosted: Wed Mar 08, 2006 1:42 pm    Post subject: Reply with quote

gentoo-mirror-rsync l'ho installato dopo aver visto che solo rsync non funzionava :cry:
Back to top
View user's profile Send private message
bender86
Guru
Guru


Joined: 18 Mar 2005
Posts: 484

PostPosted: Wed Mar 08, 2006 2:04 pm    Post subject: Re: rsync locale Reply with quote

FreeManAtomic wrote:
@ERROR: invalid uid nobody

Non hai un utente nobody?
Code:
nobody:x:65534:65534:nobody:/:/bin/false
Back to top
View user's profile Send private message
FreeManAtomic
Guru
Guru


Joined: 01 Feb 2005
Posts: 365

PostPosted: Wed Mar 08, 2006 5:39 pm    Post subject: Re: rsync locale Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum