Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hi all, i'm under Linux Gentoo with systemd - ZM v1.27.99.0 #511

Closed
christophey2k opened this issue Sep 10, 2014 · 12 comments
Closed

hi all, i'm under Linux Gentoo with systemd - ZM v1.27.99.0 #511

christophey2k opened this issue Sep 10, 2014 · 12 comments

Comments

@christophey2k
Copy link

hi all, i'm under linux gentoo with systemd,
i can't start zm with web interface ... since latest merge
now i can use systemd but i don't know the name of the service
//# systemctl enable zoneminder.service (not exist)
for enable before start in my system
//# systemctl start zoneminder

Thanks

@knight-of-ni
Copy link
Member

You don't have a systemd zoneminder unit file. You need to create one, and delete the old init style init script you were using previosuly. The template is under the misc folder:
https://github.com/ZoneMinder/ZoneMinder/blob/master/misc/zoneminder.service.in

@christophey2k
Copy link
Author

Thanks for that, i adapt the unit file (httpd.service --> apache2.service) for me
but that do not wan't to start ... the web interface stay at stopped

weblog:
2014-09-11 20:48:12.787232 zms 20314 FAT Can't bind: No such file or directory /usr/src/zoneminder/src/zm_stream.cpp 302

and systemd log:
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/etc/systemd/system/zoneminder.service; enabled)
Active: active (running) since jeu. 2014-09-11 21:03:36 CEST; 5min ago
Process: 20484 ExecStop=/bin/bash -c [[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.$ (code=exited, status=127)
Process: 20494 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/zoneminder.service
├─20508 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─20541 /usr/bin/zmc -m 1
├─20551 /usr/bin/zma -m 1
├─20557 /usr/bin/pulseaudio --start --log-target=syslog
├─20561 /usr/libexec/pulse/gconf-helper
├─20575 /usr/bin/zmc -m 2
├─20592 /usr/bin/zmc -m 3
├─20604 /usr/bin/perl -wT /usr/bin/zmfilter.pl
├─20616 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
├─20627 /usr/bin/perl -wT /usr/bin/zmwatch.pl
└─20638 /usr/bin/perl -w /usr/bin/zmupdate.pl -c

sept. 11 21:06:19 cassiopee zma_m1[20551]: INF [PISCINE-FI8620: 4000 - Processing at 24.39 fps]
sept. 11 21:06:29 cassiopee zmc_m3[20592]: INF [CUISINE: 1000 - Capturing at 5.78 fps]
sept. 11 21:06:53 cassiopee zmc_m2[20575]: INF [SALON-FI9821W-V1: 2000 - Capturing at 10.75 fps]
sept. 11 21:06:59 cassiopee zmc_m1[20541]: INF [PISCINE-FI8620: 5000 - Capturing at 24.39 fps]
sept. 11 21:06:59 cassiopee zma_m1[20551]: INF [PISCINE-FI8620: 5000 - Processing at 25.00 fps]
sept. 11 21:07:39 cassiopee zmc_m1[20541]: INF [PISCINE-FI8620: 6000 - Capturing at 25.00 fps]
sept. 11 21:07:39 cassiopee zma_m1[20551]: INF [PISCINE-FI8620: 6000 - Processing at 25.00 fps]
sept. 11 21:08:19 cassiopee zmc_m1[20541]: INF [PISCINE-FI8620: 7000 - Capturing at 25.00 fps]
sept. 11 21:08:19 cassiopee zma_m1[20551]: INF [PISCINE-FI8620: 7000 - Processing at 25.00 fps]
sept. 11 21:08:25 cassiopee zmc_m2[20575]: INF [SALON-FI9821W-V1: 3000 - Capturing at 10.87 fps]

and apache2 status :

● apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib64/systemd/system/apache2.service; enabled)
Active: active (running) since mar. 2014-09-09 21:34:28 CEST; 1 day 23h ago
Main PID: 2493 (apache2)
CGroup: /system.slice/apache2.service
├─ 2493 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─ 3124 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─ 6929 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20099 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20100 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20289 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20353 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20385 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20417 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20661 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
├─20830 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND
└─21500 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PROXY -D PYTHON -DFOREGROUND

sept. 10 19:45:25 cassiopee pkexec[21431]: pam_unix(polkit-1:session): session opened for user root by (uid=81)
sept. 10 19:45:38 cassiopee pkexec[21468]: pam_unix(polkit-1:session): session opened for user root by (uid=81)
sept. 11 20:20:53 cassiopee pkexec[18300]: pam_unix(polkit-1:session): session opened for user root by (uid=81)
sept. 11 20:21:37 cassiopee pkexec[18509]: pam_unix(polkit-1:session): session opened for user root by (uid=81)
sept. 11 20:31:49 cassiopee pkexec[20081]: pam_unix(polkit-1:session): session opened for user root by (uid=81)
sept. 11 20:48:12 cassiopee zms[20314]: INF [Authenticated user 'admin']
sept. 11 20:48:12 cassiopee zms[20314]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
sept. 11 20:48:12 cassiopee zms[20314]: FAT [Can't bind: No such file or directory]
sept. 11 20:48:13 cassiopee web_php[20218]: ERR [socket_bind( /tmp/zm/zms-462154w.sock ) failed: No such file or directory]
sept. 11 20:48:13 cassiopee web_php[20218]: ERR [getCmdResponse stream error: socket_bind( /tmp/zm/zms-462154w.sock ) failed: No such file or directory - checkStreamForErrors()]

@knight-of-ni
Copy link
Member

"Can't Bind" means zoneminder was unable to create a socket.

  1. make sure the folder specified by ZM_PATH_SOCKS (under Options -> Paths) exists and the web user can write to it
  2. This can happen if you (accidentally) try to start a second instance of zoneminder.
  3. If gentoo uses selinux (or an equivalent), make sure it is disabled

@christophey2k
Copy link
Author

  1. apache user can write in my folder and he write the file "zmdc.sock"
  2. i reboot my srv with no succes
  3. i don't use selinux

@christophey2k
Copy link
Author

ok i try
chmod ugo+rwx /tmp/zm (my PATH_SOCKS folder and PATH_SWAP)
haven't got any error in log but web interface alwas stays in stopped

● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/etc/systemd/system/zoneminder.service; enabled)
Active: active (running) since jeu. 2014-09-11 21:50:08 CEST; 5min ago
Process: 6240 ExecStop=/bin/bash -c [[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.$ (code=exited, status=127)
Process: 6256 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/zoneminder.service
├─6269 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─6302 /usr/bin/zmc -m 1
├─6312 /usr/bin/zma -m 1
├─6317 /usr/bin/pulseaudio --start --log-target=syslog
├─6322 /usr/libexec/pulse/gconf-helper
├─6336 /usr/bin/zmc -m 2
├─6353 /usr/bin/zmc -m 3
├─6365 /usr/bin/perl -wT /usr/bin/zmfilter.pl
├─6378 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
├─6388 /usr/bin/perl -wT /usr/bin/zmwatch.pl
└─6399 /usr/bin/perl -w /usr/bin/zmupdate.pl -c

sept. 11 21:53:32 cassiopee zmc_m2[6336]: INF [SALON-FI9821W-V1: 2000 - Capturing at 10.87 fps]
sept. 11 21:53:56 cassiopee systemd[1]: Started ZoneMinder CCTV recording and security system.
sept. 11 21:54:10 cassiopee zmc_m1[6302]: INF [PISCINE-FI8620: 6000 - Capturing at 25.00 fps]
sept. 11 21:54:11 cassiopee zma_m1[6312]: INF [PISCINE-FI8620: 6000 - Processing at 24.39 fps]
sept. 11 21:54:51 cassiopee zmc_m1[6302]: INF [PISCINE-FI8620: 7000 - Capturing at 24.39 fps]
sept. 11 21:54:51 cassiopee zma_m1[6312]: INF [PISCINE-FI8620: 7000 - Processing at 25.00 fps]
sept. 11 21:55:05 cassiopee zmc_m2[6336]: INF [SALON-FI9821W-V1: 3000 - Capturing at 10.75 fps]
sept. 11 21:55:31 cassiopee zmc_m1[6302]: INF [PISCINE-FI8620: 8000 - Capturing at 25.00 fps]
sept. 11 21:55:31 cassiopee zma_m1[6312]: INF [PISCINE-FI8620: 8000 - Processing at 25.00 fps]
sept. 11 21:55:33 cassiopee zmc_m3[6353]: INF [CUISINE: 2000 - Capturing at 6.17 fps]

systemd zoneminder say it capturing but haven't got any files in /zm/tmp
only "zmdc.sock" file
systemd apache2 say all is good

@knight-of-ni
Copy link
Member

Add a line like this to your zoneminder.service file:
PIDFile=/run/zoneminder/zm.pid

Naturally, adjust the folder to the correct one for Gentoo. Also, make sure that the web user account has write permission to the folder.

To make sure the folder in question survives a reboot with the correct permission, you may need to save the following as a .conf file under /etc/tmpfiles.d:

d   /run/zoneminder     0755    apache  apache

@christophey2k
Copy link
Author

Hi, and thanks for your help.
the web interface stay stopped...

my new config ...

cmake -DZM_DB_HOST="localhost" -DZM_DB_NAME="zm" -DZM_DB_USER="zm_xxxx" -DZM_DB_PASS="zm_xxxx" -DZM_WEBDIR="/var/www/zoneminder.mydomain.fr/htdocs" -DZM_CGIDIR="/var/www/zoneminder.mydomain.fr/cgi-bin" -DZM_CONTENTDIR="/3To/zoneminder_data" -DZM_EXTRA_LIBS="ssl" -DCMAKE_VERBOSE_MAKEFILE="ON" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_CXX_FLAGS_RELEASE="-D__STDC_CONSTANT_MACROS"


// # rm -R /var/log/zm
// # mkdir /var/log/zm
// # chown -R apache:apache /var/log/zm
// # chmod 0755 /var/log/zm

// # rm -R /tmp/zm
// # mkdir /tmp/zm
// # chown -R apache:apache /tmp/zm
// # chmod 0775 /tmp/zm

// # rm -R /run/zm
// # mkdir /run/zm
// # chown -R apache:apache /run/zm
// # chmod 0755 /run/zm

// # systemctl disable zoneminder.status
// # nano -w /etc/systemd/system/zoneminder.service
<--->

ZoneMinder systemd unit file

This file is intended to work with Gentoo Linux distribution

[Unit]
Description=ZoneMinder CCTV recording and security system
After=network.target mysqld.service apache2.service
Requires=mysqld.service apache2.service

[Service]
User=apache
Type=forking
PIDFile=/run/zm/zm.pid
ExecStart=/usr/bin/zmpkg.pl start
ExecReload=/usr/bin/zmpkg.pl restart
ExecStop=/bin/bash -c '[[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.$

[Install]
WantedBy=multi-user.target
<--->
//# systemctl enable zoneminder.status
//# systemctl start zoneminder
//# systemctl status -l zoneminder.status
<--->
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/etc/systemd/system/zoneminder.service; enabled)
Active: active (running) since dim. 2014-09-14 16:19:39 CEST; 56s ago
Process: 2368 ExecStop=/bin/bash -c [[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.$ (code=exited, status=127)
Process: 2427 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 2440 (zmdc.pl)
CGroup: /system.slice/zoneminder.service
├─2440 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─2473 /usr/bin/zmc -m 1
├─2483 /usr/bin/zma -m 1
├─2489 /usr/bin/pulseaudio --start --log-target=syslog
├─2493 /usr/libexec/pulse/gconf-helper
├─2509 /usr/bin/zmc -m 2
├─2525 /usr/bin/zmc -m 3
├─2538 /usr/bin/perl -wT /usr/bin/zmfilter.pl
├─2546 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
├─2556 /usr/bin/perl -wT /usr/bin/zmwatch.pl
└─2567 /usr/bin/perl -w /usr/bin/zmupdate.pl -c

sept. 14 16:19:45 cassiopee zmc[2509]: Failed to change source AR
sept. 14 16:19:45 cassiopee zmc[2509]:
sept. 14 16:19:45 cassiopee zmc[2509]: [h264 @ 0x7f2df40493c0]
sept. 14 16:19:45 cassiopee zmc[2509]: Invalid mix of idr and non-idr slices
sept. 14 16:19:45 cassiopee zmc[2509]: [h264 @ 0x7f2df40493c0]
sept. 14 16:19:45 cassiopee zmc[2509]: Invalid mix of idr and non-idr slices
sept. 14 16:20:02 cassiopee systemd[1]: Started ZoneMinder CCTV recording and security system.
sept. 14 16:20:20 cassiopee zmc_m1[2473]: INF [PISCINE-FI8620: 1000 - Capturing at 23.81 fps]
sept. 14 16:20:20 cassiopee zma_m1[2483]: INF [PISCINE-FI8620: 1000 - Processing at 23.81 fps]
sept. 14 16:20:30 cassiopee zmc_m2[2509]: INF [SALON-FI9821W-V1: 1000 - Capturing at 19.23 fps]
<--->

web zm log :

2014-09-14 16:20:02.681470 zmsystemctl 2617 INF Redirecting command through systemctl zmsystemctl.pl

2014-09-14 16:19:38.996590 zmdc 2440 ERR 'zmc -m 3' exited abnormally, exit status 255 zmdc.pl

2014-09-14 16:19:38.952730 zmdc 2440 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl

2014-09-14 16:19:38.898253 zma_m1 2483 WAR Waiting for capture daemon /usr/src/zoneminder/src/zm_monitor.cpp 484

2014-09-14 16:19:38.847580 zmdc 2440 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl

and after a moment weblog say segfault

2014-09-14 16:27:11.640300 zmdc 2808 ERR 'zmc -m 3' exited abnormally, exit status 255 zmdc.pl
2014-09-14 16:27:11.592930 zmdc 2808 ERR 'zmc -m 2' exited abnormally, exit status 255 zmdc.pl
2014-09-14 16:27:11.542194 zma_m1 2851 WAR Waiting for capture daemon /usr/src/zoneminder/src/zm_monitor.cpp 484
2014-09-14 16:27:11.494760 zmdc 2808 ERR 'zmc -m 1' exited abnormally, exit status 255 zmdc.pl
2014-09-14 16:27:08.238770 zmdc 2440 ERR 'zmc -m 2' exited abnormally, exit status 11 zmdc.pl
2014-09-14 16:27:08.230529 zmc_m2 2537 ERR Backtrace 15: /lib64/libpthread.so.0(+0x91da) [0x7f2e261d71da] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.229215 zmc_m2 2537 ERR Backtrace 14: /usr/lib64/libvlccore.so.7(+0x491dd) [0x7f2e1bc281dd] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.228321 zmc_m2 2537 ERR Backtrace 13: /usr/lib64/libvlccore.so.7(+0x43a75) [0x7f2e1bc22a75] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.227452 zmc_m2 2537 ERR Backtrace 12: /usr/lib64/libvlccore.so.7(+0x4395f) [0x7f2e1bc2295f] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.226088 zmc_m2 2537 ERR Backtrace 11: /usr/lib64/libvlccore.so.7(+0x39a2d) [0x7f2e1bc18a2d] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.225202 zmc_m2 2537 ERR Backtrace 10: /usr/lib64/libvlccore.so.7(vlc_module_unload+0x9a) [0x7f2e1bc4fbba] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.224268 zmc_m2 2537 ERR Backtrace 9: /usr/lib64/vlc/plugins/access/liblive555_plugin.so(+0x314d) [0x7f2e1487214d] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.222935 zmc_m2 2537 ERR Backtrace 8: /usr/lib64/libliveMedia.so.4(_ZN12MediaSessionD0Ev+0x9) [0x7f2e14620da9] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.222061 zmc_m2 2537 ERR Backtrace 7: /usr/lib64/libliveMedia.so.4(_ZN12MediaSessionD1Ev+0x26) [0x7f2e14620d16] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.221160 zmc_m2 2537 ERR Backtrace 6: /usr/lib64/libliveMedia.so.4(_ZN15MediaSubsessionD0Ev+0x9) [0x7f2e14621b79] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.220320 zmc_m2 2537 ERR Backtrace 5: /usr/lib64/libliveMedia.so.4(_ZN15MediaSubsessionD1Ev+0x17) [0x7f2e14621a97] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.218932 zmc_m2 2537 ERR Backtrace 4: /usr/lib64/libliveMedia.so.4(_ZN15MediaSubsession10deInitiateEv+0x4f) [0x7f2e14621a4f] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.218098 zmc_m2 2537 ERR Backtrace 3: /usr/lib64/libgroupsock.so.4(_ZN9GroupsockD0Ev+0x9) [0x7f2e14374dc9] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.217232 zmc_m2 2537 ERR Backtrace 2: /usr/bin/zmc(_ZN6SocketD1Ev+0x28) [0x49e0f8] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.215828 zmc_m2 2537 ERR Backtrace 1: /lib64/libpthread.so.0(+0x11260) [0x7f2e261df260] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.215237 zmc_m2 2537 ERR Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x59) [0x471249] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.214136 zmc_m2 2537 ERR Signal address is (nil), from 0x49e0f8 /usr/src/zoneminder/src/zm_signal.cpp 77
2014-09-14 16:27:08.212924 zmc_m2 2537 ERR Got signal 11 (Segmentation fault), crashing /usr/src/zoneminder/src/zm_signal.cpp 54
2014-09-14 16:27:08.178850 zmdc 2440 ERR 'zmc -m 1' exited abnormally, exit status 11 zmdc.pl
2014-09-14 16:27:08.173706 zmc_m1 2499 ERR Backtrace 15: /lib64/libpthread.so.0(+0x91da) [0x7f668fc8d1da] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.172348 zmc_m1 2499 ERR Backtrace 14: /usr/lib64/libvlccore.so.7(+0x491dd) [0x7f66856de1dd] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.171510 zmc_m1 2499 ERR Backtrace 13: /usr/lib64/libvlccore.so.7(+0x43a75) [0x7f66856d8a75] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.170636 zmc_m1 2499 ERR Backtrace 12: /usr/lib64/libvlccore.so.7(+0x4395f) [0x7f66856d895f] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.169348 zmc_m1 2499 ERR Backtrace 11: /usr/lib64/libvlccore.so.7(+0x39a2d) [0x7f66856cea2d] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.168438 zmc_m1 2499 ERR Backtrace 10: /usr/lib64/libvlccore.so.7(vlc_module_unload+0x9a) [0x7f6685705bba] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.167553 zmc_m1 2499 ERR Backtrace 9: /usr/lib64/vlc/plugins/access/liblive555_plugin.so(+0x314d) [0x7f6671d5614d] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.166181 zmc_m1 2499 ERR Backtrace 8: /usr/lib64/libliveMedia.so.4(_ZN12MediaSessionD0Ev+0x9) [0x7f6671b04da9] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.165319 zmc_m1 2499 ERR Backtrace 7: /usr/lib64/libliveMedia.so.4(_ZN12MediaSessionD1Ev+0x26) [0x7f6671b04d16] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.164452 zmc_m1 2499 ERR Backtrace 6: /usr/lib64/libliveMedia.so.4(_ZN15MediaSubsessionD0Ev+0x9) [0x7f6671b05b79] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.163586 zmc_m1 2499 ERR Backtrace 5: /usr/lib64/libliveMedia.so.4(_ZN15MediaSubsessionD1Ev+0x17) [0x7f6671b05a97] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.162224 zmc_m1 2499 ERR Backtrace 4: /usr/lib64/libliveMedia.so.4(_ZN15MediaSubsession10deInitiateEv+0x61) [0x7f6671b05a61] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.161358 zmc_m1 2499 ERR Backtrace 3: /usr/lib64/libgroupsock.so.4(_ZN9GroupsockD0Ev+0x9) [0x7f6671858dc9] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.160504 zmc_m1 2499 ERR Backtrace 2: /usr/bin/zmc(_ZN6SocketD1Ev+0x28) [0x49e0f8] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.159117 zmc_m1 2499 ERR Backtrace 1: /lib64/libpthread.so.0(+0x11260) [0x7f668fc95260] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.158441 zmc_m1 2499 ERR Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x59) [0x471249] /usr/src/zoneminder/src/zm_signal.cpp 98
2014-09-14 16:27:08.157275 zmc_m1 2499 ERR Signal address is (nil), from 0x49e0f8 /usr/src/zoneminder/src/zm_signal.cpp 77
2014-09-14 16:27:08.156048 zmc_m1 2499 ERR Got signal 11 (Segmentation fault), crashing /usr/src/zoneminder/src/zm_signal.cpp 54
2014-09-14 16:27:08.152535 zmc_m3 2525 ERR Unable to get response /usr/src/zoneminder/src/zm_remote_camera_http.cpp 1110
2014-09-14 16:27:08.151681 zmc_m3 2525 ERR Unable to read subheader /usr/src/zoneminder/src/zm_remote_camera_http.cpp 938
2014-09-14 16:27:08.149610 zmc_m3 2525 ERR Select error: Interrupted system call /usr/src/zoneminder/src/zm_remote_camera_http.cpp 162
2014-09-14 16:27:08.138280 zmsystemctl 2783 INF Redirecting command through systemctl zmsystemctl.pl

@knight-of-ni
Copy link
Member

Suggestion 1

You are missing the "." (w/o the quotes) from your cmake statement. You should also add the ZM_RUNDIR flag.

Your new cmake statement should look like this:

cmake -DZM_DB_HOST="localhost" -DZM_DB_NAME="zm" -DZM_DB_USER="zm_xxxx" -DZM_DB_PASS="zm_xxxx" -DZM_WEBDIR="/var/www/zoneminder.mydomain.fr/htdocs" -DZM_CGIDIR="/var/www/zoneminder.mydomain.fr/cgi-bin" -DZM_CONTENTDIR="/3To/zoneminder_data" -DZM_EXTRA_LIBS="ssl" -DCMAKE_VERBOSE_MAKEFILE="ON" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_CXX_FLAGS_RELEASE="-D__STDC_CONSTANT_MACROS" -DZM_RUNDIR="/run/zm" .

Once you've rebuilt, move on to the next suggestion if you are still experiencing an issue.

Suggestion 2

Your libvlc cameras are crashing. This seems to be a known issue with the libvlc library and might not have anything to do with the issue you have reported. We need to find out.

In order to determine which errors are relavent, please disable all your cameras, except for just one. Choose a known good camera that is not using libvlc. To disable the remaining cameras, uncheck "enabled" and set the function to "none".

Report back.

@christophey2k
Copy link
Author

thanks for cmake ending point and ZM_RUNDIR ....
since a while a use libclv because ffmpeg do not work ...
when i disable all libvlc have one older http camera web interface stay stopped
i disable all my camera and stay stopped

i think i try to remove my database to do a full fresh reinstall

@christophey2k
Copy link
Author

After a full reinstall with empty db and no camera the web interface do not start ... stay stopped

systemd say :
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/etc/systemd/system/zoneminder.service; enabled)
Active: active (running) since dim. 2014-09-14 21:31:11 CEST; 3s ago
Process: 13701 ExecStop=/bin/bash -c [[ "$(/usr/bin/pgrep zmdc.pl)" > 0 ]] && /usr/bin/zmpkg.$ (code=exited, status=127)
Process: 13714 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
Main PID: 13727 (zmdc.pl)
CGroup: /system.slice/zoneminder.service
├─13727 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
├─13753 /usr/bin/perl -wT /usr/bin/zmfilter.pl
├─13761 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
├─13771 /usr/bin/perl -wT /usr/bin/zmwatch.pl
└─13782 /usr/bin/perl -w /usr/bin/zmupdate.pl -c

sept. 14 21:31:11 cassiopee zmdc[13727]: INF ['zmaudit.pl -c' starting at 14/09/14 21:31:11, pid = 13761]
sept. 14 21:31:11 cassiopee zmdc[13761]: INF ['zmaudit.pl -c' started at 14/09/14 21:31:11]
sept. 14 21:31:11 cassiopee zmfilter[13753]: INF [Scanning for events]
sept. 14 21:31:11 cassiopee zmdc[13727]: INF ['zmwatch.pl' starting at 14/09/14 21:31:11, pid = 13771]
sept. 14 21:31:11 cassiopee zmdc[13771]: INF ['zmwatch.pl' started at 14/09/14 21:31:11]
sept. 14 21:31:11 cassiopee zmwatch[13771]: INF [Watchdog starting]
sept. 14 21:31:11 cassiopee zmwatch[13771]: INF [Watchdog pausing for 30 seconds]
sept. 14 21:31:11 cassiopee zmdc[13727]: INF ['zmupdate.pl -c' starting at 14/09/14 21:31:11, pid = 13782]
sept. 14 21:31:11 cassiopee zmdc[13782]: INF ['zmupdate.pl -c' started at 14/09/14 21:31:11]
sept. 14 21:31:11 cassiopee systemd[1]: Started ZoneMinder CCTV recording and security system.

and web log :

2014-09-14 21:31:11.591900 zmdc 13782 INF 'zmupdate.pl -c' started at 14/09/14 21:31:11 zmdc.pl
2014-09-14 21:31:11.591890 zmdc 13727 INF 'zmupdate.pl -c' starting at 14/09/14 21:31:11, pid = 13782 zmdc.pl
2014-09-14 21:31:11.591080 zmwatch 13771 INF Watchdog pausing for 30 seconds zmwatch.pl
2014-09-14 21:31:11.589800 zmwatch 13771 INF Watchdog starting zmwatch.pl
2014-09-14 21:31:11.545160 zmdc 13771 INF 'zmwatch.pl' started at 14/09/14 21:31:11 zmdc.pl
2014-09-14 21:31:11.545130 zmdc 13727 INF 'zmwatch.pl' starting at 14/09/14 21:31:11, pid = 13771 zmdc.pl
2014-09-14 21:31:11.536920 zmfilter 13753 INF Scanning for events zmfilter.pl
2014-09-14 21:31:11.499400 zmdc 13761 INF 'zmaudit.pl -c' started at 14/09/14 21:31:11 zmdc.pl
2014-09-14 21:31:11.499390 zmdc 13727 INF 'zmaudit.pl -c' starting at 14/09/14 21:31:11, pid = 13761 zmdc.pl
2014-09-14 21:31:11.447460 zmdc 13753 INF 'zmfilter.pl' started at 14/09/14 21:31:11 zmdc.pl
2014-09-14 21:31:11.447430 zmdc 13727 INF 'zmfilter.pl' starting at 14/09/14 21:31:11, pid = 13753 zmdc.pl
2014-09-14 21:31:08.389790 zmdc 13727 INF Server starting at 14/09/14 21:31:08 zmdc.pl
2014-09-14 21:31:08.246860 zmpkg 13714 INF Command: start zmpkg.pl

...

@christophey2k
Copy link
Author

Hello,

ZoneMinder version 1.27.99.0 do not start (web gui) have permanently this error on the web interface (debug enabled) :

0 Monitors
Options
Warning: error_log(/tmp/zm/zm_debug.log.11617): failed to open stream: No such file or directory in /var/www/zoneminder.fqdn.fr/htdocs/includes/logger.php on line 444

Fatal error: Can't write to log file '/tmp/zm/zm_debug.log.11617': error_log(/tmp/zm/zm_debug.log.11617): failed to open stream: No such file or directory @ /var/www/zoneminder.fqdn.fr/htdocs/includes/logger.php/444 in /var/www/zoneminder.fqdn.fr/htdocs/includes/logger.php on line 449

and :

27/09/2014 13:09:22.690039 zmdc[13320].FAT [Can't execute log entry 'insert into Logs ( TimeKey, Component, Pid, Level, Code, Message, File, Line ) values ( ?, ?, ?, ?, ?, ?, ?, NULL )': ]

But apache:apache (user/group) have good right on thoses folder...
chmod 0775 /var/log/zm
chmod 0775 /tmp/zm
chmod 0755 /run/zm

i don't understand...

@christophey2k christophey2k changed the title hi all, i'm under linux gentoo systemd hi all, i'm under Linux Gentoo with systemd - ZM v1.27.99.0 Sep 27, 2014
@SteveGilvarry
Copy link
Member

@christophey2k Sounds like you have resolved this issue? Based on #841 you having issues with cameras now, so I am going to close this call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants