Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-18353

Artifactory import throws exception when using exported data

    Details

    • Type: Bug
    • Status: Open
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: 6.1.0
    • Fix Version/s: None
    • Component/s: Artifact Storage
    • Labels:
      None

      Description

      When importing a system import we see the following error:

      Beginning full system import ###

      500 : Failed system import

      500 : Received uncaught exception

      {

        "errors" : [

      {     "status" : 500,     "message" : "Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: code exception. Not trying again (Failed to reload configuration: Failed to generate service admin token using bootstrap credentials.)]"   }

      ]

      }

       

      Steps to re-create the error:

       

      Running Artifactory 6.1.0 rev 60100900, we performed an export of the system via the REST API (our repos are large and stored in S3 and therefore are not part of the export):

      curl --insecure --header "X-JFrog-Art-Api: ${API_KEY}" -H "Content-Type: application/json" --data "{\"exportPath\":\"${LOCAL_DIR}\",\"includeMetadata\":\"true

      \",\"createArchive\":\"true\",\"bypassFiltering\":\"false\",\"verbose\":\"false\",\"failOnError\":\"true\",\"failIfEmpty\":\"true\",\"m2\":\"false\",\"increm

      ental\":\"false\",\"excludeContent\":\"true\"}" https://$

      {SITE}/artifactory/api/export/system
       
      On a clean install of Artifactory we performed an import of the system via the REST API:
      curl --insecure --header "X-JFrog-Art-Api: ${API_KEY}" -H "Content-Type: application/json" --data "{\"importPath\":\"${BACKUP_DIR}/\",\"includeMetadata\":\"true\",\"verbose\":\"false\",\"failOnError\":\"true\",\"failIfEmpty\":\"true\"}" https://${SITE}

      /artifactory/api/import/system
       

      Then we received the error above.  

          1. Beginning full system import ###

      500 : Failed system import

      500 : Received uncaught exception

      {

        "errors" : [

      {     "status" : 500,     "message" : "Could not merge and save new descriptor [org.jfrog.common.ExecutionFailed: Last retry failed: code exception. Not trying again (Failed to reload configuration: Failed to generate service admin token using bootstrap credentials.)]"   }

      ]

      }

       

      At this point the system becomes unusable and the web interface no longer responds, which requires stopping and restarting the Artifactory service.  The import appears to invalidate the admin API Key credentials that we pass to the import mid-way through the process, which makes no sense.  My guess is that the import changes the password then invalidates all the keys, but that is just a guess.

       

      In the artifactory.log we see:

      2018-11-09 19:43:03,078 [http-nio-8081-exec-10] [INFO ] (o.a.s.ArtifactoryApplicationContext:545) - ### Beginning full system import ###

      2018-11-09 19:43:03,082 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:1182) - Triggering import in access server...

      2018-11-09 19:43:04,162 [http-nio-8081-exec-10] [INFO ] (o.a.s.ArtifactoryApplicationContext:954) - Artifactory is currently encrypted. Replacing artifactory key with a new one.

      2018-11-09 19:43:04,163 [http-nio-8081-exec-10] [INFO ] (o.j.c.w.ConfigurationManagerImpl:303) - [Node ID: primary] detected local delete for config 'artifactory.security.artifactory.key'

      2018-11-09 19:43:04,164 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:303) - [Node ID: primary] detected local delete for config 'artifactory.security.artifactory.key'

      2018-11-09 19:43:04,179 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.7616.201811091943004163'

      2018-11-09 19:43:04,179 [http-nio-8081-exec-10] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.7616.201811091943004163'

      2018-11-09 19:43:04,206 [http-nio-8081-exec-10] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key'

      2018-11-09 19:43:04,231 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.595.201809281548041139'

      2018-11-09 19:43:04,242 [http-nio-8081-exec-10] [WARN ] (o.a.s.a.AccessServiceImpl:416) - ServiceId overwrite: detected service_id file. In case of HA: if you want to set a new ServiceId you need to restart each node. Old value: jfrt@01cvta2v4t2f390d6fmv0q1d66, new value: jfrt@01cm7wbq921pz21e45gw0t0g13

      2018-11-09 19:43:04,244 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:340) - The service_id has changed. This will entail re-generation of the Access admin token and re-registration in Access Federation

      2018-11-09 19:43:04,244 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:365) - Initialized new service id: jfrt@01cm7wbq921pz21e45gw0t0g13

      2018-11-09 19:43:04,249 [http-nio-8081-exec-10] [INFO ] (o.j.s.c.EncryptionWrapperFactory:33) - createArtifactoryKeyWrapper  EncryptionWrapperBase

      { encodingType=ARTIFACTORY_MASTER, topEncrypter=BytesEncrypterBase

      { Cipher='AES128',  keyId='31Dny'}

      , formatUsed=DotFormat, decrypters=[BytesEncrypterBase
      { Cipher='AES128',  keyId='33WgE'}, BytesEncrypterBase
      { Cipher='AES128',  keyId='31Dny'}

      , BytesEncrypterBase

      { Cipher='AES128',  keyId='31Dny'}, BytesEncrypterBase
      { Cipher='AES128',  keyId='31Dny'}

      , BytesEncrypterBase

      { Cipher='AES128',  keyId='2wvk1'}

      , BytesEncrypterBase

      { Cipher='AES128',  keyId='31Dny'}

      ]}

      2018-11-09 19:43:04,256 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.6577.201810281350007658'

      2018-11-09 19:43:04,259 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.ArtifactoryAccessClientConfigStore:572) - Using Access Server URL: http://localhost:8040/access (bundled) source: detected

      2018-11-09 19:43:04,262 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:304) - Waiting for access server...

      2018-11-09 19:43:04,270 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:311) - Got response from Access server after 8 ms, continuing.

      2018-11-09 19:43:04,282 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.3258.201809281540027585'

      2018-11-09 19:43:04,289 [http-nio-8081-exec-10] [INFO ] (o.j.a.c.AccessClientBootstrap:136) - Revoking invalid adminToken for Service ID jfrt@01cm7wbq921pz21e45gw0t0g13

      2018-11-09 19:43:04,290 [http-nio-8081-exec-10] [WARN ] (o.j.a.c.AccessClientBootstrap:148) - Admin token of service 'jfrt@01cm7wbq921pz21e45gw0t0g13' is invalid, revoking and creating a new token: Admin token failed verification.

      2018-11-09 19:43:04,306 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:278) - [Node ID: primary] detected local modify for config 'artifactory.security.access/keys/access.creds'

      2018-11-09 19:43:04,312 [http-nio-8081-exec-10] [INFO ] (o.a.c.CentralConfigServiceImpl:605) - Reloading configuration... old revision 5, new revision 6

      2018-11-09 19:43:04,319 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.7343.201810281356020366'

      2018-11-09 19:43:04,356 [Thread-6] [INFO ] (o.j.c.w.ConfigurationManagerImpl:28) - [Node ID: primary] detected local modify for config 'artifactory.security.artifactory.key.1632.201810281348057046'

      2018-11-09 19:43:04,418 [http-nio-8081-exec-10] [INFO ] (o.a.c.CentralConfigServiceImpl:369) - New configuration with revision 6 saved.

      2018-11-09 19:43:04,419 [http-nio-8081-exec-10] [INFO ] (o.a.s.ArtifactoryApplicationContext:496) - Artifactory application context set to NOT READY by reload

      2018-11-09 19:43:04,513 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:992) - Reloading Access Service

      2018-11-09 19:43:04,741 [http-nio-8081-exec-10] [INFO ] (o.a.c.CentralConfigServiceImpl:605) - Reloading configuration... old revision 6, new revision 7

      2018-11-09 19:43:04,800 [http-nio-8081-exec-10] [INFO ] (o.a.c.CentralConfigServiceImpl:369) - New configuration with revision 7 saved.

      2018-11-09 19:43:04,854 [http-nio-8081-exec-10] [INFO ] (o.a.s.a.AccessServiceImpl:992) - Reloading Access Service

      2018-11-09 19:43:04,872 [http-nio-8081-exec-10] [ERROR] (o.a.s.a.AccessServiceImpl:972) - Failed to verify access token with id '34041c34-cc35-40c3-8246-f84f04ecfff9': HTTP response status 401:Failed on executing /api/v1/auth/verify/eyJ2ZXIiOiIyIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYiLCJraWQiOiJxcXNoRXZMU0pTTXktNVJ0cGJfY2I1dGFvNWFvN0FRWk5oWkljSFVaOUpzIn0.eyJzdWIiOiJqZnJ0QDAxY3Z0YTJ2NHQyZjM5MGQ2Zm12MHExZDY2XC9ub2Rlc1wvcHJpbWFyeSIsInNjcCI6ImhhLXByb3BhZ2F0ZSBhcGk6KiIsImF1ZCI6ImpmcnRAMDFjdnRhMnY0dDJmMzkwZDZmbXYwcTFkNjYiLCJpc3MiOiJqZnJ0QDAxY3Z0YTJ2NHQyZjM5MGQ2Zm12MHExZDY2IiwiaWF0IjoxNTQxNzAyNTEzLCJqdGkiOiIzNDA0MWMzNC1jYzM1LTQwYzMtODI0Ni1mODRmMDRlY2ZmZjkifQ.ZqtUnJTyyxkDUvRHjqbD1E1ZvyZECS4JPFh-eJeA6XLfhs9-mDEvkFoJXtlflQTDA297qUA-BgUtgGSLDVXBfBRqaTJkOeL8gb55iU_dIJzwvvKTz5ZnshclYM2jrVZfTuuHPX8qmM0fz5iCXQkhEJ3gDVwDD-PyzoXuuSQu4JI_f-OU3gwswsoUAXXxXAKw2zOM5DHPgDCz48OedFMpmA6lTht4PlA7gFID7ri8wmYxX6xVq9nT6AOoH6TWMc5NSgi_Po3tyK8yLRNjy5uXuYDZBqBzwpTA202CuNFjF4rHpHZKP3hNPjcxPA3Of1whueMFMBw0EJw3SzvJqsHJpQ, with response: {

        "errors" : [

      {     "code" : "UNAUTHORIZED",     "message" : "Bearer authentication failed",     "detail" : "invalid token"   }

      ]

      }

      2018-11-09 19:43:04,913 [http-nio-8081-exec-10] [INFO ] (o.a.s.ArtifactoryApplicationContext:496) - Artifactory application context set to READY by reload on error: Failed to verify access token with id '34041c34-cc35-40c3-8246-f84f04ecfff9'

      2018-11-09 19:43:04,921 [http-nio-8081-exec-10] [ERROR] (o.a.c.CentralConfigServiceImpl:640) - Failed to reload configuration: Failed to verify access token with id '34041c34-cc35-40c3-8246-f84f04ecfff9'

      java.lang.RuntimeException: Failed to verify access token with id '34041c34-cc35-40c3-8246-f84f04ecfff9'

      at org.artifactory.security.access.AccessServiceImpl.verifyAndGetResult(AccessServiceImpl.java:974)

      at org.artifactory.security.access.AccessServiceImpl.verifyToken(AccessServiceImpl.java:955)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy140.verifyToken(Unknown Source)

      at org.artifactory.addon.ha.propagate.HaPropagationServiceImpl.readCommunicationToken(HaPropagationServiceImpl.java:165)

      at org.artifactory.addon.ha.propagate.HaPropagationServiceImpl.initCommunicationToken(HaPropagationServiceImpl.java:135)

      at org.artifactory.addon.ha.propagate.HaPropagationServiceImpl.init(HaPropagationServiceImpl.java:106)

      at org.artifactory.addon.ha.propagate.HaPropagationServiceImpl.reload(HaPropagationServiceImpl.java:113)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy246.reload(Unknown Source)

      at org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:393)

      at org.artifactory.config.CentralConfigServiceImpl.callReload(CentralConfigServiceImpl.java:538)

      at org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:522)

      at org.artifactory.config.CentralConfigServiceImpl.saveDescriptor(CentralConfigServiceImpl.java:311)

      at org.artifactory.config.CentralConfigServiceImpl.saveAndReloadContext(CentralConfigServiceImpl.java:619)

      at org.artifactory.config.CentralConfigServiceImpl.lambda$saveAndReloadContextWithRetry$0(CentralConfigServiceImpl.java:573)

      at org.jfrog.common.ExecutionUtils.handleFunctionExecution(ExecutionUtils.java:57)

      at org.jfrog.common.ExecutionUtils.lambda$generateExecutionRunnable$0(ExecutionUtils.java:48)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)

      at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)

      at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)

      at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:260)

      at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

      at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:56)

      at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:36)

      at org.jfrog.common.ExecutionUtils.retry(ExecutionUtils.java:41)

      at org.artifactory.config.CentralConfigServiceImpl.saveAndReloadContextWithRetry(CentralConfigServiceImpl.java:572)

      at org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:514)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy138.saveEditedDescriptorAndReload(Unknown Source)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.lambda$saveConfigDescriptor$11(ArtifactoryAccessClientConfigStore.java:586)

      at org.artifactory.security.SecurityServiceImpl.doAsSystem(SecurityServiceImpl.java:2591)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy133.doAsSystem(Unknown Source)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.saveConfigDescriptor(ArtifactoryAccessClientConfigStore.java:586)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.lambda$setAdminToken$4(ArtifactoryAccessClientConfigStore.java:299)

      at org.artifactory.security.access.AccessServiceImpl$ContextStateDependantActionRunner.runAfterContextCreated(AccessServiceImpl.java:1269)

      at org.artifactory.security.access.AccessServiceImpl.runAfterContextCreated(AccessServiceImpl.java:1277)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.setAdminToken(ArtifactoryAccessClientConfigStore.java:293)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.storeAdminToken(ArtifactoryAccessClientConfigStore.java:249)

      at org.jfrog.access.client.AccessClientBootstrap.createAndStoreServiceAdminToken(AccessClientBootstrap.java:93)

      at org.jfrog.access.client.AccessClientBootstrap.bootstrapServiceAdminToken(AccessClientBootstrap.java:86)

      at org.jfrog.access.client.AccessClientBootstrap.<init>(AccessClientBootstrap.java:45)

      at org.artifactory.security.access.AccessServiceImpl.bootstrapAccessClient(AccessServiceImpl.java:1027)

      at org.artifactory.security.access.AccessServiceImpl.lambda$bootstrapAccessClientIfNeeded$15(AccessServiceImpl.java:1004)

      at java.util.Optional.ifPresent(Optional.java:159)

      at org.artifactory.security.access.AccessServiceImpl.bootstrapAccessClientIfNeeded(AccessServiceImpl.java:1002)

      at org.artifactory.security.access.AccessServiceImpl.reload(AccessServiceImpl.java:993)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy140.reload(Unknown Source)

      at org.artifactory.spring.ArtifactoryApplicationContext.reload(ArtifactoryApplicationContext.java:393)

      at org.artifactory.config.CentralConfigServiceImpl.callReload(CentralConfigServiceImpl.java:538)

      at org.artifactory.config.CentralConfigServiceImpl.reloadConfiguration(CentralConfigServiceImpl.java:522)

      at org.artifactory.config.CentralConfigServiceImpl.saveDescriptor(CentralConfigServiceImpl.java:311)

      at org.artifactory.config.CentralConfigServiceImpl.saveAndReloadContext(CentralConfigServiceImpl.java:619)

      at org.artifactory.config.CentralConfigServiceImpl.lambda$saveAndReloadContextWithRetry$0(CentralConfigServiceImpl.java:573)

      at org.jfrog.common.ExecutionUtils.handleFunctionExecution(ExecutionUtils.java:57)

      at org.jfrog.common.ExecutionUtils.lambda$generateExecutionRunnable$0(ExecutionUtils.java:48)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)

      at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)

      at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)

      at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:260)

      at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)

      at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:56)

      at com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:36)

      at org.jfrog.common.ExecutionUtils.retry(ExecutionUtils.java:41)

      at org.artifactory.config.CentralConfigServiceImpl.saveAndReloadContextWithRetry(CentralConfigServiceImpl.java:572)

      at org.artifactory.config.CentralConfigServiceImpl.saveEditedDescriptorAndReload(CentralConfigServiceImpl.java:514)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy138.saveEditedDescriptorAndReload(Unknown Source)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.lambda$saveConfigDescriptor$11(ArtifactoryAccessClientConfigStore.java:586)

      at org.artifactory.security.SecurityServiceImpl.doAsSystem(SecurityServiceImpl.java:2591)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy133.doAsSystem(Unknown Source)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.saveConfigDescriptor(ArtifactoryAccessClientConfigStore.java:586)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.lambda$setAdminToken$4(ArtifactoryAccessClientConfigStore.java:299)

      at org.artifactory.security.access.AccessServiceImpl$ContextStateDependantActionRunner.runAfterContextCreated(AccessServiceImpl.java:1269)

      at org.artifactory.security.access.AccessServiceImpl.runAfterContextCreated(AccessServiceImpl.java:1277)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.setAdminToken(ArtifactoryAccessClientConfigStore.java:293)

      at org.artifactory.security.access.ArtifactoryAccessClientConfigStore.revokeAdminToken(ArtifactoryAccessClientConfigStore.java:284)

      at org.jfrog.access.client.AccessClientBootstrap.revokeAdminToken(AccessClientBootstrap.java:150)

      at org.jfrog.access.client.AccessClientBootstrap.revokeServiceAdminTokenIfInvalid(AccessClientBootstrap.java:137)

      at org.jfrog.access.client.AccessClientBootstrap.bootstrapServiceAdminToken(AccessClientBootstrap.java:83)

      at org.jfrog.access.client.AccessClientBootstrap.<init>(AccessClientBootstrap.java:45)

      at org.artifactory.security.access.AccessServiceImpl.bootstrapAccessClient(AccessServiceImpl.java:1027)

      at org.artifactory.security.access.AccessServiceImpl.initAccessService(AccessServiceImpl.java:283)

      at org.artifactory.security.access.AccessServiceImpl.afterImport(AccessServiceImpl.java:1171)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)

      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:201)

      at com.sun.proxy.$Proxy140.afterImport(Unknown Source)

      at org.artifactory.spring.ArtifactoryApplicationContext.importFrom(ArtifactoryApplicationContext.java:571)

      at org.artifactory.rest.resource.system.ImportResource.activateImport(ImportResource.java:101)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      at java.lang.reflect.Method.invoke(Method.java:498)

      at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)

      at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

      at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)

      at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)

      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

      at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)

      at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)

      at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)

      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)

      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)

      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)

      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:184)

      at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:93)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.lambda$doFilter$1(ArtifactoryAuthenticationFilterChain.java:133)

      at org.artifactory.webapp.servlet.authentication.PropsAuthenticationFilter.doFilter(PropsAuthenticationFilter.java:131)

      at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:169)

      at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:312)

      at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:209)

      at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:168)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:78)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.artifactory.webapp.servlet.ArtifactoryCsrfFilter.doFilter(ArtifactoryCsrfFilter.java:66)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:164)

      at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)

      at org.artifactory.webapp.servlet.SessionFilter.doFilter(SessionFilter.java:62)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:124)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

      at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:279)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)

      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)

      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)

      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)

      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

      at java.lang.Thread.run(Thread.java:748)

      Caused by: org.jfrog.access.client.AccessClientHttpException: HTTP response status 401:Failed on executing /api/v1/auth/verify/eyJ2ZXIiOiIyIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYiLCJraWQiOiJxcXNoRXZMU0pTTXktNVJ0cGJfY2I1dGFvNWFvN0FRWk5oWkljSFVaOUpzIn0.eyJzdWIiOiJqZnJ0QDAxY3Z0YTJ2NHQyZjM5MGQ2Zm12MHExZDY2XC9ub2Rlc1wvcHJpbWFyeSIsInNjcCI6ImhhLXByb3BhZ2F0ZSBhcGk6KiIsImF1ZCI6ImpmcnRAMDFjdnRhMnY0dDJmMzkwZDZmbXYwcTFkNjYiLCJpc3MiOiJqZnJ0QDAxY3Z0YTJ2NHQyZjM5MGQ2Zm12MHExZDY2IiwiaWF0IjoxNTQxNzAyNTEzLCJqdGkiOiIzNDA0MWMzNC1jYzM1LTQwYzMtODI0Ni1mODRmMDRlY2ZmZjkifQ.ZqtUnJTyyxkDUvRHjqbD1E1ZvyZECS4JPFh-eJeA6XLfhs9-mDEvkFoJXtlflQTDA297qUA-BgUtgGSLDVXBfBRqaTJkOeL8gb55iU_dIJzwvvKTz5ZnshclYM2jrVZfTuuHPX8qmM0fz5iCXQkhEJ3gDVwDD-PyzoXuuSQu4JI_f-OU3gwswsoUAXXxXAKw2zOM5DHPgDCz48OedFMpmA6lTht4PlA7gFID7ri8wmYxX6xVq9nT6AOoH6TWMc5NSgi_Po3tyK8yLRNjy5uXuYDZBqBzwpTA202CuNFjF4rHpHZKP3hNPjcxPA3Of1whueMFMBw0EJw3SzvJqsHJpQ, with response: {

        "errors" : [

      {     "code" : "UNAUTHORIZED",     "message" : "Bearer authentication failed",     "detail" : "invalid token"   }

      ]

      }

       

      From there on it continues on with a ton more stack traces.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ejohnson Eric Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: