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

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Tantamount
Posts: 76
Joined: Wed Feb 03, 2016 7:51 am

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

Post 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
3 ReoLink RLC-410
2 Annke NC800
Kubernetes 1.22.6 statefulset of 5 Ubuntu 20.04 pods using iconnor's repository
ZoneMinder Version 1.36.12
jperkins
Posts: 50
Joined: Sat Jan 23, 2021 11:08 am

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

Post 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.
Post Reply