meteor - CollectionFS S3 ERROR STREAM images Access Denied -


i'm trying set collectionfs , s3 can upload files s3 autoform.

i have images fs.collection defined .allow function living on server, so:

// client , server. var imagestore = new fs.store.s3('images', {                                                                               region: 'us-east-1',                                                                                                     accesskeyid: 'mykey',                                                                                                                                               secretaccesskey: 'my/key',                                                             bucket: 'buketz',                                                                                                  folder: 'images',                                                                                                      });                                                                                                                       images = new fs.collection('images', {                                                                                     stores: [imagestore],                                                                                                    filter: {                                                                                                                  allow: {                                                                                                                   contenttypes: ['image/*'],                                                                                               extensions: ['png', 'png', 'jpg', 'jpg', 'jpeg', 'jpeg']                                                               }                                                                                                                      }                                                                                                                      });  // server only. images.allow({                                                                                                                                                                       insert: function (userid, image) {                                                                                         return true;                                                                                                           },                                                                                                                       update: function (userid, image) {                                                                                         return true;                                                                                                           },                                                                                                                       remove: function (userid, image) {                                                                                         return true;                                                                                                           },                                                                                                                       download: function (userid, image) {                                                                                       return true;                                                                                                           }                                                                                                                      });  

now, when load application, meteor throws me error:

/users/pcoffey/.meteor/packages/cfs_s3/.0.1.3.1ba5bia++os+web.browser+web.cordova/npm/node_modules/aws-sdk/lib/request.js:32           throw err;                 ^ error: error storing file images store: access denied     @ [object object].<anonymous> (packages/cfs:collection/common.js:88:1)     @ [object object].emit (events.js:106:17)     @ writable.<anonymous> (packages/cfs:storage-adapter/storageadapter.server.js:212:1)     @ writable.emit (events.js:117:20)     @ response.<anonymous> (packages/cfs:s3/s3.upload.stream2.js:178:1)     @ request.<anonymous> (/users/pcoffey/.meteor/packages/cfs_s3/.0.1.3.1ba5bia++os+web.browser+web.cordova/npm/node_modules/aws-sdk/lib/request.js:350:18)     @ request.calllisteners (/users/pcoffey/.meteor/packages/cfs_s3/.0.1.3.1ba5bia++os+web.browser+web.cordova/npm/node_modules/aws-sdk/lib/sequential_executor.js:100:18)     @ request.emit (/users/pcoffey/.meteor/packages/cfs_s3/.0.1.3.1ba5bia++os+web.browser+web.cordova/npm/node_modules/aws-sdk/lib/sequential_executor.js:77:10)     @ request.emit (/users/pcoffey/.meteor/packages/cfs_s3/.0.1.3.1ba5bia++os+web.browser+web.cordova/npm/node_modules/aws-sdk/lib/request.js:604:14)     @ request.transition (/users/pcoffey/.meteor/packages/cfs_s3/.0.1.3.1ba5bia++os+web.browser+web.cordova/npm/node_modules/aws-sdk/lib/request.js:21:12) exited code: 8 

setting fs.debug true returns error:

fileworker added - calling savecopy images o5pjjrgd9afhjwhzg saving store images createwritestream images, internal: false createwritestreamforfilekey images meteor._wrapasync has been renamed meteor.wrapasync tempstore mounted on storage.gridfs fs.tempstore creating read stream o5pjjrgd9afhjwhzg createreadstream _tempstore createreadstreamforfilekey _tempstore gridfs { _id: 5584b2140cac49f4312c1425, root: 'cfs_gridfs._tempstore' } fs.http.unmount: {} registered http method urls: /cfs/files/:collectionname/:id/:filename /cfs/files/:collectionname/:id /cfs/files/:collectionname => meteor server restarted -----------error stream images access denied -----------error stream images access denied 

if change collection name, temporarily load attempt file upload, error starts again. have ideas may causing problem?

sounds problem aws permissions. did setup?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -