Page 1 of 1

Can't locate ZoneMinder/Control/onvif in @INC

Posted: Sun Mar 07, 2021 2:49 am
by Tantamount
Hi!

Recently updated to these rpms:
zoneminder-httpd-1.34.23-1.el7.x86_64
zoneminder-1.34.23-1.el7.x86_64
zoneminder-common-1.34.23-1.el7.x86_64

and after rebooting, I am seeing these errors:

Code: Select all

Mar  6 18:47:54 zoneminder zmcontrol_6[6604]: FAT [Can't load ZoneMinder::Control::onvif#012Global symbol "$this" requires explicit package name at /usr/share/perl5/vendor_perl/ZoneMinder/Control/onvif.pm line 68.#012Compilation failed in require at /usr/share/perl5/vendor_perl/Module/Load.pm line 27.#012Can't locate ZoneMinder/Control/onvif in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/share/perl5/vendor_perl/Module/Load.pm line 27.]
Mar  6 18:47:54 zoneminder zmdc[6343]: ERR ['zmcontrol.pl --id 6' exited abnormally, exit status 255]
Am I missing a perl library, or is a path missing from @INC?

--edit --

That's a very confusing error too -- it looks like there's a problem with a require statement in the onvif.pem file, however it then goes on to say that that onvif file can't be found?

-rw-r--r--. 1 root root 8876 Jan 24 09:29 /usr/share/perl5/vendor_perl/ZoneMinder/Control/onvif.pm

Re: Can't locate ZoneMinder/Control/onvif in @INC

Posted: Mon Mar 08, 2021 6:41 pm
by jperkins
zmcontrol.pl --id 6'
just a guess that your monitor ID number 6 is set for onvif control and it isnt setup properly.

Maybe you should comeback with the type of camera on ID 6, the type of control you have setup, and the whether that control worked before your 'upgrade'. additionally you could review if any perl packages were updated at the same time. Lastly you could mention whether your ZM setup is currently working and/or what issues these log errors appear to be causing.