Trouble getting more than two remote monitors working...

Forum for questions and support relating to the 1.29.x releases only.
Locked
Tantamount
Posts: 76
Joined: Wed Feb 03, 2016 7:51 am

Trouble getting more than two remote monitors working...

Post by Tantamount »

Minimal install of CentOS 7 in a vm with two cpu's and 2GB of ram.
Followed all instructions for getting ZoneMinder 1.29 installed.

Added the first two cameras in monitor mode and can see their video through ZM.
The third and fourth camera however will not load. the logs show the zmc processes for the extra two cameras repeatedly exiting with error 6.

All four cameras are hardware identical. The only difference is their ip address.

I have no trouble accessing each camera via its own web interface.

Anyone have a clue what could be going on here?

TOP currently shows two zmc processes, running near cpu max. Is this because the cameras are in monitor mode? I had previously asked what the cpu utilization was for zoneminder and what I got back was a top showing that barely registered any cpu usage. I thought the problem I'm experiencing is due to cpu time starvation for the extra two cameras, but when I disable one of the working ones, none of the others "come alive."

Here's the output of strace when I attempt to run zmc myself on one of the non-working cameras:

Code: Select all

mmap(NULL, 2076672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f35a038b000
mmap(NULL, 6221824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f359b422000
open("/dev/shm/zm.mmap.3", O_RDWR|O_CREAT, 0600) = 8
fstat(8, {st_mode=S_IFREG|0600, st_size=311041760, ...}) = 0
mmap(NULL, 311041760, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_LOCKED, 8, 0) = 0x7f3588b80000
--- SIGBUS {si_signo=SIGBUS, si_code=BUS_ADRERR, si_addr=0x7f35961b7000} ---
+++ killed by SIGBUS +++
Bus error
3 ReoLink RLC-410
2 Annke NC800
Kubernetes 1.22.6 statefulset of 5 Ubuntu 20.04 pods using iconnor's repository
ZoneMinder Version 1.36.12
Tantamount
Posts: 76
Joined: Wed Feb 03, 2016 7:51 am

Re: Trouble getting more than two remote monitors working...

Post by Tantamount »

Ah, I checked the /dev/shm folder and found that it was full. Gonna give the vm more ram.
3 ReoLink RLC-410
2 Annke NC800
Kubernetes 1.22.6 statefulset of 5 Ubuntu 20.04 pods using iconnor's repository
ZoneMinder Version 1.36.12
Tantamount
Posts: 76
Joined: Wed Feb 03, 2016 7:51 am

Re: Trouble getting more than two remote monitors working...

Post by Tantamount »

That solved this issue.
3 ReoLink RLC-410
2 Annke NC800
Kubernetes 1.22.6 statefulset of 5 Ubuntu 20.04 pods using iconnor's repository
ZoneMinder Version 1.36.12
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Trouble getting more than two remote monitors working...

Post by bbunge »

You could also put PATH_SWAP to /tmp This would free up some tmpfs but it would run a bit slower.

When you installed Centos in the VM did you use the default partioning with LVM?
Tantamount
Posts: 76
Joined: Wed Feb 03, 2016 7:51 am

Re: Trouble getting more than two remote monitors working...

Post by Tantamount »

Yes:

Code: Select all

Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   38G   13G   25G  35% /
devtmpfs                 1.9G     0  1.9G   0% /dev
tmpfs                    1.9G  1.4G  483M  75% /dev/shm
tmpfs                    1.9G   33M  1.9G   2% /run
tmpfs                    1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/vda1                497M  165M  332M  34% /boot
tmpfs                    380M     0  380M   0% /run/user/0
3 ReoLink RLC-410
2 Annke NC800
Kubernetes 1.22.6 statefulset of 5 Ubuntu 20.04 pods using iconnor's repository
ZoneMinder Version 1.36.12
Locked