Page 1 of 1

Events Prior to Upgrade Lost

Posted: Fri Sep 14, 2018 2:53 am
by wh33lz
Unexpectedly received the update from 1.30.4 ( Ubuntu 16.04.5 LTS LAMP ) while performing the usual apt-get dist-upgrade.

Some quirks but looking good so far.

Just need to know... where have all my prior events before update gone.
I had some images of a car theft the other day, and really needed those.

Re: Events Prior to Upgrade Lost

Posted: Fri Sep 14, 2018 9:49 pm
by iconnor
Did you take a backup of your database? If so I'd love to have to test with.

Re: Events Prior to Upgrade Lost

Posted: Sat Sep 15, 2018 12:22 am
by rharper
I had the same thing happen to me yesterday and I'm really PO'd.

I received the usual notification of updates available (Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-34-generic x86_64)). It was a decent time to install them as I needed to reboot my server. Then last night noticed that 2TB of camera images, INCLUDING ARCHIVED EVENTS, were gone. Disk usage was down to about 15% instead of the usual 97% as shown by 'df'.

Also the console interface looks like crap with fields like "Name" and "Source:" followed by "text or regular expressi"... When I click on a camera name, the formatting is totally off as well as when I try to look at Events and everything is run together as if tabs aren't being expanded. Try to look at an event? I get the Event number, "Rename" button and then the rest of the buttons are one per line down the left side. Playback buttons beneath the image don't work at all.

If I had specifically asked for the update, I would have researched and backed up before installing. I was blindsided by this and am quite frustrated by the mess that has been made. That I now need to research and fix IF I want to continue using Zoneminder.

Oh, and my lost ARCHIVED images... Like I said above, and I'm usually much more tactful, I'm really PO'd.

Re: Events Prior to Upgrade Lost

Posted: Sat Sep 15, 2018 2:10 am
by bbunge
F.Y.I. ZM 1.30.4 can still be installed on Bionic. And I also have a copy of the Xenial install packages for 1.30.4

Re: Events Prior to Upgrade Lost

Posted: Sat Sep 15, 2018 2:28 am
by snake
If anyone reading this doesn't already have a backup script setup for their install, they should see this post: viewtopic.php?f=32&t=23815

Re: Events Prior to Upgrade Lost

Posted: Sat Sep 15, 2018 2:36 am
by wh33lz
iconnor wrote: Fri Sep 14, 2018 9:49 pm Did you take a backup of your database? If so I'd love to have to test with.
Sorry no backup.
It was not until I noticed all the Mysql database updates that I realized this was just not another minor daily update.

I was using the recommended linked storage method with 1.30.4, and all the directories were deleted and replaced with a single folder just for that date.

The program is now using 2 storage locations for events, /var/cache/zoneminder as well as the former linked folder.
I guess I have to remove the link...once I can remember where it was.

Re: Events Prior to Upgrade Lost

Posted: Fri Sep 21, 2018 8:58 pm
by opoplawski
Just a *me too* message. EL7.5 updated from 1.30.4 to 1.32.0 and it seemed to decide that all prior events didn't exist. Saw lots of messages like this:

Code: Select all

Sep 21 14:40:06 zm-boulder.cora.nwra.com zmfilter_2[19994]: INF [Scanning for events using filter id '2']
Sep 21 14:40:06 zm-boulder.cora.nwra.com zmfilter_2[19994]: INF [Checking filter Update DiskSpace update disk space returned 111 events ]
Sep 21 14:40:06 zm-boulder.cora.nwra.com zmfilter_2[19994]: WAR [DiskSpace: Event does not exist at /var/lib/zoneminder/events/1/18/06/01/22/17/43:ZoneMinder::Event: AvgScore => 7 Width => 1920 MaxScore => 13 StartTime => 2018-06-01 22:17:43 Frames => 82 MonitorId => 1 Notes => Motion: All Id => 112 TotScore => 232 Height => 1080 Cause => Motion Length => 6.13 AlarmFrames => 31 EndTime => 2018-06-01 22:17:49 Name => Event-112]
Sep 21 14:40:06 zm-boulder.cora.nwra.com zmfilter_2[19994]: WAR [DiskSpace: Event does not exist at /var/lib/zoneminder/events/1/18/06/01/22/13/18:ZoneMinder::Event: AvgScore => 5 Width => 1920 MaxScore => 9 StartTime => 2018-06-01 22:13:18 Frames => 77 MonitorId => 1 Notes => Motion: All Id => 111 TotScore => 149 Height => 1080 Cause => Motion Length => 5.62 AlarmFrames => 27 EndTime => 2018-06-01 22:13:23 Name => Event-111]
Sep 21 14:40:06 zm-boulder.cora.nwra.com zmfilter_2[19994]: WAR [DiskSpace: Event does not exist at /var/lib/zoneminder/events/1/18/06/01/22/13/12:ZoneMinder::Event: AvgScore => 3 Width => 1920 MaxScore => 4 StartTime => 2018-06-01 22:13:12 Frames => 81 MonitorId => 1 Notes => Motion: All Id => 110 TotScore => 89 Height => 1080 Cause => Motion Length => 5.78 AlarmFrames => 28 EndTime => 2018-06-01 22:13:18 Name => Event-110]

Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [Auditing All Storage Areas]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [Event link 1/18/06/02/.152 does not p
oint to valid target]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [deleting]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [Event link 1/18/06/02/.151 does not p
oint to valid target]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [deleting]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [Event link 1/18/06/02/.150 does not p
oint to valid target]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [deleting]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [Event link 1/18/06/02/.149 does not p
oint to valid target]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [deleting]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [Event link 1/18/06/02/.148 does not p
oint to valid target]
Sep 21 14:55:07 zm-boulder.cora.nwra.com zmaudit[20002]: INF [deleting]

Re: Events Prior to Upgrade Lost

Posted: Fri Sep 21, 2018 9:02 pm
by opoplawski
I do have a backup of my database if anyone is interested

Re: Events Prior to Upgrade Lost

Posted: Mon Oct 01, 2018 11:17 am
by lukey
I'm extremely PO with this myself. 16TB of recordings gone, 90 days worth over 23 cameras in a busy central London office.
This upgrade slipped through on a colleagues casual 'yum update', and blew away all of our recorded content. The interface was a mess, and needed manual intervention to restore access too.

What a failure of an update guys.

Re: Events Prior to Upgrade Lost

Posted: Mon Oct 01, 2018 4:13 pm
by snake
lukey wrote: Mon Oct 01, 2018 11:17 am 16TB of recordings gone,
https://wiki.archlinux.org/index.php/file_recovery