OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Moderator: crythias

Post Reply
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Hello Folks,

I am runninf OTRS COmmunity edition 6.0.19 on a centos-7 machine. I am trying to update it to the latest version 6.0.28. I am following below link for the update.
https://doc.otrs.com/doc/manual/admin/6 ... ating.html

After running "scripts/DBUpdate-to-6.pl" it says "Migration completed!"
perl -cw /opt/otrs/bin/cgi-bin/index.pl
/opt/otrs/bin/cgi-bin/index.pl syntax OK
However, I coudlnt access the gui and when i try i see this error under http logs.
[Tue May 19 12:58:14.408850 2020] [:error] [pid 28887] Attempt to reload Kernel/System/ObjectManager.pm aborted.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n
As per one of the suggestions from the forum, I tried this but no luck.
/opt/otrs/bin/otrs.SetPermissions.pl
Setting permissions on /opt/otrs
Any idea what could be causing this?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by jojo »

check if all needed Perl Modules are installed
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
zzz
Znuny superhero
Posts: 888
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by zzz »

Hey,

You're most likely missing Moo.
Use "yum install perl-Moo"

See bug: https://github.com/OTRS/otrs/commit/542 ... ac2bf8cf59

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

Free and premium add-ons: German | English
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Thanks for the response. I see I have installed all necessary modules which includes "MOO".
/opt/otrs/bin/otrs.CheckModules.pl
o Apache::DBI......................ok (v1.12)
o Apache2::Reload..................ok (v0.13)
o Archive::Tar.....................ok (v1.92)
o Archive::Zip.....................ok (v1.30)
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Date::Format.....................ok (v2.24)
o DateTime.........................ok (v1.04)
o DateTime::TimeZone.............ok (v1.70)
Please consider updating to version 2.20 or higher: This version includes recent time zone changes for Chile.
o DBI..............................ok (v1.627)
o DBD::mysql.......................ok (v4.023)
o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.)
o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
o DBD::Pg..........................ok (v2.19.3)
o Digest::SHA......................ok (v5.85)
o Encode::HanExtra.................ok (v0.23)
o IO::Socket::SSL..................ok (v1.94)
Please consider updating to version 2.066 or higher: This version fixes email sending (bug#14357).
o JSON::XS.........................ok (v3.03)
o List::Util::XS...................ok (v1.27)
o LWP::UserAgent...................ok (v6.26)
o Mail::IMAPClient.................ok (v3.37)
o IO::Socket::SSL................ok (v1.94)
Please consider updating to version 2.066 or higher: This version fixes email sending (bug#14357).
o Authen::SASL...................ok (v2.15)
o Authen::NTLM...................ok (v1.09)
o ModPerl::Util....................ok (v2.000010)
o Net::DNS.........................ok (v0.72)
o Net::LDAP........................ok (v0.56)
o Moo..............................ok (v2.004000)
o Net::SMTP........................ok (v2.31)
Please consider updating to version 3.11 or higher: This version fixes email sending (bug#14357).
o Template.........................ok (v2.24)
o Template::Stash::XS..............ok (undef)
o Text::CSV_XS.....................ok (v1.00)
o Time::HiRes......................ok (v1.9725)
o XML::LibXML......................ok (v2.0018)
o XML::LibXSLT.....................ok (v1.80)
o XML::Parser......................ok (v2.41)
o YAML::XS.........................ok (v0.54)
skullz
Znuny superhero
Posts: 618
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by skullz »

Can we see more log ?
perhaps another few lines before the one you just post above ?
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Sure. I am looking at http_error log whenerver I hit "reload" on gui, I see this.
[Mon May 25 13:14:03.323589 2020] [:error] [pid 31417] Attempt to reload Kernel/System/ObjectManager.pm aborted.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n


[Mon May 25 13:14:06.948083 2020] [:error] [pid 31411] Attempt to reload Kernel/System/ObjectManager.pm aborted.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n

[Mon May 25 13:14:10.528040 2020] [:error] [pid 31413] Can't locate Moo.pm in @INC (@INC contains: /usr/Custom /usr/Kernel/cpan-lib /usr /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /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 . /etc/httpd) at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.\nBEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.\nBEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.\nCompilation failed in require at /opt/otrs//Kernel/System/Main.pm line 23.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/System/Main.pm line 23.\nCompilation failed in require at /opt/otrs//Kernel/System/ObjectManager.pm line 34.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/System/ObjectManager.pm line 34.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n



[Mon May 25 13:14:14.073851 2020] [:error] [pid 31414] Attempt to reload Kernel/System/ObjectManager.pm aborted.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n


[Mon May 25 13:14:16.820015 2020] [:error] [pid 31415] Attempt to reload Kernel/System/ObjectManager.pm aborted.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n


One of the message says "Cant Locate Moo.pm" but I am not sure why its saying this since Moo is already installed.
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by root »

pradeepspa wrote: 25 May 2020, 15:15
One of the message says "Cant Locate Moo.pm" but I am not sure why its saying this since Moo is already installed.
Hi,

Where do you have Moo installed? Search for Moo.pm

- 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 ?
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Here is where I find them.
/opt/otrs/.cpan/build/Moo-2.004000-8yc_u6/blib/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-8yc_u6/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-HDhLO6/blib/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-HDhLO6/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-MlEhCn/blib/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-MlEhCn/lib/Moo.pm
/opt/otrs/perl5/lib/perl5/Moo.pm
/root/.cpan/build/Moo-2.004000-6nGbVi/blib/lib/Moo.pm
/root/.cpan/build/Moo-2.004000-6nGbVi/lib/Moo.pm
/root/perl5/lib/perl5/Moo.pm
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by root »

pradeepspa wrote: 25 May 2020, 18:01 Here is where I find them.
/opt/otrs/.cpan/build/Moo-2.004000-8yc_u6/blib/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-8yc_u6/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-HDhLO6/blib/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-HDhLO6/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-MlEhCn/blib/lib/Moo.pm
/opt/otrs/.cpan/build/Moo-2.004000-MlEhCn/lib/Moo.pm
/opt/otrs/perl5/lib/perl5/Moo.pm
/root/.cpan/build/Moo-2.004000-6nGbVi/blib/lib/Moo.pm
/root/.cpan/build/Moo-2.004000-6nGbVi/lib/Moo.pm
/root/perl5/lib/perl5/Moo.pm
Hi,

This is not te right location. Check your cpan settings (environment) and install the module system wide.

- 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 ?
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

PLease dont mind if my question is trivial since I am no expert in perl modules.

I see CPAN config under
/root/.cpan/CPAN/MyConfig.pm
where it mentioned the build directory as "
'build_dir' => q[/root/.cpan/build]"
Is this not the right location?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by root »

Hi,

I expected a location like /usr/share/perl5/Moo.pm or /usr/local/share/perl5/Moo.pm

- 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 ?
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

After some digging , I changed the directory for the cpn module to
/usr/local/share/perl5
using
cpanm -L /usr/local/share/perl5 Moo.pm
But still I am getting the same error.
[Tue May 26 14:59:50.439259 2020] [:error] [pid 2780] Can't locate Moo.pm in @INC (@INC contains: /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /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 . /etc/httpd) at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.\nBEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.\nBEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.\nCompilation failed in require at /opt/otrs//Kernel/System/Main.pm line 23.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/System/Main.pm line 23.\nCompilation failed in require at /opt/otrs//Kernel/System/ObjectManager.pm line 34.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/System/ObjectManager.pm line 34.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n



[Tue May 26 14:59:55.880335 2020] [:error] [pid 2779] Can't locate Moo.pm in @INC (@INC contains: /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /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 . /etc/httpd) at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.\nBEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.\nBEGIN failed--compilation aborted at /opt/otrs/Kernel/cpan-lib/Math/Random/Secure.pm line 8.\nCompilation failed in require at /opt/otrs//Kernel/System/Main.pm line 23.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/System/Main.pm line 23.\nCompilation failed in require at /opt/otrs//Kernel/System/ObjectManager.pm line 34.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/System/ObjectManager.pm line 34.\nCompilation failed in require at /opt/otrs/bin/cgi-bin/index.pl line 33.\nBEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 33.\n
[Tue May 26 14:59:56.277184 2020] [perl:error] [pid 2781] [client 192.168.199.254:3393] Use of uninitialized value in list assignment at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 33.\nCompilation failed in require at /opt/otrs/Kernel/cpan-lib/Apache2/Reload.pm line 179.\n
^C
locate Moo.pm
/root/.cpanm/work/1590504635.3618/Moo-2.004000/blib/lib/Moo.pm
/root/.cpanm/work/1590504635.3618/Moo-2.004000/lib/Moo.pm
/usr/local/share/perl5/lib/perl5/Moo.pm
I am not sure what am I missing.
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by wurzel »

Hi,

try to use $OTRSHOME/bin/otrs.CheckModules.pl as user otrs

check if you can install the perl package as otrs user with sudo yum install <package>
helped me on my last CentOS

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

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by skullz »

Try

Uninstall perl-moo
Remove / comment perl directory location at root .bashrc
Relogin to ssh
Install back perl-moo
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Finally that worked! Thanks a lot!
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Just one quick question. If I got it right, the difference between OTRS Community edition vs ITSM is , ITSM is paid feature?
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by wurzel »

Hi,

pradeepspa wrote: 27 May 2020, 15:32 Just one quick question. If I got it right, the difference between OTRS Community edition vs ITSM is , ITSM is paid feature?
all you find here https://community.otrs.com/ is community.
most things you find here https://otrs.com is commercial.

All other modules you get for example from https://opar.perl-services.de/ or other developpers/companies follow similar model.
some things are are free for the community, some you have to pay for.

Everything is open source.

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.
pradeepspa
Znuny newbie
Posts: 68
Joined: 06 May 2016, 14:03
Znuny Version: 3.0.5
Real Name: Pradeep

Re: OTRS UPgrade 6.0.19 to 6.0.28 Not Working

Post by pradeepspa »

Great Thanks.
Post Reply