FreeBSD 11, ZM v1.30.2 h264 and v1.30.4

Forum for questions and support relating to the 1.30.x releases only.
Locked
fqhrfrenzy
Posts: 6
Joined: Tue Jul 25, 2017 9:00 pm

FreeBSD 11, ZM v1.30.2 h264 and v1.30.4

Post by fqhrfrenzy »

So I am having issues getting ZM to view any of my cameras. I have several IP cameras in a very simplistic design only needing IP and Port to view them. I have ZM running on Linux perfectly but trying to shut down all my extra boxes and put all on 1 large server which has gone well so far until I'm trying to install ZM to get the cameras onto it. Linux they are running as perfect as they can, on FreeBSD I am getting nothing and I have googled until I am numb over it and figured I would turn to the forums and so far I have not found a solution here either.

Right now I'm running the h164 v1.30.2 and I have tried the v1.30.4 as well and they are producing the same result, cannot read or show the cameras. Any of them no matter what i have tried.

I'm posting logs for someone to see and I'm sure (hope) that its something that stupid that I am just not seeing

I am able to run ZM with Linux in BHyve but that is resource hungry so I am trying to avoid that. bhyve is not that stable but it does work most of the time.
Attachments
zmlogs.txt
(2.07 KiB) Downloaded 166 times
camerafail.PNG
camerafail.PNG (17.17 KiB) Viewed 3639 times
fqhrfrenzy
Posts: 6
Joined: Tue Jul 25, 2017 9:00 pm

Re: FreeBSD 11, ZM v1.30.2 h264 and v1.30.4

Post by fqhrfrenzy »

I have still been working on this on and off. I figured it would be the Options>Paths PATH_ZMS but I have tried EVERYTHING possible. Within the nginx config server block I have location = /cgi-bin/nph-zms so that is exactly what I put there, I also tried putting the /zoneminder/cgi-bin/nph-zms and nothing and the complete path /usr/local/www/zoneminder/cgi-bin/nph-zms in both locations and nothing is working. I think I have exhausted all possibilities with the PATH_ZMS value.

I Ubuntu Server right out of the box using the package to install you have to add the /zm in front of the /cgi-bin/nph-zms which makes sense and I was hoping this would be that simple... and its not. I do not know what to do at this point.

The Error logs say go to http://zoneminder.readthedocs.io/en/lat ... window-etc and I did and its pointing at the PATH_ZMS and well... I just cannot get it to work. Maybe I am just over thinking. BSD Always makes things harder over Linux
fqhrfrenzy
Posts: 6
Joined: Tue Jul 25, 2017 9:00 pm

Re: FreeBSD 11, ZM v1.30.2 h264 and v1.30.4

Post by fqhrfrenzy »

OK fixed. not sure what happened I tried every fix in the forums and google. Decided to reinstall everything and this time it all worked like its suppose to.

Fix was the fcgiwrap ownership to www:www not root:wheel

/usr/local/etc/rc.d/fcgiwrap and change:
fcgiwrap_socket_owner=${fcgiwrap_socket_owner:-"www"}
fcgiwrap_socket_group=${fcgiwrap_socket_group:-"www"}

chown -R www:www /var/run/fcgiwrap

Vanilla install and it just worked.
awesomdc
Posts: 2
Joined: Thu Aug 03, 2017 10:05 am

Re: FreeBSD 11, ZM v1.30.2 h264 and v1.30.4

Post by awesomdc »

Thank you so much for this info. Saved me tons of time trying to solve the same problem. :-)
awesomdc
Posts: 2
Joined: Thu Aug 03, 2017 10:05 am

Re: FreeBSD 11, ZM v1.30.2 h264 and v1.30.4

Post by awesomdc »

By the way, have you zm running under nginx? I have some troubles getting the api part working so that I can use zmninja on my phone.
Locked