I'm trying to rync working between the UK (Sun box) and India (AIX box) and am having a real problems getting it up and running because every time I do a full transfer it hangs. The Sun box is the one holding the canonical source which we want to mirror. I've been shipped to the India office to get this working and have tried hundreds of things over the last week, I've also scoured the web looking for solutions (which is how I found this mailing list)! I put a load of tracing into the rsync code and discovered that it was waiting on the child to die. A bit more tracking down showed that the child process was the remsh to the AIX box. This is what is hanging. The interesting bit is that the remsh closes down at the AIX end without problem but doesn't seem to be telling the other end that it has finished so you end up with a one ended hanging remsh and rsync waiting for it to die... I'm tried it from both a Linux box and a Sun box at the UK end so it's probably this end that's causing the trouble. I'm trying to get access to a Sun box here. The local UNIX guru thinks there is a problem with the TCP/IP socket shutdown on AIX, does that ring any bells with anyone? I've *got* to get this working and am getting a little desperate... Any help is *much* appreciated. Cheers, Neil
On 24 Apr 2002, neil.pawson@ps.ge.com wrote: What about trying rsync daemon mode? That's no less secure than remsh as far as I know, and if the bug is in remsh it might save you. Please look through the rsync archive at mail-archive.com for a discussion of the use of netstat in tracing rsync hangs. I take it you're using 2.5.5 on both ends? If you're on 2.4 I'd strongly suggest you look at upgrading. Hope that helps you get started, -- Martin
I've managed to get rsync to work as a daemon rather than via remsh (many thanks to Martin Pool for suggesting this!). The remsh problems still exists though. Sorry but I got a (possibly) vital piece of information wrong in my last mail, it turns out that the box is actually a Tru64 UNIX box instead of AIX as I stated. Someone told me it was an AIX box when I arrived and I didn't check. A further (more minor problem) is that Martin suggested that I move up to the latest version of rsync but when I compile it on the machine I get the errors below. Unfortunately the machine doesn't have gcc on it (which I know compiles it successfully) so I'm having to use the native cc. It's been a while since I've done much C so I'm not sure what's going on here: cc: Error: lib/getaddrinfo.c, line 180: In this statement, "EAI_MAX" is not decl ared. (undeclared) if (ecode < 0 || ecode > EAI_MAX) ---------------------------------^ cc: Error: lib/getaddrinfo.c, line 262: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /* xxx */ ------------------------^ cc: Error: lib/getaddrinfo.c, line 263: In this statement, "AI_MASK" is not decl ared. (undeclared) if (hints->ai_flags & ~AI_MASK) ---------------------------------------^ cc: Error: lib/getaddrinfo.c, line 297: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /*xxx*/ --------------------------------^ cc: Error: lib/getaddrinfo.c, line 303: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /*xxx*/ --------------------------------^ cc: Error: lib/getaddrinfo.c, line 353: In this statement, "EAI_PROTOCOL" is not declared. (undeclared) ERR(EAI_PROTOCOL); /*xxx*/ ----------------------------------------^ *** Exit 1 Stop. Cheers, Neil
Make them give you a gcc. You can get an older-version gcc binaries for DU4.0 at ftp://ftp.thewrittenword.com/packages/free/by-name, which should let you then compile gcc 3.03 (is that still the latest?), then, you can properly handle all the goodies that are out here. I'd make you a tarball, but i don't have DU/Compaq/Tru64. Beside, you're better off with a home-compiled version. Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips, n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" neil.pawson@ps.ge.com Sent by: rsync-admin@lists.samba.org 04/24/2002 03:10 AM To: rsync@lists.samba.org cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: RE: rsync hanging (Sun -> AIX) Classification: I've managed to get rsync to work as a daemon rather than via remsh (many thanks to Martin Pool for suggesting this!). The remsh problems still exists though. Sorry but I got a (possibly) vital piece of information wrong in my last mail, it turns out that the box is actually a Tru64 UNIX box instead of AIX as I stated. Someone told me it was an AIX box when I arrived and I didn't check. A further (more minor problem) is that Martin suggested that I move up to the latest version of rsync but when I compile it on the machine I get the errors below. Unfortunately the machine doesn't have gcc on it (which I know compiles it successfully) so I'm having to use the native cc. It's been a while since I've done much C so I'm not sure what's going on here: cc: Error: lib/getaddrinfo.c, line 180: In this statement, "EAI_MAX" is not decl ared. (undeclared) if (ecode < 0 || ecode > EAI_MAX) ---------------------------------^ cc: Error: lib/getaddrinfo.c, line 262: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /* xxx */ ------------------------^ cc: Error: lib/getaddrinfo.c, line 263: In this statement, "AI_MASK" is not decl ared. (undeclared) if (hints->ai_flags & ~AI_MASK) ---------------------------------------^ cc: Error: lib/getaddrinfo.c, line 297: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /*xxx*/ --------------------------------^ cc: Error: lib/getaddrinfo.c, line 303: In this statement, "EAI_BADHINTS" is not declared. (undeclared) ERR(EAI_BADHINTS); /*xxx*/ --------------------------------^ cc: Error: lib/getaddrinfo.c, line 353: In this statement, "EAI_PROTOCOL" is not declared. (undeclared) ERR(EAI_PROTOCOL); /*xxx*/ ----------------------------------------^ *** Exit 1 Stop. Cheers, Neil -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html