simultaneous stream limit.

Joined
Apr 26, 2018
Messages
7
Hello all, have the latest ZM plugin running with 5 Reolink cameras, on both Firefox and Chrome I can only watch 4 streams at a time (despite documentation saying I should see 6 on Chrome- I'm sure things have changed since the documentation).

Since most all documentation on ZoneMinder is in regards to being installed on some bare metal nix build, and I'm not a FreeNAS wiz, how do I go about either of these mitigations below?


I was poking around and it looks like zoneminder uses nginx for the FreeNAS plugin version.

Or better yet, this trick:
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702

webdawg

Contributor
Joined
May 25, 2016
Messages
112
This is still an issue. The zoneminder plugin is great, but without multiport enabled...you can only watch 4 cameras at once.
 

webdawg

Contributor
Joined
May 25, 2016
Messages
112
This is what I am doing right now:

1609820310479.png
 

Attachments

  • 1609820263296.png
    1609820263296.png
    74.7 KB · Views: 178

webdawg

Contributor
Joined
May 25, 2016
Messages
112
Did not really help at all. This is crazy, I just want to see all my cameras in one browser

I can access the cams, but what is the point, I have to open a browser for 4 cams each time? If I have 12 cams, I need 3 browsers open to see montage correctly?

My old zoneminder I can see my 6 cams just fine......this new version..why did they switch to a different type of viewing?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
My old zoneminder I can see my 6 cams just fine......this new version..why did they switch to a different type of viewing?
If you read this article, you would see exactly why:
"Recent ZM versions (I think ZM 1.32+) added a feature that allows you to stream as many monitors as possible and not be limited to the Chrome and Webkit limit of 6 simultaneous connections."
 
Last edited:

webdawg

Contributor
Joined
May 25, 2016
Messages
112
So the FreeNAS zoneminder plugin is kinda broke, but still works great. I spent so much time messing w/ multiport settings/etc. No matter what I did I could not get more then 4 cams to stream.

Two changes need to be done to stream more than four cameras. The multi port stuff as talked about here, but there are not enough fastcgi processes avail to stream more then 4 cams.

1609868071626.png


fcgiwrap_flags was set to 4. For now I upped it to 10:

1609868110099.png


Everything is working fine now. I could not get multiport to work, but after doing the above, it works fine.

To get muliport to work I just followed the instructions after that and added some listen directives:

1609868194643.png


1609868223518.png


And fixed my zoneminder config:

1609868241624.png


All is well. Like I said, it took me a few hours to realize why mutiport is not working. I think I will file a bug soon to increase fcgi children in rc.conf

TrueNAS does not have any way to have a list of editable variables for a package? This would be a good place to have one. Where you edit in the gui, and it seds/sets in the shell?

In an effort to figure things out I also did this:
1609868463121.png


I increased pm.max_children to 50:

1609868488679.png

I do not remember what it was.

I have not changed that back yet in my config.

I don't this it in my working config now, but I also experimented with setting fastcgi_buffering off and also setting size to zero. I was getting this:

2021/01/05 11:26:05 [warn] 26709#100726: *91 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/4/00/0000000004 while reading upstream

That was the hint I needed to know something was up w/ fastcgi.
 

webdawg

Contributor
Joined
May 25, 2016
Messages
112
Where do I report this issue? Is there a git someone could point me to?
 
Top