12 days ago
Hello Railway Support Team,
We are currently facing an issue where our Redis server is crashing upon deployment. The error message indicates the following:
"The REDIS_PASSWORD environment variable is empty or not set. Set the environment variable ALLOW_EMPTY_PASSWORD=yes to allow the container to be started with blank passwords. This is recommended only for development."
This suggests that the Redis container expects either a defined REDIS_PASSWORD
or explicit permission to run without one by setting ALLOW_EMPTY_PASSWORD=yes
.
Could you please assist us in resolving this? Specifically, we’d like to understand:
Whether Railway provides a way to securely configure
REDIS_PASSWORD
for the Redis instance.If not, whether it’s acceptable and safe in our current environment to enable
ALLOW_EMPTY_PASSWORD=yes
.Or if there's another recommended approach for handling Redis credentials securely on Railway.
We appreciate your support in helping us restore stability to our Redis service.
Thanks and Regards,
Megha
2 Replies
12 days ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
12 days ago
We’ve identified and resolved the issue on our end.
The Redis server was crashing due to the missing REDIS_PASSWORD
environment variable. To fix it, we added the previously used Redis password (REDIS_PASSWORD=<before_crash_redis_password>
) in the shared environment and ensured it’s correctly referenced by the Redis service. After this change, everything is working as expected.
Thanks, and let us know if there are any best practices we should follow for managing Redis credentials on Railway.
Thank and Regards,
Megha
Status changed to Solved brody • 12 days ago