I can't deploy n8n with Redis and Postgres
ashxen111
PROOP

10 months ago

I can't deploy n8n with Redis and Postgres. After I tried changing variables and fixing access for Postgres, everything broke. Please provide the correct environment variables, or help me configure everything to get it working again n8n.

$10 Bounty

3 Replies

Railway
BOT

10 months ago

This appears to be an issue with the way your n8n is connecting to your database

Please go into the variables and change the:

  • QUEUE_BULL_REDIS_HOST from ${{Redis.REDISHOST}} to ${{Redis.REDISHOST_PRIVATE}}
  • QUEUE_BULL_REDIS_PORT from ${{Redis.REDISPORT}} to ${{Redis.REDISPORT_PRIVATE}}

For both the Worker and Primary


Status changed to Awaiting User Response Railway 10 months ago


Status changed to Solved ashxen111 10 months ago


Railway

This appears to be an issue with the way your n8n is connecting to your database Please go into the variables and change the: * QUEUE\_BULL\_REDIS\_HOST from ${{Redis.REDISHOST}} to ${{Redis.REDISHOST\_PRIVATE}} * QUEUE\_BULL\_REDIS\_PORT from ${{Redis.REDISPORT}} to ${{Redis.REDISPORT\_PRIVATE}} For both the Worker and Primary

ashxen111
PROOP

10 months ago

[{"message":"Starting Container","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:02.000000000Z"},{"message":"Initializing n8n process","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:08.389151540Z"},{"message":"There was an error initializing DB","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:08.389159268Z"},{"message":"password authentication failed for user \"postgres\"","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:08.389164776Z"},{"message":"Last session crashed","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:14.564227848Z"},{"message":"Initializing n8n process","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:24.558968827Z"},{"message":"There was an error initializing DB","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:24.925599152Z"},{"message":"password authentication failed for user \"postgres\"","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:24.925603545Z"},{"message":"Last session crashed","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:31.607191079Z"},{"message":"Initializing n8n process","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:51.607622536Z"},{"message":"There was an error initializing DB","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:51.607631672Z"},{"message":"password authentication failed for user \"postgres\"","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:51.607637366Z"},{"message":"Last session crashed","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:51.607642487Z"},{"message":"Initializing n8n


Status changed to Awaiting Railway Response Railway 10 months ago


Status changed to Solved ashxen111 10 months ago


Railway

This appears to be an issue with the way your n8n is connecting to your database Please go into the variables and change the: * QUEUE\_BULL\_REDIS\_HOST from ${{Redis.REDISHOST}} to ${{Redis.REDISHOST\_PRIVATE}} * QUEUE\_BULL\_REDIS\_PORT from ${{Redis.REDISPORT}} to ${{Redis.REDISPORT\_PRIVATE}} For both the Worker and Primary

ashxen111
PROOP

10 months ago

[{"message":"Starting Container","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:02.000000000Z"},{"message":"Initializing n8n process","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:08.389151540Z"},{"message":"There was an error initializing DB","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:08.389159268Z"},{"message":"password authentication failed for user \"postgres\"","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:08.389164776Z"},{"message":"Last session crashed","attributes":{"level":"info"},"tags":{"project":"ac8d7c1f-07c6-46da-9e0b-f3b4681fe35b","environment":"081dcadd-7d62-4cd8-b393-3f36a8c19a41","service":"98c8a164-fcfb-48b5-ac5a-9c88690948ef","deployment":"7722601c-e9e3-41c3-9ddc-c5d98b2303cd","replica":"17efe20c-410f-43d4-a455-19057a8474ec"},"timestamp":"2025-10-22T11:16:14.564227848Z"}


Status changed to Awaiting Railway Response Railway 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...