Lost all attachments after moving to file system storage?

Moderator: crythias

Locked
kevinpattison
Znuny newbie
Posts: 32
Joined: 22 Sep 2011, 16:32
Znuny Version: 5.0.16
Real Name: Kevin Pattison

Lost all attachments after moving to file system storage?

Post by kevinpattison »

Hey,

Recently I've been working a lot on OTRS. I've done:
1. Moved all attachments to the filesystem in OTRS 3.0.10 using "bin/otrs.ArticleStorageSwitch.pl"
2. Upgraded to 3.1.21
3. Upgraded to 3.2.18
4. Upgraded to 3.3.15
5. Upgraded to 4.0.16
6. Upgraded to 5.0.7
7. Upgraded to 5.0.16

I've lost all attachments for all old tickets it seems. From looking at the database it seems that the rows are missing from the article_attachment table and the files are also not in the filesystem (although there is 12Gb of files in the /opt/otrs/var/article folder). How could this happen?

I have a dump of the DB after the storage switch but before the upgrades but it seems to have the same problem. Have I lost all attachments?
root
Administrator
Posts: 4253
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Lost all attachments after moving to file system storage?

Post by root »

After running the scrip with default configuration the attachment are in /opt/otrs/var/article with the structure YEAR/MONTH/DAY/ARTICLEID

If you can't access them via the GUI I think you did not changed the SysConfig setting for ArticleStorage. Check your setting in the Group Ticket, Subgroup Core::Ticket: Ticket::StorageModule and Ticket::StorageModule::CheckAllBackends.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
kevinpattison
Znuny newbie
Posts: 32
Joined: 22 Sep 2011, 16:32
Znuny Version: 5.0.16
Real Name: Kevin Pattison

[RESOLVED] Re: Lost all attachments after moving to file system storage?

Post by kevinpattison »

Correct, this resolved the issue. It seems the StorageModule got reset to DB when I did the upgrades. Setting both of these settings and all is working again.

Thanks!
Locked