Only one camera is working

Support for the docker image maintained by dlandon
Post Reply
begluecker
Posts: 3
Joined: Thu Oct 31, 2024 7:08 pm

Only one camera is working

Post by begluecker »

I have installed /zoneminder.machine.learning:latest on my QNAP container station and I’m able to run a single Reolink camera proper. But as soon as I’m adding a second camera from Reolink - same configuration but different IP the camera is not working.
If I deactivate the first running camera, the second works well but the first not and consequently I’m not able to get a third or fourth camera running. I have attached my log but not sure if this is an issue with the container because I tried same with zoneminderhq latest with the same behavior. Any idea what the problem could be?
Attachments
IMG_0562.jpeg
IMG_0562.jpeg (437.74 KiB) Viewed 2257 times
User avatar
iconnor
Posts: 3227
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Only one camera is working

Post by iconnor »

You likely don't have enough ram to run two cameras.
begluecker
Posts: 3
Joined: Thu Oct 31, 2024 7:08 pm

Re: Only one camera is working

Post by begluecker »

Thanks for the feedback but RAM was one of the first I checked.
The resource usage of the container is unlimited and I have sufficient RAM on my NAS.
Already I have a zoneminder configuration with 5 camera’s running on Ubuntu Linux Station on the same NAS without problems. This configuration I try to move to a docker that I can release Ubuntu Linux Station and I have deactivated the Linux station while testing with docker to avoid a resource conflict.
Is there maybe another hidden resource limitation which is not visible?
User avatar
iconnor
Posts: 3227
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Only one camera is working

Post by iconnor »

I think in docker you have to tell it how big the tmpfs in /dev/shm is. If it isn't big enough, we crash.

In my docker-compose.yml for demo.zoneminder.com we have
volumes:
- type: tmpfs
target: /dev/shm
tmpfs:
size: 1000000000
begluecker
Posts: 3
Joined: Thu Oct 31, 2024 7:08 pm

Re: Only one camera is working

Post by begluecker »

It looks that /dev/shm size is the correct hint it is currently configured as 64MB size.
Maybe you can guide me how to change. Currently I get permission denied as root (please see attached screenshot)
Attachments
IMG_0565.jpeg
IMG_0565.jpeg (260.37 KiB) Viewed 1955 times
User avatar
iconnor
Posts: 3227
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Only one camera is working

Post by iconnor »

Post Reply