Author Topic: [SOLVED]Oh, I'm i trouble: redis dump.rdb corrupted  (Read 1830 times)

WaltB

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
[SOLVED]Oh, I'm i trouble: redis dump.rdb corrupted
« on: September 25, 2014, 03:27:43 pm »
Oh, I'm i trouble.

Had a raid crash and that resulted in a corrupted dump.rdb file in /var/lib/zentyal/ .
Even the tool the redis-check-dump crashes when I try to run it with the dump.rdb, so I can't even get it exported in json format.

I'm running 3.5

I had hoped that the automatic backup to remote.zentyal.org included that file but it dosen't.

I have of-course made a copy of the corrupted file, and I have tried to delete it and restart the redis server but the result is that
I can't start any of the zentyal services.

Does any of you know of a way out of this without having to reinstall the server, e.g. how to patch the dump.rdb, regenerate the the dump.rdb or any other way ????

Kind regards

WaltB
« Last Edit: September 30, 2014, 03:09:21 pm by WaltB »

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Oh, I'm i trouble: redis dump.rdb corrupted
« Reply #1 on: September 26, 2014, 06:23:21 pm »
Have you tried restoring a configuration backup? Each of these contains the (per module) redis stabase definitions

WaltB

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Oh, I'm i trouble: redis dump.rdb corrupted
« Reply #2 on: September 30, 2014, 10:54:07 am »
Great idear, i'll try that at once.

Thanks

WaltB

WaltB

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Oh, I'm i trouble: redis dump.rdb corrupted
« Reply #3 on: September 30, 2014, 12:54:26 pm »
Hi jbahillo

The idear is great but I'm faced with a problem: I don't have the webadmin interface as it wont start up so I can't do the restore from there. Is there a cli command  or curl command I can use instead ?

BRegards

WaltB

jbahillo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1444
  • Karma: +77/-2
    • View Profile
Re: Oh, I'm i trouble: redis dump.rdb corrupted
« Reply #4 on: September 30, 2014, 12:56:54 pm »
Hi: /usr/share/zentyal/restore-backup IIRC

WaltB

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Oh, I'm i trouble: redis dump.rdb corrupted
« Reply #5 on: September 30, 2014, 01:49:10 pm »
Hi jbahillo

Thanks.

WaltB