https://bugs.contribs.org/show_bug.cgi?id=10188

            Bug ID: 10188
           Summary: affa restore fails
    Classification: Contribs
           Product: SME Contribs
           Version: 9.2
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-affa
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

I attempted a backup of a v8 box with a restore to a new v9 server.

I followed the wiki thus:

Created a config.

Include=opt
sshPort=2222

affa --configcheck
affa --send-key backup-smeserver
affa --run backup-smeserver
affa –-list-archives (archive shown)

All good and an insprection of the files shows they all look good.

Take USB backup for good measure

Stop all services before last backup:

SVC='qpsmtpd sqpsmtpd crond pop3 dovecot pop3s ftp httpd-e-smith smb qmail' 
for s in $SVC; do service $s stop; done

affa --run backup-smeserver

Destroy old server :-(

Install new v9 server
Add some contribs back

Enable remote access and send key again to enable access

affa --full-restore backup-smeserver

Server reboots and that's when we notice things have gone wrong

All data files and mail plus /opt are correctly restored. But.

Seems that some of the config files eg /etc/passwd are not restored. Neither
are the config DBs or MySQL Dbs

Here is the first error. I will post the logs as attachments
Mar 26 19:41:01 cpserver esmith::event[20101]: Processing event: pre-restore
.......
Mar 26 19:50:03 cpserver esmith::event[20242]:
S00initialize-default-databases=action|Event|post-upgrade|Action|S00initialize-default-databases|Start|1490550601
472363|End|1490550603 137191|Elapsed|1.664828
Mar 26 19:50:03 cpserver esmith::event[20242]: Running event handler:
/etc/e-smith/events/post-upgrade/S00merge-system-files
Mar 26 19:50:03 cpserver esmith::event[20242]: merge_passwd: saslauth - UID
changed during restore 
Mar 26 19:50:03 cpserver esmith::event[20242]: merge_passwd: dovenull - UID
changed during restore 
Mar 26 19:50:03 cpserver esmith::event[20242]: merge_passwd: smolt - UID
changed during restore 
Mar 26 19:50:03 cpserver esmith::event[20242]: merge_passwd: clamav - UID
changed during restore 
Mar 26 19:50:03 cpserver esmith::event[20242]:  
Mar 26 19:50:03 cpserver esmith::event[20242]: Your ENVIRONMENT IS INSANE!
Users in files "/etc/passwd" and "/etc/shadow are diffrent!!! 
Mar 26 19:50:03 cpserver esmith::event[20242]: I'll continue, but it is YOUR
RISK! You'll probably go into BIG troubles! 
Mar 26 19:50:03 cpserver esmith::event[20242]:  
Mar 26 19:50:03 cpserver esmith::event[20242]:  at
/usr/share/perl5/vendor_perl/esmith/Backup.pm line 255 
Mar 26 19:50:03 cpserver esmith::event[20242]: #007 
Mar 26 19:50:08 cpserver esmith::event[20242]:  
Mar 26 19:50:08 cpserver esmith::event[20242]: Your ENVIRONMENT IS INSANE!
Users in files "/etc/passwd" and "/etc/shadow are diffrent!!! 
Mar 26 19:50:08 cpserver esmith::event[20242]: I'll continue, but it is YOUR
RISK! You'll probably go into BIG troubles! 
Mar 26 19:50:08 cpserver esmith::event[20242]:  
Mar 26 19:50:08 cpserver esmith::event[20242]:  at
/usr/share/perl5/vendor_perl/esmith/Backup.pm line 263 
Mar 26 19:50:08 cpserver esmith::event[20242]: #007 


I believe this is due to one file being copied and another not.

Ultimately I resolved this after several hours and a lot of sweat and grey
hairs. I manually copied over the backed up files in /etc plus the config DBs
and SQL DBs and then manually restored them (proof that the file backups were
good)

I believe there is an issue somewhere in the restore procedure. I can't afford
to repeat with this box - it is old, slow, with 250Gb data which takes forever
to backup and restore, and the box is needed for 9am tomorrow.

I may try to restore to a VM if I have enough disk space.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to