Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19926

Audit errors when running Nexus 2 to 3 migration with auditing.

    Details

      Description

      Investigate the root cause the following error when running Nexus 2 to 3 migration with auditing.

       

      2019-05-14 00:00:00,232+0200 ERROR [change-processing-8-thread-5] CBWMRID com.google.common.eventbus.EventBus.nexus - Could not dispatch event AssetCreatedEvent{metadata=AttachedEntityMetadata{schema=asset, document=asset#62:400404

      Unknown macro: {bucket}

      v1}, remoteNodeId=null} to subscriber org.sonatype.nexus.repository.storage.internal.AssetAuditor@2410a1e2 method [public void org.sonatype.nexus.repository.storage.internal.AssetAuditor.on(org.sonatype.nexus.repository.storage.AssetEvent)]
      org.apache.shiro.session.UnknownSessionException: There is no session with id [f43db113-b168-446e-9889-e0922509453d]
      at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:170)
      at org.apache.shiro.session.mgt.eis.CachingSessionDAO.readSession(CachingSessionDAO.java:261)
      at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)
      at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)
      at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)
      at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:148)
      at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupRequiredSession(AbstractNativeSessionManager.java:152)
      at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getAttribute(AbstractNativeSessionManager.java:249)
      at org.apache.shiro.session.mgt.DelegatingSession.getAttribute(DelegatingSession.java:141)
      at org.apache.shiro.session.ProxiedSession.getAttribute(ProxiedSession.java:121)
      at org.apache.shiro.subject.support.DelegatingSubject.getRunAsPrincipalsStack(DelegatingSubject.java:469)
      at org.apache.shiro.subject.support.DelegatingSubject.getPrincipals(DelegatingSubject.java:153)
      at org.apache.shiro.subject.support.DelegatingSubject.getPrincipal(DelegatingSubject.java:149)
      at org.sonatype.nexus.security.UserIdHelper.get(UserIdHelper.java:55)
      at org.sonatype.nexus.security.UserIdHelper.get(UserIdHelper.java:47)
      at org.sonatype.nexus.audit.internal.InitiatorProviderImpl.get(InitiatorProviderImpl.java:57)
      at org.sonatype.nexus.audit.internal.AuditRecorderImpl.record(AuditRecorderImpl.java:88)
      at org.sonatype.nexus.audit.AuditorSupport.record(AuditorSupport.java:122)
      at org.sonatype.nexus.repository.storage.internal.AssetAuditor.on(AssetAuditor.java:67)

        Attachments

          Activity

            People

            Assignee:
            mpiggott Matthew Piggott
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            NXRM - Tron
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title