Support Data Collector vs otrs.CheckModules.pl perl module versions

Moderator: crythias

Post Reply
piotrusx
Znuny newbie
Posts: 7
Joined: 15 Feb 2024, 10:30
Znuny Version: 6.5.6
Real Name: Piotr

Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by piotrusx »

Hello,
Support Data Collector module in my Znuny instillation shows different perl modules versions.
On my user "otrs" account - otrs.CheckModules.pl script shows the correct values but Support Data Collector module shows the wrong valuse.
My Znuny installation uses "otrs" user.
How can I fix it?
Could you help me?
I attached two sample screens.

Piotr.
You do not have the required permissions to view the files attached to this post.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by zzz »

Hello Piotr,

Just in case you've updated the Perl modules recently: The Support Data Collector may cache entries for up to 10 minutes. Delete the cache or wait a moment and try it again.

— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
piotrusx
Znuny newbie
Posts: 7
Joined: 15 Feb 2024, 10:30
Znuny Version: 6.5.6
Real Name: Piotr

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by piotrusx »

I did it a few days ago. I executed otrs.Console.pl Maint::Cache::Delete also. It didn't help.
Should I delete any temp directory?
piotrusx
Znuny newbie
Posts: 7
Joined: 15 Feb 2024, 10:30
Znuny Version: 6.5.6
Real Name: Piotr

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by piotrusx »

When I run AdminSupportDataCollector it uses my Perl modules that come with the base Perl installation from the repository.
It ignores my Perl modules that I downloaded from CPAN for the OTRS user.
When I run the script manually it works correctly.
root
Administrator
Posts: 3968
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by root »

piotrusx wrote: 22 Feb 2024, 15:47 When I run AdminSupportDataCollector it uses my Perl modules that come with the base Perl installation from the repository.
It ignores my Perl modules that I downloaded from CPAN for the OTRS user.
When I run the script manually it works correctly.
Hi,

CPAN modules must be installed systemwide! You have two different users: the application user and the web server user. That's why you see different version.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
piotrusx
Znuny newbie
Posts: 7
Joined: 15 Feb 2024, 10:30
Znuny Version: 6.5.6
Real Name: Piotr

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by piotrusx »

Redhat system repositories do not provide all the modules and versions required by Znuny. It is almost impossible to provide such modules using system repositories/rpm packages. We have to add/update it manually.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by zzz »

It's not about where you get the Perl modules from, it's about where you install them and who has the permission to access it.

Just install the modules system-wide, as Roy has mentioned. That is the default if you use the root user. Don't use the znuny-user to install the packages via CPAN.

— Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
piotrusx
Znuny newbie
Posts: 7
Joined: 15 Feb 2024, 10:30
Znuny Version: 6.5.6
Real Name: Piotr

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by piotrusx »

The problem is that the perl-homedir RPM sets up a local::lib for all users, including root, so any modules installed as root get installed to its local::lib instead of the global sitelib as expected.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by zzz »

I mean, according to the doc, that's what perl-homedir is supposed to do.

I am not sure if you're aware that this module has nothing to do with Znuny. If you don't need it, uninstall it and if you need it, there should be a way to install system-wide modules anyway.
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
skullz
Znuny superhero
Posts: 624
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Support Data Collector vs otrs.CheckModules.pl perl module versions

Post by skullz »

Check this for system wide
viewtopic.php?p=172324#p172324
Post Reply