Koozali.org: home of the SME Server

DAR2 does not work after recent updates to 7.4

Offline HACKERSOFT

  • *
  • 10
  • +0/-0
DAR2 does not work after recent updates to 7.4
« on: December 12, 2008, 07:05:47 AM »
Hello!

I'm wondering why dar2 backup suddenly stops working. It only creates a file db.zip in the desktop share after that, it stops and no backup created.

I verified via command/shell it is still the same, all it gets is:
Code: [Select]
/etc/e-smith/events/actions/dar2-backup FullSMEBackupHS
Connecting /mnt/dar2/FullSMEBackupHS to //hcs-niva-dt01/smeserver
Expanding /etc/dar2/FullSMEBackupHS template
Creating /mnt/dar2/FullSMEBackupHS/nisws1.niva-is.net/FullSMEBackupHS/db.zip
Expiring old backups
Executing pre-backup event

The process was indeed successful in connecting to the shares as well as writing to it since db.zip was created in the desktop share.

Any possible reasons for this or any possible solution?

I also tried updating dar2 but the update did not solve it.

Thanks in advance!
« Last Edit: December 12, 2008, 07:17:50 AM by HACKERSOFT »

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DAR2 does not work after recent updates to 7.4
« Reply #1 on: December 12, 2008, 08:40:25 AM »
I'm wondering why dar2 backup suddenly stops working.

If dar2 backup has a problem, tell the bug tracker. See the BUGS link above.

Offline HACKERSOFT

  • *
  • 10
  • +0/-0
Re: DAR2 does not work after recent updates to 7.4
« Reply #2 on: December 16, 2008, 02:07:54 AM »
I've done that already under the dar2 bugzilla page but still no response.

BTW, I've uninstalled dar2 and tried the backup to workstation method but it also doesn't work right?

Anyone having the same issues?

Thanks!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DAR2 does not work after recent updates to 7.4
« Reply #3 on: December 16, 2008, 07:17:16 AM »
I've done that already under the dar2 bugzilla page but still no response.
Please post a reference to this bug.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline HACKERSOFT

  • *
  • 10
  • +0/-0
Re: DAR2 does not work after recent updates to 7.4
« Reply #4 on: December 17, 2008, 08:25:00 AM »

Offline HACKERSOFT

  • *
  • 10
  • +0/-0
Re: DAR2 does not work after recent updates to 7.4
« Reply #5 on: December 17, 2008, 11:15:29 AM »
Now, after adding

--lock-tables=false

in the affected file, everything works back to normal.

googling tells me that it is an error in mysql and not on my part, so I turned lock-table to false... lol


Modify:
/etc/e-smith/events/pre-backup/S20mysql-dump-tables

to have this contents and everything will be back to normal:

Code: [Select]
#!/bin/sh
status=$(/sbin/e-smith/config getprop mysqld status)
if [ "$status" = "disabled" ]
then
    echo "mysqld is disabled - no tables dumped" >&2
    exit 0
fi
for db in $(mysql -BNre "show databases;")
do
    mysqldump --add-drop-table -QB "$db" --lock-tables=false -r /home/e-smith/db/mysql/"$db".dump || exit 1
done

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: DAR2 does not work after recent updates to 7.4
« Reply #6 on: December 17, 2008, 07:46:40 PM »
Now, after adding

--lock-tables=false

in the affected file, everything works back to normal.
What affected file fo you mean?

Quote from: HACKERSOFT link=topic=42870.msg203185#msg203185 googling tells me that it is an [b
error in mysql[/b] and not on my part, so I turned lock-table to false... lol
I would love to see the reference here as I doubt this is the issue nor the solution.

Quote from: HACKERSOFT link=topic=42870.msg203185#msg203185 googling tells [b
Modify: [/b]
/etc/e-smith/events/pre-backup/S20mysql-dump-tables


to have this contents and everything will be back to normal:

Code: [Select]
#!/bin/sh
status=$(/sbin/e-smith/config getprop mysqld status)
if [ "$status" = "disabled" ]
then
    echo "mysqld is disabled - no tables dumped" >&2
    exit 0
fi
for db in $(mysql -BNre "show databases;")
do
    mysqldump --add-drop-table -QB "$db" --lock-tables=false -r /home/e-smith/db/mysql/"$db".dump || exit 1
done
You are posting:
1. an modification to an undaignosed error here, at least I see nothing describing the cause, nor the error message here.
2. you are posting a fix in the forums, where you should have opened a bug report for it and add the fix there. This way if it really is an error or a bug it will most likely not be fixed and you solution is lost to others (and will also be lost om upgrades as well).

I seriously think you have deviced a work-around for something that should be fixed somewhere else, as I get the impression you have not found the root cause IMHO.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: DAR2 does not work after recent updates to 7.4
« Reply #7 on: December 17, 2008, 11:29:48 PM »
Please post all followup to the Bug Tracker.
http://bugs.contribs.org/show_bug.cgi?id=4857

Offline byte

  • *
  • 2,183
  • +2/-0
Re: DAR2 does not work after recent updates to 7.4
« Reply #8 on: December 17, 2008, 11:44:32 PM »
Locking thread this needs to be followed up on the bug reference. Thanks.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!