10 months ago
I'm encountering an issue while deploying my Medusa JS project on your platform. The main problem is that the service cannot find the redis_url
. Here are the details:
1. When building and running the project locally, everything works correctly without any Redis-related errors.
2. However, when deploying on Railway, I receive a "redis_url not found" error, and the service cannot connect to Redis.
3. I've tried various methods of specifying REDIS_URL
in the project settings on Railway, including:
- Adding the REDIS_URL
environment variable directly in the project settings
- Specifying REDIS_URL
in the railway.toml
file
- Using Railway's internal variables to reference the Redis service
But none of these methods solved the problem.
What's particularly noteworthy is that I observe the exact same error when trying to deploy the official Medusa JS template available at https://railway.app/template/zC7eOq?referralCode=TW4Qi0. This template is recommended in the official Medusa documentation (https://docs.medusajs.com/deployments/server/deploying-on-railway).
Given that the problem reproduces even with the official template, I suspect this might be related to the configuration or settings on Railway's side.
Here's a relevant log snippet from the deployment:
```
Starting Container
[medusa-config] redis_url not found. A fake redis instance will be used.
[medusa-config] redis_url not found. A fake redis instance will be used.
query: SELECT * FROM current_schema()
query: SELECT version();
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations'
query: SELECT * FROM "public"."migrations" "migrations" ORDER BY "id" DESC
No migrations are pending
[medusa-config] redis_url not found. A fake redis instance will be used.
Local Event Bus installed. This is not recommended for production.
[medusa-config] redis_url not found. A fake redis instance will be used.
No Redis url was provided - using Medusa in production without a proper Redis instance is not recommended
Using fake Redis
```
I would greatly appreciate any help or guidance on solving this problem.
Thank you for your time and assistance.
Best regards,
Sergei
1 Replies
10 months ago
Hi,
The te,mplate you are using is not an official template but a community created one. The template docs reference this section of the medusa docs for how to configure the url.
https://docs.medusajs.com/development/backend/configurations#redis_url
Status changed to Awaiting User Response railway[bot] • 10 months ago