找不到Amazon S3配置桶ID

2020-09-29 18:44发布

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我在hybris Wiki链接** https://wiki.hybris.com/display/forum/Amazon+s3+configuration+for+media**

并在 local.properties 中按如下方式配置Amazon s3的详细信息

media.globalSettings.s3MediaStorageStrategy.accessKeyId = myaccesskey media.globalSettings.s3MediaStorageStrategy.secretAccessKey = mysecretaccesskey media.globalSettings.s3MediaStorageStrategy.endpoint = mybucketid.s3-website-us-west-2.amazonaws.com media.globalSettings.s3MediaStorageStrategy.bucketId = mybucketid media.globalSettings.s3MediaStorageStrategy.url .signed = false media.globalSettings.s3MediaStorageStrategy.url.unsigned.https = true media.globalSettings.s3MediaStorageStrategy.url.unsigned.virtualHost = false media.globalSettings.s3MediaStorageStrategy.url.validFor = 120 media.default.storage.strategy = s3MediaStorageStrategyy media.default.url.strategy = s3MediaUrlStrategy

但是当我尝试创建任何媒体时,出现以下异常

de.hybris.platform.jalo.JaloSystemException:ID为:的存储桶在S3服务中不可访问。 检查您的配置。[HY--1]位于de.hybris.platform.jalo.media.Media.setData(Media.java:515),位于de.hybris.platform.jalo.media.Media.setData(Media.java: 452),位于de.hybris.platform.hmc.media.MediaFileUploadEditorChip.setData(MediaFileUploadEditorChip.java:388),位于de.hybris.platform.hmc.media.ModalMediaFileUploadChip.setFile(ModalMediaFileUploadChip.java:124),位于de.hybris.platform .hmc.media.ModalMediaFileUploadChip.processEvents(ModalMediaFileUploadChip.java:209)位于de.hybris.platform.hmc.webchips.DisplayState.dispatchEvents(DisplayState.java:638)位于de.hybris.platform.hmc.webchips.DisplayState.extractEventsFromParameters (DisplayState.java:443)位于de.hybris.platform.hmc.webchips.DisplayState.processEvents(DisplayState.java:354)位于de.hybris.platform.hmc.webchips.MasterServlet.process(MasterServlet.java:193) de.hybris.platform.hmc.webchips.MasterServlet.doGet(MasterServlet.java:90)在javax.servlet.http.HttpServlet.service(HttpServlet.java:621)在javax.servlet.http.HttpServlet.servic e(HttpServlet.java:728)位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)位于de.hybris .platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:256)在de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ StatisticsGatewayFilter.doFilter(AbstractPlatformFilterChain.java:345)在de.hybris.platform.servicelayer .web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)在de.hybris.platform.servicelayer.web.SecureMediaFilter.doFilter(SecureMediaFilter.java:97)在de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain .doFilter(AbstractPlatformFilterChain.java:226)位于de.hybris.platform.servicelayer.web.DynamicCatalogVersionActivationFilter.doFilter(DynamicCatalogVersionActivationFilter.java:93)位于de.hybris.pla tform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)在de.hybris.platform.servicelayer.web.DataSourceSwitchingFilter.doFilter(DataSourceSwitchingFilter.java:73)在de.hybris.platform.servicelayer.web。 de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:73)位于de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)at de.hybris.platform.servicelayer.web.RedirectWhenSystemIsNotInitializedFilter.doFilter(RedirectWhenSystemIsNotInitializedFilter.java:104)中的AbstractPlatformFilterChain.java:226)at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPform。 在org.springframework的de.hybris.platform.servicelayer.web.DynamicTenantSwitchingFilter.doFilterInternal(DynamicTenantSwitchingFilter.java:88)中。 位于de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)的web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76),位于de.hybris.platform.servicelayer.web.Log4JFilter。 位于de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)的doFilter(Log4JFilter.java:47)位于de.hybris.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java: 156)在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)在org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)在org.springframework.web.filter.DelegatingFilterProxy org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)的.doFilter(DelegatingFilterProxy.java:259)org.apache.catalina.core.ApplicationFilterChain.doFilter(App org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)处的licationFilterChain.java:210)org.apache.catalina的org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)上的.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)在de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java) :230)在org.apache.catalina.core的org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)的org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)处。 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)的org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)的StandardWrapperValve.invoke(StandardWrapperValve.java:222) .apache.catalina.valves.ErrorReportValve。 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)为org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)为invoke(ErrorReportValve.java:99) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)上的.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java) :589),位于org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:312),位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145),位于java.util.concurrent。 java.lang.Thread.run(Thread.java:724)上的ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)原因:de.hybris.platform.media.exceptions.ExternalStorageServiceException:无法在以下位置访问ID为:的存储桶 S3服务。 检查您的配置。 在de.hybris.platform.amazon.media.services.impl.DefaultS3StorageServiceFactory.getS3BucketForFolder(DefaultS3StorageServiceFactory.java:129)处的de.hybris.platform.amazon.media.services.impl.DefaultS3StorageServiceFactory.getS3Bucket(DefaultS3StorageServiceFactory.java:157) 在de.hybris.platform.amazon.media.storage.S3MediaStorageStrategy.store(S3MediaStorageStrategy.java:132)在de.hybris.platform.jalo.media.MediaManager.storeMedia(MediaManager.java:259)在de.hybris.platform .jalo.media.Media.setDataFromStreamInternal(Media.java:539)位于de.hybris.platform.jalo.media.Media.setData(Media.java:505)... 57更多

我尝试在Amazon s3端的 local.properties bucket策略中更改端点conf。

但是这些似乎都不起作用。 对此的任何帮助将不胜感激。

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


我在hybris Wiki链接** https://wiki.hybris.com/display/forum/Amazon+s3+configuration+for+media**

并在 local.properties 中按如下方式配置Amazon s3的详细信息

media.globalSettings.s3MediaStorageStrategy.accessKeyId = myaccesskey media.globalSettings.s3MediaStorageStrategy.secretAccessKey = mysecretaccesskey media.globalSettings.s3MediaStorageStrategy.endpoint = mybucketid.s3-website-us-west-2.amazonaws.com media.globalSettings.s3MediaStorageStrategy.bucketId = mybucketid media.globalSettings.s3MediaStorageStrategy.url .signed = false media.globalSettings.s3MediaStorageStrategy.url.unsigned.https = true media.globalSettings.s3MediaStorageStrategy.url.unsigned.virtualHost = false media.globalSettings.s3MediaStorageStrategy.url.validFor = 120 media.default.storage.strategy = s3MediaStorageStrategyy media.default.url.strategy = s3MediaUrlStrategy

但是当我尝试创建任何媒体时,出现以下异常

de.hybris.platform.jalo.JaloSystemException:ID为:的存储桶在S3服务中不可访问。 检查您的配置。[HY--1]位于de.hybris.platform.jalo.media.Media.setData(Media.java:515),位于de.hybris.platform.jalo.media.Media.setData(Media.java: 452),位于de.hybris.platform.hmc.media.MediaFileUploadEditorChip.setData(MediaFileUploadEditorChip.java:388),位于de.hybris.platform.hmc.media.ModalMediaFileUploadChip.setFile(ModalMediaFileUploadChip.java:124),位于de.hybris.platform .hmc.media.ModalMediaFileUploadChip.processEvents(ModalMediaFileUploadChip.java:209)位于de.hybris.platform.hmc.webchips.DisplayState.dispatchEvents(DisplayState.java:638)位于de.hybris.platform.hmc.webchips.DisplayState.extractEventsFromParameters (DisplayState.java:443)位于de.hybris.platform.hmc.webchips.DisplayState.processEvents(DisplayState.java:354)位于de.hybris.platform.hmc.webchips.MasterServlet.process(MasterServlet.java:193) de.hybris.platform.hmc.webchips.MasterServlet.doGet(MasterServlet.java:90)在javax.servlet.http.HttpServlet.service(HttpServlet.java:621)在javax.servlet.http.HttpServlet.servic e(HttpServlet.java:728)位于org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)位于org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)位于de.hybris .platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:256)在de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ StatisticsGatewayFilter.doFilter(AbstractPlatformFilterChain.java:345)在de.hybris.platform.servicelayer .web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)在de.hybris.platform.servicelayer.web.SecureMediaFilter.doFilter(SecureMediaFilter.java:97)在de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain .doFilter(AbstractPlatformFilterChain.java:226)位于de.hybris.platform.servicelayer.web.DynamicCatalogVersionActivationFilter.doFilter(DynamicCatalogVersionActivationFilter.java:93)位于de.hybris.pla tform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)在de.hybris.platform.servicelayer.web.DataSourceSwitchingFilter.doFilter(DataSourceSwitchingFilter.java:73)在de.hybris.platform.servicelayer.web。 de.hybris.platform.servicelayer.web.SessionFilter.doFilter(SessionFilter.java:73)位于de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)at de.hybris.platform.servicelayer.web.RedirectWhenSystemIsNotInitializedFilter.doFilter(RedirectWhenSystemIsNotInitializedFilter.java:104)中的AbstractPlatformFilterChain.java:226)at de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPform。 在org.springframework的de.hybris.platform.servicelayer.web.DynamicTenantSwitchingFilter.doFilterInternal(DynamicTenantSwitchingFilter.java:88)中。 位于de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)的web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76),位于de.hybris.platform.servicelayer.web.Log4JFilter。 位于de.hybris.platform.servicelayer.web.AbstractPlatformFilterChain $ InternalFilterChain.doFilter(AbstractPlatformFilterChain.java:226)的doFilter(Log4JFilter.java:47)位于de.hybris.servicelayer.web.AbstractPlatformFilterChain.doFilterInternal(AbstractPlatformFilterChain.java: 156)在org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)在org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)在org.springframework.web.filter.DelegatingFilterProxy org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)的.doFilter(DelegatingFilterProxy.java:259)org.apache.catalina.core.ApplicationFilterChain.doFilter(App org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)处的licationFilterChain.java:210)org.apache.catalina的org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)上的.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)在de.hybris.platform.servicelayer.web.XSSFilter.doFilter(XSSFilter.java) :230)在org.apache.catalina.core的org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)的org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)处。 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)的org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)的StandardWrapperValve.invoke(StandardWrapperValve.java:222) .apache.catalina.valves.ErrorReportValve。 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)为org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)为invoke(ErrorReportValve.java:99) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)上的.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)在org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java) :589),位于org.apache.tomcat.util.net.JIoEndpoint $ SocketProcessor.run(JIoEndpoint.java:312),位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145),位于java.util.concurrent。 java.lang.Thread.run(Thread.java:724)上的ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)原因:de.hybris.platform.media.exceptions.ExternalStorageServiceException:无法在以下位置访问ID为:的存储桶 S3服务。 检查您的配置。 在de.hybris.platform.amazon.media.services.impl.DefaultS3StorageServiceFactory.getS3BucketForFolder(DefaultS3StorageServiceFactory.java:129)处的de.hybris.platform.amazon.media.services.impl.DefaultS3StorageServiceFactory.getS3Bucket(DefaultS3StorageServiceFactory.java:157) 在de.hybris.platform.amazon.media.storage.S3MediaStorageStrategy.store(S3MediaStorageStrategy.java:132)在de.hybris.platform.jalo.media.MediaManager.storeMedia(MediaManager.java:259)在de.hybris.platform .jalo.media.Media.setDataFromStreamInternal(Media.java:539)位于de.hybris.platform.jalo.media.Media.setData(Media.java:505)... 57更多

我尝试在Amazon s3端的 local.properties bucket策略中更改端点conf。

但是这些似乎都不起作用。 对此的任何帮助将不胜感激。

付费偷看设置
发送
2条回答
代楠1984
1楼-- · 2020-09-29 19:18

Siddarth,你好,

您的网址本身不起作用。 这是givign 404错误。 http://mybucketid.s3-website-us-west-2.amazonaws。 com/

找不到404

代码:NoSuchBucket消息:指定的存储桶不存在BucketName:mybucketid RequestId:6D4602DB50E9B65E HostId:YwmcQ7Fbe4hf3bRjW3nuF1PSMGYmx4DBYvpFnDE0 + p7sh + bcq5jC6Ltt3O/pq4

请检查相同。

渐行渐远_HoldOn
2楼-- · 2020-09-29 19:21

如果您收到403,请使用存储桶策略为匿名用户添加权限(使用ACL)。 下载此处提供的指南,并执行以下步骤: https://jam4.sapjam.com/groups/YFh1LcP1dbRzFfYYvG1Wc9/overview_page/MPThwma8lJ37l1vkBO8dcu

一周热门 更多>