rsync 2.4.6 hanging on HPUX11 only over firewall.
We are running rsync 2.4.6 on HPUX-11and using it to push a document-root from a staging area to several servers running rsync in daemon mode. The rsync client syncs successfully to modules on the same server and to most other machines, but hangs when trying to syncronise across a firewall (from SECURE zone to DMZ) (The firewall port IS OPEN!!) During a normal release where there are rougly less than 200 changed files the syncronisation across the firewall runs fine. However it hangs when we try and sync the entire document-root ( or a large subset of it). It appears to wait for several minutes with no new messages in the logs and no packets being exchanged. Eventually it may carry and then hang on another file. After spending 2 days trying to compile 2.5.5 and then finding it didn't work at all ( my memory tells me that it was an error at line 150 of io.c ) we are not keen on moving up to 2.5.5 just yet! I've looked through the mailing list archives and found Wayne Davison's rsync-nohang.patch was suggested to fix similar problems, but this seems to be available for the 2.5.X releases. We are interested in finding out whether the wayne-nohang patches can be applied to 2.4.6. How widely has this patch been implemented, and has anyone found any problems with it? Do people think it is likely to solve our problems? What is the basic idea behind how it solves the problem? Also has anyone found any problems with rsyncing through firewalls where they haven't had the problem for the same files where there is no firewall? Unfortunately as the problems we have are only exhibiting themselves on our production servers we very limited by what diagnostics we are allowed to run and we havent managed to get the same symptoms to exhibit themselves on our (supposedly identical) test machines. I know theres a lot of questions here, but I have spent a good deal of time trying to work out the issue and have hit a bit of a brick wall, so any comments and suggestions would be greatly appreciated. Regards Mark Hyde - Get an SMS alert to your mobile every time you get an email. That's ANY mobile phone. Register for FREE with t-email at www.t-email.co.uk to access your email and contacts via web and WAP - -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Version incompatibility...
After lots of testing, I believe that I have discovered my problem. I am trying to use rsync to synchronise a Red Hat 7.2 Server and a RedHat 7.3 Server and they have different versions of rsync on them. I set up 2 x Red Hat 7.3 machines, both running rsync-2.5.4-2 and they work fine, transferring files via rsync with no problem. Here is my test rsyncd.conf on the server linuxstation [home] uid = root gid = root read only = no path = /tmp After placing the appropriate entries in the /etc/hosts files of all PCs, I created a single-line text file in /tmp on the workstation called zz and ran: rsync -avt /tmp/zz linuxstation::home It transferred fine. I then used ftp to transfer the linuxstation /etc/rsync.conf file to a Red Hat 7.2 machine running rsync-2.4.6-5, and placed it in the /etc directory. I ran rsync --daemon on the server and confirmed that the service was running. I then changed the client command to reflect the name of the new server, which is storageserver: rsync -avt /tmp/zz storageserver::home It just hangs for about 2 seconds and then does a cr-lf and drops back to a hash prompt. No errors or anything, and no file transfer. I have been to the rpm repository, but there are no newer versions of rsync for RedHat 7.2, so I have downloaded the rsync 2.5.5 source and compiled it on both platforms and now it works fine. RPM has it's place, but it is often better to just compile the source. Has anyone else had a similiar experience with rsync? Regards, Brad -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html