Debian Jessie install from repo
Debian Jessie install from repo
Why is always problem with zoneminder?
I'm trying to run this software for years on many distros and it never worked well.
Asked on irc, asked on forum - nobody reply.
Random crashing, socket_sendto and now even can't install from official repo.
Added
deb http://zmrepo.zoneminder.com/debian jessie/
to /etc/apt/sources.list
apt-get update
and
root@host:~# apt-get install zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
zoneminder : Depends: zoneminder-core (>= 1.28.1+nmu1) but it is not installable
Depends: zoneminder-ui-base (>= 1.28.1+nmu1) but it is not installable
Depends: zoneminder-ui-classic (>= 1.28.1+nmu1) but it is not going to be installed
Depends: zoneminder-ui-mobile (>= 1.28.1+nmu1) but it is not going to be installed
Depends: zoneminder-ui-xml (>= 1.28.1+nmu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
why?
I'm trying to run this software for years on many distros and it never worked well.
Asked on irc, asked on forum - nobody reply.
Random crashing, socket_sendto and now even can't install from official repo.
Added
deb http://zmrepo.zoneminder.com/debian jessie/
to /etc/apt/sources.list
apt-get update
and
root@host:~# apt-get install zoneminder
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
zoneminder : Depends: zoneminder-core (>= 1.28.1+nmu1) but it is not installable
Depends: zoneminder-ui-base (>= 1.28.1+nmu1) but it is not installable
Depends: zoneminder-ui-classic (>= 1.28.1+nmu1) but it is not going to be installed
Depends: zoneminder-ui-mobile (>= 1.28.1+nmu1) but it is not going to be installed
Depends: zoneminder-ui-xml (>= 1.28.1+nmu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
why?
Re: Debian Jessie install from repo
Did you try: http://www.zoneminder.com/wiki/index.ph ... e_easy_way
Sure, you can get some errors with cameras. The log on my production machine is full of warnings and errors but it still works.
There is a lot of documentation of successes and failures with Zoneminder. And a few of us who spend a lot of time figuring out how to make this product better. I do not do coding but have experience doing documentation. I also have access to a good supply of used computer equipment to play with and upgrade my stuff.
I do not try to flame people as there are many who have been tolerant of my mistakes. My suggestion to you is to review the forum and see what works for others. If you are stuck to a specific distro stay with it and seek help from others in a non threatening manner.
bb
Sure, you can get some errors with cameras. The log on my production machine is full of warnings and errors but it still works.
There is a lot of documentation of successes and failures with Zoneminder. And a few of us who spend a lot of time figuring out how to make this product better. I do not do coding but have experience doing documentation. I also have access to a good supply of used computer equipment to play with and upgrade my stuff.
I do not try to flame people as there are many who have been tolerant of my mistakes. My suggestion to you is to review the forum and see what works for others. If you are stuck to a specific distro stay with it and seek help from others in a non threatening manner.
bb
Re: Debian Jessie install from repo
Yes, but installation from source did not making some apache config or other magic things and ZM not working.
Re: Debian Jessie install from repo
That install is not an install from source. It is an instruction to install Zoneminder from the iconnor PPA.
If you follow the steps without fail Zoneminder will work on Ubuntu! It has been proven MANY times!!!
If you follow the steps without fail Zoneminder will work on Ubuntu! It has been proven MANY times!!!
Re: Debian Jessie install from repo
OK, sorry you're right, but my target system is Jessie, because it works perfect with my hardware and other services.
I don't want back to ubuntu and waste time to get other things work.
I don't want back to ubuntu and waste time to get other things work.
Re: Debian Jessie install from repo
I will install Debian 8.1 on my test machine and see if I can get Zoneminder to work. Will post the results in a bit.
bb
bb
Re: Debian Jessie install from repo
I installed Zoneminder 1.28.1-6~bpo8+1 on Debian 8.1.
I added debian jessie-backports to the sources list.
After doing "apt-get update" and "apt-get install zoneminder" the installation went smooth.
I got it working, it is recording events but I can't see any image in the monitor viewer or in the event viewer.
The logged error is: "socket_sendto( /tmp/zm/zms-634600s.sock ) failed: No such file or directory"
In /tmp/zm I get a zms-634600w.sock file but not the requested zms-634600s.sock.
I added debian jessie-backports to the sources list.
After doing "apt-get update" and "apt-get install zoneminder" the installation went smooth.
I got it working, it is recording events but I can't see any image in the monitor viewer or in the event viewer.
The logged error is: "socket_sendto( /tmp/zm/zms-634600s.sock ) failed: No such file or directory"
In /tmp/zm I get a zms-634600w.sock file but not the requested zms-634600s.sock.
Re: Debian Jessie install from repo
felixr, you need to enable cgi in appache2
CGI is not enabled by default. Enable it this way:
a2enmod cgi
Restart Apache
service apache2 restart
I built 1.28.100 from the github following these instructions: http://terminal28.com/how-to-install-an ... -8-jessie/
There were some dependencies that I had to clear up and the .deb package was identified a wheezy. Installed it anyway.
Needed to do some configuration to get it working:
Create a file called zoneminder.service
nano /lib/systemd/system/zoneminder.service
Paste or enter the following:
# ZoneMinder systemd unit file
# This file is intended to work with all Linux distributions
[Unit]
Description=ZoneMinder CCTV recording and security system
After=network.target mysql.service apache2.service
Requires=mysql.service apache2.service
[Service]
User=www-data
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile="/run/zm/zm.pid"
[Install]
WantedBy=multi-user.target
Ctrl+o Enter to save
CTRL+x to exit
Create a file called zoneminder.conf
nano /etc/tmpfiles.d/zoneminder.conf
Paste or enter the following
d /var/run/zm 0755 www-data www-data
CTRL+o to save the file
CTRL+x to exit nano
Change permissions on the file
chmod 755 /etc/tmpfiles.d/zoneminder.conf
Enable Zoneminder
systemctl enable zoneminder.service
Start Zoneminder
systemctl start zoneminder.service
Check to see that Zoneminder is running
systemctl status zoneminder.service
Create a directory in apache2
mkdir /etc/apache2/conf.d
Create two symbolic links
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
Create a new user
adduser www-data video
Restart Apache
service apache2 restart
This is the same basic setup as Ubuntu 15.04. Since this is the first time I've installed Debian I will wipe everything and try again to come up with an "Easy" how to. How soon I get to it will depend if I get WIndows 10 tomorrow and the honey do projects (I did get my wife an i3 with Win 8 to do her pictures for scrap booking. She really did not like Win 8 at all!!!)
Stay tuned folks!
CGI is not enabled by default. Enable it this way:
a2enmod cgi
Restart Apache
service apache2 restart
I built 1.28.100 from the github following these instructions: http://terminal28.com/how-to-install-an ... -8-jessie/
There were some dependencies that I had to clear up and the .deb package was identified a wheezy. Installed it anyway.
Needed to do some configuration to get it working:
Create a file called zoneminder.service
nano /lib/systemd/system/zoneminder.service
Paste or enter the following:
# ZoneMinder systemd unit file
# This file is intended to work with all Linux distributions
[Unit]
Description=ZoneMinder CCTV recording and security system
After=network.target mysql.service apache2.service
Requires=mysql.service apache2.service
[Service]
User=www-data
Type=forking
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/usr/bin/zmpkg.pl stop
PIDFile="/run/zm/zm.pid"
[Install]
WantedBy=multi-user.target
Ctrl+o Enter to save
CTRL+x to exit
Create a file called zoneminder.conf
nano /etc/tmpfiles.d/zoneminder.conf
Paste or enter the following
d /var/run/zm 0755 www-data www-data
CTRL+o to save the file
CTRL+x to exit nano
Change permissions on the file
chmod 755 /etc/tmpfiles.d/zoneminder.conf
Enable Zoneminder
systemctl enable zoneminder.service
Start Zoneminder
systemctl start zoneminder.service
Check to see that Zoneminder is running
systemctl status zoneminder.service
Create a directory in apache2
mkdir /etc/apache2/conf.d
Create two symbolic links
ln -s /etc/zm/apache.conf /etc/apache2/conf.d/zoneminder.conf
ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
Create a new user
adduser www-data video
Restart Apache
service apache2 restart
This is the same basic setup as Ubuntu 15.04. Since this is the first time I've installed Debian I will wipe everything and try again to come up with an "Easy" how to. How soon I get to it will depend if I get WIndows 10 tomorrow and the honey do projects (I did get my wife an i3 with Win 8 to do her pictures for scrap booking. She really did not like Win 8 at all!!!)
Stay tuned folks!
Re: Debian Jessie install from repo
bbunge, cgi was enabled on my jessie default, but executed command 'a2enmod cgi' for the sake of peace and guess what?
nothing changed. random crashing, socket_sendto and another wasted hours of work...
does anybody ever have green 'Log' using this software?!
nothing changed. random crashing, socket_sendto and another wasted hours of work...
does anybody ever have green 'Log' using this software?!
Re: Debian Jessie install from repo
bbunge, CGI is enabled on apache since prior to this installation a zoneminder 1.25 was installed and working on the machine, I double checked anyway. The repo I installed, created the start/stop script (SysV style) as well as the apache configuration script.
ZM 1.28 is actually working (cameras are connected, events are recorded along with the jpg images in the events directory) except for the streaming part.
Since I have a spare PC, I will install a clean Jessie (the one I was working on is an upgrade from Wheezy) and try to install ZM 1.28.
ZM 1.28 is actually working (cameras are connected, events are recorded along with the jpg images in the events directory) except for the streaming part.
Since I have a spare PC, I will install a clean Jessie (the one I was working on is an upgrade from Wheezy) and try to install ZM 1.28.
Re: Debian Jessie install from repo
OK, just spend two hours to install fresh ubuntu server as you recommend anf followed the "easy way" and guess what?
2015-07-29 02:02:56.129451 zms 9187 INF Terminating Logger zm_logger.cpp 235
2015-07-29 02:02:56.051310 zms 9187 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2015-07-29 02:02:55.706330 web_php 8909 ERR Timed out waiting for msg /var/run/zm/zms-561480s.sock /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 02:02:46.069148 zms 9189 INF addr2line -e /usr/lib/cgi-bin/nph-zms 0x47ceab 0x7fa840480340 0x4212f3 0x47da37 0x4223c6 0x4086fe 0x7fa83f111ec5 0x407669 zm_signal.cpp 106
2015-07-29 02:02:46.043690 zms 9189 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 105
2015-07-29 02:02:46.018238 zms 9189 ERR Backtrace 7: /usr/lib/cgi-bin/nph-zms() [0x407669] zm_signal.cpp 98
2015-07-29 02:02:45.992808 zms 9189 ERR Backtrace 6: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fa83f111ec5] zm_signal.cpp 98
2015-07-29 02:02:45.967337 zms 9189 ERR Backtrace 5: /usr/lib/cgi-bin/nph-zms() [0x4086fe] zm_signal.cpp 98
2015-07-29 02:02:45.941920 zms 9189 ERR Backtrace 4: /usr/lib/cgi-bin/nph-zms() [0x4223c6] zm_signal.cpp 98
2015-07-29 02:02:45.917777 zms 9189 ERR Backtrace 3: /usr/lib/cgi-bin/nph-zms() [0x47da37] zm_signal.cpp 98
2015-07-29 02:02:45.892314 zms 9189 ERR Backtrace 2: /usr/lib/cgi-bin/nph-zms() [0x4212f3] zm_signal.cpp 98
2015-07-29 02:02:45.866868 zms 9189 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fa840480340] zm_signal.cpp 98
2015-07-29 02:02:45.841614 zms 9189 ERR Backtrace 0: /usr/lib/cgi-bin/nph-zms() [0x47ceab] zm_signal.cpp 98
2015-07-29 02:02:45.816046 zms 9189 ERR Signal address is 0x7fa834551ff8, from 0x4212f3 zm_signal.cpp 77
2015-07-29 02:02:45.782531 zms 9189 ERR Got signal 11 (Segmentation fault), crashing zm_signal.cpp 54
2015-07-29 02:02:37.700273 zms 9189 WAR Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor Monitor-1 zm_monitor.cpp 426
2015-07-29 02:02:33.818557 zma_m1 9114 INF Monitor-1: 12000 - Processing at 15.15 fps zm_monitor.cpp 1160
2015-07-29 02:02:23.455353 zms 9187 WAR Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor Monitor-1 zm_monitor.cpp 426
One USB 640x480 camera connected.
Server is six core AMD, 8GB RAM, 500GB HDD.
2015-07-29 02:02:56.129451 zms 9187 INF Terminating Logger zm_logger.cpp 235
2015-07-29 02:02:56.051310 zms 9187 INF Got signal 15 (Terminated), exiting zm_signal.cpp 40
2015-07-29 02:02:55.706330 web_php 8909 ERR Timed out waiting for msg /var/run/zm/zms-561480s.sock /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 02:02:46.069148 zms 9189 INF addr2line -e /usr/lib/cgi-bin/nph-zms 0x47ceab 0x7fa840480340 0x4212f3 0x47da37 0x4223c6 0x4086fe 0x7fa83f111ec5 0x407669 zm_signal.cpp 106
2015-07-29 02:02:46.043690 zms 9189 INF Backtrace complete, please execute the following command for more information zm_signal.cpp 105
2015-07-29 02:02:46.018238 zms 9189 ERR Backtrace 7: /usr/lib/cgi-bin/nph-zms() [0x407669] zm_signal.cpp 98
2015-07-29 02:02:45.992808 zms 9189 ERR Backtrace 6: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fa83f111ec5] zm_signal.cpp 98
2015-07-29 02:02:45.967337 zms 9189 ERR Backtrace 5: /usr/lib/cgi-bin/nph-zms() [0x4086fe] zm_signal.cpp 98
2015-07-29 02:02:45.941920 zms 9189 ERR Backtrace 4: /usr/lib/cgi-bin/nph-zms() [0x4223c6] zm_signal.cpp 98
2015-07-29 02:02:45.917777 zms 9189 ERR Backtrace 3: /usr/lib/cgi-bin/nph-zms() [0x47da37] zm_signal.cpp 98
2015-07-29 02:02:45.892314 zms 9189 ERR Backtrace 2: /usr/lib/cgi-bin/nph-zms() [0x4212f3] zm_signal.cpp 98
2015-07-29 02:02:45.866868 zms 9189 ERR Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fa840480340] zm_signal.cpp 98
2015-07-29 02:02:45.841614 zms 9189 ERR Backtrace 0: /usr/lib/cgi-bin/nph-zms() [0x47ceab] zm_signal.cpp 98
2015-07-29 02:02:45.816046 zms 9189 ERR Signal address is 0x7fa834551ff8, from 0x4212f3 zm_signal.cpp 77
2015-07-29 02:02:45.782531 zms 9189 ERR Got signal 11 (Segmentation fault), crashing zm_signal.cpp 54
2015-07-29 02:02:37.700273 zms 9189 WAR Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor Monitor-1 zm_monitor.cpp 426
2015-07-29 02:02:33.818557 zma_m1 9114 INF Monitor-1: 12000 - Processing at 15.15 fps zm_monitor.cpp 1160
2015-07-29 02:02:23.455353 zms 9187 WAR Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results for monitor Monitor-1 zm_monitor.cpp 426
One USB 640x480 camera connected.
Server is six core AMD, 8GB RAM, 500GB HDD.
Re: Debian Jessie install from repo
I got just so far with the backport install and ran into some things I'll need to learn. Will have to wait for tomorrow and a clear head.
stlth: USB cameras can be a bear. If it is a Logitech, try PAL B with a resolution of 320x240 and a frame rate of 10. See if it helps.
stlth: USB cameras can be a bear. If it is a Logitech, try PAL B with a resolution of 320x240 and a frame rate of 10. See if it helps.
Re: Debian Jessie install from repo
It's Philips cams. They worked for past few years with 'motion' software without any problem.
Leaved ZM for night in 'Record' mode. In the morning the 'Log' was green, and everything was good.
ZM crashed when i want to look at recording and rewind to few hours earlier.
Leaved ZM for night in 'Record' mode. In the morning the 'Log' was green, and everything was good.
ZM crashed when i want to look at recording and rewind to few hours earlier.
Code: Select all
2015-07-29 12:09:47.609275 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:47.556966 web_php 8957 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:46.715166 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:46.677633 web_php 8957 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:45.663229 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:45.620668 web_php 8957 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:45.550805 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:45.510216 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:45.475795 web_php 9077 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:45.447978 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:45.421738 web_php 9077 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:45.389429 web_js 8957 ERR getCmdResponse stream error: socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused - checkStreamForErrors() ?view=event
2015-07-29 12:09:45.361053 web_php 9077 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:45.328978 web_js 8957 ERR getCmdResponse stream error: Timed out waiting for msg /var/run/zm/zms-646302s.sock - checkStreamForErrors() ?view=event
2015-07-29 12:09:45.296964 web_php 9077 ERR socket_sendto( /var/run/zm/zms-646302s.sock ) failed: Connection refused /usr/share/zoneminder/includes/functions.php 2330
2015-07-29 12:09:45.186796 web_php 8957 ERR Timed out waiting for msg /var/run/zm/zms-646302s.sock /usr/share/zoneminder/includes/functions.php 2330
Re: Debian Jessie install from repo
stlth, I'm getting something similar. Make sure permissions on /var/run/zm folder are rwx r-x r-x (owner: www-data, group: www-data). On my system permissions are correct but it still does not work.
Re: Debian Jessie install from repo
Don't worry. Same here. Even changed to 777 and still not working.
Of course backtrace is giving very useful info...
addr2line -e /usr/lib/cgi-bin/nph-zms 0x47ceab 0x7f6e8c9c8340 0x4212f3 0x47da37 0x4223c6 0x4086fe 0x7f6e8b659ec5 0x407669
??:?
??:0
??:?
??:?
??:?
??:0
??:0
??:0
Edit:
I think that this software (or docs) is piece of sh** and we can't run it well. Look at new topics in 1.28.x.
Devs are answering lame questions fast, but not answering questions or talking about real problems/bugs.
I know that is free software but we must waste maaaany hours of work and get nothing?
Problem with 'socket_sendto' I saw few years ago, and still appears of course...
felixr and me have same problems of fresh ubuntu and given by you docs.
Of course backtrace is giving very useful info...
addr2line -e /usr/lib/cgi-bin/nph-zms 0x47ceab 0x7f6e8c9c8340 0x4212f3 0x47da37 0x4223c6 0x4086fe 0x7f6e8b659ec5 0x407669
??:?
??:0
??:?
??:?
??:?
??:0
??:0
??:0
Edit:
I think that this software (or docs) is piece of sh** and we can't run it well. Look at new topics in 1.28.x.
Devs are answering lame questions fast, but not answering questions or talking about real problems/bugs.
I know that is free software but we must waste maaaany hours of work and get nothing?
Problem with 'socket_sendto' I saw few years ago, and still appears of course...
It's not true. Look at posts above.If you follow the steps without fail Zoneminder will work on Ubuntu! It has been proven MANY times!!!
felixr and me have same problems of fresh ubuntu and given by you docs.