JIRA failed to update add-ons

I ran into this problem after an interruption during add-on update from the administration panel.

When I re-entered add-on manage page, all of the "update" button on the right side of all add-ons disappered. When I click a random add-on to expand the detail box and click "update" button from their, an error message poped up says

"An error was encountered while updating this add-on."

Every add-ons on my JIRA got the same error messages including FOLIO and JIRA Agile.

1 answer

1 accepted

Accepted Answer
3 votes

Ouch, sounds like you might have a damaged plugin cache.

First, read the log file from when you tried the updates, and from when you're clicking the expand box - does that tell you anything?

Second, try restarting Jira. Again, you'll want to read the logs from startup to see if there are particular errors in there, but a restart might clear out what is damaged from the caches too.

Third, have you tried removing and re-installing the plugins? Try with a small one that doesn't have a lot of data first (most plugins will not touch their data when you remove them, but it's worth checking if it fixes a small one before tackling Folio or Agile as they might be a bit more sensitive. Also, they'll take longer!)

Finally, you can stop Jira and clear the plugin cache:

Under the Jira installation, look for the "work" directory. Delete the contents. NOT THE DIRECTORY - you will get startup errors if you delete the directory, just empty it.

Under the Jira HOME directory, delete the directories .osgi-plugins and .bundled-plugins. (I usually just move them somewhere else). They'll be recreated and rebuilt when you restart Jira

Excellent! It actually worked after clear the plugin cache by your instruction on the FINALLY step.

I was dig into the log file but nothing special can be noted from there. Also removeing and re-installing did not helpful as well.

Fortunately the cache clear method worked!

Thanks.

Hmm..that doesn't help in my situation. I get this error for each plugin: An error was encountered while updating this add-on. And I've just upgraded JIRA from 5.2.8 to 6.3.14. Could anyone advise where I can see logs of UPM? Any stacktrace of why updating fails? Thanks!

In the application log file.

Thanks @Nic Brough [Adaptavist], your steps helped my situation. Thanks again.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

465 views 7 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you