无法为AEM 6.3安装S3连接器

时间:2017-05-15 08:01:56

标签: amazon-s3 aem

我正在尝试在this instructions之后连接S3数据存储。我收到this SOF问题中描述的确切错误。 步骤进行:

  1. 创建了一个vanilla AEM 6.3实例并能够将图像上传到DAM
  2. 已下载S3 connector并将所有.jar文件复制到crx-quickstart / install文件夹
  3. 复制org.apache.jackrabbit.oak.segment.SegmentNodeStoreService.config文件并设置customBlobStore = B" true"
  4. 复制了org.apache.jackrabbit.oak.plugins.blob.datastore.S3DataStore.config文件,如下所示:
  5. ACCESSKEY ="刻划" connectionTimeout =" 120000" MAXCONNECTIONS =" 40" maxErrorRetry =" 10" s3Bucket ="的Myproj-s3bucket" s3Region =" AP-东南-1" s3EndPoint =" HTTPS://scribed.signin.aws.amazon.com/console"秘密密钥="刻划"了socketTimeout =" 120000" writeThreads =" 30" CACHESIZE =" 16GB" cachePurgeTrigFactory =" 1"

    (写了关键和秘密)

    1. 当我重新启动AEM时,没有任何控制台启动。它抛出
    2. HTTP错误:503访问/时出现问题。原因:缺少AuthenticationSupport服务。无法验证请求。

      这是例外追踪:

      15.05.2017 07:42:56.156 *INFO* [FelixStartLevel] org.apache.jackrabbit.oak.blob.cloud.s3.Utils Configuring Amazon Client from property file.
      15.05.2017 07:42:59.401 *INFO* [FelixStartLevel] org.apache.jackrabbit.oak.blob.cloud.s3.Utils S3 service endpoint [https://170564245278.signin.aws.amazon.com/console] 
      15.05.2017 07:43:04.292 *ERROR* [FelixStartLevel] org.apache.jackrabbit.oak-blob-cloud [org.apache.jackrabbit.oak.plugins.blob.datastore.S3DataStore(2946)] The activate method has thrown an exception (java.lang.NullPointerException: null value in entry: component.id=null) java.lang.NullPointerException: null value in entry: component.id=null     at com.google.common.collect.CollectPreconditions.checkEntryNotNull(CollectPreconditions.java:33)   at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:135)    at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:206)    at com.google.common.collect.Maps.fromProperties(Maps.java:1187)    at org.apache.jackrabbit.oak.blob.cloud.s3.S3Backend.init(S3Backend.java:166)   at org.apache.jackrabbit.oak.plugins.blob.AbstractSharedCachingDataStore.init(AbstractSharedCachingDataStore.java:163)  at org.apache.jackrabbit.oak.plugins.blob.datastore.AbstractDataStoreService.activate(AbstractDataStoreService.java:87)     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.apache.felix.scr.impl.inject.BaseMethod.invokeMethod(BaseMethod.java:224)    at org.apache.felix.scr.impl.inject.BaseMethod.access$500(BaseMethod.java:39)   at org.apache.felix.scr.impl.inject.BaseMethod$Resolved.invoke(BaseMethod.java:617)     at org.apache.felix.scr.impl.inject.BaseMethod.invoke(BaseMethod.java:501)  at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:302)  at org.apache.felix.scr.impl.inject.ActivateMethod.invoke(ActivateMethod.java:294)  at org.apache.felix.scr.impl.manager.SingleComponentManager.createImplementationObject(SingleComponentManager.java:298)     at org.apache.felix.scr.impl.manager.SingleComponentManager.createComponent(SingleComponentManager.java:109)    at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:906)     at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:879)     at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:749)   at org.apache.felix.scr.impl.manager.AbstractComponentManager.enableInternal(AbstractComponentManager.java:675)     at org.apache.felix.scr.impl.manager.AbstractComponentManager.enable(AbstractComponentManager.java:430)     at org.apache.felix.scr.impl.manager.ConfigurableComponentHolder.enableComponents(ConfigurableComponentHolder.java:657)     at org.apache.felix.scr.impl.BundleComponentActivator.initialEnable(BundleComponentActivator.java:341)  at org.apache.felix.scr.impl.Activator.loadComponents(Activator.java:390)   at org.apache.felix.scr.impl.Activator.access$200(Activator.java:54)    at org.apache.felix.scr.impl.Activator$ScrExtension.start(Activator.java:265)   at org.apache.felix.utils.extender.AbstractExtender.createExtension(AbstractExtender.java:259)  at org.apache.felix.utils.extender.AbstractExtender.modifiedBundle(AbstractExtender.java:232)   at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:482)   at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:415)   at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:232)    at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)    at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)   at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)   at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:517)    at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4542)    at org.apache.felix.framework.Felix.startBundle(Felix.java:2173)    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)     at java.lang.Thread.run(Thread.java:745)
      15.05.2017 07:43:04.308 *INFO* [FelixStartLevel] com.day.cq.cq-compat-codeupgrade BundleEvent RESOLVED
      15.05.2017 07:43:04.310 *INFO* [FelixStartLevel] com.day.cq.cq-compat-codeupgrade BundleEvent STARTING
      15.05.2017 07:43:04.310 *INFO* [FelixStartLevel] com.day.cq.cq-compat-codeupgrade BundleEvent STARTED
      

      我错过了任何步骤或配置吗?请帮忙

1 个答案:

答案 0 :(得分:1)

在我的帮助下,我得到了我的问题的答案,比较了工作配置与失败。此参数不正确:

s3EndPoint =" HTTPS://scribed.signin.aws.amazon.com/console"

这可能是空白的,因为连接器将使用s3Region重建。或者是https://region.aws.amazon.com。由于错误日志丢失了无关的错误,我被误导了。删除这一个参数有所不同。

第二个观察是,在启动AEM时,最初它确实抛出错误。但最终它开始了。需要等待3-4分钟。在日志中,我看到启动时拒绝连接。但是在加载完所有配置后的后续请求中,它能够成功连接和上传。