Rails with Linode Object Storage: KeyError: Missing configuration


I set up Linode Object Storage with Rails ActiveStorage and it seems to work as expected. The files uploaded appear in the Linode bucket and then get served by ActiveStorage.

But I keep getting this error:

KeyError: Missing configuration for the linode Active Storage service. Configurations available for the test, local, and digitalocean_spaces services.

The configuration is present in storage.yml so I'm not sure what configuration the problem comes from. Maybe I configured it wrong? Here is my config:

  service: S3
  access_key_id: <%= Rails.application.credentials.dig(:linode, :access_key_id) %>
  secret_access_key: <%= Rails.application.credentials.dig(:linode, :secret_access_key) %>
  region: default
  endpoint: https://us-southeast-1.linodeobjects.com
  bucket: ftapp
  http_continue_timeout: 0

Any idea what's wrong?


2 Replies

Your config looks like it matches other configs that are reported to work for the us-east-1 region.

  • You could try creating a test bucket in us-east-1 to determine if the working config is region specific. I'm not sure where the "region: default" is coming into play.

  • You may want to check the files in your config/environments/ directory to make sure that your config.active_storage.service lines are as you expect.

  • Options set in config/storage/<environment>.yml files will override settings made in your config/storage.yml file, so you might want to make sure you are not overriding any needed values

  • If one of your environment files is named digitalocean_spaces.yml and you have modified it for use with Linode, you may wish to try renaming it in case the file name needs to match the stanza in the config file.

Thanks for your reply.

Unfortunately, I could'nt find anything wrong in these files.

Since everything appears to work (other than getting the error message), I will probably just let it go for now and see if I can find the issue later.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct