Koozali.org: home of the SME Server

Backup error after last update [Solved]

Offline Fumetto

  • *
  • 899
  • +1/-0
Backup error after last update [Solved]
« on: December 22, 2013, 08:10:45 AM »
I have 2 server with strange (for me) problem after last update (to do: Don't update server the day before you have to go on vacation).

Update package is:
Code: [Select]
Dec 20 16:46:06 Updated: php-common-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:07 Updated: php-cli-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:08 Updated: php-pdo-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:09 Updated: smeserver-locale-ro-2.2.0-45.el5.sme.noarch
...
Dec 20 16:46:33 Updated: smeserver-locale-nl-2.2.0-45.el5.sme.noarch
Dec 20 16:46:33 Updated: php-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:36 Updated: nss-3.15.3-4.el5_10.x86_64
Dec 20 16:46:37 Updated: libdar-2.4.11-1.el5.sme.x86_64
Dec 20 16:46:38 Updated: dar-2.4.11-1.el5.sme.x86_64
Dec 20 16:46:39 Updated: php-mysql-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:40 Updated: php-mbstring-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:40 Updated: php-ldap-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:40 Updated: php-gd-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:41 Updated: php-xml-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:42 Updated: php-imap-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:44 Updated: qpsmtpd-0.84-7.el5.sme.noarch
Dec 20 16:46:49 Updated: tzdata-2013i-1.el5.x86_64
Dec 20 16:46:51 Updated: e-smith-backup-2.2.0-76.el5.sme.noarch
Dec 20 16:46:53 Updated: php-devel-5.3.3-14.el5.sme.x86_64
Dec 20 16:46:55 Updated: smeserver-support-2.2.0-25.el5.sme.noarch

One of these servers is configured to do full backup on Saturday night, the other for the Sunday night.

Now...

On Server1 (full backup Saturday) I have a mail for full backup "successfully terminated".
After this, Sunday I have a mail with some "error"...

Code: [Select]
Backup of server.domain.it started at Sun Dec 22 00:10:04 2013
Backup of mysql databases has been done
Mounting backup shared directory <192.168.16.50:volume1/BackupServerSme>
Using set number 2 of 2
Attempt incremental backup number 1 of 6
Backup temp directory /mnt/smb/tmp_dir/server.domain.it is mounted and is writable
Backup base file name is inc-001-201312220010
Starting the backup with a timeout of : 28770 seconds
SECURITY WARNING! SUSPICIOUS FILE /etc/samba/smbpasswd: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /home/e-smith/ssl.key/server.domain.it.key: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /home/e-smith/files/users/USERNAME/Maildir/.Posta eliminata/cur/1387052948.P7247Q0M301555.server:2,DS: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /home/e-smith/ssl.crt/server.domain.it.crt: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /home/e-smith/ssl.pem/server.domain.it.pem: ctime changed since archive of reference was done, while no other inode information changed
...

On Server2 (full backup Sunday) I have a mail of saturday from Cron daemon:
Code: [Select]
From: Cron Daemon
Subject: Cron <root@server> /sbin/e-smith/do_backupwk

Some files do not follow chronological order when archive index increases withing the database, this can lead dar_manager to restored a wrong version of these files
Dates of file's data are not increasing when database's archive number grows. Concerned file is: etc/e-smith/web
Dates are not increasing for all files when database's archive number grows, working with this database may lead to improper file's restored version. Please reorder the archive within the database in the way that the older is the first archive and so on up to the most recent archive being the last of the database
Error met while processing operation: Some files do not follow chronological order when archive index increases withing the database, this can lead dar_manager to restored a wrong version of these files
Failed to add set /mnt/smb/server.domain.it/set0/inc-006-201312210040 to catalog.
Backup terminated: backup failed - status: 7424
and a mail from admin-backup with many error and "Daily Backup Failed":
Code: [Select]
Backup of server.domain.it started at Sat Dec 21 00:40:02 2013
Backup of mysql databases has been done
Mounting backup shared directory <192.168.16.50:volume1/BackupServerSme>
Using set number 1 of 2
Attempt incremental backup number 6 of 6
Backup temp directory /mnt/smb/tmp_dir/server.domain.it is mounted and is writable
Backup base file name is inc-006-201312210040
Starting the backup with a timeout of : 28770 seconds
SECURITY WARNING! SUSPICIOUS FILE /root/.mc/ini: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.mc/history: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.mc/Tree: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.rnd: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.bash_profile: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/install.log: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.my.cnf: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.tcshrc: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.bashrc: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/install.log.syslog: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.cshrc: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/.bash_logout: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /root/anaconda-ks.cfg: ctime changed since archive of reference was done, while no other inode information changed
SECURITY WARNING! SUSPICIOUS FILE /home/e-smith/Maildir/cur/1385509278.11385.server:2,S: ctime changed since archive of reference was done, while no other inode information changed
...
 --------------------------------------------
 901 inode(s) saved
   including 260 hard link(s) treated
 0 inode(s) changed at the moment of the backup and could not be saved properly
 0 byte(s) have been wasted in the archive to resave changing files
 38733 inode(s) not saved (no inode/file change)
 0 inode(s) failed to be saved (filesystem error)
 254 inode(s) ignored (excluded by filters)
 325 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode(s) considered: 40213
 --------------------------------------------
 EA saved for 0 inode(s)
 --------------------------------------------
Moving backup files to target directory /mnt/smb/server.domain.it/set0
Updating catalog
*** No backup allowed or error during backup ***
Failed to add set /mnt/smb/server.domain.it/set0/inc-006-201312210040 to catalog.
If print email I have 1500  :shock: pages of error like this...
After this, Sunday I have a mail with "Backup successfully terminated at : Sun Dec 22 01:49:41 2013"

I try search and found this page with explanation (not very clear because of my limited knowledge) and many other page with references to version 2.4 of DAR.

Should I be worried? Need a bug report?
« Last Edit: January 16, 2014, 02:38:21 AM by wellsi »

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Backup error after last update
« Reply #1 on: December 22, 2013, 08:32:58 AM »
Same issue here.

http://bugs.contribs.org/show_bug.cgi?id=8079


Quote
Note: With dar version older than 2.4.0 (by default, unless -aa option is use) once a file has been read for backup, dar set back the atime to the value it had before dar read it. This trick was used to accomodate some programs like leafnode (NNTP caching program) that base their cache purging scheme on the atime of files. When you do a backup using dar 2.3.11 for example, file that had their mtime modified are saved as expected and their atime is set back to their original values (value they had just before dar read them), which has the slide effect to modify the ctime. If then you upgrade to dar 2.4.0 or more recent and do a differential backup, if that same file has not been modified since, dar will see that the ctime has changed while no other metadata did (user, ownership, group, mtime), thus this alarm message will show for all saved files in the last 2.3.11 archive made. The next differential backup made using dar 2.4.0 (or more recent), the problem will not show anymore.

Last sentence suggest that when another backup is done, problem will go away.

I kicked off another backup but the same messages still appeared..
« Last Edit: December 22, 2013, 08:42:23 AM by p-jones »
...

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Backup error after last update
« Reply #2 on: December 22, 2013, 09:39:00 AM »
Fumetto

Were your SME Servers clean built from a V8 CD or were they upgraded with a disk from V7.x ?

Cheers
Peter
...

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Backup error after last update
« Reply #3 on: December 22, 2013, 10:19:17 AM »
Clean build V8 64 bit

Offline twijtzes

  • ***
  • 47
  • +0/-0
    • http://www.foodconsult.nl
Re: Backup error after last update
« Reply #4 on: December 23, 2013, 07:24:27 AM »
Hi guys,

all my servers give give this error too. Both fresh v8 servers as well as upgraded servers from v7

Regards,
Taco

Offline twijtzes

  • ***
  • 47
  • +0/-0
    • http://www.foodconsult.nl
Re: Backup error after last update
« Reply #5 on: December 23, 2013, 09:01:09 AM »
Are you also doing differential backups ? I intend to throw away the old backup and see what happens then. Do you have any other suggestions ?

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Backup error after last update
« Reply #6 on: December 23, 2013, 09:24:25 AM »
Have you been following Bug 8076
--
qui scribit bis legit

Offline twijtzes

  • ***
  • 47
  • +0/-0
    • http://www.foodconsult.nl
Re: Backup error after last update
« Reply #7 on: December 23, 2013, 01:07:15 PM »
Didn't, sorry

Following that bug now

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Backup error after last update
« Reply #8 on: December 27, 2013, 11:44:40 AM »
I note that bug report is now closed and marked as fixed.

Still getting this
Quote
SECURITY WARNING! SUSPICIOUS FILE /etc/samba/smbpasswd: ctime changed since archive of reference was done, while no other inode information changed


in an incremental backup against a full backup that has been created with the "fix".

Should I be worried ??

P
...

Offline rans0000

  • *
  • 17
  • +0/-0
Re: Backup error after last update
« Reply #9 on: January 04, 2014, 10:34:23 PM »
I am also getting the same error (as below) with my incremental backups - the full backups are fine, as the bug is closed should I create a new one or am I missing something?

Quote
I note that bug report is now closed and marked as fixed.

Still getting this
Quote

    SECURITY WARNING! SUSPICIOUS FILE /etc/samba/smbpasswd: ctime changed since archive of reference was done, while no other inode information changed


in an incremental backup against a full backup that has been created with the "fix".

Should I be worried ??

P


Regards,

John

Offline p-jones

  • *
  • 594
  • +0/-0
Re: Backup error after last update
« Reply #10 on: January 04, 2014, 10:52:06 PM »
rans0000

refer to comments in  Bug 8076
Quote
http://bugs.contribs.org/show_bug.cgi?id=8076

P
...

Offline rans0000

  • *
  • 17
  • +0/-0
Re: Backup error after last update
« Reply #11 on: January 05, 2014, 09:41:32 AM »
Thanks, p
Regards,

John

Offline Fumetto

  • *
  • 899
  • +1/-0
Re: Backup error after last update
« Reply #12 on: January 10, 2014, 01:50:08 AM »
I have a question.

From the "error" it seems that it is only to change the ctime of a few files. Usually this is due to a change of ownership of the file.
The changes affect users' files on Ibay, file of mail folders (include .procmailrc .mailsortingrc ...), files of db (/home/e-smith/db/...) and other.
If for the file on Ibay I believe that the ownership can change, I don't think so for the email files.

It's possible that this error depends on the fact that, during the backup, the system do a cron jobs and this changes the owner of certain files?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Backup error after last update
« Reply #13 on: January 10, 2014, 03:18:40 AM »
rans0000

Would someone please raise a new bug as suggested in
http://bugs.contribs.org/show_bug.cgi?id=8076#c22
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline azche24

  • *
  • 163
  • +0/-0
    • http://az-law.de
Re: Backup error after last update
« Reply #14 on: January 14, 2014, 09:50:15 AM »
Janet

i tried to here http://bugs.contribs.org/show_bug.cgi?id=8133

Not shure, if this is NFR or bug-fix, but the gurus will find that out. These error-messages are nervewrecking, time-consuming and made several incremental backups fail here (for timeout-reasons). If i have to rely on this backup-functions, it should work flawlessly like it did before; at least it is a key feature of SME and AFFA (which is use parallel for increased security) seems to get obsolete.
Alexander Ziemann, Berlin - DE