Obsolete Releases > SME 8.x Contribs
Affa - rsync errors
jonash:
Hi,
I have used affa as my backup solution on SME7 for "many" years. Some moths ago, I upgraded to SME8, and re-installed affa, but I cant get it to work...
--- Code: ---[root@fs ~]# db affa show
AffaGlobalDisable=no
DefaultAffaConfig=default
sendStatus=weekly
status=enabled
fs=job
AutoUnmount=yes
AutomountDevice=/dev/sda1
AutomountOptions=
AutomountPoint=/media/USB
ConnectionCheckTimeout=120
Debug=no
Description=
DiskSpaceWarn=strict
EmailAddresses=
Exclude[0]=
Include[0]=
RPMCheck=no
RetryAfter=600
RetryAttempts=3
RetryNotification=yes
RootDir=/media/USB
SMEServer=yes
SambaShare=yes
TimeSchedule=2230
Watchdog=yes
chattyOnSuccess=1
dailyKeep=7
doneDaily=2012284
doneMonthly=201210
doneWeekly=201241
doneYearly=2012
localNice=0
monthlyKeep=12
postJobCommand=
preJobCommand=
remoteHostName=fs.mimer.gotdns.org
remoteNice=0
rsync--inplace=yes
rsync--modify-window=0
rsyncCompress=no
rsyncTimeout=900
scheduledKeep=1
sshPort=22
status=enabled
weeklyKeep=4
yearlyKeep=2
--- End code ---
When I run the command these processes run:
--- Code: ---oot 31897 31810 0 21:06 pts/0 00:00:00 sh -c /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=900 --numeric-ids --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 31898 31897 1 21:06 pts/0 00:00:11 /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=900 --numeric-ids --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 31899 31898 1 21:06 pts/0 00:00:11 /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=900 --numeric-ids --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 31900 31899 0 21:06 pts/0 00:00:06 /usr/bin/rsync --archive --stats --delete-during --ignore-errors --delete-excluded --relative --partial --inplace --timeout=900 --numeric-ids --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 ---
But after some time I get a mail:
--- Code: ---Excerpt from log file /var/log/affa/fs.log:
Affa_2.0.0-rc4:_Running_/sbin/e-smith/affa_--watchdog=86400_--run_fs
Job_configuration:
__AutoUnmount=yes
__AutomountDevice=/dev/sda1
__AutomountPoint=/media/USB
__ChunkSize=921600
__ChunkThresholdSize=2
__ConnectionCheckTimeout=120
__Debug=no
__DiskSpaceWarn=strict
__EmailAddresses=admin
__RPMCheck=no
__RetryAfter=600
__RetryAttempts=3
__RetryNotification=yes
__RootDir=/media/USB
__SMEServer=yes
__SambaShare=yes
__TimeSchedule=2230
__Watchdog=yes
__chattyOnSuccess=1
__dailyKeep=7
__doneDaily=2012284
__doneMonthly=201210
__doneWeekly=201241
__doneYearly=2012
__monthlyKeep=12
__remoteHostName=localhost
__remoteOS=centos
__rsync--inplace=yes
__rsyncCompress=no
__rsyncTimeout=900
__rsyncdMode=no
__rsyncdModule=AFFA
__rsyncdPassword=<not_shown>
__rsyncdUser=affa
__scheduledKeep=1
__sendStatus=weekly
__sshPort=22
__status=enabled
__type=job
__weeklyKeep=4
__yearlyKeep=2
##################
#_Affa_2.0.0-rc4_#
##################
Starting_job_fs_scheduled_(localhost)
Description:_
Check_mounted:_/dev/sda1_/media/USB._Result:_no_
Mounting_/dev/sda1_to_/media/USB
Exec_Out:_exitstatus=0
Using_link_destination_daily.0
signaling_pre-backup_event_on_localhost
Exec_Out:_exitstatus=0
Running_rsync...
Exec_Out:_rsync:_writefd_unbuffered_failed_to_write_4092_bytes_to_socket_[sender]:_Broken_pipe_(32)
Exec_Out:_[sender]_io_timeout_after_30_seconds_--_exiting
Exec_Out:_rsync_error:_timeout_in_data_send/receive_(code_30)_at_io.c(140)_[sender=3.0.9]
Exec_Out:_30
Exec_Out:_rsync:_writefd_unbuffered_failed_to_write_7_bytes_to_socket_[generator]:_Broken_pipe_(32)
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_603_in_'main':_rsync_failed_with_status_rsync_error:_received_SIGUSR1_(code_19)_at_main.c(1298)_[generator=3.0.9].
Check_mounted:_/dev/sda1_/media/USB._Result:_yes
Unmounting_/media/USB
Exec_Out:_exitstatus=0
Starting_re-run_1_of_3_in_the_background.
Total_execution_time:__0h19m17s
--- End code ---
I have search on different places, but I cant find anything.. Maybe my USB disk is to slow for writing, so the rsync command stops because of that? Maybe alter rsyncTimeout=900 to something else?
It does not create any files/directories on the USB at all.
Jonas
Stefano:
searching for "_received_SIGUSR1_(code_19)_at_main.c(1298)_[generator=3.0.9" with google I see many recent post.. and many distros affected.. maybe a bug?
janet:
jonash
--- Quote ---I have used affa as my backup solution on SME7 for "many" years. Some moths ago, I upgraded to SME8, and re-installed affa, but I cant get it to work...
AutomountDevice=/dev/sda1
AutomountPoint=/media/USB
remoteHostName=fs.mimer.gotdns.org
It does not create any files/directories on the USB at all.
--- End quote ---
Your settings & comments imply you are backing up to a locally connected USB drive from your local server, but you have also specified a remote location server hostname as the source to backup from
So assuming you do actually want to backup your local sme server to a locally connected USB drive, then change the setting in /root/fs.pl to the following
remoteHostName=localhost
then run
/root/fs.pl
and it should then work.
I have that version of Affa (Affa_2.0.0-rc4) working OK on a local sme8 backing up to a locally connected USB, so the contrib is inherently OK (except for other unknown or alluded to bugs occasionally commented upon in the forums which I think are maybe user error).
After you have resolved this issue, you might want to try the newer version 3 which is being maintained (although the contrib version is not the cause of your current problem).
From
http://wiki.contribs.org/Affa
it links you to
http://affa.sourceforge.net/
jonash:
Hi,
Thanks for the suggestions, but there error remains.
--- Code: ---Excerpt from log file /var/log/affa/fs.log:
Affa_2.0.0-rc4:_Running_/sbin/e-smith/affa_--watchdog=86400_--run_fs
Job_configuration:
__AutoUnmount=yes
__AutomountDevice=/dev/sda1
__AutomountPoint=/media/USB
__ChunkSize=921600
__ChunkThresholdSize=2
__ConnectionCheckTimeout=120
__Debug=no
__DiskSpaceWarn=strict
__EmailAddresses=admin
__RPMCheck=no
__RetryAfter=600
__RetryAttempts=3
__RetryNotification=yes
__RootDir=/media/USB
__SMEServer=yes
__SambaShare=yes
__TimeSchedule=2230
__Watchdog=yes
__chattyOnSuccess=1
__dailyKeep=7
__doneDaily=2012284
__doneMonthly=201210
__doneWeekly=201241
__doneYearly=2012
__monthlyKeep=12
__remoteHostName=localhost
__remoteOS=centos
__rsync--inplace=yes
__rsyncCompress=no
__rsyncTimeout=900
__rsyncdMode=no
__rsyncdModule=AFFA
__rsyncdPassword=<not_shown>
__rsyncdUser=affa
__scheduledKeep=1
__sendStatus=weekly
__sshPort=22
__status=enabled
__type=job
__weeklyKeep=4
__yearlyKeep=2
##################
#_Affa_2.0.0-rc4_#
##################
Starting_job_fs_scheduled_(localhost)
Description:_
Check_mounted:_/dev/sda1_/media/USB._Result:_no_
Mounting_/dev/sda1_to_/media/USB
Exec_Out:_exitstatus=0
Using_link_destination_daily.0
signaling_pre-backup_event_on_localhost
Exec_Out:_exitstatus=0
Running_rsync...
Exec_Out:_[sender]_io_timeout_after_900_seconds_--_exiting
Exec_Out:_rsync_error:_timeout_in_data_send/receive_(code_30)_at_io.c(140)_[sender=3.0.9]
Exec_Out:_30
Exec_Out:_rsync:_writefd_unbuffered_failed_to_write_7_bytes_to_socket_[generator]:_Broken_pipe_(32)
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_603_in_'main':_rsync_failed_with_status_rsync_error:_received_SIGUSR1_(code_19)_at_main.c(1298)_[generator=3.0.9].
Check_mounted:_/dev/sda1_/media/USB._Result:_yes
Unmounting_/media/USB
Exec_Out:_exitstatus=0
Starting_re-run_1_of_3_in_the_background.
Total_execution_time:__0h17m33s
--- End code ---
Stefano, I also found these bug reports, but those I found were old...
I will try to find a non USB-disk which I can mount on the SME server to see if it works.
Jonas
jonash:
Now, I think I found the problem..
In my backup dir, there were a directory scheduled.running, which probably was from an old cancelled run. I removed it, and now it starts to write in a new scheduled.running directory. I dont know if rsync compared the new files with the old files in scheduled.running, and got a time out, or if it was waiting for something to happen..
Thanks for all inputs.
Jonas
Navigation
[0] Message Index
[#] Next page
Go to full version