Koozali.org: home of the SME Server

Error on Backup to Desktop

Offline jon

  • *
  • 34
  • +0/-0
Error on Backup to Desktop
« on: October 26, 2018, 09:18:31 PM »
I have a lightly used SME 9.2 Server, a couple of small websites, file sharing etc.   I don't backup regularly - about once a week or whenever I get around to it.

On my Backup to Desktop action from server-manager today, I received a message "Error occurred during pre-backup actions."   Looking over my message file, I find this:

Oct 26 14:13:55 plex01 /etc/e-smith/web/panels/manager/cgi-bin/backup[2655]: /home/e-smith/db/backups: OLD 1540577635=(undefined)
Oct 26 14:13:55 plex01 /etc/e-smith/web/panels/manager/cgi-bin/backup[2655]: /home/e-smith/db/backups: NEW 1540577635=backup_record|BackupType|desktop|StartEpochTime|1540577635
Oct 26 14:13:56 plex01 esmith::event[2656]: Processing event: pre-backup desktop
Oct 26 14:13:56 plex01 esmith::event[2656]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Oct 26 14:13:56 plex01 esmith::event[2656]: expanding /etc/dar/DailyBackup.dcf
Oct 26 14:13:56 plex01 esmith::event[2656]: generic_template_expand=action|Event|pre-backup|Action|generic_template_expand|Start|1540577636 65448|End|1540577636 256403|Elapsed|0.190955
Oct 26 14:13:56 plex01 esmith::event[2656]: Running event handler: /etc/e-smith/events/pre-backup/S10mysql-delete-dumped-tables
Oct 26 14:13:56 plex01 esmith::event[2656]: S10mysql-delete-dumped-tables=action|Event|pre-backup|Action|S10mysql-delete-dumped-tables|Start|1540577636 256783|End|1540577636 261353|Elapsed|0.00457
Oct 26 14:13:56 plex01 esmith::event[2656]: Running event handler: /etc/e-smith/events/pre-backup/S20mysql-dump-tables
Oct 26 14:13:57 plex01 esmith::event[2656]: S20mysql-dump-tables=action|Event|pre-backup|Action|S20mysql-dump-tables|Start|1540577636 261849|End|1540577637 616325|Elapsed|1.354476
Oct 26 14:13:57 plex01 esmith::event[2656]: Running event handler: /etc/e-smith/events/pre-backup/S30ldap-dump
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 bdb(dc=plexnet,dc=com): file id2entry.bdb has LSN 1/473648, past end of log at 1/2328
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 bdb(dc=plexnet,dc=com): Commonly caused by moving a database from one database environment
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 bdb(dc=plexnet,dc=com): to another without clearing the database LSNs, or by removing all of
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 bdb(dc=plexnet,dc=com): the log files from a database environment
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 bdb(dc=plexnet,dc=com): /var/lib/ldap/id2entry.bdb: unexpected file type or format
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 bdb_db_open: database "dc=plexnet,dc=com": db_open(/var/lib/ldap/id2entry.bdb) failed: Invalid argument (22).
Oct 26 14:13:57 plex01 esmith::event[2656]: 5bd35965 backend_startup_one (type=bdb, suffix="dc=plexnet,dc=com"): bi_db_open failed! (22)
Oct 26 14:13:57 plex01 esmith::event[2656]: slap_startup failed
Oct 26 14:13:57 plex01 esmith::event[2656]: S30ldap-dump=action|Event|pre-backup|Action|S30ldap-dump|Start|1540577637 616795|End|1540577637 734626|Elapsed|0.117831|Status|256
Oct 26 14:13:57 plex01 esmith::event[2656]: Running event handler: /etc/e-smith/events/pre-backup/S50rewind-tape
Oct 26 14:13:57 plex01 esmith::event[2656]: S50rewind-tape=action|Event|pre-backup|Action|S50rewind-tape|Start|1540577637 734910|End|1540577637 812258|Elapsed|0.077348
Oct 26 14:13:57 plex01 /etc/e-smith/web/panels/manager/cgi-bin/backup[2655]: /home/e-smith/db/backups: OLD 1540577635=backup_record|BackupType|desktop|StartEpochTime|1540577635
Oct 26 14:13:57 plex01 /etc/e-smith/web/panels/manager/cgi-bin/backup[2655]: /home/e-smith/db/backups: NEW 1540577635=backup_record|BackupType|desktop|EndEpochTime|1540577637|StartEpochTime|1540577635
Oct 26 14:13:57 plex01 /etc/e-smith/web/panels/manager/cgi-bin/backup[2655]: /home/e-smith/db/backups: OLD 1540577635=backup_record|BackupType|desktop|EndEpochTime|1540577637|StartEpochTime|1540577635
Oct 26 14:13:57 plex01 /etc/e-smith/web/panels/manager/cgi-bin/backup[2655]: /home/e-smith/db/backups: NEW 1540577635=backup_record|BackupType|desktop|EndEpochTime|1540577637|Result|pre-backup:256|StartEpochTime|1540577635

Trying to interpret this, I think there is something wrong with this event:  /etc/e-smith/events/pre-backup/S30ldap-dump     but I'm not sure what or how to fix it.

Suggestions?

Thanx.
.........

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Error on Backup to Desktop
« Reply #1 on: October 26, 2018, 11:22:33 PM »
Can you give us a bit of background on your server. Hardware, drives, any contribs/hacks?

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline jon

  • *
  • 34
  • +0/-0
Re: Error on Backup to Desktop
« Reply #2 on: October 27, 2018, 12:23:36 AM »
Can you give us a bit of background on your server. Hardware, drives, any contribs/hacks?

My server is an embarrassingly old Dell Vostro 200, 4GB, with two drives in RAID1.   No contribs, no hacks.   All updates applied.  Both tape and workstation backups are disabled.  Runs three websites with less than 1,500 hits a month.  Has around eight machines connected to it.  Anything else? 
.........

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Error on Backup to Desktop
« Reply #3 on: October 27, 2018, 12:39:35 AM »
Hmmm. A quick search for this

Quote
id2entry.bdb has LSN 1/473648, past end of log

Reveals LDAP DB errors but no idea why. Is your RAID OK? Any crashes?

Suggest you open a bug.

Go to the server panel and look for the bug reporting section. Get the server auddits etc and add them as attachments to the bug (don't paste inline) and someone will take a look.

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline jon

  • *
  • 34
  • +0/-0
Re: Error on Backup to Desktop
« Reply #4 on: October 27, 2018, 01:00:48 AM »
Hmmm. A quick search for this reveals LDAP DB errors but no idea why. Is your RAID OK? Any crashes?

Suggest you open a bug.

No crashes - RAID reports:  All RAID devices are in clean state

I'll open a bug.   Thanx.
.........

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Error on Backup to Desktop
« Reply #5 on: October 27, 2018, 02:06:46 AM »
--
qui scribit bis legit