Hallo,
ich möchte ein OTRS von einem Ubuntu 10.04 auf ein Ubuntu 12.04 umziehen. Zunächst hatte ich es mit einer Neuinstalltion versucht und alle Schritte im Installer durchgeführt. Nachdem ich meine Konfig vom alten Server und die Datenbank eingespielt hatte, bekam ich folgenden Fehler beim Aufrufen der Frontends:
Message: Unknown database type! Set option Database::Type in Kernel/Config.pm to (mysql|postgresql|oracle|db2|mssql).
Dann habe ich versucht die Inhalte des alten Servers einfach auf den neuen zu kopieren, und ebenfalls die Datenbank einzuspielen. Selbes Ergebnis. Folgende Fehlermeldung erhalte ich im Apach Log:
[Wed Oct 30 09:30:10 2013] -e: Use of uninitialized value in pattern match (m//) at /opt/otrs//Kernel/System/DB.pm line 115.
>> Can't write /var/log/otrs.log: Permission denied <<
ERROR: OTRS-CGI-10 Perl: 5.14.2 OS: linux Time: Wed Oct 30 09:30:10 2013
Message: Unknown database type! Set option Database::Type in Kernel/Config.pm to (mysql|postgresql|oracle|db2|mssql).
RemoteAddress: 10.30.10.62
RequestURI: /otrs/index.pl
Traceback (6581):
Module: Kernel::System::DB::new (OTRS 3.2.6) Line: 161
Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.2.6) Line: 140
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41
Module: (eval) (v1.99) Line: 204
Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
Module: ModPerl::Registry::handler (v1.99) Line: 31
Hier meine Config.pm:
package Kernel::Config;
BEGIN {
if (-f '/etc/otrs/database.pm') {
require '/etc/otrs/database.pm';
if ($dbtype eq 'pgsql') {
$dbport ||= '5432';
our $dsn = "DBI:Pg:dbname";
}
else {
$dbport ||= '3306';
our $dsn = "DBI:mysql:database";
}
}
}
sub Load {
my $Self = shift;
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# #
# Start of your own config options!!! #
# #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# ---------------------------------------------------- #
# database settings #
# ---------------------------------------------------- #
# DatabaseHost
# (The database host.)
$Self->{DatabaseHost} = $dbserver || 'localhost';
# Database
# (The database name.)
$Self->{Database} = $dbname || 'otrs';
# DatabaseUser
# (The database user.)
$Self->{DatabaseUser} = $dbuser || 'otrs';
# DatabasePw
# (The password of database user. You also can use bin/CryptPassword.pl
# for crypted passwords.)
$Self->{DatabasePw} = $dbpass;
# DatabaseDSN
# (The database DSN for MySQL ==> more: "man DBD::mysql")
$Self->{DatabaseDSN} = "$dsn=$Self->{Database};host=$Self->{DatabaseHost};port=$dbport;";
MfG
shobunkin
Umzug OTRS Server Linux -> Linux Unknown database type! Set
Umzug OTRS Server Linux -> Linux Unknown database type! Set
Ubuntu
OTRS 6.0.29
OTRS 6.0.29
Re: Umzug OTRS Server Linux -> Linux Unknown database type!
Es handelt sich dabei um OTRS 3.2.6
Ubuntu
OTRS 6.0.29
OTRS 6.0.29
-
- Znuny wizard
- Posts: 383
- Joined: 19 Feb 2009, 12:05
- Znuny Version: 5.0.9
- Real Name: Harald Zahn
- Company: Klinikum Augsburg
- Location: Augsburg
Re: Umzug OTRS Server Linux -> Linux Unknown database type!
Was steht denn in der Datei
/etc/otrs/database.pm
/etc/otrs/database.pm
Produktiv: OTRS 5.0.9 , (ITSM 5.0.10) unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
Test: OTRS 5.0.8 , (ITSM 5.0.8), KIX unter Ubuntu 14.04, mysql 5.5
Re: Umzug OTRS Server Linux -> Linux Unknown database type!
Okay ich habe die Date in /etc/otrs/otrs/ kopiert.
Jetzt läuft es.
Danke
Jetzt läuft es.
Danke
Ubuntu
OTRS 6.0.29
OTRS 6.0.29