Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22967

Report exception cause when using S3 storage with an empty AWS_ACCESS_KEY_ID

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0, 7.10, 8.10
    • Fix Version/s: 9.3
    • Component/s: S3
    • Release Notes Description:
      Hide

      A more meaningful error is thrown when the platform doesn't find AWS_ACCESS_KEY_ID when starting.

      Show
      A more meaningful error is thrown when the platform doesn't find AWS_ACCESS_KEY_ID when starting.
    • Tags:
    • Sprint:
      DevOps-18

      Description

      When starting nuxeo with the environment variables AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY, if AWS_ACCESS_KEY_ID is empty when the platform starts, there's a generic exception :

      2017-08-23 14:45:53,290 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Failed to register extension to: service:org.nuxeo.ecm.core.blob.BlobManager, xpoint: configuration in component: service:default-repository-config
      java.lang.RuntimeException: Missing AWS credentials and no instance role found
              at org.nuxeo.ecm.core.storage.sql.S3BinaryManager.setupCloudClient(S3BinaryManager.java:247)
              at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.initialize(AbstractCloudBinaryManager.java:114)
              at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProvider(BlobManagerComponent.java:167)
              at org.nuxeo.ecm.core.blob.BlobManagerComponent.registerBlobProvider(BlobManagerComponent.java:121)
              at org.nuxeo.ecm.core.blob.BlobManagerComponent.registerContribution(BlobManagerComponent.java:98)
              at org.nuxeo.runtime.model.DefaultComponent.registerExtension(DefaultComponent.java:53)
              at org.nuxeo.runtime.model.impl.ComponentInstanceImpl.registerExtension(ComponentInstanceImpl.java:209)
              at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.activate(RegistrationInfoImpl.java:462)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.activateComponent(ComponentManagerImpl.java:547)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.activateComponents(ComponentManagerImpl.java:524)
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:787)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:460)
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:475)
              at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:232)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:226)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:125)
              at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:120)
              at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

      It may be useful to throw the cause of the exception (the original AmazonClientException).

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: