UPDATE:
If I run the same action twice in the console, it fails the first time and WORKS the second time!
This is happening to us on an upgrade to Rails 7.0.3 from 5.2
Everything was working before and I know the YAML files are correct.
Any active storage operation gives us:
KeyError: Missing configuration for the Active Storage service. Configurations available for the local, test, amazon, and amazonDemo services.
storage.yml:
local:
service: Disk
root: <%= Rails.root.join("storage") %>
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
In test.rb:
config.active_storage.service = :test
(We set those correctly in all of our environments..like I said, it was working before the upgrade)
The thing that is interesting to me is the double space in the error message. It appears that the active storage service is not truly being set. I've looked at the Edge Guides and in every tutorial I can find. It doesn't feel like any other configurations should be necessary. I'm officially stumped.
Ruby: 2.7.6 Rails 7.0.3
I did find one similar issue here:
Our blob fixtures did not have service_name
set. It was complaining about the blobs having no service.