Koozali.org: home of the SME Server

SME 7.5.1 - Backup to Workstation usb failing

Offline bhamail

  • ***
  • 46
  • +0/-0
SME 7.5.1 - Backup to Workstation usb failing
« on: February 20, 2011, 08:18:56 PM »
I'm pretty sure I'm missing something obvious, but I just can't see it.

On new install of SME 7.5.1, I get errors when trying to backup to an attached USB disk:
Code: [Select]
# /sbin/e-smith/do_backupwk
 : or while mounting /media/usbbackup
 in /etc/fstab or /etc/mtabbbackup
Backup terminated: backup failed - status: 7424

From the messages log after manually triggering the backup:
Code: [Select]
Feb 20 14:13:25 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: OLD 1298229205=(undefined)
Feb 20 14:13:25 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: NEW 1298229205=backup_record
Feb 20 14:13:25 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: OLD 1298229205=backup_record
Feb 20 14:13:25 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: NEW 1298229205=backup_record|StartEpochTime|1298229205
Feb 20 14:13:25 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: OLD 1298229205=backup_record|StartEpochTime|1298229205
Feb 20 14:13:25 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: NEW 1298229205=backup_record|BackupType|workstation|StartEpochTime|1298229205
Feb 20 14:13:25 rocosme2 esmith::event[30852]: Processing event: pre-backup 
Feb 20 14:13:25 rocosme2 esmith::event[30852]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Feb 20 14:13:25 rocosme2 esmith::event[30852]: expanding /etc/dar/DailyBackup.dcf 
Feb 20 14:13:25 rocosme2 esmith::event[30852]: generic_template_expand=action|Event|pre-backup|Action|generic_template_expand|Start|1298229205 636029|End|1298229205 721098|Elapsed|0.085069
Feb 20 14:13:25 rocosme2 esmith::event[30852]: Running event handler: /etc/e-smith/events/pre-backup/S10mysql-delete-dumped-tables
Feb 20 14:13:25 rocosme2 esmith::event[30852]: S10mysql-delete-dumped-tables=action|Event|pre-backup|Action|S10mysql-delete-dumped-tables|Start|1298229205 721262|End|1298229205 722816|Elapsed|0.001554
Feb 20 14:13:25 rocosme2 esmith::event[30852]: Running event handler: /etc/e-smith/events/pre-backup/S20mysql-dump-tables
Feb 20 14:13:25 rocosme2 esmith::event[30852]: S20mysql-dump-tables=action|Event|pre-backup|Action|S20mysql-dump-tables|Start|1298229205 722924|End|1298229205 784222|Elapsed|0.061298
Feb 20 14:13:25 rocosme2 esmith::event[30852]: Running event handler: /etc/e-smith/events/pre-backup/S50rewind-tape
Feb 20 14:13:25 rocosme2 esmith::event[30852]: S50rewind-tape=action|Event|pre-backup|Action|S50rewind-tape|Start|1298229205 784437|End|1298229205 827627|Elapsed|0.04319
Feb 20 14:13:26 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: OLD 1298229205=backup_record|BackupType|workstation|StartEpochTime|1298229205
Feb 20 14:13:26 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: NEW 1298229205=backup_record|BackupType|workstation|EndEpochTime|1298229206|StartEpochTime|1298229205
Feb 20 14:13:26 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: OLD 1298229205=backup_record|BackupType|workstation|EndEpochTime|1298229206|StartEpochTime|1298229205
Feb 20 14:13:26 rocosme2 /sbin/e-smith/do_backupwk[30851]: /home/e-smith/db/backups: NEW 1298229205=backup_record|BackupType|workstation|EndEpochTime|1298229206|Result|backup:7424|StartEpochTime|1298229205


I formatted the disk with a label, and added an entry to fstab according to the wiki docs (tried both of these below):
Code: [Select]
#LABEL=rocosme2bk /media/usbbackup ext3 defaults
LABEL=rocosme2bk /media/usbbackup ext3 pamconsole,exec,noauto,managed 0 0

From the web page showing the backup config:
Code: [Select]
Backup is Enabled.
Backup is made on local USB disk
Destination backup share folder is media/usbbackup
Number of rotating backup sets is 2
Number of daily backups contained in each set is 7
Compression level (0-9) of backup is 6
Daily backup occurs at 1:00
Each daily backup session is cleanly timed out after 8 hours.
Full backup sessions (new backup set) are allowed everyday

I tried with the usb disk already mounted, and without.
I also tried selecting a "Backup share" from the combo box on the web page (which sometimes also showed 'rocosme2bk', and 'rocosme2bk1', in addition to 'usbbackup').

If I log into the "Admin" console shell, and run a USB backup there, it works and creates an smeserver.tgz in the root of the USB disk.

Any suggestions?



Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: SME 7.5.1 - Backup to Workstation usb failing
« Reply #1 on: February 20, 2011, 08:53:13 PM »
Any suggestions?

please don't report problems here: go to bugzilla and file a bug

please report here the reference for future readers.

thank you

Offline brianr

  • *
  • 990
  • +2/-0
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline bhamail

  • ***
  • 46
  • +0/-0
Re: SME 7.5.1 - Backup to Workstation usb failing
« Reply #3 on: February 23, 2011, 06:29:25 AM »
Thank You brianr: I think that bug was the cause: I was using Chrome : 9.0.597.94 (73967) Ubuntu 10.04, and when I tried resetting the dar backup config values using Firefox 3.6.13, it worked perfectly. I'll add this info to the existing bug report too, just in cause it helps others.