Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Directus
  3. Unable to set up s3 storage adapter

Unable to set up s3 storage adapter

Scheduled Pinned Locked Moved Solved Directus
3 Posts 2 Posters 831 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shrey
    wrote on last edited by shrey
    #1

    Hi all.

    In my Directus .env file, i've tried to configure Storage adapter = Digitalocean.

    This is the configuration that i've used (which works fine for me in multiple other non-Cloudron Directus instances) :

    STORAGE_LOCATIONS="string:DIGITALOCEAN"
    
    STORAGE_DIGITALOCEAN_DRIVER="s3"
    STORAGE_DIGITALOCEAN_ROOT="./Directus"
    STORAGE_DIGITALOCEAN_PUBLIC_URL="/Directus"
    
    STORAGE_DIGITALOCEAN_KEY="key"
    STORAGE_DIGITALOCEAN_SECRET="secret"
    STORAGE_DIGITALOCEAN_BUCKET="bucket-name"
    STORAGE_DIGITALOCEAN_REGION="region"
    STORAGE_DIGITALOCEAN_ENDPOINT="region.digitaloceanspaces.com"
    

    This is the error i'm getting in the console:

    Nov 21 16:01:40 [10:31:40] WARN (75 on 449d86bb-a58d-41fa-90b3-1b6d9be048a1): Couldn't save file c4d112d0-80c3-4549-9f3f-ce7aed8a98a9.jpeg
    Nov 21 16:01:40 [10:31:40] WARN (75 on 449d86bb-a58d-41fa-90b3-1b6d9be048a1): E_INVALID_CONFIG: Make sure to define driver for DIGITALOCEAN disk
    Nov 21 16:01:40 err: {
    Nov 21 16:01:40 "type": "InvalidConfig",
    Nov 21 16:01:40 "message": "E_INVALID_CONFIG: Make sure to define driver for DIGITALOCEAN disk",
    Nov 21 16:01:40 "stack":
    Nov 21 16:01:40 InvalidConfig: E_INVALID_CONFIG: Make sure to define driver for DIGITALOCEAN disk
    Nov 21 16:01:40 at Function.missingDiskDriver (/app/code/node_modules/@directus/drive/dist/exceptions/InvalidConfig.js:16:16)
    Nov 21 16:01:40 at StorageManager.disk (/app/code/node_modules/@directus/drive/dist/StorageManager.js:57:46)
    Nov 21 16:01:40 at FilesService.uploadOne (/app/code/node_modules/directus/dist/services/files.js:85:37)
    Nov 21 16:01:40 at processTicksAndRejections (node:internal/process/task_queues:96:5)
    Nov 21 16:01:40 at async Multipart.<anonymous> (/app/code/node_modules/directus/dist/controllers/files.js:77:32)
    Nov 21 16:01:40 }
    

    How to resolve this?

    girishG 1 Reply Last reply
    0
    • S shrey

      Hi all.

      In my Directus .env file, i've tried to configure Storage adapter = Digitalocean.

      This is the configuration that i've used (which works fine for me in multiple other non-Cloudron Directus instances) :

      STORAGE_LOCATIONS="string:DIGITALOCEAN"
      
      STORAGE_DIGITALOCEAN_DRIVER="s3"
      STORAGE_DIGITALOCEAN_ROOT="./Directus"
      STORAGE_DIGITALOCEAN_PUBLIC_URL="/Directus"
      
      STORAGE_DIGITALOCEAN_KEY="key"
      STORAGE_DIGITALOCEAN_SECRET="secret"
      STORAGE_DIGITALOCEAN_BUCKET="bucket-name"
      STORAGE_DIGITALOCEAN_REGION="region"
      STORAGE_DIGITALOCEAN_ENDPOINT="region.digitaloceanspaces.com"
      

      This is the error i'm getting in the console:

      Nov 21 16:01:40 [10:31:40] WARN (75 on 449d86bb-a58d-41fa-90b3-1b6d9be048a1): Couldn't save file c4d112d0-80c3-4549-9f3f-ce7aed8a98a9.jpeg
      Nov 21 16:01:40 [10:31:40] WARN (75 on 449d86bb-a58d-41fa-90b3-1b6d9be048a1): E_INVALID_CONFIG: Make sure to define driver for DIGITALOCEAN disk
      Nov 21 16:01:40 err: {
      Nov 21 16:01:40 "type": "InvalidConfig",
      Nov 21 16:01:40 "message": "E_INVALID_CONFIG: Make sure to define driver for DIGITALOCEAN disk",
      Nov 21 16:01:40 "stack":
      Nov 21 16:01:40 InvalidConfig: E_INVALID_CONFIG: Make sure to define driver for DIGITALOCEAN disk
      Nov 21 16:01:40 at Function.missingDiskDriver (/app/code/node_modules/@directus/drive/dist/exceptions/InvalidConfig.js:16:16)
      Nov 21 16:01:40 at StorageManager.disk (/app/code/node_modules/@directus/drive/dist/StorageManager.js:57:46)
      Nov 21 16:01:40 at FilesService.uploadOne (/app/code/node_modules/directus/dist/services/files.js:85:37)
      Nov 21 16:01:40 at processTicksAndRejections (node:internal/process/task_queues:96:5)
      Nov 21 16:01:40 at async Multipart.<anonymous> (/app/code/node_modules/directus/dist/controllers/files.js:77:32)
      Nov 21 16:01:40 }
      

      How to resolve this?

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by girish
      #2

      @shrey did you forget to add the export in each line? It should like the below in /app/data/env:

      export STORAGE_LOCATIONS="string:DIGITALOCEAN"
      

      (For all the lines). Cloudron does not use the .env setup (didn't know upstream supported it).

      S 1 Reply Last reply
      1
      • girishG girish

        @shrey did you forget to add the export in each line? It should like the below in /app/data/env:

        export STORAGE_LOCATIONS="string:DIGITALOCEAN"
        

        (For all the lines). Cloudron does not use the .env setup (didn't know upstream supported it).

        S Offline
        S Offline
        shrey
        wrote on last edited by shrey
        #3

        @girish Thanks!
        That was hasty on my part 😐

        Yeah, i've always used the .env setup with a docker-compose install of Directus.

        1 Reply Last reply
        0
        • S shrey has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search