Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old October 20th, 2003, 02:55 PM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
rsync aka troubleshooting a system that blatantly lies!

Grrrr... I am seriously pulling my hair out here.

I'm trying to set up rsync (first time I have used it) through ssh between two identical linux webservers.

Once the daemon is started on the backup server I can run (sensitive data blanked out):

rsync --verbose --progress --stats --rsync-path=/usr/local/bin/rsync --compress --rsh="ssh" --recursive --times /rsynctrans/* user@xxx.xxx.xxx.xxx:wwopbetasite

on the master webserver, I get asked for the password for the user, then I get:

building file list ...
1 file to consider
test.txt
6 100% 0.00kB/s 0:00:00
rsync[3517] (sender) heap statistics:
arena: 328024 (bytes from sbrk)
ordblks: 2 (chunks not in use)
smblks: 5
hblks: 1 (chunks from mmap)
hblkhd: 266240 (bytes from mmap)
usmblks: 0
fsmblks: 152
uordblks: 322304 (bytes used)
fordblks: 5720 (bytes free)
keepcost: 1608 (bytes in releasable chunk)

Number of files: 1
Number of files transferred: 1
Total file size: 6 bytes
Total transferred file size: 6 bytes
Literal data: 6 bytes
Matched data: 0 bytes
File list size: 27
Total bytes written: 82
Total bytes read: 42

wrote 82 bytes read 42 bytes 49.60 bytes/sec
total size is 6 speedup is 0.05

which looks fine, except that the test.txt doesn't appear on the other server and nothing appears in the log!

But if I run:

rsync --verbose --progress --stats --rsync-path=/usr/local/bin/rsync --compress --recursive --times /rsynctrans/* user@xxx.xxx.xxx.xxx::wwopbetasite

(i.e. through rsh), the file appears and there is a log entry! The following dump is displayed when running as rsh:

building file list ...
1 file to consider
test.txt
6 100% 0.00kB/s 0:00:00
rsync[3521] (sender) heap statistics:
arena: 328024 (bytes from sbrk)
ordblks: 3 (chunks not in use)
smblks: 3
hblks: 0 (chunks from mmap)
hblkhd: 0 (bytes from mmap)
usmblks: 0
fsmblks: 96
uordblks: 322240 (bytes used)
fordblks: 5784 (bytes free)
keepcost: 1648 (bytes in releasable chunk)

Number of files: 1
Number of files transferred: 1
Total file size: 6 bytes
Total transferred file size: 6 bytes
Literal data: 6 bytes
Matched data: 0 bytes
File list size: 27
Total bytes written: 134
Total bytes read: 56

wrote 134 bytes read 56 bytes 380.00 bytes/sec
total size is 6 speedup is 0.03



I have stripped my rsync conf right down to the bear bones of a working file (sensitive data blocked out):

log file = /var/log/rsync.log
pid file = /var/log/rsync.pid
lock file = /var/run/rsync.lock

[wwopbetasite]
path = /rsynctrans
uid = [user]
gid = users
read only = no

and the ssh log does show that the user and password is let in when I run the sync under ssh...

How can I troubleshoot a system that insists on telling me it's working!!! :laugh:

Someone please help!

Reply With Quote
  #2  
Old October 21st, 2003, 08:05 AM
Jester Jester is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: England
Posts: 271 Jester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: rsync aka troubleshooting a system that blatantly lies!

The plot thickens...

If I use:

rsync --verbose --progress --stats --rsync-path=/usr/local/bin/rsync --compress --rsh=/usr/bin/ssh --recursive --times /rsynctrans/* user@xxx.xxx.xxx.xxx:/rsynctrans

and explicitly specify the destination rather than:

rsync --verbose --progress --stats --rsync-path=/usr/local/bin/rsync --compress --rsh=/usr/bin/ssh --recursive --times /rsynctrans/* user@xxx.xxx.xxx.xxx:wwopbetasite

which references the daemon configuration file block in rsync.conf on the backup server, then it works. But I can use the wwopbetasite block under rsh (see previous post) - does anyone understand why, and what I'm doing wrong?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > rsync aka troubleshooting a system that blatantly lies!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway