AWS OTRS perl error

Moderator: crythias

Locked
dean
Znuny newbie
Posts: 2
Joined: 01 Sep 2016, 10:03
Znuny Version: 5.0.12
Real Name: Ben

AWS OTRS perl error

Post by dean »

Hello everybody,

we try an EC2 server set up a OTRS system and after installing our Apache does not start properly. Here are the error log from Apache :

[perl:error] [pid 22779] Cannot find current script '/opt/' at /usr/share/perl5/FindBin.pm line 166.\nBEGIN failed--compilation aborted at /usr/share/perl5/FindBin.pm line 166.\nCompilation failed in require at /opt/otrs//Kernel/Config/Defaults.pm line 30.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/Config/Defaults.pm line 30.\nCompilation failed in require at /opt/otrs//Kernel/Config.pm line 103.\nBEGIN failed--compilation aborted at /opt/otrs//Kernel/Config.pm line 103.\nCompilation failed in require at /opt/otrs/scripts/apache2-perl-startup.pl line 68.\nBEGIN failed--compilation aborted at /opt/otrs/scripts/apache2-perl-startup.pl line 68.\nCompilation failed in require at (eval 2) line 1.\n

Unfortunately, me and my colleague a newbie to Perl terms. Does anyone have a proposal to solve the problem?
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: AWS OTRS perl error

Post by root »

Which AMI? Do you have mod_perl enabled?
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 ?
golferx12
Znuny newbie
Posts: 1
Joined: 11 Sep 2016, 22:43
Znuny Version: 4.0.18

Re: AWS OTRS perl error

Post by golferx12 »

I am having the same problem on an AWS AMI server. The mod_perl is enabled using the default perl.conf file installed in /etc/httpd/conf.d per the otrs RPM package.

Here are my versions:

Code: Select all

# rpm -qa otrs mod_perl httpd
httpd-2.2.31-1.8.amzn1.x86_64
otrs-4.0.18-01.noarch
mod_perl-2.0.7-7.27.amzn1.x86_64

# ./otrs.CheckModules.pl 
  o Apache2::Reload..................ok (v0.12)
  o Archive::Tar.....................ok (v1.92)
  o Archive::Zip.....................ok (v1.30)
  o Crypt::Eksblowfish::Bcrypt.......Not installed! Use: 'cpan Crypt::Eksblowfish::Bcrypt' (optional - For strong password hashing.)
  o Crypt::SSLeay....................ok (v0.64)
  o Date::Format.....................ok (v2.24)
  o DBI..............................ok (v1.627)
  o DBD::mysql.......................ok (v4.023)
  o DBD::ODBC........................Not installed! Use: 'cpan DBD::ODBC' (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! Use: 'cpan DBD::Oracle' (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'cpan DBD::Pg' (optional - Required to connect to a PostgreSQL database.)
  o Encode::HanExtra.................Not installed! Use: 'cpan Encode::HanExtra' (optional - Required to handle mails with several Chinese character sets.)
  o GD...............................Not installed! Use: 'cpan GD' (optional - Required for stats.)
    o GD::Text.......................Not installed! Use: 'cpan GD::Text' (optional - Required for stats.)
    o GD::Graph......................Not installed! Use: 'cpan GD::Graph' (optional - Required for stats.)
  o IO::Socket::SSL..................ok (v1.94)
  o JSON::XS.........................Not installed! Use: 'cpan JSON::XS' (optional - Recommended for faster AJAX/JavaScript handling.)
  o List::Util::XS...................ok (v1.27)
  o LWP::UserAgent...................ok (v6.06)
  o Mail::IMAPClient.................ok (v3.34)
    o IO::Socket::SSL................ok (v1.94)
  o ModPerl::Util....................ok (v2.000007)
  o Net::DNS.........................ok (v0.72)
  o Net::LDAP........................ok (v0.56)
  o PDF::API2........................Not installed! Use: 'cpan PDF::API2' (optional - Required for PDF output.)
  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 Time::Piece......................ok (v1.20_01)
  o XML::Parser......................ok (v2.41)
  o YAML::XS.........................ok (v0.59)
Locked