OTRS error after update to 6.0.27

Moderator: crythias

Locked
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

OTRS error after update to 6.0.27

Post by maro584 »

Hello everybody,

I have update an OTRS from version 6.0.15 to 6.0.27 during the whole update procedure I have forund only one problem with Moo.pm, but I have solved this using this thread:

viewtopic.php?f=62&t=41579

After a quick module installation I have continued a procedure:

https://doc.otrs.com/doc/manual/admin/6 ... ating.html

After when the upgrade succeed I have tied to open OTRS url but I have got a "500 internal server error"
Logs from Apache:

Code: Select all

[Fri Apr  3 19:35:00 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr 03 19:35:00.192660 2020] [mpm_prefork:notice] [pid 24491] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Apr 03 19:36:37.318690 2020] [suexec:notice] [pid 24943] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Apr 03 19:36:37.496614 2020] [auth_digest:notice] [pid 24943] AH01757: generating secret for digest authentication ...
[Fri Apr 03 19:36:37.497314 2020] [lbmethod_heartbeat:notice] [pid 24943] AH02282: No slotmem from mod_heartmonitor
[Fri Apr 03 19:36:37.502066 2020] [mpm_prefork:notice] [pid 24943] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.2k-fips mod_perl/2.0.10 Perl/v5.16.3 configured -- resuming normal operations
[Fri Apr 03 19:36:37.502097 2020] [core:notice] [pid 24943] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Apr  3 19:37:51 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:37:56 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:38:15 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:38:15 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:38:41 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:38:41 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:38:43 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:38:43 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:39:07 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:39:07 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:39:18 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:39:18 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:39:31 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:39:31 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
[Fri Apr  3 19:40:00 2020] -e: Apache2::Reload: Can't locate /usr/local/share/perl5/Module/Runtime.pm
I have checked and to this file only user root have permission, I have tried to change it to otrs but unfortunatelly without result, also I do not know if access permissions are the case here.
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS error after update to 6.0.27

Post by maro584 »

Code: Select all

bash-4.2$ whoami
otrs
bash-4.2$ cpan Module::Runtime
Reading '/opt/otrs/.cpan/Metadata'
  Database was generated on Fri, 03 Apr 2020 11:41:03 GMT
Module::Runtime is up to date (0.016).
root
Administrator
Posts: 4251
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OTRS error after update to 6.0.27

Post by root »

Hi,

Maybe you should run cpanm as root user and not otrs. Consider that the otrs use is not allowed to install systemwide modules.

- 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 ?
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS error after update to 6.0.27

Post by maro584 »

During an update I have installed modules from thread for both users, root and otrs. To make sure I have do the command above for root user, the result is the same.

One thing bothers me, why otrs user do not have access to that .pm file from apache logs. Maybe this is a case?
maro584
Znuny newbie
Posts: 39
Joined: 04 Feb 2020, 17:36
Znuny Version: 6.0.24
Real Name: Mark

Re: OTRS error after update to 6.0.27

Post by maro584 »

To install perl modules I have used this command

echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.bashrc

then run cpan shell this way

perl -MCPAN -Mlocal::lib -e shell


As I had the same problem like in this topic:

https://www.perlmonks.org/?replies=1;di ... _id=967116
Locked