Page 1 of 1

Events not found due to event naming issue

Posted: Sat Nov 28, 2020 5:00 am
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?

Re: Events not found due to event naming issue

Posted: Sat Nov 28, 2020 7:15 am
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

Re: Events not found due to event naming issue

Posted: Sat Nov 28, 2020 9:10 am
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

Re: Events not found due to event naming issue

Posted: Mon Nov 30, 2020 12:01 am
by dougmccrary
This was fixed today, at least for ubuntu focal.

Re: Events not found due to event naming issue

Posted: Mon Nov 30, 2020 12:07 am
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.

Re: Events not found due to event naming issue

Posted: Mon Nov 30, 2020 3:55 am
by johncolby
Awesome, big thanks!

Re: Events not found due to event naming issue

Posted: Mon Nov 30, 2020 9:40 am
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!