2 months ago
Hello, Railway.
I tried updating my n8n workflow version, but there seem to be some issues. I haven't been able to fix it. Is there any guidance on how I can fix this or any support you can provide? I would really appreciate it.
I've attached an image of the CRITICAL ERROR.
I've tried correcting the variables, but I haven't been able to.
14 Replies
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 2 months ago
2 months ago
melaguiar09
I was trying to update the version. But I got an error in Primary. I tried configuring some variables and couldn't get the deployment back to normal.Please help me.
2 months ago
Click into one of those and show us a real error, please.
2 months ago
This is the log in Primary:
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Lost Redis connection. Trying to reconnect in 1s... (7s/10s)
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Lost Redis connection. Trying to reconnect in 1s... (8.1s/10s)
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Lost Redis connection. Trying to reconnect in 1s... (9.1s/10s)
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Unable to connect to Redis after trying to connect for 10s
Exiting process due to Redis connection error
This is the log in Worker:
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Queue errored
getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Queue errored
getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Queue errored
getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Unable to connect to Redis after trying to connect for 10s
Exiting process due to Redis connection error
2 months ago
Seems like a misconfiguration. What do you have the Redis URL set to in your variables?
2 months ago
redis://default:[clave]@redis-7890.internal:6379
And these are the variables that were created when I performed the update...
Attachments
2 months ago
Change the Redis URI in your other services to ${{Redis.REDIS_PRIVATE_URL}}
.
Do not modify the Redis service itself. Let me know if you have already.
2 months ago
I noticed you had this error
This is the log in Primary:
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
The solution that I did to getting it working was
I added the Redis service to my Railway project.
then I copied the Redis hostname/connection URL from Redis Service's Variable Tab to my project Service Tab then to add it I did
REDIS_URL then copied the redis password to my project password. and redployed the app and worked
So for example within Redis go to Variables
then find REDIS_URL, remember the name copy the **** part
and inside of your project part.. put in the variable section in the projects "REDIS_URL" and for the password input the one you copied, if this makes sense
All I did to get it working.
Starting Container
redis 14:20:51.88 INFO ==>
redis 14:20:51.88 INFO ==> Welcome to the Bitnami redis container
redis 14:20:51.88 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
redis 14:20:51.88 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
redis 14:20:51.88 INFO ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
redis 14:20:51.89 INFO ==>
redis 14:20:51.89 INFO ==> Starting Redis setup
redis 14:20:51.95 INFO ==> Initializing Redis
redis 14:20:51.97 INFO ==> Setting Redis config file
redis 14:20:51.98 INFO ==> Redis setup finished!
redis 14:20:51.99 INFO ==> Starting Redis
1:C 07 Jun 2025 14:20:52.011 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
1:C 07 Jun 2025 14:20:52.011 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 07 Jun 2025 14:20:52.011 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 07 Jun 2025 14:20:52.011 * Configuration loaded
1:M 07 Jun 2025 14:20:52.011 * monotonic clock: POSIX clock_gettime
1:M 07 Jun 2025 14:20:52.012 * Running mode=standalone, port=6379.
1:M 07 Jun 2025 14:20:52.012 * Server initialized
1:M 07 Jun 2025 14:20:52.012 * Ready to accept connections tcp
Attachments
swiftdev12
I noticed you had this error This is the log in Primary:[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 06 19:01:39[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 06 19:01:39[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 06 19:01:39[Redis client] getaddrinfo ENOTFOUND redis-7890.internalThe solution that I did to getting it working was I added the Redis service to my Railway project.then I copied the Redis hostname/connection URL from Redis Service's Variable Tab to my project Service Tab then to add it I did REDIS_URL then copied the redis password to my project password. and redployed the app and worked So for example within Redis go to Variables then find REDIS_URL, remember the name copy the **** part and inside of your project part.. put in the variable section in the projects "REDIS_URL" and for the password input the one you copied, if this makes sense All I did to get it working.Starting ContainerJun 07 15:20:52redis 14:20:51.88 INFO ==>Jun 07 15:20:52redis 14:20:51.88 INFO ==> Welcome to the Bitnami redis containerJun 07 15:20:52redis 14:20:51.88 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containersJun 07 15:20:52redis 14:20:51.88 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issuesJun 07 15:20:52redis 14:20:51.88 INFO ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterpriseJun 07 15:20:52redis 14:20:51.89 INFO ==>Jun 07 15:20:52redis 14:20:51.89 INFO ==> Starting Redis setupJun 07 15:20:52redis 14:20:51.95 INFO ==> Initializing RedisJun 07 15:20:52redis 14:20:51.97 INFO ==> Setting Redis config fileJun 07 15:20:52Jun 07 15:20:52redis 14:20:51.98 INFO ==> Redis setup finished!Jun 07 15:20:52redis 14:20:51.99 INFO ==> Starting RedisJun 07 15:20:521:C 07 Jun 2025 14:20:52.011 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.Jun 07 15:20:521:C 07 Jun 2025 14:20:52.011 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0OoJun 07 15:20:521:C 07 Jun 2025 14:20:52.011 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=1, just startedJun 07 15:20:521:C 07 Jun 2025 14:20:52.011 * Configuration loadedJun 07 15:20:521:M 07 Jun 2025 14:20:52.011 * monotonic clock: POSIX clock_gettimeJun 07 15:20:521:M 07 Jun 2025 14:20:52.012 * Running mode=standalone, port=6379.Jun 07 15:20:521:M 07 Jun 2025 14:20:52.012 * Server initializedJun 07 15:20:521:M 07 Jun 2025 14:20:52.012 * Ready to accept connections tcp
2 months ago
That is not best practice when it comes to Railway. You should be referencing variables when possible.
loudbook
Change the Redis URI in your other services to ${{Redis.REDIS_PRIVATE_URL}}.Do not modify the Redis service itself. Let me know if you have already.
2 months ago
I did it but it didn't work...
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Lost Redis connection. Trying to reconnect in 1s... (7s/10s)
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Lost Redis connection. Trying to reconnect in 1s... (8.5s/10s)
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Lost Redis connection. Trying to reconnect in 1s... (9.5s/10s)
[Redis client] getaddrinfo ENOTFOUND redis-7890.internal
Unable to connect to Redis after trying to connect for 10s
Exiting process due to Redis connection error
I need help getting my n8n environment back :(
melaguiar09
I did it but it didn't work... [Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:31[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:32Lost Redis connection. Trying to reconnect in 1s... (7s/10s)Jun 07 08:42:32[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:32[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:33Lost Redis connection. Trying to reconnect in 1s... (8.5s/10s)Jun 07 08:42:33[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:33[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:34Lost Redis connection. Trying to reconnect in 1s... (9.5s/10s)Jun 07 08:42:34[Redis client] getaddrinfo ENOTFOUND redis-7890.internalJun 07 08:42:34Unable to connect to Redis after trying to connect for 10sJun 07 08:42:34Exiting process due to Redis connection errorI need help getting my n8n environment back :(
2 months ago
Can you screenshot the Variables page for your n8n service please. Just the left side. Don't reveal any of the ***s.
2 months ago
2 months ago
Okay great. Is REDIS_URL
in both Primary and Worker set to ${{Redis.REDIS_PRIVATE_URL}}
?
loudbook
Okay great. Is REDIS_URL in both Primary and Worker set to ${{Redis.REDIS_PRIVATE_URL}}?
2 months ago
Yes. On both the primary and working instances, it's set to ${{Redis.REDIS_PRIVATE_URL}}.
I don't know what else I'd need to change to get it working.