OTRS error - Can't locate object method

Moderator: crythias

Locked
xax0
Znuny newbie
Posts: 41
Joined: 01 Nov 2013, 10:46
Znuny Version: 3.3 beta4

OTRS error - Can't locate object method

Post by xax0 »

Hello guys,
I am receiving the following error and I can't figure out why? It is generated when i access the default login URL http://localhost/otrs/index.pl

It gives me:

Code: Select all

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
[/i]

I believe it is something with regards to initiating session and checking permissions, but can't confirm unfortunately. Looked everywhere else but the only one error is the one below (/var/log/httpd/error_log):

Code: Select all

[Wed May 14 15:10:25 2014] -e:  (in cleanup) Can't locate object method "EventHandlerTransaction" via package "Kernel::System::AuthSession" at /opt/otrs/Custom/Kernel/System/AuthSession.pm line 367.
[Wed May 14 15:10:25 2014] [error] mkdir /opt/otrs_data/2014/05/14/check_permissions_25492_44155048_1400076625_947364: Permission denied at /opt/otrs//Kernel/System/Ticket/ArticleStorageFS.pm line 41\n\t(in cleanup) Can't locate object method "EventHandlerTransaction" via package "Kernel::System::AuthSession" at /opt/otrs/Custom/Kernel/System/AuthSession.pm line 367.\n
Any help is greatly appreciated.
OTRS 3.3.6 with ITSM 3.3.6 running on CentOS 6.4, PostgreSQL 9.x
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: OTRS error - Can't locate object method

Post by RStraub »

Missing or wrong file permissions.

Did you run the otrs.SetPermissions.pl ?

Alternatively use a (not recommended) chown -R otrs:GROUPNAMEOFWEBSERVER /pathToOtrs/*

Edit: Or start with showing us a "ls -l" on directory '/opt/otrs/Kernel/System/Ticket/'
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
xax0
Znuny newbie
Posts: 41
Joined: 01 Nov 2013, 10:46
Znuny Version: 3.3 beta4

Re: OTRS error - Can't locate object method

Post by xax0 »

OK, i forgot to mention that I am running it in a SELinux enabled environment. When i set http_t content type to permissive policy, everything works. However, the idea is to be protected with SELinux.

And I am not going to chown the whole /opt/otrs directory :D it is not security at all.
OTRS 3.3.6 with ITSM 3.3.6 running on CentOS 6.4, PostgreSQL 9.x
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS error - Can't locate object method

Post by crythias »

The OTRS docs say disable selinux.
You don't want that.
So http://selinuxproject.org/page/ApacheRecipes
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
xax0
Znuny newbie
Posts: 41
Joined: 01 Nov 2013, 10:46
Znuny Version: 3.3 beta4

Re: OTRS error - Can't locate object method

Post by xax0 »

Thanks for this link, I am familiar with SELinux, how to troubleshoot and how to modify policies, etc.

However I've excausted all troubleshooting options and that's why I've posted it here. I am using partially this guy's manual:

http://gergely.polonkai.eu/blog/2013/05 ... abled.html
OTRS 3.3.6 with ITSM 3.3.6 running on CentOS 6.4, PostgreSQL 9.x
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS error - Can't locate object method

Post by crythias »

Custom/Kernel/System/AuthSession.pm line 367
Custom?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
xax0
Znuny newbie
Posts: 41
Joined: 01 Nov 2013, 10:46
Znuny Version: 3.3 beta4

Re: OTRS error - Can't locate object method

Post by xax0 »

We have some custom scripts running, but nothing too extraordinary.
OTRS 3.3.6 with ITSM 3.3.6 running on CentOS 6.4, PostgreSQL 9.x
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS error - Can't locate object method

Post by crythias »

xax0 wrote:We have some custom scripts running, but nothing too extraordinary
yeahbut...

stock 3.3.6: wc -l AuthSession.pm
279 AuthSession.pm
(279 lines)
/opt/otrs/Custom/Kernel/System/AuthSession.pm line 367
Can't help you.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
xax0
Znuny newbie
Posts: 41
Joined: 01 Nov 2013, 10:46
Znuny Version: 3.3 beta4

Re: OTRS error - Can't locate object method

Post by xax0 »

No worries, I am just trying to collect opinions and whether someone faced the same issue.

I will post my results if i resolve it, as it will be useful for the others as well. I've just rebuilt the test system and I am going to try and enforce SELinux once more.

Thanks for your help crythias, much appreciated!
OTRS 3.3.6 with ITSM 3.3.6 running on CentOS 6.4, PostgreSQL 9.x
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: OTRS error - Can't locate object method

Post by crythias »

The error message is custom to you because the file isn't stock. If it was stock, you would not get this error.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked