n8n Crashed

melaguiar09
HOBBY

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.

$10 Bounty

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


You have not attached the image of the CRITICAL ERROR


melaguiar09
HOBBY

2 months ago

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.


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.

Click into one of those and show us a real error, please.


melaguiar09
HOBBY

2 months ago

This is the log in Primary:

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

Lost Redis connection. Trying to reconnect in 1s... (7s/10s)

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

Lost Redis connection. Trying to reconnect in 1s... (8.1s/10s)

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:40

Lost Redis connection. Trying to reconnect in 1s... (9.1s/10s)

Jun 06 19:01:40

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:40

Unable to connect to Redis after trying to connect for 10s

Jun 06 19:01:40

Exiting process due to Redis connection error

This is the log in Worker:

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

Queue errored

Jun 06 19:01:42

getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

Queue errored

Jun 06 19:01:42

getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

Queue errored

Jun 06 19:01:42

getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:42

Unable to connect to Redis after trying to connect for 10s

Jun 06 19:01:42

Exiting process due to Redis connection error


Seems like a misconfiguration. What do you have the Redis URL set to in your variables?


melaguiar09
HOBBY

2 months ago

redis://default:[clave]@redis-7890.internal:6379

And these are the variables that were created when I performed the update...

Attachments


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.


swiftdev12
HOBBY

2 months ago

I noticed you had this error
This is the log in Primary:

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 06 19:01:39

[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

Jun 07 15:20:52

redis 14:20:51.88 INFO ==>

Jun 07 15:20:52

redis 14:20:51.88 INFO ==> Welcome to the Bitnami redis container

Jun 07 15:20:52

redis 14:20:51.88 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers

Jun 07 15:20:52

redis 14:20:51.88 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues

Jun 07 15:20:52

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

Jun 07 15:20:52

redis 14:20:51.89 INFO ==>

Jun 07 15:20:52

redis 14:20:51.89 INFO ==> Starting Redis setup

Jun 07 15:20:52

redis 14:20:51.95 INFO ==> Initializing Redis

Jun 07 15:20:52

redis 14:20:51.97 INFO ==> Setting Redis config file

Jun 07 15:20:52

Jun 07 15:20:52

redis 14:20:51.98 INFO ==> Redis setup finished!

Jun 07 15:20:52

redis 14:20:51.99 INFO ==> Starting Redis

Jun 07 15:20:52

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.

Jun 07 15:20:52

1:C 07 Jun 2025 14:20:52.011 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

Jun 07 15:20:52

1:C 07 Jun 2025 14:20:52.011 * Redis version=7.2.5, bits=64, commit=00000000, modified=0, pid=1, just started

Jun 07 15:20:52

1:C 07 Jun 2025 14:20:52.011 * Configuration loaded

Jun 07 15:20:52

1:M 07 Jun 2025 14:20:52.011 * monotonic clock: POSIX clock_gettime

Jun 07 15:20:52

1:M 07 Jun 2025 14:20:52.012 * Running mode=standalone, port=6379.

Jun 07 15:20:52

1:M 07 Jun 2025 14:20:52.012 * Server initialized

Jun 07 15:20:52

1:M 07 Jun 2025 14:20:52.012 * Ready to accept connections tcp


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

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.

melaguiar09
HOBBY

2 months ago

I did it but it didn't work...

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:31

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:32

Lost Redis connection. Trying to reconnect in 1s... (7s/10s)

Jun 07 08:42:32

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:32

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:33

Lost Redis connection. Trying to reconnect in 1s... (8.5s/10s)

Jun 07 08:42:33

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:33

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:34

Lost Redis connection. Trying to reconnect in 1s... (9.5s/10s)

Jun 07 08:42:34

[Redis client] getaddrinfo ENOTFOUND redis-7890.internal

Jun 07 08:42:34

Unable to connect to Redis after trying to connect for 10s

Jun 07 08:42:34

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 :(

Can you screenshot the Variables page for your n8n service please. Just the left side. Don't reveal any of the ***s.


melaguiar09
HOBBY

2 months ago

Variables Redis:



Variables Worker

Variables Primary


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}}?

melaguiar09
HOBBY

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.


n8n Crashed - Railway Help Station