stephane.purnelle@corman.be
2007-Oct-23 14:15 UTC
Script work fine on sheel, but no on a cron job
Hi, I make a script which make some call of rsync to connect to a rsync daemon. When I run on a shell, the script work fine. When I run this scripts from a cron-job, the script fail with theses messages : rsync: failed to connect to remote-node: Connection refused (111) rsync error: error in socket IO (code 10) at clientserver.c(94) What's happen ? thanks St?phane ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467 -------------- next part -------------- HTML attachment scrubbed and removed
On Tue, 2007-10-23 15:59:29 +0200, stephane.purnelle@corman.be <stephane.purnelle@corman.be> wrote:> I make a script which make some call of rsync to connect to a rsync > daemon. > When I run on a shell, the script work fine. > > When I run this scripts from a cron-job, the script fail with theses > messages : > > rsync: failed to connect to remote-node: Connection refused (111) > rsync error: error in socket IO (code 10) at clientserver.c(94)Care to show us the script? You'd debug this by either tcpdump'ing the network traffic or by strace'ing one (or both) instances of the rsync client/daemon. MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481 Signature of: Don't believe in miracles: Rely on them! the second : -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.samba.org/archive/rsync/attachments/20071023/2829358e/attachment.bin
stephane.purnelle@corman.be
2007-Oct-31 16:25 UTC
Script work fine on sheel, but no on a cron job
The script have line like rsync -avz --password-file=/usr/local/etc/rsync.pwd /etc/rsyncd.conf rsync://root@remote-node:/etc_conf A pcap file from wriesharck can help you ? thanks ----------------------------------- St?phane PURNELLE stephane.purnelle@corman.be Service Informatique Corman S.A. Tel : 00 32 087/342467 rsync-bounces+stephane.purnelle=corman.be@lists.samba.org a ?crit sur 24/10/2007 14:00:37 :> Send rsync mailing list submissions to > rsync@lists.samba.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.samba.org/mailman/listinfo/rsync > or, via email, send a message with subject or body 'help' to > rsync-request@lists.samba.org > > You can reach the person managing the list at > rsync-owner@lists.samba.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of rsync digest..." > To unsubscribe or change options: https://lists.samba. > org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html > > ---------------------------------------Today's Topics: > > 1. Script work fine on sheel, but no on a cron job > (stephane.purnelle@corman.be) > 2. Re: Script work fine on sheel, but no on a cron job > (Jan-Benedict Glaw) > (Jan-Benedict Glaw) > 3. Are extended attributes supported under cygwin for rsync 3.0 > pre2 ? (Ben Anderson) > 4. rsync every 15 min, lots of defunct processes, high iowait > (ChrisBeach) > > ----- Message de stephane.purnelle@corman.be sur Tue, 23 Oct 2007 > 15:59:29 +0200 ----- > > Pour: > > rsync@lists.samba.org > > Objet: > > Script work fine on sheel, but no on a cron job > > > Hi, > > I make a script which make some call of rsync to connect to a rsyncdaemon.> When I run on a shell, the script work fine. > > When I run this scripts from a cron-job, the script fail with theses > messages : > > rsync: failed to connect to remote-node: Connection refused (111) > rsync error: error in socket IO (code 10) at clientserver.c(94) > > What's happen ? > > thanks > > St?phane > ----------------------------------- > St?phane PURNELLE stephane.purnelle@corman.be > Service Informatique Corman S.A. Tel : 00 32 087/342467 > ----- Message de Jan-Benedict Glaw <jbglaw@lug-owl.de> sur Tue, 23 > Oct 2007 23:18:37 +0200 ----- > > Pour: > > stephane.purnelle@corman.be > > cc: > > rsync@lists.samba.org > > Objet: > > Re: Script work fine on sheel, but no on a cron job > > On Tue, 2007-10-23 15:59:29 +0200, stephane.purnelle@corman.be > <stephane.purnelle@corman.be> wrote: > > I make a script which make some call of rsync to connect to a rsync > > daemon. > > When I run on a shell, the script work fine. > > > > When I run this scripts from a cron-job, the script fail with theses > > messages : > > > > rsync: failed to connect to remote-node: Connection refused (111) > > rsync error: error in socket IO (code 10) at clientserver.c(94) > > Care to show us the script? You'd debug this by either tcpdump'ing > the network traffic or by strace'ing one (or both) instances of the > rsync client/daemon. > > MfG, JBG > > -- > Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481 > Signature of: Don't believe in miracles: Rely onthem!> the second : > [rattachement "signature.asc" supprim? par St?phanePURNELLE/COR/SOPARIND] .... -------------- next part -------------- HTML attachment scrubbed and removed
Alexandros Papadopoulos
2007-Nov-01 14:11 UTC
Script work fine on sheel, but no on a cron job
On 10/31/07, stephane.purnelle@corman.be <stephane.purnelle@corman.be> wrote:> > The script have line like > > rsync -avz --password-file=/usr/local/etc/rsync.pwd > /etc/rsyncd.conf rsync://root@remote-node:/etc_confYour shell might have the RSYNC_PASSWORD environment variable preset, while the script does not. Is the password file chmoded 0640 and owned by root? Does the remote daemon log something like "Access denied for [module_name] for [IP_address]" ? -A