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
Comments
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: |
Thanks for that, i adapt the unit file (httpd.service --> apache2.service) for me weblog: and systemd log: sept. 11 21:06:19 cassiopee zma_m1[20551]: INF [PISCINE-FI8620: 4000 - Processing at 24.39 fps] and apache2 status : ● apache2.service - The Apache HTTP Server sept. 10 19:45:25 cassiopee pkexec[21431]: pam_unix(polkit-1:session): session opened for user root by (uid=81) |
"Can't Bind" means zoneminder was unable to create a socket.
|
|
ok i try ● zoneminder.service - ZoneMinder CCTV recording and security system sept. 11 21:53:32 cassiopee zmc_m2[6336]: INF [SALON-FI9821W-V1: 2000 - Capturing at 10.87 fps] systemd zoneminder say it capturing but haven't got any files in /zm/tmp |
Add a line like this to your zoneminder.service file: 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:
|
Hi, and thanks for your help. 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 // # rm -R /tmp/zm // # rm -R /run/zm // # systemctl disable zoneminder.status ZoneMinder systemd unit fileThis file is intended to work with Gentoo Linux distribution[Unit] [Service] [Install] sept. 14 16:19:45 cassiopee zmc[2509]: Failed to change source AR 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 |
Suggestion 1You 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:
Once you've rebuilt, move on to the next suggestion if you are still experiencing an issue. Suggestion 2Your 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. |
thanks for cmake ending point and ZM_RUNDIR .... i think i try to remove my database to do a full fresh reinstall |
After a full reinstall with empty db and no camera the web interface do not start ... stay stopped systemd say : sept. 14 21:31:11 cassiopee zmdc[13727]: INF ['zmaudit.pl -c' starting at 14/09/14 21:31:11, pid = 13761] 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 ... |
Hello, ZoneMinder version 1.27.99.0 do not start (web gui) have permanently this error on the web interface (debug enabled) : 0 Monitors 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... i don't understand... |
@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. |
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
The text was updated successfully, but these errors were encountered: