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

org.sonatype.nexus.datastore.api.DataStoreNotFoundException: Data store not found: config when deleting a repository

    XMLWordPrintable

    Details

      Description

      After upgrading Nexus to 3.21.1, deleting a repository generate an Exception below:

      2020-02-24 04:54:56,654+0000 INFO  [qtp1474814480-187]  admin com.sonatype.nexus.plugins.healthcheck.service.impl.RepositoryHealthCheckConfigurationServiceImpl - Removing healthcheck enabled property for p2-proxy
      2020-02-24 04:54:56,667+0000 ERROR [qtp1474814480-187]  admin com.google.common.eventbus.EventBus.nexus - Could not dispatch event RepositoryDeletedEvent{repository=RepositoryImpl$$EnhancerByGuice$$77f8ecc9{type=proxy, format=p2, name='p2-proxy'}} to subscriber com.sonatype.nexus.plugins.healthcheck.service.impl.RepositoryHealthCheckConfigurationServiceImpl$$EnhancerByGuice$$56a152cf@18598205 method [public void com.sonatype.nexus.plugins.healthcheck.service.impl.RepositoryHealthCheckConfigurationServiceImpl.on(org.sonatype.nexus.repository.manager.RepositoryDeletedEvent)]
      org.sonatype.nexus.datastore.api.DataStoreNotFoundException: Data store not found: config
              at org.sonatype.nexus.datastore.internal.DataStoreManagerImpl.lambda$1(DataStoreManagerImpl.java:137)
              at java.util.Optional.orElseThrow(Optional.java:290)
              at org.sonatype.nexus.datastore.internal.DataStoreManagerImpl.openSession(DataStoreManagerImpl.java:137)
              at org.sonatype.nexus.datastore.ConfigStoreSupport.openSession(ConfigStoreSupport.java:54)
              at org.sonatype.nexus.datastore.ConfigStoreSupport.openSession(ConfigStoreSupport.java:1)
              at org.sonatype.nexus.transaction.UnitOfWork.doOpenSession(UnitOfWork.java:247)
              at org.sonatype.nexus.transaction.UnitOfWork.openSession(UnitOfWork.java:222)
              at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:54)
              at com.sonatype.nexus.plugins.healthcheck.service.impl.RepositoryHealthCheckConfigurationServiceImpl.on(RepositoryHealthCheckConfigurationServiceImpl.java:77)
              ... (snip) ....
       

      REPRODUCE STEPS

      1. Install 3.21.1 or Upgrading to 3.21.1
      2. Create probably any repository (tested with p2, maven, r and apt)
      3. Delete this repository, then check nexus.log

        Attachments

          Activity

            People

            Assignee:
            mallen Mick Allen
            Reporter:
            hosako Hajime Osako
            CC:
            Anders Hammar
            Last Updated By:
            Michael Prescott Michael Prescott
            Team:
            NXRM - Groot
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title