Obsolete Releases > SME 8.x Contribs
Affa - rsync errors
jonash:
Nope.. still fails after some hours. Maybe there is a corrupt file or diskblock somewhere. I will try to make rsync log more to see if I can find something.
janet:
jonash
--- Quote ---In my backup dir, there were a directory scheduled.running,
--- End quote ---
Where exactly did you see this backup dir, on the USB disk ? or on the hard disk (mount point) of sme server ?
--- Quote ---....which probably was from an old cancelled run
--- End quote ---
It is from an unsuccessful or incompleted backup. The next time the backup job runs, it will recommence that scheduled backup from the point it was up to.
If the backup was already half done (say yesterday), and then stopped (for whatever reason) then only the second half of the backup will need to be done (say today).
The problem for you is that the backup seems to repeatedly stop each time it runs, for some reason yet to be determined.
Can you please confirm what you are trying to backup?
Is it a local sme server to a locally connected USB disk, and there is no backing up of workstations or remote sme server involved ?
jonash:
--- Quote ---Where exactly did you see this backup dir, on the USB disk ? or on the hard disk (mount point) of sme server ?
--- End quote ---
The backup dir was on the USB disk.
I backup the whole SME-server to a local USB disk, mounted on /media/USB
When I start affa with the command from crontab: /sbin/e-smith/affa --watchdog=86400 --run fs these rsync processes start.
--- Code: ---root 3762 3706 0 11:45 pts/0 00:00:00 sh -c /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=1900 --numeric-ids --progress --rsync-path='/usr/bin/rsync' --link-dest='/media/USB/fs/daily.0' "/home/e-smith" "/etc/e-smith/templates-custom" "/etc/e-smith/templates-user-custom" "/etc/ssh" "/root" "/etc/sudoers" "/etc/passwd" "/etc/shadow" "/etc/group" "/etc/gshadow" "/etc/samba/secrets.tdb" "/etc/samba/smbpasswd" /media/USB/fs/scheduled.running/ 2>&1; echo ${PIPESTATUS}
root 3763 3762 4 11:45 pts/0 00:00:02 /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=1900 --numeric-ids --progress --rsync-path=/usr/bin/rsync --link-dest=/media/USB/fs/daily.0 /home/e-smith /etc/e-smith/templates-custom /etc/e-smith/templates-user-custom /etc/ssh /root /etc/sudoers /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/samba/secrets.tdb /etc/samba/smbpasswd /media/USB/fs/scheduled.running/
root 3764 3763 7 11:45 pts/0 00:00:03 /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=1900 --numeric-ids --progress --rsync-path=/usr/bin/rsync --link-dest=/media/USB/fs/daily.0 /home/e-smith /etc/e-smith/templates-custom /etc/e-smith/templates-user-custom /etc/ssh /root /etc/sudoers /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/samba/secrets.tdb /etc/samba/smbpasswd /media/USB/fs/scheduled.running/
root 3765 3764 0 11:45 pts/0 00:00:00 /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=1900 --numeric-ids --progress --rsync-path=/usr/bin/rsync --link-dest=/media/USB/fs/daily.0 /home/e-smith /etc/e-smith/templates-custom /etc/e-smith/templates-user-custom /etc/ssh /root /etc/sudoers /etc/passwd /etc/shadow /etc/group /etc/gshadow /etc/samba/secrets.tdb /etc/samba/smbpasswd /media/USB/fs/scheduled.running/
--- End code ---
No other backups are involved.
The status from today.. (Is has worked before :-? )
--- Code: ---Archive lists of all jobs:
Affa version 2.0.0-rc4 on fs.mimer.gotdns.org (192.168.1.1)
+------------------------------------------------------------------------------+
| Job: fs |
| Directory: /media/USB/fs/ |
| Hostname: localhost |
| AutomountDevice: /dev/sda1 |
| AutomountPoint: /media/USB |
| AutoUnmount: yes |
| Email: admin |
+-------+-----------------------+-----------+----------------+--------+--------+
| Run | Completion date | Exec Time | Files | Size | Recvd |
+-------+-----------------------+-----------+----------------+--------+--------+
| W 1 | Sun 2012 Sep 23 22:33 | 0h03m41s | 192127 | 202GB | 8.3kB |
| W 0 | Sun 2012 Sep 30 22:36 | 0h06m07s | 192339 | 202GB | 7.8kB |
+-------+-----------------------+-----------+----------------+--------+--------+
| D 6 | Wed 2012 Oct 03 22:58 | 0h28m20s | 190482 | 197GB | 15kB |
| D 5 | Thu 2012 Oct 04 23:07 | 0h37m04s | 191105 | 198GB | 24kB |
| D 4 | Fri 2012 Oct 05 22:39 | 0h09m37s | 192238 | 198GB | 29kB |
| D 3 | Sat 2012 Oct 06 22:36 | 0h06m11s | 192288 | 198GB | 7.8kB |
| D 2 | Sun 2012 Oct 07 22:36 | 0h05m59s | 192354 | 198GB | 9.4kB |
| D 1 | Mon 2012 Oct 08 22:34 | 0h04m15s | 192401 | 198GB | 8.4kB |
| D 0 | Tue 2012 Oct 09 22:36 | 0h06m00s | 192462 | 198GB | 8.4kB |
+-------+-----------------------+-----------+----------------+--------+--------+
generated on Sun Nov 25 05:00:03 2012
--- End code ---
Jonas
jonash:
I added the flag --progress to rsync and got this:
--- Code: ---Exec_Out:_/home/e-smith/files/users/marie/Maildir/cur/1353794835.15285.fs:2,S
Exec_Out:_________4646_100%____0.00kB/s____0:00:00
________4646_100%____0.00kB/s____0:00:00_(xfer#50,_to-check=1109/178182)
Exec_Out:_/home/e-smith/files/users/marie/Maildir/new/
Exec_Out:_/home/e-smith/files/users/marie/Maildir/tmp/
Exec_Out:_/home/e-smith/files/users/marie/home/PC_Avaio/Från_Mina_dokument/Mina_bilder/Kort_-_Sommar_2010/100MSDCF/
Exec_Out:_[sender]_io_timeout_after_1920_seconds_--_exiting
Exec_Out:_rsync_error:_timeout_in_data_send/receive_(code_30)_at_io.c(140)_[sender=3.0.9]
Exec_Out:_rsync:_writefd_unbuffered_failed_to_write_957_bytes_to_socket_[generator]:_Broken_pipe_(32)
Exec_Out:_30
Exec_Out:_exitstatus=rsync_error:_received_SIGUSR1_(code_19)_at_main.c(1298)_[generator=3.0.9]
signaling_post-backup_event_on_localhost
Exec_Out:_exitstatus=0
Error_604_in_'main':_rsync_failed_with_status_rsync_error:_received_SIGUSR1_(code_19)_at_main.c(1298)_[generator=3.0.9].
Starting_re-run_1_of_3_in_the_background.
Total_execution_time:__0h34m41s
--- End code ---
janet:
jonash
Maybe there is something odd with files in that folder with the unusual character ???
I would disable affa temporarily and manually mount the USB drive and then instigate a manual rsync command that backs up /home/e-smith to the USB. The content there should be sufficiently large so the backup will take some time to complete, thus testing the rsync process over a long time period. Use a minimal set of switches.
man rsync
The success or otherwise of a manual limited backup may give clues as to where the problem lies and identify whether affa is part of the problem or not.
I'd also try a different USB port & cable, a different USB drive and check your main sme servers drive(s) for errors with the manufacturers diagnostic software. Also check the USB drive.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version