500 Internal Server Error

Moderator: crythias

Post Reply
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

500 Internal Server Error

Post by Vale1976 »

I've installed OTRS CE vers. 6.0.28 on a CentOS 7 VM; when I try to launch the installation script (http://<my-ip>/otrs/installer.pl) a Server Error 500 return.

The apache error_log reports the following:

Code: Select all

[Sat May 23 18:09:03.513848 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: 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.
[Sat May 23 18:09:03.513904 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 5.
[Sat May 23 18:09:03.513929 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure.pm line 8.
[Sat May 23 18:09:03.513975 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure.pm line 8.
[Sat May 23 18:09:03.513999 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/Main.pm line 23.
[Sat May 23 18:09:03.514044 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/Main.pm line 23.
[Sat May 23 18:09:03.514083 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/ObjectManager.pm line 34.
[Sat May 23 18:09:03.514117 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/ObjectManager.pm line 34.
[Sat May 23 18:09:03.514146 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/installer.pl line 32.
[Sat May 23 18:09:03.514172 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/installer.pl line 32.
[Sat May 23 18:09:03.517852 2020] [cgi:error] [pid 2144] [client 192.168.244.1:61292] End of script output before headers: installer.pl
Can anybody help me please???
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 500 Internal Server Error

Post by root »

Hi,

The Perl module Moo is missing.

- 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 ?
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

I've installed it via the command:

Code: Select all

perl -MCPAN -e shell
install Moo
Now the apache error_log reports the following:

Code: Select all

[Sat May 23 18:35:01.687715 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: Can't locate namespace/clean.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/Crypt/Random/Source/Factory.pm line 11.
[Sat May 23 18:35:01.687767 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Crypt/Random/Source/Factory.pm line 11.
[Sat May 23 18:35:01.687792 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 7.
[Sat May 23 18:35:01.687823 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure/RNG.pm line 7.
[Sat May 23 18:35:01.687850 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure.pm line 8.
[Sat May 23 18:35:01.687875 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/cpan-lib/Math/Random/Secure.pm line 8.
[Sat May 23 18:35:01.687896 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/Main.pm line 23.
[Sat May 23 18:35:01.687917 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/Main.pm line 23.
[Sat May 23 18:35:01.688035 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/../../Kernel/System/ObjectManager.pm line 34.
[Sat May 23 18:35:01.688070 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/../../Kernel/System/ObjectManager.pm line 34.
[Sat May 23 18:35:01.688117 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: Compilation failed in require at /opt/otrs/bin/cgi-bin/installer.pl line 32.
[Sat May 23 18:35:01.688139 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] AH01215: BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/installer.pl line 32.
[Sat May 23 18:35:01.690104 2020] [cgi:error] [pid 1105] [client 192.168.244.1:49794] End of script output before headers: installer.pl
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 500 Internal Server Error

Post by root »

Vale1976 wrote: 23 May 2020, 18:37 Can't locate namespace/clean.pm in @INC (@INC contains: /opt/otrs/bin/Custom /opt/otrs/bin/Kernel/cpan-lib /opt/otrs/bin /opt/otrs/bin/cgi-
Hi,

Isn't it obvious? namespace::clean is next in line. Run otrs.CheckModules.pl --all

- 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 ?
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

I'm a beginning of both linux and OTRS.

I've run

Code: Select all

sudo /opt/otrs/bin/otrs.CheckModules.pl -all
The output is:

Code: Select all

 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........................ok (v1.50)
  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.01)
  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.000011)
  o Net::DNS.........................ok (v0.72)
  o Net::LDAP........................ok (v0.56)
  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)

Bundled modules:

  o Algorithm::Diff..................ok (v1.1903)
  o Apache::DBI......................ok (v1.12)
  o CGI..............................ok (v4.36)
  o CSS::Minifier....................ok (v0.01)
  o Class::Inspector.................ok (v1.31)
  o Crypt::PasswdMD5.................ok (v1.40)
  o Crypt::Random::Source............ok (v0.14)
  o Email::Valid.....................ok (v1.202)
  o Encode::Locale...................ok (v1.05)
  o Exporter::Tiny...................ok (v1.002001)
  o IO::Interactive..................ok (v1.022)
  o JSON.............................ok (v2.94)
  o JSON::PP.........................ok (v2.27203)
  o JavaScript::Minifier.............ok (v1.14)
  o LWP..............................ok (v6.26)
  o Linux::Distribution..............ok (v0.23)
  o Locale::Codes....................ok (v3.52)
  o MIME::Tools......................ok (v5.509)
  o Mail::Address....................ok (v2.18)
  o Mail::Internet...................ok (v2.18)
  o Math::Random::ISAAC..............ok (v1.004)
  o Math::Random::Secure.............ok (v0.080001)
  o Module::Find.....................ok (v0.15)
  o Module::Refresh..................ok (v0.17)
  o Moo..............................ok (v2.004000)
  o Mozilla::CA......................ok (v20180117)
  o Net::HTTP........................ok (v6.17)
  o Net::IMAP::Simple................ok (v1.2209)
  o Net::SSLGlue.....................ok (v1.058)
  o PDF::API2........................ok (v2.033)
  o SOAP::Lite.......................ok (v1.20)
  o Sys::Hostname::Long..............ok (v1.5)
  o Text::CSV........................ok (v1.95)
  o Text::Diff.......................ok (v1.44)
  o Types::TypeTiny..................ok (v1.010000)
  o URI..............................ok (v1.71)
  o YAML.............................ok (v1.23)
  o namespace::clean.................ok (v0.24)
  o parent...........................ok (v0.236)
The 500 Internal Server Error is still there; I've restarted httpd service
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

Errir_log:

Code: Select all

[Sat May 23 19:31:24.690324 2020] [:error] [pid 1555] mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 87.\n
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: 500 Internal Server Error

Post by jojo »

it seems that you did not follow the installation guideline: https://doc.otrs.com/doc/manual/admin/6 ... index.html

Alos complex systems like OTRS need deep knowledge on operating linux servers and script based languages. So for production use you should consider professional support or a fully managed system
"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
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

I follow this tutorial: https://www.vultr.com/docs/how-to-insta ... n-centos-7

To try is the first step to goal.
Would you help me or clip my wings?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: 500 Internal Server Error

Post by jojo »

you should first check with the official documentation before following some tutorial...
"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
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

Thank you! I like to see "500 Internal Server Errore" on my screen.
I'm suore someone who would help me forma real exists! :wink:
wurzel
Znuny guru
Posts: 3224
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: 500 Internal Server Error

Post by wurzel »

Hi,

check the logs. Show the output.

Show us all your steps, 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.
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

1) I installed OTRS 6.0.28 on a CentOS 7 VM following this tutorial: https://www.vultr.com/docs/how-to-insta ... n-centos-7
2) I installed Moo with these commands:

Code: Select all

perl -MCPAN -e shell
install Moo
3) I Run

Code: Select all

otrs.CheckModules.pl --all
and then installed some missing module

The httpd error_log reports:

Code: Select all

 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 203
   Module: Kernel::Output::HTML::Layout::Error Line: 1064
   Module: Kernel::Output::HTML::Layout::FatalError Line: 958
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 207
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2e                                                                                                             pl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Sun May 24 10:57:55 2020] -e: Use of uninitialized value in concatenation (.) o                                                                                                             r string at /opt/otrs//Kernel/Output/HTML/Layout.pm line 958.
ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Sun May 24 08:57:55 2020

 Message: Can't create directory '/opt/otrs/var/httpd/htdocs/js/js-cache/': Perm                                                                                                             ission denied

 RemoteAddress: 192.168.244.1
 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::System::Loader::MinifyFiles Line: 94
   Module: Kernel::Output::HTML::Layout::Loader::LoaderCreateJavaScriptTranslati                                                                                                             onData Line: 550
   Module: Kernel::Output::HTML::Layout::Footer Line: 1559
   Module: Kernel::Output::HTML::Layout::FatalError Line: 959
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 207
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2e                                                                                                             pl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Sun May 24 10:57:55.488010 2020] [:error] [pid 2193] mkdir /opt/otrs/var/tmp/Ca                                                                                                             cheFileStorable: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorabl                                                                                                             e.pm line 87.\n
[root@localhost httpd]# ^C
[root@localhost httpd]# clear
[root@localhost httpd]# cat error_log
[Sun May 24 03:16:51.166277 2020] [lbmethod_heartbeat:notice] [pid 1035] AH02282: No slotmem from mod_heartmonitor
[Sun May 24 03:16:51.166334 2020] [mpm_prefork:notice] [pid 1035] AH00163: Apache/2.4.6 (CentOS) mod_perl/2.0.11 Perl/v5.16.3 configured -- resuming normal operations
[Sun May 24 03:16:51.166338 2020] [core:notice] [pid 1035] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Sun May 24 08:57:55 2020

 Message: Can't create directory '/opt/otrs/var/tmp/CacheFileStorable':

 RemoteAddress: 192.168.244.1
 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::System::Cache::FileStorable::new Line: 46
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 306
   Module: Kernel::System::ObjectManager::Get Line: 200
   Module: Kernel::System::Cache::new Line: 129
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 306
   Module: Kernel::System::ObjectManager::Get Line: 200
   Module: Kernel::Output::Template::Provider::_fetch Line: 118
   Module: Template::Provider::_fetch_path (v2.94) Line: 529
   Module: Template::Provider::fetch (v2.94) Line: 156
   Module: Template::Context::template (v2.98) Line: 140
   Module: (eval) (v2.8) Line: 68
   Module: Template::Service::process (v2.8) Line: 68
   Module: Template::process (v2.24) Line: 66
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 191
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2epl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Sun May 24 08:57:55 2020

 Message: mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 87.


 RemoteAddress: 192.168.244.1
 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 203
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2epl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Sun May 24 08:57:55 2020

 Message: undef error - mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 87.


 RemoteAddress: 192.168.244.1
 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 203
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Output::HTML::Layout::FatalError Line: 954
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 207
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2epl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Sun May 24 10:57:55 2020] -e: Use of uninitialized value in concatenation (.) or string at /opt/otrs//Kernel/Output/HTML/Layout.pm line 1540.
ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Sun May 24 08:57:55 2020

 Message: mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 87.


 RemoteAddress: 192.168.244.1
 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 203
   Module: Kernel::Output::HTML::Layout::Error Line: 1064
   Module: Kernel::Output::HTML::Layout::FatalError Line: 958
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 207
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2epl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Sun May 24 10:57:55 2020] -e: Use of uninitialized value in concatenation (.) or string at /opt/otrs//Kernel/Output/HTML/Layout.pm line 958.
ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Sun May 24 08:57:55 2020

 Message: Can't create directory '/opt/otrs/var/httpd/htdocs/js/js-cache/': Permission denied

 RemoteAddress: 192.168.244.1
 RequestURI: /otrs/installer.pl

 Traceback (2193):
   Module: Kernel::System::Loader::MinifyFiles Line: 94
   Module: Kernel::Output::HTML::Layout::Loader::LoaderCreateJavaScriptTranslationData Line: 550
   Module: Kernel::Output::HTML::Layout::Footer Line: 1559
   Module: Kernel::Output::HTML::Layout::FatalError Line: 959
   Module: Kernel::Output::HTML::Layout::Template::Output Line: 207
   Module: Kernel::Output::HTML::Layout::Header Line: 1540
   Module: Kernel::Modules::Installer::Run Line: 165
   Module: Kernel::System::Web::InterfaceInstaller::Run Line: 128
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_installer_2epl::handler Line: 37
   Module: (eval) (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
   Module: ModPerl::Registry::handler (v1.99) Line: 32

[Sun May 24 10:57:55.488010 2020] [:error] [pid 2193] mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 87.\n
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 500 Internal Server Error

Post by root »

Hi,

I bet you still have SELinux enabled. What's the output of the command sestatus?

- 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 ?
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

It's right, SELinux is enabled.

Code: Select all

[root@localhost ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      31
The command

Code: Select all

sudo setenforce 0
makes my otrs start as expected :) :D

Thanks a lot... you are very kind.

Can I request the last (I hope) help: how can I access to OTRS via http://otrs.example.com instead of http://<my ip>/otrs?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: 500 Internal Server Error

Post by root »

Vale1976 wrote: 25 May 2020, 08:44 Can I request the last (I hope) help: how can I access to OTRS via http://otrs.example.com instead of http://<my ip>/otrs?
Hi,

This is not OTRS related and depends on how you configured your Apache httpd. My first try would be a DNS entry.

- 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 ?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: 500 Internal Server Error

Post by jojo »

Vale1976 wrote: 25 May 2020, 08:44 It's right, SELinux is enabled.
Again, please follow the official documentation to avoid these kind of issues.
"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
Vale1976
Znuny newbie
Posts: 10
Joined: 23 May 2020, 14:44
Znuny Version: 6.0.28
Real Name: Valerio

Re: 500 Internal Server Error

Post by Vale1976 »

Roy... can I manage the VirtualHost in some config OTRS file?
Post Reply