Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Installing zoneminder

  1. #1

    Default Installing zoneminder

    I'm trying to install zoneminder based upon the rpm's available on http://www.liquid-co.de/pub/suse/repositories/12.1/

    When I run rczm start, I get the following error:

    redirecting to systemctl start zm
    Job for zm.service failed. See 'systemctl status zm.service' and 'journalctl -n' for details.

    zm.service - ZoneMinder Video Surveillance System
    Loaded: loaded (/usr/lib/systemd/system/zm.service; disabled)
    Active: failed (Result: resources) since Wed, 2014-06-04 21:42:16 CEST; 7min ago
    Process: 2667 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
    CGroup: name=systemd:/system/zm.service

    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2712]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmfilter.pl
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2712]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2720]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmaudit.pl -c
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2720]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2730]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmwatch.pl
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2730]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2744]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl start zmupdate.pl -c
    Jun 04 21:42:15 zzzzzz.xxxxxxx sudo[2744]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 04 21:42:16 zzzzzz.xxxxxxx systemd[1]: Failed to start ZoneMinder Video Surveillance System.
    Jun 04 21:42:16 zzzzzz.xxxxxxx systemd[1]: Unit zm.service entered failed state

    What could be the issue?

    Tx - Ivan

  2. #2
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing zoneminder

    On 2014-06-04 21:56, eulaersivan wrote:
    >
    > I'm trying to install zoneminder based upon the rpm's available on
    > http://www.liquid-co.de/pub/suse/repositories/12.1/


    But you probably can not install a 12.1 service into 13.1, the later
    uses systemd. And probably more issues.


    > When I run rczm start, I get the following error:
    >
    > redirecting to systemctl start zm
    > Job for zm.service failed. See 'systemctl status zm.service' and
    > 'journalctl -n' for details.


    A comment: when pasting computer commands and such, please use a CODE
    BLOCK, so that the forum software doesn't do silly things like
    converting URLS to tiny urls, parenthesis into smileys, or otherwise
    hide or alter the commands you entered. You get them by clicking on the
    '#' button in the forum editor.
    See photo



    Code:
    
    > Jun 04 21:42:16 zzzzzz.xxxxxxx systemd[1]: Failed to start ZoneMinder Video Surveillance System.
    > Jun 04 21:42:16 zzzzzz.xxxxxxx systemd[1]: Unit zm.service entered failed state
    The actual reason is not there.

    Did you “See 'systemctl status zm.service' and 'journalctl -n' for
    details”, as the output said?

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  3. #3

    Default Re: Installing zoneminder

    I too have had problems, and I wonder if the OP is getting that far!

    My system is 13.1 (x64) and I've tried both the ZoneMinder RPMS from the opensuse repo, and the ZoneMinder-MP packages.

    My first problem was I tried this ages ago, it didn't work, I got side-tracked and am then coming back to it months later. This machine has also been upgraded since 11.x vintage, and I had a previous configuration of apache that was adapted from an old redhat instance of a site.

    Following http://www.zoneminder.com/wiki/index..._RPMs_for_SuSE the sequence seems to be

    1 install zoneminder packages & dependencies
    2 start mysql
    3 start apache
    4 configure mysql running instance
    5 initialise zoneminder
    6 configure zoneminder

    I first got stuck at 2, I think the previous mysql install was broken somehow. I did a 'zypper in --force mysql-community-server' and that allowed 'systemctl start mysql.service' to then work.

    Now I'm stuck at 3.

    'systemctl start apache2.service' fails, using 'systemctl status apache2.service' shows:

    Code:
    Jun 05 16:36:26 chunk start_apache2[30692]: AH00526: Syntax error on line 3 of /etc/apache2/conf.d/zm.conf:Jun 05 16:36:26 chunk start_apache2[30692]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a modu...ration
    Jun 05 16:36:26 chunk systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
    Jun 05 16:36:27 chunk start_apache2[30710]: AH00526: Syntax error on line 3 of /etc/apache2/conf.d/zm.conf:
    Jun 05 16:36:27 chunk start_apache2[30710]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a modu...ration
    Jun 05 16:36:27 chunk systemd[1]: apache2.service: control process exited, code=exited status=1
    Jun 05 16:36:27 chunk systemd[1]: Failed to start The Apache Webserver.
    Jun 05 16:36:27 chunk systemd[1]: Unit apache2.service entered failed state.
    but I reinstalled apache2-mod_php5-5.4.20-4.1.x86_64 just yesterday.

    opensuse and packman versions of zm.conf are the same. I don't know anything about php, so the apache dependencies are a bit of mystery and are next to be investigated.

    Daniel

  4. #4

    Default Re: Installing zoneminder

    1 install zoneminder packages & dependencies
    2 start mysql
    3 start apache
    4 configure mysql running instance
    5 initialise zoneminder
    6 configure zoneminder
    My system is running OpenSuse 12.3 command line based and I've used the rpm's available http://www.liquid-co.de/pub/suse/repositories/12.3/ .
    I've gone through all these steps up till step 6. Zoneminder is installed, mysql is started, apache is started, mysql is a running instance and zoneminder is initialised. The zoneminder tables are created in mysql and using the zoneminder account and password available in /etc/zm.conf I can connect to mysql and the appropriate tables.

    Did you “See 'systemctl status zm.service' and 'journalctl -n' for
    details”, as the output said?
    Running "rczm start" provides the following output
    Code:
    myserver:~ # rczm start
    redirecting to systemctl  start zm
    Job for zm.service failed. See 'systemctl status zm.service' and 'journalctl -n' for details.
    
    myserver:~ # systemctl status zm.service
    zm.service - ZoneMinder Video Surveillance System
          Loaded: loaded (/usr/lib/systemd/system/zm.service; disabled)
          Active: failed (Result: exit-code) since Sat, 2014-06-07 06:58:27 CEST; 8s ago
         Process: 12798 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/zm.service
    
    Jun 07 06:58:26 myserver.mydomain.com systemd[1]: Starting ZoneMinder Video Surveillance System...
    Jun 07 06:58:27 myserver.mydomain.com zmpkg[12798]: INF [Command: start]
    Jun 07 06:58:27 myserver.mydomain.com sudo[12804]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/bin/true
    Jun 07 06:58:27 myserver.mydomain.com sudo[12804]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 06:58:27 myserver.mydomain.com sudo[12807]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl check
    Jun 07 06:58:27 myserver.mydomain.com sudo[12807]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 06:58:27 myserver.mydomain.com systemd[1]: Failed to start ZoneMinder Video Surveillance System.
    Jun 07 06:58:27 myserver.mydomain.com systemd[1]: Unit zm.service entered failed state
    
    myserver:~ # journalctl -n
    -- Logs begin at Thu, 2014-06-05 08:52:45 CEST, end at Sat, 2014-06-07 07:01:35 CEST. --
    Jun 07 07:01:35 myserver.mydomain.com zmpkg[13019]: INF [Command: start]
    Jun 07 07:01:35 myserver.mydomain.com sudo[13025]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/bin/true
    Jun 07 07:01:35 myserver.mydomain.com sudo[13025]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 07:01:35 myserver.mydomain.com sudo[13025]: pam_unix(sudo:session): session closed for user wwwrun
    Jun 07 07:01:35 myserver.mydomain.com sudo[13028]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl check
    Jun 07 07:01:35 myserver.mydomain.com sudo[13028]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 07:01:35 myserver.mydomain.com sudo[13028]: pam_unix(sudo:session): session closed for user wwwrun
    Jun 07 07:01:35 myserver.mydomain.com systemd[1]: zm.service: control process exited, code=exited status=1
    Jun 07 07:01:35 myserver.mydomain.com systemd[1]: Failed to start ZoneMinder Video Surveillance System.
    Jun 07 07:01:35 myserver.mydomain.com systemd[1]: Unit zm.service entered failed state

    However ....
    Code:
    myserver:/etc/init.d # /usr/bin/perl -T /usr/bin/zmpkg.pl status
    running
    When I go to http://myserver/zm I get a running webpage (but not yet a camera view). So is this correctly installed, or not?

    Any help is much appreciated !!

    Ivan

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,307
    Blog Entries
    2

    Default Re: Installing zoneminder

    Quote Originally Posted by eulaersivan View Post
    My system is running OpenSuse 12.3 command line based and I've used the rpm's available http://www.liquid-co.de/pub/suse/repositories/12.3/ .
    I've gone through all these steps up till step 6. Zoneminder is installed, mysql is started, apache is started, mysql is a running instance and zoneminder is initialised. The zoneminder tables are created in mysql and using the zoneminder account and password available in /etc/zm.conf I can connect to mysql and the appropriate tables.



    Running "rczm start" provides the following output
    Code:
    myserver:~ # rczm start
    redirecting to systemctl  start zm
    Job for zm.service failed. See 'systemctl status zm.service' and 'journalctl -n' for details.
    
    myserver:~ # systemctl status zm.service
    zm.service - ZoneMinder Video Surveillance System
          Loaded: loaded (/usr/lib/systemd/system/zm.service; disabled)
          Active: failed (Result: exit-code) since Sat, 2014-06-07 06:58:27 CEST; 8s ago
         Process: 12798 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
          CGroup: name=systemd:/system/zm.service
    
    Jun 07 06:58:26 myserver.mydomain.com systemd[1]: Starting ZoneMinder Video Surveillance System...
    Jun 07 06:58:27 myserver.mydomain.com zmpkg[12798]: INF [Command: start]
    Jun 07 06:58:27 myserver.mydomain.com sudo[12804]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/bin/true
    Jun 07 06:58:27 myserver.mydomain.com sudo[12804]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 06:58:27 myserver.mydomain.com sudo[12807]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl check
    Jun 07 06:58:27 myserver.mydomain.com sudo[12807]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 06:58:27 myserver.mydomain.com systemd[1]: Failed to start ZoneMinder Video Surveillance System.
    Jun 07 06:58:27 myserver.mydomain.com systemd[1]: Unit zm.service entered failed state
    
    myserver:~ # journalctl -n
    -- Logs begin at Thu, 2014-06-05 08:52:45 CEST, end at Sat, 2014-06-07 07:01:35 CEST. --
    Jun 07 07:01:35 myserver.mydomain.com zmpkg[13019]: INF [Command: start]
    Jun 07 07:01:35 myserver.mydomain.com sudo[13025]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/bin/true
    Jun 07 07:01:35 myserver.mydomain.com sudo[13025]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 07:01:35 myserver.mydomain.com sudo[13025]: pam_unix(sudo:session): session closed for user wwwrun
    Jun 07 07:01:35 myserver.mydomain.com sudo[13028]: root : TTY=unknown ; PWD=/srv/www/htdocs/zm ; USER=wwwrun ; COMMAND=/usr/bin/zmdc.pl check
    Jun 07 07:01:35 myserver.mydomain.com sudo[13028]: pam_unix(sudo:session): session opened for user wwwrun by (uid=0)
    Jun 07 07:01:35 myserver.mydomain.com sudo[13028]: pam_unix(sudo:session): session closed for user wwwrun
    Jun 07 07:01:35 myserver.mydomain.com systemd[1]: zm.service: control process exited, code=exited status=1
    Jun 07 07:01:35 myserver.mydomain.com systemd[1]: Failed to start ZoneMinder Video Surveillance System.
    Jun 07 07:01:35 myserver.mydomain.com systemd[1]: Unit zm.service entered failed state

    However ....
    Code:
    myserver:/etc/init.d # /usr/bin/perl -T /usr/bin/zmpkg.pl status
    running
    When I go to http://myserver/zm I get a running webpage (but not yet a camera view). So is this correctly installed, or not?

    Any help is much appreciated !!

    Ivan
    According to what you posted, it should not be surprising that you can see a webpage but not a camera view...
    The error describes an authentication issue running zoneminder but not a problem running your webserver (my guess would be apache).

    Where did you install zoneminder from and what documentation did you follow to install and configure?
    ie. Did you install from source or an rpm package, and from what repository? My guess is that it's a package because it looks like a systemd Unit file was created and configured, but somewhere there is an error configuring permissions.

    If you know the package name, you can post the results of the following which describes where the package is from, its version and more.
    Code:
    zypper info packagename  

    TSU

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing zoneminder

    On 2014-06-07 09:06, tsu2 wrote:
    > Did you install from source or an rpm package, and from what
    > repository?


    He posted the repository link already :-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing zoneminder

    On 2014-06-07 07:26, eulaersivan wrote:



    Code:
    
    >   myserver:~ # systemctl status zm.service
    >   zm.service - ZoneMinder Video Surveillance System
    >   Loaded: loaded (/usr/lib/systemd/system/zm.service; disabled)
    >   Active: failed (Result: exit-code) since Sat, 2014-06-07 06:58:27 CEST; 8s ago
    >   Process: 12798 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
    >   CGroup: name=systemd:/system/zm.service
    I think that the most important info is there, that the program
    "/usr/bin/zmpkg.pl" existed with code "1". But I don't know what that
    means, there is no textual info.

    As a result, zm.service fails.

    I wonder if there is more information in syslog (/var/log/messages), or
    if zoneminder keeps its own log file, so you will have to read its
    documentation, or wait till somebody appears who has used that program.

    I would try "ls -ltr /var/log" to locate which are the last modified log
    files, and have a look at all of those, to see if anyone pertains to zm.
    Of course, just after attempting to start it.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,307
    Blog Entries
    2

    Default Re: Installing zoneminder

    Did you read and follow the official zoneminder documentation?
    http://www.zoneminder.com/wiki/index..._RPMs_for_SuSE

    As I described, your error log clearly describes a PAM (Pluggable Authentication Module) error which means that some security context is incorrect. Maybe your MySQL credentials aren't setup properly. Maybe your app itself is supposed to be run only manually when you are logged in with an account with sufficient permissions like root, I don't know enough about the app to know how it is designed to work.

    But, in general when an app implements PAM, its security is integrated with another security database somewhere... It might be the system's own security, it might be network security, it might be something else.

    TSU

  9. #9

    Default Re: Installing zoneminder

    Quote Originally Posted by dmsmd View Post
    I too have had problems, and I wonder if the OP is getting that far! My system is 13.1 (x64) and I've tried both the ZoneMinder RPMS from the opensuse repo, and the ZoneMinder-MP packages. My first problem was I tried this ages ago, it didn't work, I got side-tracked and am then coming back to it months later. This machine has also been upgraded since 11.x vintage, and I had a previous configuration of apache that was adapted from an old redhat instance of a site. Following http://www.zoneminder.com/wiki/index..._RPMs_for_SuSE the sequence seems to be 1 install zoneminder packages & dependencies 2 start mysql 3 start apache 4 configure mysql running instance 5 initialise zoneminder 6 configure zoneminder I first got stuck at 2, I think the previous mysql install was broken somehow. I did a 'zypper in --force mysql-community-server' and that allowed 'systemctl start mysql.service' to then work. Now I'm stuck at 3. 'systemctl start apache2.service' fails, using 'systemctl status apache2.service' shows:
    Code:
    Jun 05 16:36:26 chunk start_apache2[30692]: AH00526: Syntax error on line 3 of /etc/apache2/conf.d/zm.conf:Jun 05 16:36:26 chunk start_apache2[30692]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a modu...ration Jun 05 16:36:26 chunk systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE Jun 05 16:36:27 chunk start_apache2[30710]: AH00526: Syntax error on line 3 of /etc/apache2/conf.d/zm.conf: Jun 05 16:36:27 chunk start_apache2[30710]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a modu...ration Jun 05 16:36:27 chunk systemd[1]: apache2.service: control process exited, code=exited status=1 Jun 05 16:36:27 chunk systemd[1]: Failed to start The Apache Webserver. Jun 05 16:36:27 chunk systemd[1]: Unit apache2.service entered failed state.
    but I reinstalled apache2-mod_php5-5.4.20-4.1.x86_64 just yesterday. opensuse and packman versions of zm.conf are the same. I don't know anything about php, so the apache dependencies are a bit of mystery and are next to be investigated. Daniel
    Hi! I installed Zoneminder yesterday on an openSUSE 12.3 without any problems, today, same procedure (same WIKI-page) via YAsT on an openSUSE 13.1 x64, I end up with the very same error, system does not start the Apache...

    Did you succeed in resolving the issue?

    Rasputin

    Jun 14 15:18:20 linux-0lny.site systemd[1]: Starting The Apache Webserver...
    Jun 14 15:18:20 linux-0lny.site start_apache2[2851]: AH00526: Syntax error on line 3 of /etc/apache2/conf.d/zm.conf:
    Jun 14 15:18:20 linux-0lny.site start_apache2[2851]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
    Jun 14 15:18:20 linux-0lny.site systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
    Jun 14 15:18:20 linux-0lny.site start_apache2[2870]: AH00526: Syntax error on line 3 of /etc/apache2/conf.d/zm.conf:
    Jun 14 15:18:20 linux-0lny.site start_apache2[2870]: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration
    Jun 14 15:18:20 linux-0lny.site systemd[1]: apache2.service: control process exited, code=exited status=1
    Jun 14 15:18:20 linux-0lny.site systemd[1]: Failed to start The Apache Webserver. Jun 14 15:18:20 linux-0lny.site systemd[1]: Unit apache2.service entered failed state.

  10. #10
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,307
    Blog Entries
    2

    Default Re: Installing zoneminder

    Quote Originally Posted by suse_rasputin View Post
    Hi! I installed Zoneminder yesterday on an openSUSE 12.3 without any problems, today, same procedure (same WIKI-page) via YAsT on an openSUSE 13.1 x64, I end up with the very same error, system does not start the Apache...

    Did you succeed in resolving the issue?

    Rasputin
    Your reported error is different.
    You should inspect the specific error and research why the error exists... ie. Is it a command which no longer is supported with the current version of Apache? Oftentimes a command is simply changed in a new app version, can it be modified? Is the command simply incorrect?

    You should post back what your result is, whether you found resolution or not and if you found a solution what it is.
    If you're stumped and we can't resolve with more information you can report a bug for an upstream maintainer to take a look at.

    The OP should take a look at your post an verify it isn't info he missed. If still different (as I expect at this point) he has to consider other possibilities.

    TSU

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •