OTRS 6.0.27 broken build, cannot find Moo perl module

Moderator: crythias

Post Reply
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

OTRS 6.0.27 broken build, cannot find Moo perl module

Post by jbaptiste »

Hi,

It seems the latest OTRS 6 version introduced a new perl dependency for the Moo module, now this command:

Code: Select all

perl -cw /opt/otrs/bin/cgi-bin/index.pl
Fails with this error:

Code: Select all

Can't locate Moo.pm in @INC (@INC contains: /opt/otrs/bin/Custom /opt/otrs/bin/Kernel/cpan-lib /opt/otrs/bin /opt/otrs/bin/cgi-bin/../../Custom /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib /opt/otrs/bin/cgi-bin/../.. /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 /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.                                                                                                                                  
BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.                                                                           
Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure.pm line 8.                                                                                   
BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure.pm line 8.                                                                               
Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/Main.pm line 23.                                                                                                  
BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/Main.pm line 23.                                                                                              
Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/ObjectManager.pm line 34.                                                                                         
BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/ObjectManager.pm line 34.                                                                                     
Compilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.                                                                                                                     
BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33
On the release notes there's a mention of this new module:
Improved random number generator. We added new CPAN dependencies, which should already be present on all systems: Crypt::Random::Source Exporter::Tiny Math::Random::ISAAC Math::Random::Secure Module::Find Moo Types::TypeTiny namespace::clean
Improved token handling in the LostPassword requests.
But I cannot find that module on CentOS 7 nor the epel repo.

Any clues on how to install it ?
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
root
Administrator
Posts: 3966
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by root »

Hi,

Just follow https://gitlab.com/harbottle/epmel to install the epmel repo and the install the package perl-Moo

- 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 ?
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by jbaptiste »

Excellent, thanks !!
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
edgararrais
Znuny newbie
Posts: 3
Joined: 28 Mar 2020, 04:26
Znuny Version: 6 CE
Real Name: Edgar da Silva Arrais
Company: Governo do Tocantins

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by edgararrais »

perl -MCPAN -e shell

install Crypt::Random::Source::Weak::devurandom
install Exporter::Tiny
install Math::Random::ISAAC
install Math::Random::Secure
install Module::Find
install Moo
install Type::Tiny
install namespace::clean
davidkrotil
Znuny newbie
Posts: 36
Joined: 10 Feb 2015, 17:15
Znuny Version: 6.0.27
Real Name: David

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by davidkrotil »

Even I install Moo perl module I can´t login. Doing rpm update from 6.0.25. I enter user name and password click on Login and nothing happens. It happend with 6.0.26 build, I was hoping, that 6.0.27 build will fix this, but not.
I´m on Suse Leap 15.1.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by wurzel »

Hi,

please check the logs.
Show the steps - all your commands - you performed

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
davidkrotil
Znuny newbie
Posts: 36
Joined: 10 Feb 2015, 17:15
Znuny Version: 6.0.27
Real Name: David

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by davidkrotil »

Between minor version I only run rpm - Uvh, never needed something else.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by wurzel »

Hi,

AFAIK you have to follow https://doc.otrs.com/doc/manual/admin/6 ... ating.html

So you missed step 1+2 and steps 4 and all following steps.

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
davidkrotil
Znuny newbie
Posts: 36
Joined: 10 Feb 2015, 17:15
Znuny Version: 6.0.27
Real Name: David

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by davidkrotil »

I´m doing VMware snapshot every time, but I wasn´t aware, that DB update is needed between minor versions ( like 6.0.25 -> 6.0.27 ).
Will try that and let you know.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database
davidkrotil
Znuny newbie
Posts: 36
Joined: 10 Feb 2015, 17:15
Znuny Version: 6.0.27
Real Name: David

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by davidkrotil »

DB update did the trick, thanks for help.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database
kevindebie
Znuny newbie
Posts: 12
Joined: 12 Apr 2017, 15:35
Znuny Version: 6.5.x
Real Name: Kevin de Bie

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by kevindebie »

root wrote: 28 Mar 2020, 00:37 Hi,

Just follow https://gitlab.com/harbottle/epmel to install the epmel repo and the install the package perl-Moo

- Roy
This repository is great if you don't want to deal with CPAN for module installation.

I needed to install both perl-Moo and perl-namespace-clean to get rebuildconfig (i do this after every update) and thusly OTRS going.
Previous version was .26. (i usually keep my installations updated pretty tightly)

The check modules page doens't seem to list these additional modules.
OTRS changelog claims the extra modules they use should exist on the system... they don't on mine.
I'm running OTRS on centos 7 LXC containers. (Proxmox)

I filed a bug report as I still believe this needs attention from OTRS team, I think the RPM should install these dependancies or abort, or at the least the checkmodules page should point out the missing modules as they are evidently important.

https://bugs.otrs.org/show_bug.cgi?id=15055
Whoopsiedoodle.
root
Administrator
Posts: 3966
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by root »

Hi,

The Perl modules were mentioned in teh changes. The only issue could be that otrs.CheckModules.pl does not check properly. I'm pretty sure that the bug report will be closed with wont' fixed. The RPM is discontinued since version 7 and I doubt any of these chamnge to version 6. I would also disagree, because epmel is a 3rd party repository and does not belong to the Linux distribution.

Just my thoughts, 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 ?
kevindebie
Znuny newbie
Posts: 12
Joined: 12 Apr 2017, 15:35
Znuny Version: 6.5.x
Real Name: Kevin de Bie

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by kevindebie »

I don't really know why the discontinuation of RPM's in OTRS 7+ (this is news to me, i only use community releases) should lead to issues with dependancies in the erlier releases for which RPM's are still released...
OTRS RPM's normally fetches all it's required modules, that it won't fetch these two packages seems rather arbitrairy to me.
And if you can't somehow because centos doesn't offer these or something, this should be made more abundantly clear as an installation prerequisit and as stated the module checker.
They were indeed briefly mentioned in the changelog, it was also mentioned these modules should be already present in the OS.

I also never said they should use abovementioned repo. ;)
If they won't fix this then that's unfortunate but I couldn't find anything about this in their bugtracker.
Whoopsiedoodle.
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by maro584 »

Hey somebody know why when I am trying to install Moo module via cpan as otrs user I have got this:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I makes that I can not install this module and other modules from these thread also.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by zzz »

maro584 wrote: 07 Apr 2020, 17:30 Hey somebody know why when I am trying to install Moo module via cpan as otrs user I have got this:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!
ERROR: Can't create '/usr/local/share/man/man3'
Do not have write permissions on '/usr/local/share/man/man3'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I makes that I can not install this module and other modules from these thread also.
Hey,

Install your CPAN modules globally as root user.

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

Free and premium add-ons: German | English
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by maro584 »

When I am installing modules as root than their are not available for other users.

I have Installed the mentioned above modules as root user and when I have run a scripts/DBUpdate-to-6.pl script then I ahev got an error that those modules are not install or their are not in @INC.

I have installed them using a command:

perl -MCPAN -Mlocal::lib -e shell

Instalation was made in directory otrs/Custom
After that it runs.

But anyway is their a way to install that modules as a root user to make them available also for otrs user? It will simplify upgrades.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by zzz »

Execute 'cpan' as root user and run the initial configuration.
Finally, execute 'install Module:Name' and you're good to go.

You don't need to install anything into otrs/Custom.
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
jbaptiste
Znuny advanced
Posts: 104
Joined: 01 Aug 2015, 03:45
Znuny Version: 6.0.x
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by jbaptiste »

maro584 wrote: 07 Apr 2020, 18:07 But anyway is their a way to install that modules as a root user to make them available also for otrs user? It will simplify upgrades.
You could also run OTRS as a docker container and simplify upgrades that way, all this issues are already being handled on the latest image version.
Want to run OTRS on docker ? checkout my OTRS on docker HOWTO | Project's github page
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by maro584 »

zzz wrote: 07 Apr 2020, 18:13 Execute 'cpan' as root user and run the initial configuration.
Finally, execute 'install Module:Name' and you're good to go.

You don't need to install anything into otrs/Custom.
uid=0(root) gid=0(root) groups=0(root)

cpan

install Moo
Reading '/root/.cpan/Metadata'
Database was generated on Tue, 07 Apr 2020 01:29:03 GMT
Moo is up to date (2.003006).

exit

OTRS user

cd otrs

scripts/DBUpdate-to-6.pl
Can't locate Moo.pm in @INC (@INC contains: /opt/otrs-6.0.27/Custom /opt/otrs-6.0.27/Kernel/cpan-lib /opt/otrs-6.0.27 /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 /opt/otrs-6.0.27/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.
BEGIN failed--compilation aborted at /opt/otrs-6.0.27/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.
Compilation failed in require at /opt/otrs-6.0.27/Kernel/cpan-lib/Math/Random/Secure.pm line 8.
BEGIN failed--compilation aborted at /opt/otrs-6.0.27/Kernel/cpan-lib/Math/Random/Secure.pm line 8.
Compilation failed in require at /opt/otrs-6.0.27/Kernel/System/Main.pm line 23.
BEGIN failed--compilation aborted at /opt/otrs-6.0.27/Kernel/System/Main.pm line 23.
Compilation failed in require at /opt/otrs-6.0.27/Kernel/System/ObjectManager.pm line 34.
BEGIN failed--compilation aborted at /opt/otrs-6.0.27/Kernel/System/ObjectManager.pm line 34.
Compilation failed in require at scripts/DBUpdate-to-6.pl line 29.
BEGIN failed--compilation aborted at scripts/DBUpdate-to-6.pl line 29.


For Clarification I have linked otrs-6.0.27/ to otrs.
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by zzz »

Thank means the modules are probably still not installed globally.
This might help.

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

Free and premium add-ons: German | English
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS 6.0.27 broken build, cannot find Moo perl module

Post by maro584 »

Old topic but I will put a resolution here, maybe someone will use it. OTRS user did not have permision to perl modules. Below commands solves a problem.

cd /usr/local/share/perl5
find . -type d -exec chmod 0755 {} +

Thanks for help and suggestions.
Post Reply