#How to connect to a Google Cloud Storage Bucket ?

1 messages · Page 1 of 1 (latest)

ocean sedge
#

Hello there !

I want to make my files and images to persist between deployments.
Does any one has already connect a GCS bucket to Directus ?

I followed the configuration doc
https://docs.directus.io/self-hosted/config-options.html#file-storage

I add all permission to a service account.
I put the service account key file at the root on my project and add theses parameters to the directus.config.js :

STORAGE_LOCATIONS: "gcs",
STORAGE_GCS_DRIVER: "gcs",
STORAGE_GCS_HEALTHCHECK_THRESHOLD: 750,
STORAGE_GCS_KEY_FILENAME: "./gcs.json",
STORAGE_GCS_BUCKET: "bucket-name,

But this warn keep coming and nothing appear in the bucket on upload.

[14:25:52.992] WARN: Upload directory (/app/uploads) is not read/writeable!

Thank you guys !

versed atlasBOT
#

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.)