Debian sid fail to start service.

Forum for questions and support relating to the 1.28.x releases only.
Locked
imoldovan
Posts: 5
Joined: Sat Nov 08, 2014 7:31 pm

Debian sid fail to start service.

Post by imoldovan »

I am trying to install Zoneminder from the debian sid repositories on a debian sid machine.

root@basmnt:/etc/init.d# uname -a
Linux basmnt 3.14-2-686-pae #1 SMP Debian 3.14.15-2 (2014-08-09) i686 GNU/Linux

I get the following error when zoneminder service is trying to start.

root@basmnt:/etc/init.d# /etc/init.d/zoneminder start
[....] Starting zoneminder (via systemctl): zoneminder.serviceJob for zoneminder
.service failed. See 'systemctl status zoneminder.service' and 'journalctl -xn' for details.
failed!

root@basmnt:/etc/init.d# systemctl status zoneminder.service -l
â zoneminder.service - LSB: Control ZoneMinder as a Service
Loaded: loaded (/etc/init.d/zoneminder)
Active: failed (Result: timeout) since Thu 2014-12-04 13:09:43 EST; 44min ago
Process: 20649 ExecStart=/etc/init.d/zoneminder start (code=killed, signal=TERM)
Dec 04 13:04:43 basmnt zmpkg[20651]: INF [Command: start]
Dec 04 13:04:43 basmnt pkexec[20657]: pam_unix(polkit-1:session): session opened for user root by (uid=0)
Dec 04 13:09:43 basmnt systemd[1]: zoneminder.service start operation timed out. Terminating.
Dec 04 13:09:43 basmnt systemd[1]: Failed to start LSB: Control ZoneMinder as a Service.
Dec 04 13:09:43 basmnt systemd[1]: Unit zoneminder.service entered failed state.
Dec 04 13:09:43 basmnt zoneminder[20649]: Starting ZoneMinder: Job for zoneminder.service failed. See 'systemctl status zoneminder.service' and 'journalctl -xn' for details.

root@basmnt:/etc/init.d# journalctl -xn
-- Logs begin at Tue 2014-12-02 20:26:46 EST, end at Thu 2014-12-04 13:55:11 EST. --
Dec 04 13:55:03 basmnt sshd[20964]: Received disconnect from xxxxxx 11: [preauth]
Dec 04 13:55:03 basmnt sshd[20964]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh
Dec 04 13:55:09 basmnt sshd[20966]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=
Dec 04 13:55:09 basmnt sshd[20966]: pam_winbind(sshd:auth): getting password (0x00000388)
Dec 04 13:55:09 basmnt sshd[20966]: pam_winbind(sshd:auth): pam_get_item returned a password
Dec 04 13:55:09 basmnt sshd[20966]: pam_winbind(sshd:auth): request wbcLogonUser failed: WBC_ERR_AUTH
Dec 04 13:55:11 basmnt sshd[20966]: Failed password for root from xxxxxxxx port 40639 ssh2
Dec 04 13:55:11 basmnt sshd[20966]: pam_winbind(sshd:auth): getting password (0x00000388)
Dec 04 13:55:11 basmnt sshd[20966]: pam_winbind(sshd:auth): pam_get_item returned a password
Dec 04 13:55:11 basmnt sshd[20966]: pam_winbind(sshd:auth): request wbcLogonUser failed: WBC_ERR_AUTH
lines 1-11/11 (END)

I hope some of this information helps. I don't see a log under /var/log/tmp.

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

Re: Debian sid fail to start service.

Post by knight-of-ni »

The root cause of this problem is that you are trying to start zoneminder in a systemd environment using the old sys v init script. Not your fault. That is the way zoneminder was packaged in Debian, apparently.

You can fix your particular system by deleting the old init script from /etc/init.d and then install a zoneminder.service file as documented here:
http://www.zoneminder.com/wiki/index.ph ... se_systemd

You will also need to follow the steps for creating a tmpfile.d config file as well.
Skip the parts that deal with enabling systemd since it has already been enabled in Debian.
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/
imoldovan
Posts: 5
Joined: Sat Nov 08, 2014 7:31 pm

Re: Debian sid fail to start service.

Post by imoldovan »

Got it running. I did get an error about not being able to create the /var/run/zm directory, so I did that manually, and then set the ownership and file permissions. I have not hooked up any cameras yet, but it seems to be working fine. Thank you.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Debian sid fail to start service.

Post by knight-of-ni »

imoldovan wrote:Got it running. I did get an error about not being able to create the /var/run/zm directory, so I did that manually, and then set the ownership and file permissions. I have not hooked up any cameras yet, but it seems to be working fine. Thank you.
Follow the instructions for creating a proper config file in the tmpfiles.d folder, and you won't get an error about the missing /var/run/zm folder (hint: it gets deleted after each reboot so manually creating the folder is not sufficient).
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/
imoldovan
Posts: 5
Joined: Sat Nov 08, 2014 7:31 pm

Re: Debian sid fail to start service.

Post by imoldovan »

I thought I did follow step 8. and 9. about creating the file and change the permission, but I cant confirm that because I just lost my ssh connection to the box when I was messing with the grub config.( long story :)) . I will have to do that when I get home. Thank's a bunch.
imoldovan
Posts: 5
Joined: Sat Nov 08, 2014 7:31 pm

Re: Debian sid fail to start service.

Post by imoldovan »

Thank you for your help. The service starts with no error messages, and it shows that is is running in the localhost/zm page.

root@basmnt:/var/log/apache2# ps -ely | grep zm
S 33 13384 1 0 80 0 8860 6947 - ? 00:00:01 zmdc.pl
S 33 13409 13384 0 80 0 15464 8231 - ? 00:00:00 zmfilter.pl
S 33 13413 13384 0 80 0 9924 6866 - ? 00:00:00 zmaudit.pl
S 33 13417 13384 0 80 0 8876 6580 - ? 00:00:00 zmwatch.pl


Now there is another problem. When I click on "Add New Monitor" button I get nothing. No popup window. Same with "Filters" button. Also "Options" and "log" instead of a popup I get a page change, no popup. Am I missing some package?. I do have default-jre package installed. Using XFCE on Debian Sid.
Thank you,
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Debian sid fail to start service.

Post by knight-of-ni »

Do you have a popup blocker turned on?

As always, check your log files for issues. Make sure you check the apache log as well
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/
imoldovan
Posts: 5
Joined: Sat Nov 08, 2014 7:31 pm

Re: Debian sid fail to start service.

Post by imoldovan »

Popup blocker is disabled. I checked it at popuptest.com. I don't see anything suspicious in the log files. I even tried to connect to it from another computer and get the same problem. I checked the apache2 for php, ajp mods and they are enabled. I am running out of ideas. Could this be an apache2 problem? or maybe a user privilege problem. What groups should zmuser be part of?
Locked