importing article attachments after switching dbs

Moderator: crythias

Locked
arvas
Znuny newbie
Posts: 44
Joined: 15 Oct 2012, 09:08
Znuny Version: 3.0.11

importing article attachments after switching dbs

Post by arvas »

hi,

i changed the db type for attachment storage quite awhile ago. I recently came to know of the import utility to import the databse into the new db and ran it. However after over 2 hours the of running the utility and not seeing it end i assumed it had crashed though it kept giving messages. I am not sure if i did the right thing as some of the emails with attachments now cant even open. Could anyone see these logs and tell me if its ok to re-run the utility? Thanks!

Code: Select all

NOTICE: 82992/117659
DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:49 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::db do failed: File '.\otrs\article_attachment.MYD' not found (Errcod
e: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 422.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:50 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'DEL
ETE FROM article_attachment WHERE article_id = ?'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleDeleteAttachment (v1
.78.2.1) Line: 142
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8352
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:50 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8366
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:50 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

NOTICE: 82993/117659
DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:50 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::db do failed: File '.\otrs\article_attachment.MYD' not found (Errcod
e: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 422.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:51 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'DEL
ETE FROM article_attachment WHERE article_id = ?'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleDeleteAttachment (v1
.78.2.1) Line: 142
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8352
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:51 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8366
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:51 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

NOTICE: 82994/117659
DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:51 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::db do failed: File '.\otrs\article_attachment.MYD' not found (Errcod
e: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 422.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:52 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'DEL
ETE FROM article_attachment WHERE article_id = ?'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleDeleteAttachment (v1
.78.2.1) Line: 142
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8352
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:52 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8366
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:52 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

NOTICE: 82995/117659
DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:53 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::db do failed: File '.\otrs\article_attachment.MYD' not found (Errcod
e: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 422.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:53 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'DEL
ETE FROM article_attachment WHERE article_id = ?'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleDeleteAttachment (v1
.78.2.1) Line: 142
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8352
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:53 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8366
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:53 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

NOTICE: 82996/117659
DBD::mysql::st execute failed: File '.\otrs\article_attachment.MYD' not found (E
rrcode: 2) at F:/2012/OTRS/Kernel/System/DB.pm line 553.
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-61 Perl: 5.12.3 OS: MSWin32 Time: Mon D
ec 31 16:53:54 2012

 Message: File '.\otrs\article_attachment.MYD' not found (Errcode: 2), SQL: 'SEL
ECT filename, content_type, content_size, content_id, content_alternative FROM a
rticle_attachment WHERE article_id = ? ORDER BY filename, id'a

 Traceback (1444):
   Module: Kernel::System::Ticket::ArticleStorageDB::ArticleAttachmentIndexRaw (
v1.78.2.1) Line: 348
   Module: Kernel::System::Ticket::Article::ArticleAttachmentIndex (v1.274.2.3)
Line: 3232
   Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.488.2.18) Line
: 8188
   Module: F:\2012\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.13) Line: 105

I did try to use the MySql GUI tool to try to see if there was any ticketid with a ? but the utility cant seem to open otrs database. It seems i need to upgrade the mysql of otrs to fix this so im going to try it after i resolve this issue.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: importing article attachments after switching dbs

Post by crythias »

The errors are mysql related. The filesystem files that hold the tables in the directory where the mysql server seeks do not exist.

"How to fix?"
The answer varies because it's a filesystem problem. It's as if someone deleted article_attachment.MYD (alternatively, you passed incorrect params to the utility)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked