I had to change the location of attachment from DB to FS. When I tried to run the script to export old articles to FS, after some minutes, I received an error.
It could be related to a length bigger than 255 char, but I am not sure. Even if this is the case, how can I resolve the issue? The script always stops at this ticket.
Code: Select all
D:\OTRS\StrawberryPerl\perl\bin>perl.exe D:\OTRS\OTRS\bin\otrs.ArticleStorageSwitch.pl -s ArticleStorageDB -d ArticleStorageFS
.......
NOTICE: 1235/25072 (TicketID:1681)
NOTICE: 1236/25072 (TicketID:1682)
NOTICE: 1237/25072 (TicketID:1684)
NOTICE: 1238/25072 (TicketID:1685)
NOTICE: 1239/25072 (TicketID:1686)
NOTICE: 1240/25072 (TicketID:1687)
NOTICE: 1241/25072 (TicketID:1688)
NOTICE: 1242/25072 (TicketID:1689)
NOTICE: 1243/25072 (TicketID:1690)
NOTICE: 1244/25072 (TicketID:1691)
NOTICE: 1245/25072 (TicketID:1692)
Unsuccessful stat on filename containing newline at D:/OTRS/OTRS/Kernel/System/Main.pm line 432. ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.12.3 OS: MSWin32 Time: Tue Jan 20 15:57:40 2015
Message: Can't write 'D:/OTRS/OTRS/var/article/2013/08/13/12092/Re___Ticket#2013073110000378__Petitie__Clarificare_sarcini_ameliorare_asfaltare_complex_strazi_cartier_TEI_TOBOC_(Magura_Vaii,_Nea__..._.eml.content_type': Invalid argument
Traceback (3912):
Module: Kernel::System::Main::FileWrite (v1.69) Line: 449
Module: Kernel::System::Ticket::ArticleStorageFS::ArticleWriteAttachment (v1.84) Line: 323
Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.587) Line: 7610
Module: D:\OTRS\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.22) Line: 163
ERROR: OTRS-otrs.ArticleStorageSwitch.pl-10 Perl: 5.12.3 OS: MSWin32 Time: Tue Jan 20 15:57:40 2015
Message: Not all files are moved! (TicketID:1692/ArticleID:12092)!
Traceback (3912):
Module: Kernel::System::Ticket::TicketArticleStorageSwitch (v1.587) Line: 7673
Module: D:\OTRS\OTRS\bin\otrs.ArticleStorageSwitch.pl (v1.22) Line: 163
D:\OTRS\StrawberryPerl\perl\bin>
P.S. OTRS 3.2.3 on Windows 2008 R2, mysql db and apache2.2.