#AWS S3 Problems

10 messages · Page 1 of 1 (latest)

livid jungle
#

Hi I want to use S3 as my storage, I already set the configuration file but I found this error. The file isn't uploaded to the S3

[09:18:54.679] ERROR: Location "local" doesn't exist.
    err: {
      "type": "Error",
      "message": "Location \"local\" doesn't exist.",
      "stack":
          Error: Location "local" doesn't exist.
              at StorageManager.location (file:///directus/node_modules/.pnpm/file+packages+storage/node_modules/@directus/storage/dist/index.js:18:19)
              at AssetsService.getAsset (file:///directus/node_modules/.pnpm/file+api/node_modules/@directus/api/dist/services/assets.js:46:38)
              at async file:///directus/node_modules/.pnpm/file+api/node_modules/@directus/api/dist/controllers/assets.js:152:36
    }
[09:18:54.682] ERROR: Location "local" doesn't exist.
    err: {
      "type": "Error",
      "message": "Location \"local\" doesn't exist.",
      "stack":
          Error: Location "local" doesn't exist.
              at StorageManager.location (file:///directus/node_modules/.pnpm/file+packages+storage/node_modules/@directus/storage/dist/index.js:18:19)
              at AssetsService.getAsset (file:///directus/node_modules/.pnpm/file+api/node_modules/@directus/api/dist/services/assets.js:46:38)
              at async file:///directus/node_modules/.pnpm/file+api/node_modules/@directus/api/dist/controllers/assets.js:152:36
    }

Anyone can help me? Thanks!

rustic spearBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

livid jungle
#
## AWS S3 Storage Settings (My settings)
STORAGE_S3_DRIVER="s3"
STORAGE_S3_KEY="******"
STORAGE_S3_SECRET="*******"
STORAGE_S3_BUCKET="*******"
STORAGE_S3_REGION="ap-south-1"
STORAGE_S3_ENDPOINT="s3.amazonaws.com"
STORAGE_S3_ROOT="/uploads"
#STORAGE_S3_ACL=

this is the configuration that I used

worn cove
#

you probaly have local inside of your storage provider env variable

#

or you did not provide it at all

livid jungle
#

I have set the locations to STORAGE_LOCATIONS: "s3" and already tried STORAGE_LOCATIONS: "local, s3" but still have the same error

worn cove
#

maybe try S3? since thats what you named it?

livid jungle
#

nothings happen 🙂

long saddle
livid jungle
#

Thanks!