How to resolve failing propagation events

Subject

In many cases, there are situations where propagation failure from one node to other member nodes would be caused by a invalid access admin token.

Affected Versions

Artifactory HA versions 3.1 and above

Details

An example use case would be– if a user modified a permission and that change needed to be propagated from the node the change was made from to the other member nodes of the cluster.  In the situation where the admin access token was no longer valid, the artifactory.log file, from the node that is doing the propagation, will display the following error:

2018-05-08 09:36:48,194 [art-exec-2] [WARN ] (o.a.a.h.p.HaPropagationServiceImpl:411) – Failed to propagate event 'supportBundleList' to 'A (http://172.16.78.163:8081/artifactory/api/support/internal/bundles)': 
403:Forbidden

Resolution

In order to refresh or regenerate the admin access token, these are the steps that need to be taken:
1. Under the $ARTIFACTORY_HOME/etc folder, create a backup copy of the file 'artifactory.config.latest.xml', and call it 'artifactory.config.latest.xml.copy'.
2. Edit the original 'artifactory.config.latest.xml', and remove the <adminToken> section (remove the tags including the content).
3. Save the changes and change the name of the file to 'artifactory.config.import.xml', to make sure Artifactory reloads it while starting up.
4. Performing a rolling restart on your HA nodes.