Events not found due to event naming issue

Previous development branch now released as 1.36
Locked
gmar_87
Posts: 72
Joined: Sat Aug 13, 2011 11:38 pm
Location: Melbourne, Australia

Events not found due to event naming issue

Post by gmar_87 »

Directories aren't being named correctly in 1.35.14 (Ubuntu PPA).
Either not matching the event ID or being placed in different directories. Really strange! See screenshots attached.
Anyone else experiencing this issue?
Attachments
zm_playback_error.png
zm_playback_error.png (24.65 KiB) Viewed 2370 times
zm_monior_events.png
zm_monior_events.png (23.22 KiB) Viewed 2370 times
zm_dir_tree_20201128.png
zm_dir_tree_20201128.png (30.2 KiB) Viewed 2370 times
johncolby
Posts: 9
Joined: Thu Feb 24, 2011 7:10 pm

Re: Events not found due to event naming issue

Post by johncolby »

Same here...

Code: Select all

❯ systemctl status zoneminder
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
     Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2020-11-27 16:51:48 PST; 6h ago
    Process: 620064 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
   Main PID: 620096 (zmdc.pl)
      Tasks: 18 (limit: 19001)
     Memory: 1.7G
     CGroup: /system.slice/zoneminder.service
             ├─620096 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
             ├─620128 /usr/bin/zmc -m 1
             ├─620132 /usr/bin/zma -m 1
             ├─620136 /usr/bin/zmc -m 2
             ├─620140 /usr/bin/zma -m 2
             ├─620153 /usr/bin/zmc -m 4
             ├─620158 /usr/bin/zma -m 4
             ├─620163 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=2 --daemon
             ├─620181 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=6 --daemon
             ├─620187 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
             ├─620193 /usr/bin/perl -wT /usr/bin/zmwatch.pl
             ├─620200 /usr/bin/perl -wT /usr/bin/zmupdate.pl -c
             ├─620205 /usr/bin/perl -wT /usr/bin/zmtelemetry.pl
             ├─620211 /usr/bin/perl -wT /usr/bin/zmstats.pl
             ├─624141 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=3 --daemon
             ├─624199 /usr/bin/perl -wT /usr/bin/zmfilter.pl --filter_id=4 --daemon
             ├─625051 /usr/bin/zma -m 3
             └─625052 /usr/bin/zmc -m 3

Nov 27 23:08:22 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/2/2020-11-27/1099786:>
Nov 27 23:08:22 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/4/2020-11-27/1099785:>
Nov 27 23:08:52 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/2/2020-11-27/1099786:>
Nov 27 23:08:52 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/4/2020-11-27/1099785:>
Nov 27 23:09:22 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/2/2020-11-27/1099786:>
Nov 27 23:09:22 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/4/2020-11-27/1099785:>
Nov 27 23:09:52 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/2/2020-11-27/1099786:>
Nov 27 23:09:52 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/4/2020-11-27/1099785:>
Nov 27 23:10:22 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/2/2020-11-27/1099786:>
Nov 27 23:10:22 ubuntu-server zmfilter_6[620181]: WAR [DiskSpace: Event does not exist at /mnt/Data/zoneminder/events/4/2020-11-27/1099785:

Code: Select all

❯ l /mnt/Data/zoneminder/events/2/2020-11-27/ | tail
drwxr-xr-x   2 www-data www-data  12K Nov 27 21:21 1099769
drwxr-xr-x   2 www-data www-data 4.0K Nov 27 21:23 1099771
drwxr-xr-x   2 www-data www-data 4.0K Nov 27 21:37 1099773
drwxr-xr-x   2 www-data www-data 4.0K Nov 27 21:39 1099775
drwxr-xr-x   2 www-data www-data  20K Nov 27 22:13 1099777
drwxr-xr-x   2 www-data www-data  20K Nov 27 22:14 1099779
drwxr-xr-x   2 www-data www-data 4.0K Nov 27 22:14 1099780
drwxr-xr-x   2 www-data www-data  12K Nov 27 22:15 1099782
drwxr-xr-x   2 www-data www-data 4.0K Nov 27 22:15 1099784
drwxr-xr-x   2 www-data www-data 4.0K Nov 27 13:41 7020584553407541857
gmar_87
Posts: 72
Joined: Sat Aug 13, 2011 11:38 pm
Location: Melbourne, Australia

Re: Events not found due to event naming issue

Post by gmar_87 »

Thanks for confirming @johncolby

I discovered the issue after restoring ZM from backup (due to hardware failure) and updated to the latest ZM version. I was worried it was something to do with the restore, but seems not.

Looks like there were some recent changes to zm_event code https://github.com/ZoneMinder/zoneminde ... 5d44848a26
dougmccrary
Posts: 1173
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Events not found due to event naming issue

Post by dougmccrary »

This was fixed today, at least for ubuntu focal.
User avatar
iconnor
Posts: 2881
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Events not found due to event naming issue

Post by iconnor »

Yeah I screwed up when implementing saving to alternate storage areas if for some reason you can't save to the assigned one.

Fixed.
johncolby
Posts: 9
Joined: Thu Feb 24, 2011 7:10 pm

Re: Events not found due to event naming issue

Post by johncolby »

Awesome, big thanks!
gmar_87
Posts: 72
Joined: Sat Aug 13, 2011 11:38 pm
Location: Melbourne, Australia

Re: Events not found due to event naming issue

Post by gmar_87 »

iconnor wrote: Mon Nov 30, 2020 12:07 am Yeah I screwed up when implementing saving to alternate storage areas if for some reason you can't save to the assigned one.

Fixed.
Thanks for the quick fix Isaac!
Locked