Closed fxlxx closed 1 year ago
Update: If in enable Ticket::Article::Backend::MIMEBase::CheckAllStorageBackends
it works again.
Hi @motod after you changed the backend type, you (may) need to move the files from the DB backend to the FS or use the switch you already found. This depends on your use-case:
1) Move all files from DB to FS:
bin/otrs.Console.pl Admin::Article::StorageSwitch
....
Migrate article files from one storage backend to another on the fly.
Usage:
otrs.Console.pl Admin::Article::StorageSwitch --target ... [--source ...] [--tickets-closed-before-date ...] [--tickets-closed-before-days ...] [--tickets-created-before-date ...] [--tickets-created-before-days ...] [--tolerant] [--micro-sleep ...] [--force-pid]
...
otrs.Console.pl Admin::Article::StorageSwitch --target ArticleStorageFS
2) Move only new files to the FS and leave the old ones there:
Set Ticket::Article::Backend::MIMEBase::CheckAllStorageBackends
to yes
All new files will be written to the FS.
Regards Johannes
Hi @hanneshal I proceeded exactly as in step 1.
Just so I understand. Shouldn't with active setting Kernel::System::Ticket::Article::Backend::MIMEBase::ArticleStorageFS
new plain text data also been created in FS? In my understanding this is not the case.
Yes, this is the case. And if it is not, I would suggest to check your permissions and log for errors.
By default the path is $HOME/var/article/year/month/day/articleID
It may be the case that the could not be created due to permission issues.
Environment
Actual behaviour
I switched from
Ticket::Article::Backend::MIMEBase::ArticleStorageDB
toKernel::System::Ticket::Article::Backend::MIMEBase::ArticleStorageFS
and successfully runotrs.Console.pl Admin::Article::StorageSwitch --target ArticleStorageFS
.Attachments are available. But we also have
Ticket::Frontend::PlainView
enabled, which shows a link to see a zoomed email ticket in plain text.For older tickets the link to
plain format
works fine, for new tickets i get the following error:/var/log/syslog:
Backend Error:
How to reproduce
Steps to reproduce the behavior:
Kernel::System::Ticket::Article::Backend::MIMEBase::ArticleStorageFS
Ticket::Frontend::PlainView
plain format
in first article of newly created ticket