Sorry for my English, I used google translate.
I just installed OTRS system at my company in a clean install of Centos 6.4 OS.
All right, follow the documentation:
I enabled authentication via Acitive Directory as the documentation and some customizations:http://doc.otrs.org/3.2/en/html/installation.html # installation-on-centos
And everything works as expected except that the system displays an error intermittently when in normal use:
When the error happens and I click F5 the page displaying the error normally carries, here's my Kernel / Config.pm and some logsInternal Server Error
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.
Apache/2.2.15 (CentOS) Server at Port 80 otrs.mppb.mp.br
Kernel/Config.pm:
/var/log/messages:# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2013 xxx, http://otrs.org/
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
# Note:
#
# -->> Most OTRS configuration should be done via the OTRS web interface
# and the SysConfig. Only for some configuration, such as database
# credentials and customer data source changes, you should edit this
# file. For changes do customer data sources you can copy the definitions
# from Kernel/Config/Defaults.pm and paste them in this file.
# Config.pm will not be overwritten when updating OTRS.
# --
package Kernel::Config;
use strict;
use warnings;
use utf8;
sub Load {
my $Self = shift;
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# The database host
$Self->{'DatabaseHost'} = '10.128.0.22';
# The database name
$Self->{'Database'} = 'otrs';
# The database user
$Self->{'DatabaseUser'} = 'otrs';
# The password of database user. You also can use bin/otrs.CryptPassword.pl
# for crypted passwords
$Self->{'DatabasePw'} = 'otrsdb';
# The database DSN for MySQL ==> more: "perldoc DBD::mysql"
$Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
# The database DSN for PostgreSQL ==> more: "perldoc DBD::Pg"
# if you want to use a local socket connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
# if you want to use a TCP/IP connection
# $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
# if you have PostgresSQL 8.1 or earlier, activate the legacy driver with this line:
# $Self->{DatabasePostgresqlBefore82} = 1;
# The database DSN for Microsoft SQL Server - only supported if OTRS is
# installed on Windows as well
# $Self->{DatabaseDSN} = "DBI:ODBC:driver={SQL Server};Database=$Self->{Database};Server=$Self->{DatabaseHost},1433";
# The database DSN for Oracle ==> more: "perldoc DBD::oracle"
# $ENV{ORACLE_HOME} = '/u01/app/oracle/product/10.2.0/client_1';
# $ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
# $ENV{NLS_LANG} = "american_america.utf8";
# $Self->{DatabaseDSN} = "DBI:Oracle:sid=OTRS;host=$Self->{DatabaseHost};port=1522;";
# ---------------------------------------------------- #
# fs root directory
# ---------------------------------------------------- #
$Self->{Home} = '/opt/otrs';
# ---------------------------------------------------- #
# insert your own config settings "here" #
# config settings taken from Kernel/Config/Defaults.pm #
# ---------------------------------------------------- #
# $Self->{SessionUseCookie} = 0;
# $Self->{CheckMXRecord} = 0;
$Self->{'AuthModule1'} = 'Kernel::System::Auth::DB';
$Self->{'AuthModule2'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host2'} = '10.128.0.12';
$Self->{'AuthModule::LDAP::BaseDN2'} = 'cn=Users,dc=mppb,dc=intranet';
$Self->{'AuthModule::LDAP::UID2'} = 'sAMAccountName';
# $Self->{'AuthModule::LDAP::GroupDN2'} = 'cn=Users,dc=mppb,dc=intranet';
# $Self->{'AuthModule::LDAP::AccessAttr2'} = 'memberUid';
# $Self->{'AuthModule::LDAP::UserAttr2'} = 'UID';
$Self->{'AuthModule::LDAP::UserAttr2'} = 'DN';
$Self->{'AuthModule::LDAP::SearchUserDN2'} = 'cn=Administrator,cn=Users,dc=mppb,dc=intranet';
$Self->{'AuthModule::LDAP::SearchUserPw2'} = 'XXXXXXXX';
$Self->{'AuthModule::LDAP::AlwaysFilter2'} = '(objectclass=user)';
$Self->{'AuthModule::LDAP::Params2'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
# agent data sync against ldap
$Self->{'AuthSyncModule'} = 'Kernel::System::Auth::Sync::LDAP';
$Self->{'AuthSyncModule::LDAP::Host'} = 'ldap://10.128.0.12';
$Self->{'AuthSyncModule::LDAP::BaseDN'} = 'cn=Users,dc=mppb, dc=intranet';
$Self->{'AuthSyncModule::LDAP::UID'} = 'sAMAccountName';
$Self->{'AuthSyncModule::LDAP::SearchUserDN'} = 'cn=Administrator,cn=Users,dc=mppb,dc=intranet';
$Self->{'AuthSyncModule::LDAP::SearchUserPw'} = 'XXXXXXX';
$Self->{'AuthSyncModule::LDAP::UserSyncMap'} = {
# DB -> LDAP
UserFirstname => 'givenName',
UserLastname => 'sn',
UserEmail => 'mail',
};
$Self->{'AuthSyncModule::LDAP::UserSyncInitialGroups'} = [
'users',
];
# This is an example configuration for an LDAP auth. backend.
# (make sure Net::LDAP is installed!)
$Self->{'Customer::AuthModule'} = 'Kernel::System::CustomerAuth::LDAP';
$Self->{'Customer::AuthModule::LDAP::Host'} = '10.128.0.12';
$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'cn=Users,dc=mppb,dc=intranet';
$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName';
# $Self->{'Customer::AuthModule::LDAP::GroupDN'} = 'cn=Users,dc=mppb,dc=intranet';
# $Self->{'Customer::AuthModule::LDAP::AccessAttr'} = 'member';
# $Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'UID';
$Self->{'Customer::AuthModule::LDAP::UserAttr'} = 'DN';
$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'cn=Administrator,cn=Users,dc=mppb,dc=intranet';
$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'XXXXXX';
$Self->{'Customer::AuthModule::LDAP::AlwaysFilter'} = '(objectclass=user)';
$Self->{'Customer::AuthModule::LDAP::Params'} = {
port => 389,
timeout => 120,
async => 0,
version => 3,
};
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
# $DIBI$
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# end of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
}
# ---------------------------------------------------- #
# needed system stuff (don't edit this) #
# ---------------------------------------------------- #
use strict;
use warnings;
use vars qw(@ISA);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');
# -----------------------------------------------------#
1;
/var/log/httpd/error_log:Jul 31 10:23:22 otrs OTRS-CGI-10[4130]: [Notice][Kernel::System::Auth::DB::Auth] User: teste01 authentication with wrong Pw!!! (REMOTE_ADDR: 10.128.4.1)
Jul 31 10:23:22 otrs OTRS-CGI-10[4130]: [Notice][Kernel::System::Auth::DB::Auth] User: teste01 authentication with wrong Pw!!! (REMOTE_ADDR: 10.128.4.1)
Jul 31 10:23:22 otrs OTRS-CGI-10[4130]: [Notice][Kernel::System::Auth::LDAP::Auth] User: teste01 (CN=Teste01,CN=Users,DC=mppb,DC=intranet) authentication ok (REMOTE_ADDR: 10.128.4.1).
Jul 31 10:23:32 otrs OTRS-CGI-10[2790]: [Notice][Kernel::System::AuthSession::DB::RemoveSessionID] Removed SessionID 101c08afd980c8322c3d28287b07a42ef2.
/opt/otrs/Kernel/Config/Defaults.pm line 1764:[Wed Jul 31 10:26:36 2013] [error] Undefined subroutine &Kernel::Config::Load called at /opt/otrs//Kernel/Config/Defaults.pm line 1764.\n
/var/log/httpd/access_log:[...]
sub new {
my ( $Type, %Param ) = @_;
# allocate new hash for object
my $Self = {};
bless( $Self, $Type );
# 0=off; 1=log if there exists no entry; 2=log all;
$Self->{Debug} = 0;
# return on clear level
if ( $Param{Level} && $Param{Level} eq 'Clear' ) {
# load config
$Self->Load();
return $Self;
}
# load defaults
$Self->LoadDefaults();
# load config
$Self->Load(); <-- Line 1764
# load extra config files
if ( -e "$Self->{Home}/Kernel/Config/Files/" ) {
my @Files = glob("$Self->{Home}/Kernel/Config/Files/*.pm");
# sort
my @NewFileOrderPre = ();
my @NewFileOrderPost = ();
for my $File (@Files) {
if ( $File =~ /Ticket/ ) {
push @NewFileOrderPre, $File;
}
else {
push @NewFileOrderPost, $File;
}
}
@Files = ( @NewFileOrderPre, @NewFileOrderPost );
for my $File (@Files) {
# do not use ZZZ files
if ( $Param{Level} && $Param{Level} eq 'Default' && $File =~ /ZZZ/ ) {
next;
}
# check config file format - use 1.0 as eval string, 1.1 as require or do
my $FileFormat = 1;
my $ConfigFile = '';
[...]
If anyone can help me.Error:
10.128.4.1 - - [31/Jul/2013:10:27:59 -0300] "GET /otrs/index.pl?Action=AgentDashboard HTTP/1.1" 500 396 "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... icketPhone" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
after F5 in same page:
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs/index.pl?Action=AgentDashboard HTTP/1.1" 200 2911 "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... icketPhone" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/skins/Agent/default/css-cache/CommonCSS_3e727f4ddc6cd1b2f75586031614d377.css HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... tDashboard" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/skins/Agent/default/css/thirdparty/ui-theme/jquery-ui.css HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... tDashboard" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/js/js-cache/CommonJS_dde96bfbfcfac18389df4e360ad317ba.js HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... tDashboard" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/js/js-cache/ModuleJS_48c02fdb21cafbb61bb55aba64f4eab9.js HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... tDashboard" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/skins/Agent/default/img/header_bg.png HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs-web/skins/A ... 14d377.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/skins/Agent/default/img/logo_bg.png HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs/index.pl?Ac ... tDashboard" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/skins/Agent/default/img/widget_bg_100.png HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs-web/skins/A ... 14d377.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
10.128.4.1 - - [31/Jul/2013:10:28:03 -0300] "GET /otrs-web/skins/Agent/default/img/arrow_top.png HTTP/1.1" 304 - "http://otrs.mppb.mp.br/otrs-web/skins/A ... 14d377.css" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:22.0) Gecko/20100101 Firefox/22.0"
Thanks in advance