KBEC-00371 - Updating all Plugins after an import operation

Summary

After running an import from an older version, your DB may will been updated to match the new schema, but plugins will have been loaded from the older version.  In order to get your plugins to be in synch with the latest set, follow the steps provided here.

Solution

1.Login to Flow server:

ectool --server localhost login admin changeme

 

2. Set the COMMANDER_INSTALL_BIN

In linux:

 

export COMMANDER_INSTALL_BIN=/opt/electriccloud/electriccommander/bin

 

In Windows:

First get the short name path to your BIN directory using the following steps:

A) cd to the directory containing the BIN folder "C:\Program Files\Electric Cloud\ElectricCommander\bin"

B) Run the following command on the command line: for %I in (.) do echo %~sI

This will then provide you the correct short-form of the path that you want to be using for the instructions that follow, something like this:

 

set COMMANDER_INSTALL_BIN=C:\Progra~1\Electr~1\ElectricCommander\bin

 

3. Copy <DATA_DIR>/server/setup/SetupHelper.pm to <INSTALL_DIR>/perl/lib

Note: For me the /opt/electriccloud/electriccommander/ is both the  DATA_DIR and INSTALL_DIR

For example:

In linux:

cp /opt/electriccloud/electriccommander/server/setup/SetupHelper.pm /opt/electriccloud/electriccommander/perl/lib

In Windows:

(Use same technique as above to get short-form path)

 copy  "C:\ProgramData\Electric Cloud\ElectricCommander\server\setup\SetupHelper.pm" C:\Progra~1\Electr~1\ElectricCommander\perl\lib

 

4. cd <INSTALL_DIR>/bin

For example:

In Linux:

cd /opt/electriccloud/electriccommander/bin

In windows:

cd %COMMANDER_INSTALL_BIN%

 

5. Use the ec-perl to run 60_installBundledPlugins.pl to delete+ install and promote plugins.

In Linux:

ec-perl /opt/electriccloud/electriccommander/server/setup/60_installBundledPlugins.pl

In Windows :

ec-perl "C:\ProgramData\Electric Cloud\ElectricCommander\server\setup\60_installBundledPlugins.pl"

 

6. Remove the copied <INSTALL_DIR>/perl/lib/SetupHelper.pm

In Linux:

rm /opt/electriccloud/electriccommander/perl/lib/SetupHelper.pm

In Windows:

(Use same technique as above to get short-form path)

del C:\Progra~1\Electr~1\ElectricCommander\perl\lib\SetupHelper.pm

Have more questions? Submit a request

Comments

Powered by Zendesk