Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16381

"Failed to load the cache in 5 attempts. Giving up." error log sometimes

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 11.3
    • Fix Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Environment:
      myxwiki.org subwiki upgrade (lescastcodeurs) from 11.2 to 11.3
    • Difficulty:
      Unknown
    • Similar issues:

      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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vmassol Vincent Massol
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Date of First Response: