Skip to main content

Redis not emitting events

This troubleshooting guide only applies to Medusa backends using versions before v1.8 of the core Medusa package.

When you create a new Medusa backend, Redis is disabled by default. Instead, a fake Redis backend is used that allows you to start your project but does not actually emit any events.

To enable a real Redis backend, you need to install Redis on your machine and configure it with Medusa.

You can learn how to install Redis in the Set Up your Development Environment documentation.

After installing it, make sure to configure your Medusa backend to use Redis:

medusa-config.js
module.exports = {
projectConfig: {
// ...
redis_url: REDIS_URL,
},
}
Report Incorrect CodeCopy to Clipboard

By default, Medusa connects to Redis over the URL redis://localhost:6379Copy to Clipboard. If you need to change that URL, set the following environment variable:

REDIS_URL=<YOUR_REDIS_URL>
Report Incorrect CodeCopy to Clipboard

See Also