Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Moderator: crythias

Locked
Snowmanko
Znuny newbie
Posts: 71
Joined: 06 Mar 2015, 17:45
Znuny Version: 6.0.5-1

Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by Snowmanko »

Hi,

I have freshly installed Ubuntu 20.04 LTS with OTRS 6.0.26-1 package.
This error is thrown when trying to add Company in Action AdminCustomerCompany resulting in Internal Server Error (500).

Do someone know what perl related package should be installed?

[Tue Jul 07 03:29:42.605271 2020] [:error] [pid 2296:tid 140408947853056] Kernel::System::ReferenceData could not be loaded: Can't locate Locale/Country.pm in @INC (you may need to install the Locale::Country module) (@INC contains: /usr/Custom /usr/Kernel/cpan-lib /usr /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /usr/share/otrs/Custom /usr/share/otrs/Kernel/cpan-lib /usr/share/otrs/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /etc/apache2) at /usr/share/otrs/Kernel/System/ReferenceData.pm line 14.\nBEGIN failed--compilation aborted at /usr/share/otrs/Kernel/System/ReferenceData.pm line 14.\nCompilation failed in require at /usr/share/otrs/Kernel/System/ObjectManager.pm line 254.\n at /usr/share/otrs/Kernel/Modules/AdminCustomerCompany.pm line 644.\n

Thanks.
BR!
OTRS 6.0.3-1, MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by jojo »

did you run the otrs.CheckModules script? What is the output?
"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
Snowmanko
Znuny newbie
Posts: 71
Joined: 06 Mar 2015, 17:45
Znuny Version: 6.0.5-1

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by Snowmanko »

Yes,

o Apache::DBI......................ok (v1.12)
o Apache2::Reload..................ok (v0.13)
o Archive::Tar.....................ok (v2.32)
o Archive::Zip.....................ok (v1.67)
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Date::Format.....................ok (v2.24)
o DateTime.........................ok (v1.51)
o DateTime::TimeZone.............ok (v2.38)
o DBI..............................ok (v1.643)
o DBD::mysql.......................ok (v4.050)
o DBD::ODBC........................Not installed! To install, you can use: 'apt-get install -y libdbd-odbc-perl'. (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 (v3.10.4)
o Digest::SHA......................ok (v6.02)
o Encode::HanExtra.................ok (v0.23)
o IO::Socket::SSL..................ok (v2.067)
o JSON::XS.........................ok (v4.02)
o List::Util::XS...................ok (v1.50)
o LWP::UserAgent...................ok (v6.43)
o Mail::IMAPClient.................ok (v3.42)
o IO::Socket::SSL................ok (v2.067)
o Authen::SASL...................ok (v2.16)
o Authen::NTLM...................Not installed! To install, you can use: 'apt-get install -y libauthen-ntlm-perl'. (optional - Required for NTLM authentication mechanism in IMAP connections.)
o ModPerl::Util....................ok (v2.000011)
o Net::DNS.........................ok (v1.22)
o Net::LDAP........................ok (v0.66)
o Net::SMTP........................ok (v3.11)
o Template.........................ok (v2.27)
o Template::Stash::XS..............ok (undef)
o Text::CSV_XS.....................ok (v1.41)
o Time::HiRes......................ok (v1.9760)
o XML::LibXML......................ok (v2.0134)
o XML::LibXSLT.....................ok (v1.99)
o XML::Parser......................ok (v2.46)
o YAML::XS.........................ok (v0.81)
OTRS 6.0.3-1, MySQL
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by jojo »

please run with --all|switch and check if

o Encode::Locale...................ok (v1.05)
o Locale::Codes....................ok (v3.52)

is 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
wurzel
Znuny guru
Posts: 3270
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by wurzel »

Hi,

why is there an -all switch? Makes no sense. Why is the module checker not doing all the cecks in default?

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

-- 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.
Snowmanko
Znuny newbie
Posts: 71
Joined: 06 Mar 2015, 17:45
Znuny Version: 6.0.5-1

[SOLVED] Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by Snowmanko »

Yes! That's it! Thanks. I can install these modules with cpan or install it as alternative with some perl package, do someone know name of the related packages?

EDIT: package liblocale-codes-perl fixed this problem

Bundled modules:

o Algorithm::Diff..................ok (v1.1903)
o Apache::DBI......................ok (v1.12)
o CGI..............................ok (v4.46)
o CSS::Minifier....................ok (v0.01)
o Class::Inspector.................ok (v1.36)
o Crypt::PasswdMD5.................ok (v1.40)
o Email::Valid.....................ok (v1.202)
o Encode::Locale...................ok (v1.05)
o IO::Interactive..................ok (v1.022)
o JSON.............................ok (v4.02)
o JSON::PP.........................ok (v4.02)
o JavaScript::Minifier.............ok (v1.14)
o LWP..............................ok (v6.43)
o Linux::Distribution..............ok (v0.23)
o Locale::Codes....................Not installed! To install, you can use: 'cpan Locale::Codes'. (required)
o MIME::Tools......................ok (v5.509)
o Mail::Address....................ok (v2.21)
o Mail::Internet...................ok (v2.21)
o Module::Refresh..................ok (v0.17)
o Mozilla::CA......................Not installed! To install, you can use: 'cpan Mozilla::CA'. (required)
o Net::HTTP........................ok (v6.19)
o Net::IMAP::Simple................ok (v1.2211)
o Net::SSLGlue.....................ok (v1.058)
o PDF::API2........................ok (v2.037)
o SOAP::Lite.......................ok (v1.27)
o Sys::Hostname::Long..............ok (v1.5)
o Text::CSV........................ok (v2.00)
o Text::Diff.......................ok (v1.45)
o URI..............................ok (v1.76)
o YAML.............................ok (v1.30)
o parent...........................ok (v0.237)
OTRS 6.0.3-1, MySQL
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by zzz »

wurzel wrote: 08 Jul 2020, 00:22 Hi,

why is there an -all switch? Makes no sense. Why is the module checker not doing all the cecks in default?

Flo
Hey Flo,

Good question... but well, it didn't seem to bother you when Perl-Moo was missing ;)

— Emin
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
wurzel
Znuny guru
Posts: 3270
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by wurzel »

Hi,

one thing... can happen ;-)
but two things? Time to complain :lol:

Actually it really bothers me :(

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

-- 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.
zzz
Znuny superhero
Posts: 914
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: Unable to add Customer - Ubuntu 20.04 LTS, fresh install

Post by zzz »

Yea, there's definitely room for improvement :lol:
Professional Znuny and OTRS services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
Locked