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

ERROR Failed to load the cache in 5 attempts. Giving up. For user...

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 13.10.2
    • Security
    • None
    • Docker image "xwiki:13.10.2-postgres-tomcat"
      Apache Tomcat/9.0.56
      PosgreSQL
    • Unknown

    Description

      We have done a migration from XWiki V9.10.1 to V13.10.2 successfully.
      During the upgrade process we had some error for upgrading some extension in some wiki. We solved that after checking update for all wiki at the end.

      In the log we have many errors like the following one :

      2022-01-19 00:01:02,377 ERROR [User event dispatcher thread]  c.i.DefaultSecurityCacheLoader - Failed to load the cache in 5 attempts. Giving up. For user [Document xwiki:XWiki.cdamon] and entity [Document aottrtdeptrtbadi:XWiki.Notifications.NotificationEmailDailySender].
      2022-01-19 00:01:02,499 ERROR [User event dispatcher thread]  a.i.BridgeAuthorizationManager - Failed to load rights for user [xwiki:XWiki.cdamon] on [aottrtdeptrtbadi:XWiki.Notifications.NotificationEmailDailySender].
      org.xwiki.security.authorization.AuthorizationException: Failed to load the cache in 5 attempts. Giving up. when checking  access to [aottrtdeptrtbadi:XWiki.Notifications.NotificationEmailDailySender] for user [xwiki:XWiki.cdamon]
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:175)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.getAccess(DefaultAuthorizationManager.java:252)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.evaluateSecurityAccess(DefaultAuthorizationManager.java:169)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.hasSecurityAccess(DefaultAuthorizationManager.java:162)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.hasAccess(DefaultAuthorizationManager.java:119)
              at org.xwiki.security.authorization.internal.BridgeAuthorizationManager.hasAccess(BridgeAuthorizationManager.java:67)
              at org.xwiki.notifications.notifiers.internal.UserEventManager.hasAccess(UserEventManager.java:137)
              at org.xwiki.notifications.notifiers.internal.UserEventManager.isListening(UserEventManager.java:115)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatch(UserEventDispatcher.java:331)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatch(UserEventDispatcher.java:385)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatchInContext(UserEventDispatcher.java:318)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatch(UserEventDispatcher.java:274)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.runEvents(UserEventDispatcher.java:232)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.run(UserEventDispatcher.java:215)
              at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: org.xwiki.security.authorization.cache.ConflictingInsertionException: The cache entry [user = [Document xwiki:XWiki.cdamon], entity = [Space aottrtdeptrtbadi:XWiki.Notifications], access = [login: ALLOW, view: DENY, edit: DENY, delete: DENY, creator: DENY, register: DENY, comment: DENY, script: DENY, admin: DENY, createwiki: DENY, programming: DENY, illegal: DENY, like: ALLOW]] with key [nxwiki:XWiki.cdamon@@SPACE:aottrtdeptrtbadi:XWiki.Notifications] has been disposed by another thread while being added.
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.addEntry(DefaultSecurityCache.java:712)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.internalAdd(DefaultSecurityCache.java:824)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:801)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadAccessEntries(DefaultSecurityCacheLoader.java:238)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadRequiredEntries(DefaultSecurityCacheLoader.java:204)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:157)
              ... 14 common frames omitted
      2022-01-19 00:01:02,517 ERROR [User event dispatcher thread]  c.i.DefaultSecurityCacheLoader - Failed to load the cache in 5 attempts. Giving up. For user [Document xwiki:XWiki.cdamon] and entity [Document aottrtdeptrtbadi:XWiki.Notifications.NotificationEmailDailySender].
      2022-01-19 00:01:02,517 ERROR [User event dispatcher thread]  a.i.BridgeAuthorizationManager - Failed to load rights for user [xwiki:XWiki.cdamon] on [aottrtdeptrtbadi:XWiki.Notifications.NotificationEmailDailySender].
      org.xwiki.security.authorization.AuthorizationException: Failed to load the cache in 5 attempts. Giving up. when checking  access to [aottrtdeptrtbadi:XWiki.Notifications.NotificationEmailDailySender] for user [xwiki:XWiki.cdamon]
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:175)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.getAccess(DefaultAuthorizationManager.java:252)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.evaluateSecurityAccess(DefaultAuthorizationManager.java:169)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.hasSecurityAccess(DefaultAuthorizationManager.java:162)
              at org.xwiki.security.authorization.DefaultAuthorizationManager.hasAccess(DefaultAuthorizationManager.java:119)
              at org.xwiki.security.authorization.internal.BridgeAuthorizationManager.hasAccess(BridgeAuthorizationManager.java:67)
              at org.xwiki.notifications.notifiers.internal.UserEventManager.hasAccess(UserEventManager.java:137)
              at org.xwiki.notifications.notifiers.internal.UserEventManager.isListening(UserEventManager.java:115)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatch(UserEventDispatcher.java:340)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatch(UserEventDispatcher.java:385)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatchInContext(UserEventDispatcher.java:318)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.dispatch(UserEventDispatcher.java:274)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.runEvents(UserEventDispatcher.java:232)
              at org.xwiki.notifications.notifiers.internal.UserEventDispatcher.run(UserEventDispatcher.java:215)
              at java.base/java.lang.Thread.run(Thread.java:829)
      Caused by: org.xwiki.security.authorization.cache.ConflictingInsertionException: The cache entry [user = [Document xwiki:XWiki.cdamon], entity = [Space aottrtdeptrtbadi:XWiki.Notifications], access = [login: ALLOW, view: DENY, edit: DENY, delete: DENY, creator: DENY, register: DENY, comment: DENY, script: DENY, admin: DENY, createwiki: DENY, programming: DENY, illegal: DENY, like: ALLOW]] with key [nxwiki:XWiki.cdamon@@SPACE:aottrtdeptrtbadi:XWiki.Notifications] has been disposed by another thread while being added.
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.addEntry(DefaultSecurityCache.java:712)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.internalAdd(DefaultSecurityCache.java:824)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCache.add(DefaultSecurityCache.java:801)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadAccessEntries(DefaultSecurityCacheLoader.java:238)
              at org.xwiki.security.authorization.cache.internal.DefaultSecurityCacheLoader.loadRequiredEntries(DefaultSecurityCacheLoader.java:204)
              at org.xwiki.security.authorization.c
      ache.internal.DefaultSecurityCacheLoader.load(DefaultSecurityCacheLoader.java:157)
              ... 14 common frames omitted
      

      For me it's related to the issue XWIKI-16381.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              Camille_D Camille Desmots
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: