Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: hasan on July 27, 2009, 09:16:31 AM

Title: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on July 27, 2009, 09:16:31 AM
Hello All,
           I am using smeserver 7.3 kernel 2.6.9-78.0.8.ELsmp,
Till sometime back my affa was working fine but after I installed a new disk of 1TB on my openfiler NAS box the problem has started to come. The first backup is running fuile while the second one fails showing error 537, here is the log file:
Code: [Select]
Mon Jul 27 10:50:01[4663]: Affa 1.0.0-3: Starting job nasbox scheduled (localhost)
Mon Jul 27 10:50:01[4663]: Description:
Mon Jul 27 10:50:01[4663]: signaling pre-backup event on localhost
Mon Jul 27 10:50:11[4663]: Running rsync...
Mon Jul 27 11:11:09[4663]: signaling post-backup event on localhost
Mon Jul 27 11:11:10[4663]: Error 537: rsync failed with status rsync: writefd_unbuffered failed to write 78 bytes [generator]: Broken pipe (32).
Mon Jul 27 11:11:15[4663]: Email sent to root@cwgblr.com
Mon Jul 27 11:11:15[4663]: Exiting.

Also here is my affa setup file
Code: [Select]
#!/usr/bin/perl -w

# Important: Values must not contain a '|' (pipe) character

# EDIT THIS:
# used as a key for db and as a filename!
# Choose a name with <= 10 chars.
my $jobname='nasbox';

# EDIT THIS:
my %job=(
'remoteHostName'=>'localhost', # FQHN or IP address
'TimeSchedule'=>'1050', # HHMM,HHMM,...
'Description'=>'', # text string.
'scheduledKeep'=>1, # integer >= 1
'dailyKeep'=>1, # integer >= 1
'weeklyKeep'=>1,# integer >= 1
'monthlyKeep'=>1,# integer >= 1
'yearlyKeep'=>1,# integer >= 1
'SMEServer'=>'yes', # yes | no
'Include[0]'=>'', # additional files or directories to include
#'Include[1]'=>'',
#'Include[2]'=>'',
'Exclude[0]'=>'', # files or directories to exclude from backup
#'Exclude[1]'=>'',
#'Exclude[2]'=>'',
'RPMCheck'=>'no', # yes | no
'DiskSpaceWarn'=>'strict', # strict | normal | risky | none
'localNice'=>0, # -19...+19
'remoteNice'=>0, # -19...+19
'Watchdog'=>'yes', # yes | no
'sshPort'=>22, # default ssh port is 22
'ConnectionCheckTimeout'=>120, # seconds
'rsyncTimeout'=>900, # seconds
'rsyncCompress'=>'yes', # yes | no
'EmailAddresses'=>'root@cwgblr.com', # name@domain.com,name@domain.com,...
'chattyOnSuccess'=>0, # send N success notifications
'postJobCommand'=>'', # full path to local program/script
'preJobCommand'=>'', # full path to local program/script
'AutomountDevice'=>'', # Device to auto mount (e.g. USB drive)
'AutomountPoint'=>'', # the mountpoint for AutomountDevice
'AutomountOptions'=>'', # Optionstring passed to mount command e.g. '-t cifs'
'AutoUnmount'=>'no', # umount if fs was not mounted before Affa ran
'RootDir'=>'/mnt/affanas', # where to save the archives. Don't use /root or /home/e-smith
#'RootDir'=>'/mnt/APF/server_backup', # where to save the archives. Don't use /root or /home/e-smith
'Debug'=>'no', # yes | no
'status'=>'enabled', # enabled | disabled
#'status'=>'disabled', # enabled | disabled
'rsync--inplace'=>'yes', # yes | no : rsync on source supports '--inplace' option
'rsync--modify-window'=>0, # integer >= 0, timestamp window
);

### nothing to edit below this line ####



here are my mounts on the server
Code: [Select]
/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
192.168.1.250:/mnt/vg1/affa/backup/ on /mnt/affanas type nfs (rw,addr=192.168.1.250)

192.168.1.250 is the ip of my Openfiler NAS Box

Here is the affa archives

Code: [Select]
Affa version 1.0.0-3 on server.cwgblr.com (192.168.1.***)
+------------------------------------------------------------------------------+
| Job: nasbox                                                                  |
| Description:                                                                 |
| Directory: /mnt/affanas/nasbox/                                              |
| Hostname: localhost                                                          |
| Email:                                                       |
+-----------------------+----------------+--------------+--------+-------------+
| Date                  | Archive        |        Files |   Size |  Disk usage |
+-----------------------+----------------+--------------+--------+-------------+
| Fri 2009 Jul 24 16:49 | daily.0        |       370559 |  260GB |   262GB/30% |
+-----------------------+----------------+--------------+--------+-------------+

Code: [Select]
[root@server ~]# cd /mnt/affanas/
[root@server affanas]# ls
nasbox
[root@server affanas]# cd nasbox/
[root@server nasbox]# ls
daily.0  scheduled.running
[root@server nasbox]# pwd
/mnt/affanas/nasbox
[root@server nasbox]#

Now I do not know what is the exact issue.

Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on August 03, 2009, 07:54:08 AM
Is there no body who can help me or atleast comment on this issue.

Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on August 03, 2009, 08:01:46 AM
Hello All,
               After trying alot on the issue I decided to change the hard drive and I installed CentOS 5 on it and mounted it on my server so that affa can use it fro my daily backups.

So the first backup ran without any issues and completed succsessfully,
But on the second night the backup failed and gave me this error report. This is only a part of it:

Code: [Select]
xcerpt from log file /var/log/affa/nasbox.log:
Mon_Aug__3_09:30:02[START.7032]:_Affa_1.0.0-3:_Running_/sbin/e-smith/affa_--watchdog=86400_--run_nasbox
Job_configuration:
__AutoUnmount=no
__ConnectionCheckTimeout=120
__Debug=no
__DiskSpaceWarn=strict
__EmailAddresses=root@cwgblr.com
__RPMCheck=no
__RootDir=/mnt/affanas
__SMEServer=yes
__TimeSchedule=0930
__Watchdog=yes
__chattyOnSuccess=716
__dailyKeep=1
__doneDaily=2009214
__doneMonthly=200908
__doneWeekly=200930
__doneYearly=2009
__monthlyKeep=1
__remoteHostName=localhost
__remoteOS=centos
__rsync--inplace=yes
__rsyncCompress=yes
__rsyncTimeout=900
__rsyncdMode=no
__rsyncdModule=AFFA
__rsyncdPassword=<not_shown>
__rsyncdUser=affa
__scheduledKeep=1
__sendStatus=weekly
__sshPort=22
__status=enabled
__type=job
__weeklyKeep=1
__yearlyKeep=1
Mon_Aug__3_09:30:02[7032]:_Affa_1.0.0-3:_Starting_job_nasbox_scheduled_(localhost)
Mon_Aug__3_09:30:02[7032]:_Description:_
Mon_Aug__3_09:30:02[7032]:_signaling_pre-backup_event_on_localhost
Exec_Out:_exitstatus=0
Using_link_destination_daily.0
Mon_Aug__3_09:30:14[7032]:_Running_rsync...
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/group"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/gshadow"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/passwd"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/shadow"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/smbpasswd"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/sudoers"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/httpd"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/httpd/conf"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/80php5-cgi"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/89b2evolution"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/90orangehrm"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/my.cnf"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/my.cnf/005mysqld"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/pptpd.conf.bak"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/pptpd.conf.bak/remoteip.bak"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/ups"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/ups/upsd.users"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-custom/etc/ups/upsd.users/upssetup"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/e-smith/templates-user-custom"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/samba"_failed:_Operation_not_permitted_(1)
Exec_Out:_rsync:_chown_"/mnt/affanas/nasbox/scheduled.running/etc/samba/secrets.tdb"_failed:_Operation_not_permitted_(1)

Can some one tell me what can be the issue
 :shock:

Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on August 03, 2009, 12:25:22 PM
Is there nobody in this sme server web community who can look into my problem.

 :sad:
Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on August 04, 2009, 08:03:05 AM
So finally I have filed a bug http://bugs.contribs.org/show_bug.cgi?id=4882.

Hope I can get a reply there  :sad:
Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: janet on August 04, 2009, 09:57:58 AM
hasan

Quote
So finally I have filed a bug http://bugs.contribs.org/show_bug.cgi?id=4882

Actually
http://bugs.contribs.org/show_bug.cgi?id=5421
Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on August 04, 2009, 10:37:42 AM
Hey so sorry .... just a typo  :???:

Thanks alot mary for pointing that out
Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: hasan on August 15, 2009, 02:36:48 PM
Hello All,
  Very sorry to say that that nobody on this very esteemed forum helped me... Even I got no followups after I filed a bug. I never thot of that.

But its ok ... I solved the problem on my own.

I reverted back to Freenas (The Great) and installed on my Nasbox and now I am not getting any issues in in post backup events.

So i will also recommend everybody to use freenas http://www.freenas.org/ (http://www.freenas.org/) for their backup and NAS Box, as the latest version FreeNAS 0.7RC1 (Sardaukar) is really good specially the GUI mode is very much enhanced and also new utilities are added.

Also I would like to request the sme development and admin teams to look into my matter as I faced a real issue and still I do not know the exact cause of the problem.

Ok bye everybody and thanks to those who might have given a thought to my problem

Hasan
Title: Re: Affa Backup Failure: Error 537, rsync failed
Post by: akhtar4ever on October 07, 2011, 07:33:50 AM
Hello All,
  Very sorry to say that that nobody on this very esteemed forum helped me... Even I got no followups after I filed a bug. I never thot of that.

But its ok ... I solved the problem on my own.

I reverted back to Freenas (The Great) and installed on my Nasbox and now I am not getting any issues in in post backup events.

So i will also recommend everybody to use freenas http://www.freenas.org/ (http://www.freenas.org/) for their backup and NAS Box, as the latest version FreeNAS 0.7RC1 (Sardaukar) is really good specially the GUI mode is very much enhanced and also new utilities are added.

Also I would like to request the sme development and admin teams to look into my matter as I faced a real issue and still I do not know the exact cause of the problem.

Ok bye everybody and thanks to those who might have given a thought to my problem

Hasan
Hi Hasan,
 I also faced a same error but in my case the reason was very different it was  flagging  timed out while performing rsync.......

I have been struggling with this issue for past one month