Storage switching issue

Moderator: crythias

Locked
AppnoMatt
Znuny newbie
Posts: 1
Joined: 09 May 2016, 16:36
Znuny Version: 5.0.5
Real Name: Matt N
Company: Appnovation Technologies

Storage switching issue

Post by AppnoMatt »

Hi all,

I'm in the middle of migrating an on-site OTRS install to one hosted in AWS. So far so good; I've got the services and site up and the backups have been successfully restored.

Now that's been done, I'm trying to switch the storage to the DB backend. The script fails very close to the end (maybe 1000 tickets left?), please see below for info:

Code: Select all

[root@XXXX bin]# su -c "./otrs.Console.pl Admin::Article::StorageSwitch --target ArticleStorageDB" -s /bin/bash otrs

.....

12330/13059 (TicketID:12383)
ERROR: OTRS-otrs.Console.pl-Admin::Article::StorageSwitch-10 Perl: 5.16.3 OS: linux Time: Mon May  9 14:32:44 2016

 Message: Need Filename or String!

 Traceback (18304):
   Module: Kernel::System::Main::MD5sum Line: 669
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch Line: 6826
   Module: Kernel::System::Console::Command::Admin::Article::StorageSwitch::Run Line: 160
   Module: (eval) Line: 436
   Module: Kernel::System::Console::BaseCommand::Execute Line: 430
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: ./otrs.Console.pl Line: 38

[Mon May  9 14:32:44 2016] otrs.Console.pl: Use of uninitialized value $MD5Sum in hash element at /opt/otrs/Kernel/System/Ticket.pm line 6829.
ERROR: OTRS-otrs.Console.pl-Admin::Article::StorageSwitch-10 Perl: 5.16.3 OS: linux Time: Mon May  9 14:32:44 2016

 Message: Need Content!

 Traceback (18304):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleWriteAttachment Line: 270
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch Line: 6894
   Module: Kernel::System::Console::Command::Admin::Article::StorageSwitch::Run Line: 160
   Module: (eval) Line: 436
   Module: Kernel::System::Console::BaseCommand::Execute Line: 430
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: ./otrs.Console.pl Line: 38

ERROR: OTRS-otrs.Console.pl-Admin::Article::StorageSwitch-10 Perl: 5.16.3 OS: linux Time: Mon May  9 14:32:44 2016

 Message: Not all files are moved! (TicketID:12383/ArticleID:64938)!

 Traceback (18304):
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch Line: 6957
   Module: Kernel::System::Console::Command::Admin::Article::StorageSwitch::Run Line: 160
   Module: (eval) Line: 436
   Module: Kernel::System::Console::BaseCommand::Execute Line: 430
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 86
   Module: ./otrs.Console.pl Line: 38
I'm by no means an OTRS or Perl expert but at the risk of sounding obvious... it looks like something's missing. Has anyone run into an issue like this before? Any advice or info would be massively appreciated. Thanks for reading!
Locked