Serverfehler : Can't locate Kernel/System/Web/InterfaceAgent

Hilfe zu Znuny Problemen aller Art
Locked
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Serverfehler : Can't locate Kernel/System/Web/InterfaceAgent

Post by Boity »

Hallo,

ich hab seit Apache2 restart folgende Fehlermeldung :


Fehlermeldung:

Code: Select all

Can't locate Kernel/System/Web/InterfaceAgent.pm in @INC (@INC contains: /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2) at /opt/otrs/bin/cgi-bin/index.pl line 42. BEGIN failed--compilation aborted at /opt/otrs/bin/cgi-bin/index.pl line 42. 

Ich komme nicht drauf was falsch ist !

Meine index.pl sieht so aus :

Code: Select all

use strict;
use warnings;

# use ../../ as lib location
use FindBin qw($Bin);
use lib "$Bin/../..";
use lib "$Bin/../../Kernel/cpan-lib";

use vars qw($VERSION @INC);
$VERSION = qw($Revision: 1.88 $) [1];

# check @INC for mod_perl (add lib path for "require module"!)
push( @INC, "$Bin/../..", "$Bin/../../Kernel/cpan-lib" );

# 0=off;1=on;
my $Debug = 0;

# load agent web interface
use Kernel::System::Web::InterfaceAgent();

# create new object
my $Interface = Kernel::System::Web::InterfaceAgent->new( Debug => $Debug );

# execute object
$Interface->Run();

Und meien config.pm so :

Code: Select all

# --
# Kernel/Config.pm - Config file for OTRS kernel
# Copyright (C) 2001-2009 xxx, http://otrs.org/
# --
# $Id: Config.pm.dist,v 1.21 2009/02/16 12:01:43 tr Exp $
# --
# 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:
#
#  -->> OTRS does have a lot of config settings. For more settings
#       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
#       LDAP, PostMaster, Session, Preferences, ...) see
#       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
#       config file. This file will not be changed on update!
#
# --

package Kernel::Config;

sub Load {
    my $Self = shift;
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #
    #                                                      #
    #         Start of your own config options!!!          #
    #                                                      #
    # ---------------------------------------------------- #
    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # database settings                                    #
    # ---------------------------------------------------- #
    # DatabaseHost
    # (The database host.)
    $Self->{DatabaseHost} = 'localhost';
    # Database
    # (The database name.)
    $Self->{Database} = 'otrs';
    # DatabaseUser
    # (The database user.)
    $Self->{DatabaseUser} = 'otrs';
    # DatabasePw
    # (The password of database user. You also can use bin/CryptPassword.pl
    # for crypted passwords.)
    $Self->{DatabasePw} = 'some-pass';
    # DatabaseDSN
    # (The database DSN for MySQL ==> more: "man DBD::mysql")
    $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";

    # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
    # if you want to use a local socket connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
    # if you want to use a tcpip connection
#    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";

    # ---------------------------------------------------- #
    # 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;

    # ---------------------------------------------------- #

    # ---------------------------------------------------- #
    # 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 $VERSION);
use Kernel::Config::Defaults;
push (@ISA, 'Kernel::Config::Defaults');

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.21 $)[1];

# -----------------------------------------------------#

1;
Findet ihr evtl. den Fehler?

Gruß,
Boity
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Serverfehler : Can't locate Kernel/System/Web/InterfaceAgent

Post by jojo »

Für mal bitte das Script bin/otrs/RebuildConfig aus
"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
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Serverfehler : Can't locate Kernel/System/Web/InterfaceAgent

Post by Boity »

Guten Abend!

Leider selber Fehler.


./otrs.RebuildConfig.pl
otrs.RebuildConfig.pl <Revision 1.12> - OTRS rebuild default config
Copyright (C) 2001-2009 xxx, http://otrs.org/
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
otrscrasher
Znuny newbie
Posts: 45
Joined: 01 Feb 2013, 15:54
Znuny Version: 3.3.8

Re: Serverfehler : Can't locate Kernel/System/Web/InterfaceA

Post by otrscrasher »

Hab im Moment das selbe Problem auf dem Testserver ... Bin auch am rätseln :)
---RedHat 6.5---MySql 5.1.73---Apache 2.2.15---OTRS 3.3.8---
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Serverfehler : Can't locate Kernel/System/Web/InterfaceA

Post by reneeb »

Sind die Berechtigungen richtig gesetzt?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Serverfehler : Can't locate Kernel/System/Web/InterfaceA

Post by RStraub »

Code: Select all

Can't locate xy in @INC
Das ist eine Perl Meldung, @INC ist eine Variable ähnlich dem PATH. Du könntest mal testen diesen zu erweitern:

export PERL5LIB=/opt/otrs
(Angenommen das ist der Pfad zum OTRS hinter dem dann 'Kernel/System/Web/InterfaceAgent.pm' liegt)
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
Locked