Creating or updating an Azure blob Store may have the below issue when migrating from a non-Azure blob store to an Azure blob store:
An error occurred saving data. ERROR: (ID 999ae19f-03a0-4ad6-9dae-fd3d7413bf0f)
org.sonatype.nexus.blobstore.api.BlobStoreException: Failed to start blob store with
new configuration.
Although the root causes of the above may differ, this article provides a common one and steps to fix it.
1.) After seeing the above Error message on the UI, search the nexus.log
with the ID: 999ae19f-03a0-4ad6-9dae-fd3d7413bf0f in the error
2024-11-05 14:33:44,831-0500 WARN [qtp1144929404-788] dqiu@sonatype.com org.sonatype.nexus.siesta.internal.UnexpectedExceptionMapper - (ID 999ae19f-03a0-4ad6-9dae-fd3d7413bf0f) Unexpected exception: org.sonatype.nexus.blobstore.api.BlobStoreException: Failed to start blob store with new configuration.
org.sonatype.nexus.blobstore.api.BlobStoreException: Failed to start blob store with new configuration.
at org.sonatype.nexus.repository.internal.blobstore.BlobStoreManagerImpl.doUpdate(BlobStoreManagerImpl.java:354)
at org.sonatype.nexus.repository.internal.blobstore.BlobStoreManagerImpl.update(BlobStoreManagerImpl.java:313)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:287)
at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
at com.sonatype.nexus.blobstore.azure.rest.internal.AzureBlobStoreApiResource.updateBlobStore(AzureBlobStoreApiResource.java:118)
at org.apache.shiro.guice.aop.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:49)
at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)
at org.apache.shiro.guice.aop.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:36)
at org.apache.shiro.guice.aop.AopAllianceMethodInvocationAdapter.proceed(AopAllianceMethodInvocationAdapter.java:49)
at org.apache.shiro.authz.aop.AuthorizingAnnotationMethodInterceptor.invoke(AuthorizingAnnotationMethodInterceptor.java:68)
at org.apache.shiro.guice.aop.AopAllianceMethodInterceptorAdapter.invoke(AopAllianceMethodInterceptorAdapter.java:36)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
from the log level, you can see it's a WARN-level log, and the thread ID is [qtp1144929404-788]
2.) Search the nexus.log
with the thread ID qtp1144929404-788
from 1.). Please continue if you can see the blow ERROR message in the log:
2024-11-05 14:33:44,647-0500 ERROR [qtp1144929404-788] dqiu@sonatype.com com.sonatype.nexus.blobstore.azure.internal.AzureBlobStore - Failed transition: STOPPED -> STARTED
java.lang.IllegalStateException: Unsupported blob store type/version: file/1 in AzurePropertiesFile{key=metadata.properties}
at com.google.common.base.Preconditions.checkState(Preconditions.java:835)
at com.sonatype.nexus.blobstore.azure.internal.AzureBlobStore.doStart(AzureBlobStore.java:175)
at org.sonatype.nexus.common.stateguard.StateGuardLifecycleSupport.start(StateGuardLifecycleSupport.java:69)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:206)
at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:57)
at org.sonatype.nexus.repository.internal.blobstore.BlobStoreManagerImpl.doUpdate(BlobStoreManagerImpl.java:340)
at org.sonatype.nexus.repository.internal.blobstore.BlobStoreManagerImpl.update(BlobStoreManagerImpl.java:313)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:287)
at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
3.)Log in to your Azure Console; go to the Storage Account -> Container(the Azure Blob Store uses).
Edit the metadata.properties file and save it.
4.) Try to create or update the Azure blob store again.