Details
Description
The EM performed the upgrade fine but the upgrade logs show what's shown in the attached screenshot.
In 2 places:
- After Main.WebHome has been installed
- After WikiManager.CommonTranslations has been installed
When click on the "failed to load rights for user" message, I get the following stack trace:
Failed to load rights for user [lescastcodeurs:XWiki.EmmanuelBernard] on [Wiki lescastcodeurs]. class org.xwiki.security.authorization.AuthorizationException: Failed to load the cache in 5 attempts. Giving up. when checking access to [Wiki lescastcodeurs] for user [lescastcodeurs:XWiki.EmmanuelBernard] at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:168) at org.xwiki.security.authorization.DefaultAuthorizationManager.getAccess(DefaultAuthorizationManager.java:218) at org.xwiki.security.authorization.DefaultAuthorizationManager.evaluateSecurityAccess(DefaultAuthorizationManager.java:159) at org.xwiki.security.authorization.DefaultAuthorizationManager.hasSecurityAccess(DefaultAuthorizationManager.java:152) at org.xwiki.security.authorization.DefaultAuthorizationManager.hasAccess(DefaultAuthorizationManager.java:109) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactory.isAllowed(DefaultWikiMacroFactory.java:324) at org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroManager.registerWikiMacro(DefaultWikiMacroManager.java:161) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerMacro(DefaultWikiMacroInitializer.java:222) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerMacrosForWiki(DefaultWikiMacroInitializer.java:184) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerExistingWikiMacros(DefaultWikiMacroInitializer.java:146) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerExistingWikiMacros(DefaultWikiMacroInitializer.java:115) at org.xwiki.rendering.wikimacro.internal.RegisterMacrosOnImportListener.onEvent(RegisterMacrosOnImportListener.java:103) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:309) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:274) at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:193) at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157) at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:201) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.upgrade(XarExtensionHandler.java:185) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.upgrade(DefaultExtensionHandlerManager.java:139) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:325) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157) at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236) at org.xwiki.job.AbstractJob.run(AbstractJob.java:213) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: class org.xwiki.security.authorization.cache.ConflictingInsertionException: null at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.addEntry(DefaultSecurityCache.java:642) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:691) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:660) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadUserEntry(DefaultSecurityCacheLoader.java:423) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadUserGroups(DefaultSecurityCacheLoader.java:371) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadUserGroups(DefaultSecurityCacheLoader.java:346) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadUserEntry(DefaultSecurityCacheLoader.java:322) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadAccessEntries(DefaultSecurityCacheLoader.java:225) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadRequiredEntries(DefaultSecurityCacheLoader.java:197) at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:150) at org.xwiki.security.authorization.DefaultAuthorizationManager.getAccess(DefaultAuthorizationManager.java:218) at org.xwiki.security.authorization.DefaultAuthorizationManager.evaluateSecurityAccess(DefaultAuthorizationManager.java:159) at org.xwiki.security.authorization.DefaultAuthorizationManager.hasSecurityAccess(DefaultAuthorizationManager.java:152) at org.xwiki.security.authorization.DefaultAuthorizationManager.hasAccess(DefaultAuthorizationManager.java:109) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroFactory.isAllowed(DefaultWikiMacroFactory.java:324) at org.xwiki.rendering.internal.macro.wikibridge.DefaultWikiMacroManager.registerWikiMacro(DefaultWikiMacroManager.java:161) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerMacro(DefaultWikiMacroInitializer.java:222) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerMacrosForWiki(DefaultWikiMacroInitializer.java:184) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerExistingWikiMacros(DefaultWikiMacroInitializer.java:146) at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroInitializer.registerExistingWikiMacros(DefaultWikiMacroInitializer.java:115) at org.xwiki.rendering.wikimacro.internal.RegisterMacrosOnImportListener.onEvent(RegisterMacrosOnImportListener.java:103) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:309) at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:274) at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:193) at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157) at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:201) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.upgrade(XarExtensionHandler.java:185) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.upgrade(DefaultExtensionHandlerManager.java:139) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:325) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:209) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:157) at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154) at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:236) at org.xwiki.job.AbstractJob.run(AbstractJob.java:213) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Attachments
Issue Links
- blocks
-
XWIKI-16749 Cached async rendering results associated with rights checks are invalidated too often
- Closed
- causes
-
XWIKI-19806 BridgeAuthorizationManager errors when deleting a subwiki which cause errors when creating another subwiki
- Closed
-
XWIKI-20754 The async rendering cache keeps the mapping between rights checks and entries forever
- Closed
- is duplicated by
-
XWIKI-16749 Cached async rendering results associated with rights checks are invalidated too often
- Closed
- is related to
-
XWIKI-21439 Security Cache ConflictingInsertionException
- Closed
-
XWIKI-16748 UserDirectoryTest test is producing "Failed to load the cache in 5 attempts. Giving up." error logs
- Closed
- relates to
-
XWIKI-16899 Adding a user to a group provided by an extension crashes the security cache
- Closed
-
XWIKI-18508 Access (view) denied randomly on pages and solr search
- Closed