Failure to spawn leads to multiple failure in service?
Posted: Thu Jan 25, 2018 10:57 pm
Good evening,
this is my first post and I hope I am not repeating things already said, but a search of the forum did not yield results.
I did follow the install instructions in the wiki at
https://wiki.zoneminder.com/Debian_9_64 ... der_1.30.4
and I am on debian and installing 1.30.4
All went well but at the end of the install of zoneminder I get
---<snip>------
Selecting previously unselected package zoneminder.
(Reading database ... 24217 files and directories currently installed.)
Preparing to unpack .../zoneminder_2%3a1.30.4-dmo1+deb9u1_amd64.deb ...
Unpacking zoneminder (2:1.30.4-dmo1+deb9u1) ...
Setting up zoneminder (2:1.30.4-dmo1+deb9u1) ...
apache2_invoke: Enable configuration zoneminder
Processing triggers for systemd (232-25+deb9u1) ...
FATAL -> Failed to fork.
root@zoneminder:/home/fabio#
---------<snip>------------
apparently though everything works because I get into the web page I can add a monitor but then something crashes as follows:
------<snip>--------------
* zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-01-25 22:45:50 UTC; 7s ago
Process: 4385 ExecStop=/usr/bin/zmpkg.pl stop (code=exited, status=1/FAILURE)
Main PID: 2023 (code=exited, status=255)
Jan 25 22:45:48 zoneminder zmpkg[4385]: INF [Command: stop]
Jan 25 22:45:49 zoneminder su[4394]: Successful su for www-data by root
Jan 25 22:45:49 zoneminder su[4394]: + ??? root:www-data
Jan 25 22:45:49 zoneminder su[4394]: pam_unix(su:session): session opened for user www-data by (uid=0)
Jan 25 22:45:49 zoneminder su[4399]: Successful su for www-data by root
Jan 25 22:45:49 zoneminder su[4399]: + ??? root:www-data
Jan 25 22:45:49 zoneminder su[4399]: pam_unix(su:session): session opened for user www-data by (uid=0)
Jan 25 22:45:50 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited status=1
Jan 25 22:45:50 zoneminder systemd[1]: zoneminder.service: Unit entered failed state.
Jan 25 22:45:50 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-----------<snip>------------------
Then after adding a monitor I am unable to display the strea.
I am no sure this is related to the perl error (not sure what the crashing module does) and if the problem is related to the failure to fork during install.
Any suggestions? Or pointers on how to better identify the issue?
Journalctl -xe reurns:
----------------<snip>----------
-- Unit zoneminder.service has begun starting up.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysq
ld/mysqld.sock' (111 "Connection refused") at /usr/share/perl5/ZoneMinder/Config.pm line 106.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: Compilation failed in require at /usr/bin/zmpkg.pl line 48.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
Jan 25 20:50:13 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Jan 25 20:50:13 zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: Unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit zoneminder.service has failed.
--
-- The result is failed.
Jan 25 20:50:13 zoneminder systemd[1]: zoneminder.service: Unit entered failed state.
Jan 25 20:50:13 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-----------<snip>-----------
Thanks for any help
Fabio
this is my first post and I hope I am not repeating things already said, but a search of the forum did not yield results.
I did follow the install instructions in the wiki at
https://wiki.zoneminder.com/Debian_9_64 ... der_1.30.4
and I am on debian and installing 1.30.4
All went well but at the end of the install of zoneminder I get
---<snip>------
Selecting previously unselected package zoneminder.
(Reading database ... 24217 files and directories currently installed.)
Preparing to unpack .../zoneminder_2%3a1.30.4-dmo1+deb9u1_amd64.deb ...
Unpacking zoneminder (2:1.30.4-dmo1+deb9u1) ...
Setting up zoneminder (2:1.30.4-dmo1+deb9u1) ...
apache2_invoke: Enable configuration zoneminder
Processing triggers for systemd (232-25+deb9u1) ...
FATAL -> Failed to fork.
root@zoneminder:/home/fabio#
---------<snip>------------
apparently though everything works because I get into the web page I can add a monitor but then something crashes as follows:
------<snip>--------------
* zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2018-01-25 22:45:50 UTC; 7s ago
Process: 4385 ExecStop=/usr/bin/zmpkg.pl stop (code=exited, status=1/FAILURE)
Main PID: 2023 (code=exited, status=255)
Jan 25 22:45:48 zoneminder zmpkg[4385]: INF [Command: stop]
Jan 25 22:45:49 zoneminder su[4394]: Successful su for www-data by root
Jan 25 22:45:49 zoneminder su[4394]: + ??? root:www-data
Jan 25 22:45:49 zoneminder su[4394]: pam_unix(su:session): session opened for user www-data by (uid=0)
Jan 25 22:45:49 zoneminder su[4399]: Successful su for www-data by root
Jan 25 22:45:49 zoneminder su[4399]: + ??? root:www-data
Jan 25 22:45:49 zoneminder su[4399]: pam_unix(su:session): session opened for user www-data by (uid=0)
Jan 25 22:45:50 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited status=1
Jan 25 22:45:50 zoneminder systemd[1]: zoneminder.service: Unit entered failed state.
Jan 25 22:45:50 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-----------<snip>------------------
Then after adding a monitor I am unable to display the strea.
I am no sure this is related to the perl error (not sure what the crashing module does) and if the problem is related to the failure to fork during install.
Any suggestions? Or pointers on how to better identify the issue?
Journalctl -xe reurns:
----------------<snip>----------
-- Unit zoneminder.service has begun starting up.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Can't connect to local MySQL server through socket '/var/run/mysq
ld/mysqld.sock' (111 "Connection refused") at /usr/share/perl5/ZoneMinder/Config.pm line 106.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 129.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: Compilation failed in require at /usr/bin/zmpkg.pl line 48.
Jan 25 20:50:13 zoneminder zmpkg.pl[1585]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
Jan 25 20:50:13 zoneminder systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Jan 25 20:50:13 zoneminder systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: Unit zoneminder.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit zoneminder.service has failed.
--
-- The result is failed.
Jan 25 20:50:13 zoneminder systemd[1]: zoneminder.service: Unit entered failed state.
Jan 25 20:50:13 zoneminder systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-----------<snip>-----------
Thanks for any help
Fabio