OTRS 3.0.2 otrs.ArticleStorageSwitch.pl

Hilfe zu Znuny Problemen aller Art
Locked
mojorianer
Znuny newbie
Posts: 22
Joined: 30 Nov 2010, 01:03
Znuny Version: 3.1.6
Location: Berlin, Germany

OTRS 3.0.2 otrs.ArticleStorageSwitch.pl

Post by mojorianer »

Hy,

ich habe kürzlich ein Upgrade von 2.3 auf 3.0.2 durchgeführt, welches soweit auch erfolgreich war.

Im neuen OTRS habe ich die Speicherung der Attachments von DB auf FS umgestellt.

Da meine DB mittlerweile ca. 8 GB groß ist, wollte ich sie mit dem Skript otrs.ArticleStorageSwitch.pl von allen Anhängen befreien.

Folgende Fehlermeldungen bekomme ich beim Befehl: bin/otrs.ArticleStorageSwitch.pl -s ArticleStorageDB -d ArticleStorageFS

ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.10.0 OS: linux Time: Wed Dec 1 08:13:46 2010

Message: Need UserID!

Traceback (26856):
Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.260) Line: 3147
Module: bin/otrs.ArticleStorageSwitch.pl (v1.10) Line: 172

ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.10.0 OS: linux Time: Wed Dec 1 08:13:46 2010

Message: Need UserID!

Traceback (26856):
Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.260) Line: 3147
Module: bin/otrs.ArticleStorageSwitch.pl (v1.10) Line: 105
Nach einem Versuch folgendes duchzuführen:

In Zeile 105 von
# read source attachments
my %Index = $TicketObjectSource->ArticleAttachmentIndex(
ArticleID => $ArticleID,
OnlyMyBackend => 1,
);
auf
# read source attachments
my %Index = $TicketObjectSource->ArticleAttachmentIndex(
ArticleID => $ArticleID,
OnlyMyBackend => 1,
UserID => 1,
);
Und das gleiche in Zeile Zeile 172:
# verify destination attachments
%Index = $TicketObjectDestination->ArticleAttachmentIndex(
ArticleID => $ArticleID,
OnlyMyBackend => 1,
);

# verify destination attachments
%Index = $TicketObjectDestination->ArticleAttachmentIndex(
ArticleID => $ArticleID,
OnlyMyBackend => 1,
UserID => 1,
);
bekomme ich dann diese Meldung:
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.10.0 OS: linux Time: Wed Dec 1 08:33:42 2010

Message: Need Value!

Traceback (28010):
Module: Kernel::System::CacheInternal::Set (v1.8) Line: 123
Module: Kernel::System::Ticket::Article::ArticleGetContentPath (v1.260) Line: 755
Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (v1.76) Line: 336
Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.260) Line: 3153
Module: bin/otrs.ArticleStorageSwitch.pl (v1.10) Line: 105

ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.10.0 OS: linux Time: Wed Dec 1 08:33:42 2010

Message: Need Value!

Traceback (28010):
Module: Kernel::System::CacheInternal::Set (v1.8) Line: 123
Module: Kernel::System::Ticket::Article::ArticleGetContentPath (v1.260) Line: 755
Module: Kernel::System::Ticket::ArticleStorageFS::ArticleAttachmentIndexRaw (v1.74) Line: 411
Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.260) Line: 3153
Module: bin/otrs.ArticleStorageSwitch.pl (v1.10) Line: 173

Use of uninitialized value $ContentPath in concatenation (.) or string at /opt/otrs/Kernel/System/Ticket/ArticleStorageFS.pm line 416.
Bitte helfen :(
OTRS 3.1.10 on CentOS 6
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS 3.0.2 otrs.ArticleStorageSwitch.pl

Post by Wolfgangf »

... von der 3.0.3 Bugfixliste:
o Bug# 6382 - otrs.ArticleStorageSwitch.pl script not working.
http://bugs.otrs.org/show_bug.cgi?id=6382
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
mojorianer
Znuny newbie
Posts: 22
Joined: 30 Nov 2010, 01:03
Znuny Version: 3.1.6
Location: Berlin, Germany

Re: OTRS 3.0.2 otrs.ArticleStorageSwitch.pl

Post by mojorianer »

Hat nicht funktioniert.

Ich bekomme genau die gleichen Fehlermeldungen.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.10.0 OS: linux Time: Wed Dec 1 08:33:42 2010

Message: Need Value!

Traceback (28010):
Module: Kernel::System::CacheInternal::Set (v1.8) Line: 123
Module: Kernel::System::Ticket::Article::ArticleGetContentPath (v1.260) Line: 755
Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (v1.76) Line: 336
Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.260) Line: 3153
Module: bin/otrs.ArticleStorageSwitch.pl (v1.10) Line: 105

ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.10.0 OS: linux Time: Wed Dec 1 08:33:42 2010

Message: Need Value!

Traceback (28010):
Module: Kernel::System::CacheInternal::Set (v1.8) Line: 123
Module: Kernel::System::Ticket::Article::ArticleGetContentPath (v1.260) Line: 755
Module: Kernel::System::Ticket::ArticleStorageFS::ArticleAttachmentIndexRaw (v1.74) Line: 411
Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.260) Line: 3153
Module: bin/otrs.ArticleStorageSwitch.pl (v1.10) Line: 173

Use of uninitialized value $ContentPath in concatenation (.) or string at /opt/otrs/Kernel/System/Ticket/ArticleStorageFS.pm line 416.
OTRS 3.1.10 on CentOS 6
Locked