Zoneminder RPM & SRPMS for Red Hat & CentOS 6

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
User avatar
knight-of-ni
Posts: 2242
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni » Sat Mar 15, 2014 3:03 pm

* BUMP *
ZoneMinder 1.27.0 has been released.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

6ax
Posts: 1
Joined: Tue Mar 18, 2014 2:44 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by 6ax » Tue Mar 18, 2014 2:56 pm

Please fix the links in the subject header. Unable to download anything. Thank you.

User avatar
knight-of-ni
Posts: 2242
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni » Tue Mar 18, 2014 3:07 pm

6ax wrote:Please fix the links in the subject header. Unable to download anything. Thank you.
They all work for me. From what country does your ip address originate from? My firewall is set to block traffic from certain countries associated with spam and other unwanted traffic. I could make an exception if you tell me where you are from.
Last edited by knight-of-ni on Sat Mar 29, 2014 1:40 pm, edited 1 time in total.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by lpallard » Sat Mar 29, 2014 4:16 am

hey knnniggett

thanks for posting such detailled instructions on installing ZM on CentOS...

I am trying to get it running on CentOS 6.5, followed the steps to the letter and using 1.27 but when I try to start the ZM service, I get a [FAILED] with nothing else...

How can I troubleshoot this? I tried with:

service zoneminder start

and /etc/init.d/zoneminder start

but both fails.

I am totally new to CentOS/RH and being used to slackware, I would generally know where to look but on CentOS I am a little lost....
Cheers!

User avatar
knight-of-ni
Posts: 2242
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni » Sat Mar 29, 2014 1:05 pm

Make sure mysql is runnning.
If you have an existing database, it will do that if you have not successfully run "sudo zmupdate.pl" first.
If your database is new, make sure you have followed the steps to create it.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by lpallard » Sat Mar 29, 2014 3:49 pm

OK.. you were right with the DB update... now ZM starts, but I get LOTS of errors, and the live feed doesnt work.

From the logs:

[code]2014-03-29 11:45:31.959085 web_js 20917 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:45:31.935623 web_php 20921 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:45:25.946457 web_js 20916 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:45:25.923431 web_php 20918 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:45:19.937301 web_js 20921 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:45:19.911934 web_php 20920 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:45:15.533157 zma_m1 23157 INF Monitor-1: 2000 - Processing at 30.30 fps /builddir/build/BUILD/ZoneMinder-1.27.0/src/zm_monitor.cpp
2014-03-29 11:45:13.954908 zmc_m1 23127 INF Monitor-1: 2000 - Capturing at 30.30 fps /builddir/build/BUILD/ZoneMinder-1.27.0/src/zm_monitor.cpp
2014-03-29 11:45:13.925335 web_js 20918 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:45:13.901207 web_php 20923 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:45:07.911325 web_js 20920 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:45:07.889643 web_php 20919 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:45:01.905122 web_js 20923 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:45:01.877828 web_php 20920 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:44:55.891151 web_js 20918 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:44:55.866389 web_php 20923 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:44:49.875347 web_js 20920 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch
2014-03-29 11:44:49.852597 web_php 20919 ERR socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory /usr/share/zoneminder/www/includes/functions.php
2014-03-29 11:44:43.857427 web_js 20923 ERR getStreamCmdResponse stream error: socket_sendto( /var/run/zm/zms-770548s.sock ) failed: No such file or directory - checkStreamForErrors() ?view=watch[/code]

/var/run/zm exists and apache has all right into it (rwx)

The source is in GREEN but the LOG is in RED.

DO you have an idea whats not right?

Thanks!!!

User avatar
knight-of-ni
Posts: 2242
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni » Sat Mar 29, 2014 4:05 pm

Either your Apache config is not right or your are running at too high a frame rate for your hardware.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by lpallard » Mon May 12, 2014 10:35 pm

[quote]Either your Apache config is not right or your are running at too high a frame rate for your hardware.[/quote]

Apache's config was erroneous IMO.. I changed a few things and for a month or so, everything is fine now.

Now that its "working" I'd like to have ZM start monitoring and stop monitoring based on a schedule... 99% of the events are simpy me when I pass in front of the camera..

I tried searching in ZM's config and options, to no avail..

Same on the internet. I'd like ZM to start monitoring when I leave for work and stop when I come back. Should be simple enough??? The only cheap way I found would be to have CRON send

[code]service zoneminder stop[/code] or [code]zmpkg.pl stop[/code] to stop it at a specific time, and

[code]service zoneminder start[/code] or [code]zmpkg.pl start[/code] to start it at a specific time...

Is there a function in ZM for this??

Thanks!

swiftflic
Posts: 9
Joined: Fri Dec 27, 2013 4:51 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by swiftflic » Thu Jun 26, 2014 9:15 pm

Hi all,

My 1.26.4 was giving me troubles and I couldn't figure out what was going on. So I decided to start a clean reinstall.

Just followed the instructions to install 1.27.0-1.el6.i686 but yum reports dependency errors. Don't know how to deal with this, but this is the relevant output:

Code: Select all

--> Finished Dependency Resolution
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libswscale.so.2
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavformat.so.53(LIBAVFORMAT_53)
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libmodplug.so.0
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libupnp.so.3
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavformat.so.53
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: vlc-core
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libswscale.so.2(LIBSWSCALE_2)
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavutil.so.51
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libebml.so.2
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavutil.so.51(LIBAVUTIL_51)
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavcodec.so.53
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavdevice.so.53
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libmatroska.so.2
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libthreadutil.so.2
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavcodec.so.53(LIBAVCODEC_53)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Any leads how to proceed? Thanks.

lpallard
Posts: 85
Joined: Fri Mar 05, 2010 10:59 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by lpallard » Thu Jun 26, 2014 9:20 pm

Good luck with that!

My experience has shown that it is caused by mixing software from different repos...

CentOS really HATES that!

Repos are cool but not properly configured, dangerous,

My own centos server will need restart fron scratch because of that same reason..

User avatar
knight-of-ni
Posts: 2242
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni » Thu Jun 26, 2014 10:42 pm

swiftflic wrote:Hi all,

My 1.26.4 was giving me troubles and I couldn't figure out what was going on. So I decided to start a clean reinstall.

Just followed the instructions to install 1.27.0-1.el6.i686 but yum reports dependency errors. Don't know how to deal with this, but this is the relevant output:

Code: Select all

--> Finished Dependency Resolution
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libswscale.so.2
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavformat.so.53(LIBAVFORMAT_53)
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libmodplug.so.0
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libupnp.so.3
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavformat.so.53
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: vlc-core
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libswscale.so.2(LIBSWSCALE_2)
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavutil.so.51
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libebml.so.2
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavutil.so.51(LIBAVUTIL_51)
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavcodec.so.53
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavdevice.so.53
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libmatroska.so.2
Error: Package: vlc-1.1.13-1.el6.rf.i686 (rpmforge)
           Requires: libthreadutil.so.2
Error: Package: zoneminder-1.27.0-1.el6.i686 (/zoneminder-1.27.0-1.el6.i686)
           Requires: libavcodec.so.53(LIBAVCODEC_53)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Any leads how to proceed? Thanks.
First, follow the instructions in the first post of this thread that describes how to set up all three repos if you have not already. Don't skip any steps!
Second, follow the instructions under the troubleshooting section for resolving the conflicts.
Basically, you need to remove the vlc and ffmpeg packages from rpmforge already on your system and then let yum grab the newer versions of these packages from the rpmfusion repo.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

swiftflic
Posts: 9
Joined: Fri Dec 27, 2013 4:51 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by swiftflic » Thu Jun 26, 2014 11:27 pm

Thanks for the feedback, I tried to follow the first post. But apparently I forgot to enable the rpmfusion-free-updates repository, when setting priorities. I was actually able to install after that!

But now after a clean install my log looks like this:

Code: Select all

2014-06-27 02:24:57.309210	zmpkg	6176	ERR	Unable to run "sudo -u [username] /usr/bin/zmdc.pl startup", output is "Starting server"	zmpkg.pl	
2014-06-27 02:24:57.296370	zmdc	6184	FAT	Can't connect: No such file or directory	zmdc.pl	
2014-06-27 02:24:49.647070	zmdc	6185	FAT	Can't bind: Permission denied	zmdc.pl	
2014-06-27 02:24:47.300450	zmdc	6185	INF	Server starting at 14/06/27 02:24:47	zmdc.pl	
2014-06-27 02:24:46.609100	zmpkg	6176	INF	Command: start	zmpkg.pl	
2014-06-27 02:24:21.344520	zmpkg	6139	ERR	Unable to run "sudo -u [username] /usr/bin/zmdc.pl check", output is ""	zmpkg.pl	
2014-06-27 02:24:21.213780	zmpkg	6139	INF	Command: start	zmpkg.pl	
2014-06-27 02:21:47.004700	zmpkg	6053	ERR	Unable to run "sudo -u [username] /usr/bin/zmdc.pl check", output is ""	zmpkg.pl	
2014-06-27 02:21:46.837550	zmpkg	6053	INF	Command: start	zmpkg.pl
:shock:

User avatar
knight-of-ni
Posts: 2242
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by knight-of-ni » Fri Jun 27, 2014 1:17 pm

"Can't Bind" means that zoneminder was unable to create a socket. This can be caused by file/folder permissions, attempting to start a second instance of zoneminder, and/or stale files lying around from a previous installation.

However, looking at the big picture, you've managed to get your system into an unknown state.
This could easily turn into a game of whack-a-mole where you solve one problem only for another to pop-up.
The best thing to do would be to get your system back to a default, clean state and then start over.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

swiftflic
Posts: 9
Joined: Fri Dec 27, 2013 4:51 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by swiftflic » Mon Jun 30, 2014 10:00 pm

Well it did cost me a night of decent sleep, but I worked it out in the end (it was a permissions issue). It is running, but in the interface it tells me it is 1.26.5?

Also live video to my browser and phone is not working. I get the following message:

Code: Select all

	Unable to load monitor id -1 for streaming	/builddir/build/BUILD/ZoneMinder-1.27.0/src/zm_stream.cpp
Does anyone have experience with this? I also don't see the image when I want to edit a zone. It seems that /var/cache/zoneminder/images/Zones1.jpg is not created. How can I debug that?

Thanks

swiftflic
Posts: 9
Joined: Fri Dec 27, 2013 4:51 pm

Re: Zoneminder RPM & SRPMS for Red Hat & CentOS 6

Post by swiftflic » Thu Jul 10, 2014 7:23 pm

...this system is really starting to piss me off. Every version update I spend 2 weeks to solve all the issues. It is still not running correctly over here and now I even lost my 'log' butten in the web interface.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests