[medusa-config] ⚠️ redis_url not found
anarchoenthusiast
HOBBYOP

a year 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] warning emoji redis_url not found. A fake redis instance will be used.

[medusa-config] warning emoji 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] warning emoji redis_url not found. A fake redis instance will be used.

Local Event Bus installed. This is not recommended for production.

[medusa-config] warning emoji 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

Solved

1 Replies

zuchka
PRO

a year 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 over 1 year ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...