Plugin repository- does not display and Error in plugin manager
Asked by showkat ally:

Hi

i am using Confuence 3.3.

Currently the Plugin repository screen does not display.

In the Plugin manager screen.

I have 2 installed plugins that display an error..There were errors loading this plugin.

The artifact URI file:/D:/Confluence/Data/plugin-cache/1336709009106upload__5599a884_12a48d04d3c__7f93_00000302.tmp is not a valid plugin artifact

How do I remove as when I attempt to uninstall .. It is unsuccessful..

org.springframework.orm.ObjectRetrievalFailureException: Object of class \[com.atlassian.confluence.plugin.persistence.PluginData\] with identifier \[1336709009106upload__5599a884_12a48d04d3c__7f93_00000302.tmp\]: not found

at com.atlassian.confluence.plugin.persistence.hibernate.HibernatePluginDataDao.getPluginData(HibernatePluginDataDao.java:25)

Thanks in advance


Answers:
author: Adam Laskowski
body: Confluence stores installed plugins within the PLUGINDATA table in your database, then on startup, deploys them to a cache directory in your home folder. Since you're hitting error with a tmp (cache) file, you should be able to fix these errors by stopping Confluence and clearing out these directories so that they can be rebuilt:

\<confluence-home\>/plugin-cache  
\<confluence-home\>/plugins-osgi-cache  
\<confluence-home\>/plugins-temp  
\<confluence-home\>/bundled-plugins  
\<confluence-home\>/bundled-plugins_language

comments: author: showkat ally
body: Hi

Thanks for the feedback,

I had to shutdown confluence. deleted files as mentioned

But On confluence startup it gives an error message that it is attempting to move the confluence.cfg.tmp file from somewhere and replace the original file in the home folder but it fails here and now returns to non-atomic overwrite.

Thanks for your assistance


author: JamieA
body: That's a "normal" error on windows, IIRC.


author: showkat ally
body: Is there any way to resolve - or is this really not the problem since you say it is a normal error in windows.


author: hsuhailah
body: You were referring to this WARN message right?
> WARN \[http-8091-2\] \[atlassian.config.xml.AbstractDom4jXmlConfigurationPersister\] saveDocumentAtomically Unable to move C:\\data\\confluence42\\confluence.cfg.xml5702483264679177867tmp to C:\\data\\confluence42\\confluence.cfg.xml. Falling back to non-atomic overwrite.

If so, this message can safely be ignored and it is nothing to worry about.


author: showkat ally
body: Hi

Thanks for the information..

I did try clearing out the folders but the tmp file redisplays in the cache - folder. And the error is still displayed.


author: Adam Laskowski
body: If clearing the cache didn't work, you might have a corrupt plugin in your database that's not deploying properly. Since it's using a hashed temp name for the plugin, it might be difficult to track down if you have a lot of installed plugins, but if you have an idea of which plugins that could be causing the problems, first try removing them from Confluence via the Plugins UI. If that doesn't work, you will need to [remove the plugins manually](http://confluence.atlassian.com/display/CONFKB/Manually+Uploaded+Plugins+from+Confluence+Repository+Client+are+Corrupted).