Can't locate Moo.pm in @INC

Moderator: crythias

Locked
VET
Znuny newbie
Posts: 5
Joined: 19 Jun 2020, 14:13
Znuny Version: 6.0.28
Real Name: Verreyt Thierry
Company: System Partners

Can't locate Moo.pm in @INC

Post by VET »

Hi,
I have couple of issue when I try to install otrs
when I try to start the installer from the WEB interface I have (http://192.168.68.244/otrs/installer.pl)

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.


Could you tell me where is the problem or where do I need to look ?
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Can't locate Moo.pm in @INC

Post by skullz »

You have to install perl moo package

You can refer https://gitlab.com/harbottle/epmel

Credit to root
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
VET
Znuny newbie
Posts: 5
Joined: 19 Jun 2020, 14:13
Znuny Version: 6.0.28
Real Name: Verreyt Thierry
Company: System Partners

Re: Can't locate Moo.pm in @INC

Post by VET »

Yes as usual
and I install as otrs user and root but nothing change
:(

cpan install Moo
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/opt/otrs/.cpan/Metadata'
Database was generated on Fri, 19 Jun 2020 08:17:03 GMT
Moo is up to date (2.004000).
root
Administrator
Posts: 4251
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Can't locate Moo.pm in @INC

Post by root »

VET wrote: 19 Jun 2020, 17:48 Yes as usual
and I install as otrs user and root but nothing change
:(

cpan install Moo
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/opt/otrs/.cpan/Metadata'
Database was generated on Fri, 19 Jun 2020 08:17:03 GMT
Moo is up to date (2.004000).
Hi,

Which OS?

- 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 ?
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Can't locate Moo.pm in @INC

Post by skullz »

Try

Uninstall perl-moo
Remove / comment perl directory location at root .bashrc
Relogin to ssh
Install back perl-moo
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
VET
Znuny newbie
Posts: 5
Joined: 19 Jun 2020, 14:13
Znuny Version: 6.0.28
Real Name: Verreyt Thierry
Company: System Partners

Re: Can't locate Moo.pm in @INC

Post by VET »

now I don't have the problem with Moo apparently I just re-install as suggested but I still doen't see the page in my browser
http://192.168.68.244/otrs/installer.pl
and I have error 500 Internal Server Error
I try to restart httpd but still the same.
Do you know where I can find a log ?
I check into /var/log/httpd/error_log but I don't find any problem right now

[Fri Jun 19 11:33:08.680692 2020] [mpm_prefork:notice] [pid 5378] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Jun 19 11:33:11.122183 2020] [suexec:notice] [pid 29340] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.68.244. Set the 'ServerName' directive globally to suppress this message
[Fri Jun 19 11:33:11.692706 2020] [lbmethod_heartbeat:notice] [pid 29340] AH02282: No slotmem from mod_heartmonitor
[Fri Jun 19 11:33:11.892374 2020] [mpm_prefork:notice] [pid 29340] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Fri Jun 19 11:33:11.892429 2020] [core:notice] [pid 29340] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'


$ cpanm Moo::sification
--> Working on Moo::sification
Fetching http://www.cpan.org/authors/id/H/HA/HAA ... 000.tar.gz ... OK
Configuring Moo-2.004000 ... OK
==> Found dependencies: Role::Tiny, Sub::Defer, Test::Fatal, Module::Runtime, Sub::Quote, Class::Method::Modifiers
--> Working on Role::Tiny
Fetching http://www.cpan.org/authors/id/H/HA/HAA ... 004.tar.gz ... OK
Configuring Role-Tiny-2.001004 ... OK
Building and testing Role-Tiny-2.001004 ... OK
Successfully installed Role-Tiny-2.001004
--> Working on Sub::Defer
Fetching http://www.cpan.org/authors/id/H/HA/HAA ... 006.tar.gz ... OK
Configuring Sub-Quote-2.006006 ... OK
==> Found dependencies: Test::Fatal
--> Working on Test::Fatal
Fetching http://www.cpan.org/authors/id/R/RJ/RJB ... 014.tar.gz ... OK
Configuring Test-Fatal-0.014 ... OK
Building and testing Test-Fatal-0.014 ... OK
Successfully installed Test-Fatal-0.014
Building and testing Sub-Quote-2.006006 ... OK
Successfully installed Sub-Quote-2.006006
--> Working on Module::Runtime
Fetching http://www.cpan.org/authors/id/Z/ZE/ZEF ... 016.tar.gz ... OK
Configuring Module-Runtime-0.016 ... OK
Building and testing Module-Runtime-0.016 ... OK
Successfully installed Module-Runtime-0.016 (upgraded from 0.013)
--> Working on Class::Method::Modifiers
Fetching http://www.cpan.org/authors/id/E/ET/ETH ... .13.tar.gz ... OK
Configuring Class-Method-Modifiers-2.13 ... OK
==> Found dependencies: Test::Needs
--> Working on Test::Needs
Fetching http://www.cpan.org/authors/id/H/HA/HAA ... 006.tar.gz ... OK
Configuring Test-Needs-0.002006 ... OK
Building and testing Test-Needs-0.002006 ... OK
Successfully installed Test-Needs-0.002006
Building and testing Class-Method-Modifiers-2.13 ... OK
Successfully installed Class-Method-Modifiers-2.13
Building and testing Moo-2.004000 ... OK
Successfully installed Moo-2.004000
7 distributions installed
VET
Znuny newbie
Posts: 5
Joined: 19 Jun 2020, 14:13
Znuny Version: 6.0.28
Real Name: Verreyt Thierry
Company: System Partners

Re: Can't locate Moo.pm in @INC

Post by VET »

sorry still the same error and I recieve a mail every 5 min

$ mail
Heirloom Mail version 12.5 7/5/10. Type ? for help.
"/var/spool/mail/root": 3 messages 3 new
>N 1 (Cron Daemon) Sat Jun 20 09:35 35/2008 "Cron <otrs@T-xce-ticket2> $HOME/bin/otrs.Daemon.pl start >> /dev/null"
N 2 (Cron Daemon) Sat Jun 20 09:40 35/2008 "Cron <otrs@T-xce-ticket2> $HOME/bin/otrs.Daemon.pl start >> /dev/null"
N 3 (Cron Daemon) Sat Jun 20 09:45 35/2008 "Cron <otrs@T-xce-ticket2> $HOME/bin/otrs.Daemon.pl start >> /dev/null"
&
Message 1:
From otrs@T-xce-ticket2.localdomain Sat Jun 20 09:35:02 2020
Return-Path: <otrs@T-xce-ticket2.localdomain>
X-Original-To: root@localhost
Delivered-To: root@localhost.localdomain
From: "(Cron Daemon)" <otrs@T-xce-ticket2.localdomain>
To: root@localhost.localdomain
Subject: Cron <otrs@T-xce-ticket2> $HOME/bin/otrs.Daemon.pl start >> /dev/null
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=747>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/1002>
X-Cron-Env: <LANG=en_US.UTF-8>
X-Cron-Env: <MAILTO=root@localhost>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/opt/otrs/>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=otrs>
X-Cron-Env: <USER=otrs>
Date: Sat, 20 Jun 2020 09:35:02 +0200 (CEST)
Status: R

Can't locate Moo.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /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/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.
Compilation failed in require at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.
Compilation failed in require at /opt/otrs/Kernel/System/Main.pm line 23.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/Main.pm line 23.
Compilation failed in require at /opt/otrs/Kernel/System/ObjectManager.pm line 34.
BEGIN failed--compilation aborted at /opt/otrs/Kernel/System/ObjectManager.pm line 34.
Compilation failed in require at /opt/otrs//bin/otrs.Daemon.pl line 33.
BEGIN failed--compilation aborted at /opt/otrs//bin/otrs.Daemon.pl line 33.
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Can't locate Moo.pm in @INC

Post by skullz »

Then try to use the package manager (yum install) if using centos/redhat..

https://gitlab.com/harbottle/epmel
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
VET
Znuny newbie
Posts: 5
Joined: 19 Jun 2020, 14:13
Znuny Version: 6.0.28
Real Name: Verreyt Thierry
Company: System Partners

Re: Can't locate Moo.pm in @INC

Post by VET »

same issue

Can't locate Moo.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5

but how can I copy Moo on one of these location ? is it possible because I see Moo is installed into /opt/otrs/perl5/lib/perl5
$ ll
total 512
drwxrwsr-x 4 otrs apache 77 Jun 19 11:15 Alien
-rw-rw---- 1 otrs apache 16107 Jun 16 15:11 alienfile.pm
drwxrwsr-x 2 otrs apache 21 Jun 19 11:03 App
drwxr-sr-x 3 otrs apache 19 Jun 19 16:19 auto
drwxrwsr-x 3 otrs apache 17 Jun 19 11:05 Bundle
drwxrwsr-x 2 otrs apache 21 Jun 19 11:12 Capture
drwxrwsr-x 4 otrs apache 109 Jun 19 11:09 CGI
-rw-rw---- 1 otrs apache 125128 Jun 8 11:40 CGI.pm
-rw-rw---- 1 otrs apache 67231 Jun 2 10:18 CGI.pod
drwxrwsr-x 3 otrs apache 35 Jun 19 16:21 Class
drwxrwsr-x 10 otrs apache 4096 Jun 19 16:19 CPAN
-rw-rw---- 1 otrs apache 146411 Jun 13 06:47 CPAN.pm
drwxr-sr-x 4 otrs apache 72 Jun 19 16:23 DateTime
drwxr-sr-x 3 otrs apache 45 Jun 19 16:20 Devel
drwxr-sr-x 3 otrs apache 35 Jun 19 16:20 Exception
drwxrwsr-x 4 otrs apache 107 Jun 19 11:11 ExtUtils
drwxrwsr-x 2 otrs apache 25 Jun 19 11:13 FFI
-rw-rw---- 1 otrs apache 166 Jun 8 11:40 Fh.pm
drwxrwsr-x 4 otrs apache 85 Jun 19 16:21 File
-rw-rw---- 1 otrs apache 42537 Feb 18 2018 Importer.pm
drwxr-sr-x 4 otrs apache 47 Jun 19 16:20 IPC
drwxr-sr-x 3 otrs apache 29 Jun 19 16:19 JSON
drwxrwsr-x 3 otrs apache 22 Jun 19 11:05 LWP
drwxr-sr-x 3 otrs apache 67 Jun 19 16:25 Mail
drwxrwsr-x 3 otrs apache 22 Jun 19 11:18 Method
drwxrwsr-x 2 otrs apache 43 Jun 19 16:19 Module
drwxrwsr-x 3 otrs apache 154 Jun 19 11:18 Moo
-rw-rw---- 1 otrs apache 34419 Apr 9 17:51 Moo.pm
drwxrwsr-x 4 otrs apache 269 Jun 20 12:09 Net
-rw-rw---- 1 otrs apache 967 Apr 13 20:37 ok.pm
-rw-rw---- 1 otrs apache 1218 Apr 8 10:06 oo.pm
drwxr-sr-x 3 otrs apache 61 Jun 19 16:21 Params
drwxr-sr-x 3 otrs apache 18 Jun 19 16:19 Parse
drwxrwsr-x 2 otrs apache 21 Jun 19 11:14 Path
drwxrwsr-x 3 otrs apache 33 Jun 19 11:18 Role
drwxrwsr-x 2 otrs apache 22 Jun 19 11:12 Scope
drwxr-sr-x 5 otrs apache 256 Jun 19 16:21 Specio
-r--r--r-- 1 otrs apache 15181 Mar 14 18:47 Specio.pm
drwxrwsr-x 2 otrs apache 71 Jun 19 11:18 Sub
drwxrwsr-x 8 otrs apache 4096 Jun 19 11:09 Template
-rw-rw---- 1 otrs apache 25040 Mar 30 19:09 Template.pm
drwxrwsr-x 3 otrs apache 35 Jun 19 11:13 Term
drwxrwsr-x 10 otrs apache 4096 Jun 19 16:26 Test
drwxrwsr-x 17 otrs apache 4096 Jun 19 11:13 Test2
-rw-rw---- 1 otrs apache 6393 Apr 13 20:37 Test2.pm
drwxrwsr-x 11 otrs apache 193 Jun 20 12:09 x86_64-linux-thread-multi
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Can't locate Moo.pm in @INC

Post by skullz »

yum command / cpan command should be running as root not otrs.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
Locked