I've run ZM (don't know version) for past two years with 3 cameras with no problems. The disk on the machine (an old HP CoreI5 laptop, 4GB mem running Ubuntu 18.0.4) failed, with no backup (my fault). Did clean install of Ubuntu 20.0.4 and ZM 1.35.16 a week ago. The machine is dedicated to ZM.
Restarting from scratch, I've successfully configured the same 3 cameras, and can record videos (still images, Record mode) and can access ZM and see the cameras from a browser on my local network. I want to do 2 things: Trigger slow video recording (2FPS) on motion detect on 2 of the cameras; grab a still image from all 3 cameras every 2 minutes. Not a big load. I haven't configured motion detect yet, but expect that will be OK.
The problem is getting images every (say) 2 minutes. It looks like zmu should help. I don't remember how I had it set up before, but zmu sounds familiar. Unfortunately every time I try to run it - say as root with 'zmu -l' - it fails with a stanza of this for each camera:
Code: Select all
12/30/20 21:11:24.204474 zmu.ERR-zm_monitor.cpp/572 [Can't open memory map file /dev/shm/zm.mmap.1, probably not enough space free: Permission denied]
Code: Select all
root@JimsHpLinux:/dev/shm# ls -l total 239600 -rw-rw---- 1 www-data www-data 42168888 Dec 30 21:38 zm.mmap.1 -rw-rw---- 1 www-data www-data 104863288 Dec 30 00:02 zm.mmap.2 -rw-rw---- 1 www-data www-data 98309688 Dec 30 00:30 zm.mmap.3 root@JimsHpLinux:/dev/shm# lsipc -m KEY ID PERMS OWNER SIZE NATTCH STATUS CTIME CPID LPID COMMAND 0x00000000 7 rw------- jim 512K 2 dest Dec28 1829 1061 /snap/snap-store/ 0x00000000 8 rw------- jim 512K 2 dest Dec28 1829 1061 /snap/snap-store/ 0x00000000 11 rw------- jim 512K 2 dest Dec28 2832 177569 update-notifier root@JimsHpLinux:/dev/shm# cat /proc/sys/kernel/shmmax 18446744073692774399 root@JimsHpLinux:/dev/shm# cat /proc/sys/kernel/shmall 18446744073692774399 root@JimsHpLinux:/dev/shm#
I assume if zmu -l fails like this, no other zmu command is likely to work.
Until I set up motion detect and turn off Record mode, I have a perl script that can grab my 2-minute snapshots. But when I turn off Record mode, those still images won't be there to pick up (OK, except during triggered events).
Can anyone offer insight into what is going on with zmu, or suggest next troubleshooting steps?