S3 with Amazon endpoint cause error.

Ahmad Shah Barhanuddin asked on June 16, 2016 04:12

Image Text

Failed to upload new files/create new folder into the s3. This happen after I put additional settings on S3 for Amzaon endpoint in web.config file. If without "CMSAmazonEndPoint" the upload is working fine.

S3 settings Image Text

Below is the error log.

Event ID: 1902 Event type: Error Event time: 6/16/2016 9:31:29 AM Source: MultiFileUploader Event code: UPLOADMEDIA User ID: 90 User name: xxxx IP address: xx.xx.xx.xxx Description: Message: Access Denied

Exception type: Amazon.S3.AmazonS3Exception Stack Trace: at Amazon.S3.AmazonS3Client.processRequestError(String actionName, HttpWebRequest request, WebException we, HttpWebResponse errorResponse, String requestAddr, WebHeaderCollection& respHdrs, Type t, Exception& cause) at Amazon.S3.AmazonS3Client.handleHttpWebErrorResponse(S3Request userRequest, WebException we, HttpWebRequest request, HttpWebResponse httpResponse, Exception& cause, HttpStatusCode& statusCode) at Amazon.S3.AmazonS3Client.getResponseCallback[T](IAsyncResult result) at Amazon.S3.AmazonS3Client.endOperation[T](IAsyncResult result) at Amazon.S3.AmazonS3Client.EndPutObject(IAsyncResult asyncResult) at CMS.AmazonStorage.S3ObjectInfoProvider.CreateEmptyObject(IS3ObjectInfo obj) at CMS.AmazonStorage.Directory.CreateDirectory(String path) at CMS.IO.Directory.CreateDirectory(String path) at CMS.IO.DirectoryHelper.EnsureDiskPathInternal(String path, String startingPath) at CMS.MediaLibrary.MediaLibraryUploader.ProcessRequest(HttpContext context) Machine name: KENTIDEV00 Event URL: /CMSModules/MediaLibrary/CMSPages/MultiFileUploader.ashx?InstanceGuid=91cb383d-6ebc-409f-b380-01a942fd19c5&filename=Koala.jpg&FilesCount=1&ResizeArgs=0;0;0&GetBytes=true&MediaLibraryArgs=MediaLibraryID%7c3%7cMediaFolderPath%7cjune%2b2016%7cMediaFileID%7c0%7cIsMediaThumbnail%7cFalse%7cMediaFileName%7c%7cHash%7cbe59db0a998b399461e1eb47395040a0d96b6e1cae2ba75e3a7679a51c493a0f&AdditionalParameters=SourceType%7cMediaLibraries%7cParentElementID%7clibraries%7cIsInsertMode%7cTrue%7cAfterSaveJavascript%7c%7cTargetFolderPath%7c%7cTargetFileName%7c%7cIncludeNewItemInfo%7cTrue%7cOnlyImages%7cFalse%7cRaiseOnClick%7cFalse%7cTargetAliasPath%7c%7cTargetCulture%7c%7cEventTarget%7c%7cHash%7cbf5d2a262b4f031089e0320868a261e7ee74a2184bdc5ce41f17f737157e22f8&CurrentFileIndex=1&AllowedExtensions=pdf;doc;docx;ppt;pptx;xls;xlsx;htm;html;xml;bmp;gif;jpg;jpeg;png;wav;wma;wmv;mp3;mp4;mpg;mpeg;mov;avi;swf;rar;zip;txt;rtf;webm;ogg;wav;ogv;oga|Hash|d74cd1ccf46e29a1ffb14a049b3411e0f1452b27371c42a814cbda4d42619f58 URL referrer: http://xxxxxx/CMSModules/MediaLibrary/FormControls/Selectors/InsertImageOrMedia/Tabs_Media.aspx?output=url&content=allfiles&pagetypes=All&web_hide=1&documentid=141&parentid=136&content_userelativeurl=True&content_culture=en-US&editor_clientid=m_c_f_MainImage_mediaSelector_txtPath&siteid=1&tab=libraries&hash=0d027e8232fee6a883953f446ae882b87387b1c2011949974ca43faf486d07bf User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

   Please, sign in to be able to submit a new answer.