Missing deps and cert probs

Forum for questions and support relating to the 1.30.x releases only.
Locked
zoneard
Posts: 4
Joined: Wed Jan 18, 2017 6:40 pm

Missing deps and cert probs

Post by zoneard »

Installing using today's version of zmrepo

firstly I needed to add two extra packages to get it to start:

Code: Select all

dnf  install perl-Sys-Syslog
dnf  install perl-Sys-Mmap
Missing deps ??

Code: Select all

# systemctl start zoneminder
# systemctl status zoneminder.service
* zoneminder.service - ZoneMinder CCTV recording and security system
   Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2017-01-18 18:52:46 GMT; 2s ago
  Process: 30513 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=0/SUCCESS)
 Main PID: 30526 (zmdc.pl)
    Tasks: 3 (limit: 4915)
   CGroup: /system.slice/zoneminder.service
           |-30526 /usr/bin/perl -wT /usr/bin/zmdc.pl startup
           |-30561 /usr/bin/perl -wT /usr/bin/zmaudit.pl -c
           `-30576 /usr/bin/perl -wT /usr/bin/zmwatch.pl

Jan 18 18:52:46 box zmdc[30526]: INF ['zmtelemetry.pl' starting at 17/01/18 18:52:46, pid = 30584]
Jan 18 18:52:46 box zmdc[30584]: INF ['zmtelemetry.pl' started at 17/01/18 18:52:46]
Jan 18 18:52:46 box zmwatch[30576]: INF [Watchdog starting]
Jan 18 18:52:46 box zmwatch[30576]: INF [Watchdog pausing for 30 seconds]
Jan 18 18:52:46 box systemd[1]: Started ZoneMinder CCTV recording and security system.
Jan 18 18:52:47 box zmdc[30526]: ERR ['zmtelemetry.pl' exited abnormally, exit status 9]
Jan 18 18:52:47 box zmdc[30526]: INF [Starting pending process, zmtelemetry.pl]
Jan 18 18:52:47 box zmdc[30526]: INF ['zmtelemetry.pl' starting at 17/01/18 18:52:47, pid = 30591]
Jan 18 18:52:47 box zmdc[30591]: INF ['zmtelemetry.pl' started at 17/01/18 18:52:47]
Jan 18 18:52:47 box zmdc[30526]: ERR ['zmtelemetry.pl' exited abnormally, exit status 9]
I am just testing the installation of the software and have no camera connected, so the telemetry error maybe expected, though seems to be producing an error condition.


Using Firefox 50.1.0 to connect to https://localhost/zm tells me the certificate is 'invalid'.
localhost uses an invalid security certificate.

The certificate is not trusted because it is self-signed.
The certificate is not valid for the name localhost.
Is the current certificate scheme compatible with recent ffx ?
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Missing deps and cert probs

Post by knight-of-ni »

zoneard wrote:Installing using today's version of zmrepo
What distro? What architecture? Did you install the latest zoneminder release, or did you install form the testing repo???
zoneard wrote: firstly I needed to add two extra packages to get it to start:

Code: Select all

dnf  install perl-Sys-Syslog
dnf  install perl-Sys-Mmap
Missing deps ??
You've told us what you did, but we need to know exactly what prompted you to perform this step.

Looks good on my centos7 machine:

Code: Select all

[abauer@bauerhaus ~]$ rpm -qR zoneminder | grep -E 'Syslog|Mmap'
perl(Sys::Mmap)
perl(Sys::Syslog)
zoneard wrote: I am just testing the installation of the software and have no camera connected, so the telemetry error maybe expected, though seems to be producing an error condition.
The output you posted was very helpful.
You are probably still missing a perl module. Running zmtelemetry.pl from the command line will confirm that.
zoneard wrote: localhost uses an invalid security certificate.

The certificate is not trusted because it is self-signed.
The certificate is not valid for the name localhost.

Is the current certificate scheme compatible with recent ffx ?
Working as intended.
Did you really expect us to sign your local certificate for you with a signing agency???
Please read README.Https, pasted here for your convenience:
https://github.com/ZoneMinder/ZoneMinde ... ADME.https

This is not a one-size-fits-all solution. It is merely a starter... to get everyone on an encrypted solution who otherwise would not know how to do it.
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/
zoneard
Posts: 4
Joined: Wed Jan 18, 2017 6:40 pm

Re: Missing deps and cert probs

Post by zoneard »

Thanks for the reply.

Firstly, I downloaded the Fedora25 repo. installed the repo then did

Code: Select all

dnf install zoneminder.
x86_64.

It appears that I am not getting the required deps pulled in. I had worked out to run the failing pl and this lead me to two more missing perl modules:

Code: Select all

dnf install perl-Sys-MemInfo
dnf install perl-Sys-CPU
Now, restarting zoneminder works without error, as far as I can test without an IP camera.
Please read README.Https, pasted here for your convenience:
Thanks. Since the installation refers the user to README.fedora, maybe this key info should be linked there too.

Since the aim of maintaining a repo is presumably to make this as turnkey as possible, the question of deps may need checking. I needed to debug and manually install four PERL packages.

Thanks for the help.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Missing deps and cert probs

Post by knight-of-ni »

zoneard wrote:Thanks for the reply.

Firstly, I downloaded the Fedora25 repo. installed the repo then did

Code: Select all

dnf install zoneminder.
x86_64.

It appears that I am not getting the required deps pulled in. I had worked out to run the failing pl and this lead me to two more missing perl modules:

Code: Select all

dnf install perl-Sys-MemInfo
dnf install perl-Sys-CPU
Now, restarting zoneminder works without error, as far as I can test without an IP camera.
OK, now that makes sense. Begining with F25, there was a change to build root files which cause rpm to not auto detect perl dependencies during the build. I found about this after the fact, fixed it, but it sounds like I still need to push out a new set of packages for f25. This only affected Fedora 25, not any other redhat distro. Not sure I will get to building new packages until the weekend.
zoneard wrote: Thanks. Since the installation refers the user to README.fedora, maybe this key info should be linked there too.
It already does. README.Fedora refers you to README.Https for further reading:
https://github.com/ZoneMinder/ZoneMinde ... Fedora#L16
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/
zoneard
Posts: 4
Joined: Wed Jan 18, 2017 6:40 pm

Re: Missing deps and cert probs

Post by zoneard »

OK I set up a cert. changed the config files and restarted httpd and zoneminder , A new missing PERL module surfaced.

dnf install perl-Date-Manip

Now after adding an exception for the 'unsafe' self-signed certificate in firefox, I finally get something credible from https://localhost/zm

Looks good.

Are there any other deps I need to add in manually on F25, that are likely to crop up later when I test other functionality, or should I now have everything required?

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

Re: Missing deps and cert probs

Post by knight-of-ni »

Yes, you probably are still missing Perl dependencies as ZoneMinder has a lot of them. No, I don't have a list, but you can create one.
Go to zmrepo.zoneminder.com and manually browse the Fedora 24 repo. Download the Fedora 24 zoneminder rpm.

Try to use dnf or even rpm to attempt to install the f24 package. Ultimately, you should say "no" to actually install the package, but in the process it will give you a list of Perl packages you are missing, which you can then use to manually dnf install what is missing. Again, it's just the perl packages. Ignore anything else dnf/rpm might tell you, and don't actually install the f24 zoneminder rpm.

This is not guaranteed to work. If it doesn't work then you can always do "rpm -qR filename_of_f24_zondminder.rpm" and get the full list.
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
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Missing deps and cert probs

Post by knight-of-ni »

If its not too late....
I just remembered I have an F25 zoneminder rpm in the zmrepo testing repo which does have all the right dependencies.
I would not recommend you install it at this time, but it would be a better selection to use to get a list of missing perl dependencies than the f24 rpm.
https://zmrepo.zoneminder.com/f/testing/25/x86_64/
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/
zoneard
Posts: 4
Joined: Wed Jan 18, 2017 6:40 pm

Re: Missing deps and cert probs

Post by zoneard »

Yes thanks, that is a better way to get the full list.

I'm not in a hurry since I do not have an IP camera to hand right now. I'll wait until you have had time to update the F25 repo to prevent a lot of manual package additions. That will be tidier way to manage it.
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Missing deps and cert probs

Post by knight-of-ni »

I've finished building new rpms for i686 and x86_64 arches, and I'm building armhfp now.
The new packages will sync to the mirror servers overnight.
You should see them tomorrow after a dnf update. If not, do a "dnf clean all" to purge your cache and then try again.
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/
cyberfitz
Posts: 5
Joined: Fri Dec 02, 2016 3:58 pm

Re: Missing deps and cert probs

Post by cyberfitz »

ran into this last month ... posted in this very forum :

viewtopic.php?f=36&t=25572&hilit=dnf+install
Locked