I am in process of deploying a Rails 7 (Hotwire enabled) application using App Platform. This is my first time with both, Rails 7 and App Platform. Now when I am trying to delete a resource having active storage attachment I am getting following error in the logs:
[ActiveJob] Failed enqueuing ActiveStorage::PurgeJob to Sidekiq(xx_yyy_zzzz): URI::InvalidURIError (bad URI(is not URI?): "rediss://default:XYZxyzXYZ@xx-yy-zz-aa-bb-cc.b.db.ondigitalocean.com:12345}")
(Obfuscated the URI here)
I am using a managed Redis DB as a component, and referring to it in the web service component using REDIS_URL environment variable.
I am stuck at this problem from quite a long time, any help would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
It sounds like Rails does not like the ${REDIS_URL} format.
What I could suggest is to use the ${DATABASE_URL} environment variable so that you could then build your Redis connection string to match the required Rails format rather than using the ${REDIS_URL} env var directly.
Hope that this helps!
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.