Article Storage Switch

Moderator: crythias

Post Reply
nick1897
Znuny newbie
Posts: 3
Joined: 05 Feb 2018, 17:51
Znuny Version: 6.0.4

Article Storage Switch

Post by nick1897 »

We're trying to switch from DB to FS article storage and are running into an error.

Running the following command:

Code: Select all

otrs.Console.pl Admin::Article::StorageSwitch --target ArticleStorageFS
Results in the following error:

Code: Select all

Error: please provide a valid value for option '--target'.
In the help for this command, it seems there are no options available for --target (note the "()"):

Code: Select all

Options:
 --target ...                   - Specify the target backend to migrate to ().
The help also indicates running the exact command I ran:

Code: Select all

Help:
The Admin::Article::StorageSwitch command migrates article data from one storage backend to another on the fly, for example from DB to FS:

 otrs.Console.pl Admin::Article::StorageSwitch --target ArticleStorageFS
We're running Znuny v6.1.1 on RHEL 8.4. Perhaps this is a bug in v6.1.1? Any help would be greatly appreciated!
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Article Storage Switch

Post by root »

Hi,

Did you run this from the user's home directory?

- Roy
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 ?
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Article Storage Switch

Post by root »

Nick,

I can confirm this, you need to run it from /opt/otrs. This will work.
There is already a fix ready for it and should be in the next release: https://github.com/znuny/Znuny/pull/116

- Roy
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 ?
nick1897
Znuny newbie
Posts: 3
Joined: 05 Feb 2018, 17:51
Znuny Version: 6.0.4

Re: Article Storage Switch

Post by nick1897 »

Thank you! Running the command from /opt/otrs resolved the issue and I was able to migrate the data from DB to FS.
Post Reply