zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Forum for questions and support relating to the 1.30.x releases only.
Locked
User avatar
emailej
Posts: 21
Joined: Wed Aug 24, 2016 12:31 am

zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by emailej »

I'm not sure if the recent build for suse tumbleweed with php7 has some bugs but the zm service fails to start after a fresh install. System details: (OpenSuse Tumbleweed, 4.16.12-1-default #1 SMP PREEMPT Fri May 25 18:40:19 UTC 2018 (39c7522) x86_64 x86_64 x86_64 GNU/Linux)

I did the install following the wiki https://wiki.zoneminder.com/Installing_ ... s_for_SuSE, and "Installation of ZoneMinder using YaST" and the package from Project home:Monex:stable, ZoneMinder-1.30.4-2.1.x86_64.rpm.

Mysql and apache2 setup goes fine and running "zm_database_init" seems to work as expected and a "zm" sql database is created. However when I run (as root)

# systemctl start zm.service I get:

Job for zm.service failed because the service did not take the steps required by its unit configuration.
See "systemctl status zm.service" and "journalctl -xe" for details.

Output of # "systemctl status zm.service" and "journalctl -xe" are shown below.

I can access the zm console @ http://localhost/zm/index.php and would be happy to provide any logs or other output that might help resolve this issue. Please let me know if there is anything I can do.

Thanks!

Eric

Code: Select all

localhost:/home/ej # systemctl status zm.service
● zm.service - ZoneMinder Video Surveillance System
   Loaded: loaded (/usr/lib/systemd/system/zm.service; disabled; vendor preset: disabled)
   Active: failed (Result: protocol) since Mon 2018-06-04 17:58:05 PDT; 5s ago
  Process: 4036 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)

Jun 04 17:58:04 localhost.localdomain sudo[4109]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmc -m 1
Jun 04 17:58:04 localhost.localdomain sudo[4113]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmfilter.pl
Jun 04 17:58:04 localhost.localdomain sudo[4119]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmaudit.pl -c
Jun 04 17:58:05 localhost.localdomain sudo[4124]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmwatch.pl
Jun 04 17:58:05 localhost.localdomain sudo[4132]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmupdate.pl -c
Jun 04 17:58:05 localhost.localdomain sudo[4138]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmtelemetry.pl
Jun 04 17:58:05 localhost.localdomain systemd[1]: zm.service: New main PID 4070 does not belong to service, and PID file is not owned by root. Refusing.
Jun 04 17:58:05 localhost.localdomain systemd[1]: zm.service: New main PID 4070 does not belong to service, and PID file is not owned by root. Refusing.
Jun 04 17:58:05 localhost.localdomain systemd[1]: zm.service: Failed with result 'protocol'.
Jun 04 17:58:05 localhost.localdomain systemd[1]: Failed to start ZoneMinder Video Surveillance System.

Code: Select all

# journalctl -xe
-- Unit session-c35.scope has finished starting up.
-- 
-- The start-up result is RESULT.
Jun 05 17:21:26 localhost.localdomain sudo[28856]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
Jun 05 17:21:26 localhost.localdomain zmdc[28862]: INF ['zmwatch.pl' started at 18/06/05 17:21:26]
Jun 05 17:21:26 localhost.localdomain zmdc[28821]: INF ['zmwatch.pl' starting at 18/06/05 17:21:26, pid = 28862]
Jun 05 17:21:26 localhost.localdomain sudo[28856]: pam_unix(sudo:session): session closed for user wwwrun
Jun 05 17:21:26 localhost.localdomain sudo[28864]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmupdate.pl -c
Jun 05 17:21:26 localhost.localdomain systemd[1]: Started Session c36 of user wwwrun.
-- Subject: Unit session-c36.scope has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-c36.scope has finished starting up.
-- 
-- The start-up result is RESULT.
Jun 05 17:21:26 localhost.localdomain sudo[28864]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
Jun 05 17:21:26 localhost.localdomain zmwatch[28862]: INF [Watchdog starting]
Jun 05 17:21:26 localhost.localdomain zmwatch[28862]: INF [Watchdog pausing for 30 seconds]
Jun 05 17:21:26 localhost.localdomain zmdc[28868]: INF ['zmupdate.pl -c' started at 18/06/05 17:21:26]
Jun 05 17:21:26 localhost.localdomain zmdc[28821]: INF ['zmupdate.pl -c' starting at 18/06/05 17:21:26, pid = 28868]
Jun 05 17:21:26 localhost.localdomain sudo[28864]: pam_unix(sudo:session): session closed for user wwwrun
Jun 05 17:21:26 localhost.localdomain sudo[28870]:     root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmtelemetry.pl
Jun 05 17:21:26 localhost.localdomain systemd[1]: Started Session c37 of user wwwrun.
-- Subject: Unit session-c37.scope has finished start-up
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-c37.scope has finished starting up.
-- 
-- The start-up result is RESULT.
Jun 05 17:21:26 localhost.localdomain sudo[28870]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
Jun 05 17:21:26 localhost.localdomain zmupdate[28868]: INF [Checking for updates]
Jun 05 17:21:26 localhost.localdomain zmdc[28874]: INF ['zmtelemetry.pl' started at 18/06/05 17:21:26]
Jun 05 17:21:26 localhost.localdomain zmdc[28821]: INF ['zmtelemetry.pl' starting at 18/06/05 17:21:26, pid = 28874]
Jun 05 17:21:26 localhost.localdomain sudo[28870]: pam_unix(sudo:session): session closed for user wwwrun
Jun 05 17:21:26 localhost.localdomain systemd[1]: zm.service: New main PID 28821 does not belong to service, and PID file is not owned by root. Refusing.
Jun 05 17:21:26 localhost.localdomain systemd[1]: zm.service: New main PID 28821 does not belong to service, and PID file is not owned by root. Refusing.
Jun 05 17:21:26 localhost.localdomain systemd[1]: zm.service: Failed with result 'protocol'.
Jun 05 17:21:26 localhost.localdomain systemd[1]: Failed to start ZoneMinder Video Surveillance System.
-- Subject: Unit zm.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit zm.service has failed.
-- 
-- The result is RESULT.
Jun 05 17:21:26 localhost.localdomain zmtelemetry[28874]: INF [Collecting data to send to ZoneMinder Telemetry server.]
Jun 05 17:21:27 localhost.localdomain zmupdate[28868]: INF [Got version: '1.30.0']
Jun 05 17:21:27 localhost.localdomain zmtelemetry[28874]: INF [Sending data to ZoneMinder Telemetry server.]
Jun 05 17:21:27 localhost.localdomain zmtelemetry[28874]: INF [Telemetry data uploaded successfully.]
Jun 05 17:23:00 localhost.localdomain kdeinit5[2545]: ()
Jun 05 17:23:00 localhost.localdomain kdeinit5[2545]: ("/home/ej/Programs/serviio/serviio-1.9.1/library/db/log/log1485.dat")
Jun 05 17:23:00 localhost.localdomain kdeinit5[2545]: ()
Jun 05 17:23:06 localhost.localdomain kdeinit5[2545]: ()
Jun 05 17:23:06 localhost.localdomain kdeinit5[2545]: ("/home/ej/Programs/serviio/serviio-1.9.1/library/db/log/log1485.dat")
Jun 05 17:23:06 localhost.localdomain kdeinit5[2545]: ()
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by rockedge »

there seems to be a conflict between the user (i.e. www-data) of the web server (wwwrun) and the user assigned to zoneminder.
User avatar
emailej
Posts: 21
Joined: Wed Aug 24, 2016 12:31 am

Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by emailej »

As far as I can tell all the file permissions look ok (compared to those on working zoneminder install on OpenSuse 42.3). The one thing that looks different on tumbleweed is user "wwwrun" has primary group as "wwwrun" where that "wwwrun" group doesn't exist on 42.3. In any case tumbleweed user "wwwrun" is a member of other group "www" which seems like it should be ok.

I tried removing group "wwwrun" and making "www" the primary group (to match the setup on 42.3) but that did not resolve the issue.

I'm not sure what else to check. Any suggestions?

Thanks!
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by bbunge »

emailej wrote: Tue Jun 12, 2018 12:20 am I'm not sure what else to check. Any suggestions?

Thanks!
Switch to Ubuntu?
User avatar
emailej
Posts: 21
Joined: Wed Aug 24, 2016 12:31 am

Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by emailej »

Very funny! Not a Ubuntu fan and that's not helpful at all. :P

Anyone have any real suggestions I'd greatly appreciate.

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

Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by knight-of-ni »

Have you tried to contact the OpenSuse rpm package maintainer?
Monex is the only one I know who can speak specifically to zoneminder on opensuse.
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/
User avatar
emailej
Posts: 21
Joined: Wed Aug 24, 2016 12:31 am

Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x64

Post by emailej »

knight-of-ni wrote: Tue Jun 12, 2018 8:09 pm Have you tried to contact the OpenSuse rpm package maintainer?
Monex is the only one I know who can speak specifically to zoneminder on opensuse.
I've submitted a bug to Monex (https://bugzilla.opensuse.org/show_bug.cgi?id=1097304).

FYI there seems to be an additional community package maintainer for Opensuse now; ecsos (https://build.opensuse.org/package/show ... ZoneMinder) but I've been using Monex package.

Thanks!
User avatar
emailej
Posts: 21
Joined: Wed Aug 24, 2016 12:31 am

Resolved! Re: zm service fails to start after fresh install; ZoneMinder-1.30.4-2.1.x86_64.rpm on OpenSuse Tumbleweed x6

Post by emailej »

Hello just wanted to confirm that the issue has been resolved in latest Monex release (ZoneMinder-1.30.4-3.1.x86_64.rpm 13-Jun-2018 19:35). Thanks to Dirk (Monex) for quick responce to bug report (https://bugzilla.opensuse.org/show_bug.cgi?id=1097304).

Now if I can just get ffmpeg not being detected issue fixed - see topic viewtopic.php?f=36&t=27317
Locked