New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gem::LoadError on azure-storage-blob (AzureStorage adapter) in Rails 7 #44960
Comments
I've tried to load the same setup in various setups: RoR 6.1 & Ruby 2.7.4
RoR 7.0.2.3 & Ruby 2.7.4
RoR 6.1 & Ruby 3.1.1
RoR 7.0.2.3 & Ruby 3.1.1I've started again and upgraded Rails from scratch one more time in the project (so same as original description but done one more time)
Conclusion at this pointit seems there is something in Rails 7.0.2.3 that is causing this |
This looks like expected behavior to me. The requirement in To fix this you should upgrade your |
@skipkayhil you deserve a cookie !! yes you right as soon as I've updated my Gemfile to
...it started to work. Now I see it's obvious Maybe it's worth mentioning this in official ActiveStorage guide https://edgeguides.rubyonrails.org/active_storage_overview.html So I've created PR #44965 Thank you, you saved my day! |
this is not a bug, upgrade |
Steps to reproduce
I've upgraded my Ruby form 2.7.4 to 3.1.1 & Rails from 6.1 to 7.0.2.3
in my Gemfile I have:
running code from https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/service/configurator.rb#L30 in rails console :
Reason
in https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/service/azure_storage_service.rb:3
there is a line:
I'm suspecting that there's something in Rails 7 causing this not to load properly .
one more note:
In my app I use AWS S3 (primary) mirrored to Azure(seconday) If I disable AzureStorage and only use S3 adapter it's fine, but with Azure storage setup fails. Therefore S3 adapter is not affected by this and this line is working in s3 adapter
Seems like something how azure_storage_blob is being loaded in Ruby 3.1 / Rails 7.0.2.3 because same version of azure_storage_blob in Ruby2.7.4/RoR 6.1 worked (comment bellow)
System configuration
Rails version: 7.0.2.3
Ruby version: 3.1.1
bundler version: 2.3.12
azure-storage-blob version: (1.1.0)
The text was updated successfully, but these errors were encountered: