Skip to content

[BUG] Error: connect ECONNREFUSED ::1:5432 #379

Closed

Description

@amunrarara

Describe the bug
Cheers,

While using the one-click deploy to Railway from the nostream Github page, I'm encountering Error: connect ECONNREFUSED ::1:5432. This seems to indicate that the local network proxy ain't doin' its thing right.

Is there additional configuration that has to happen for Railway to properly route the DB requests from service to Postgres?

Here's the error logs starting from RUN npm run db:migrate

#11 [build 6/8] RUN npm run db:migrate
#11 0.857 > nostream@2.1.0 db:migrate
#11 0.857 > knex migrate:latest
#11 1.143 connect ECONNREFUSED ::1:5432
#11 1.143 Error: connect ECONNREFUSED ::1:5432
#11 1.143 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
#11 ERROR: process "/bin/sh -c npm run db:migrate" did not complete successfully: exit code: 1

To Reproduce
Steps to reproduce the behavior:

  1. Hit that "Deploy to Railway" button
  2. Keep all default configuration
  3. Deploy error. Yikes!

Expected behavior
Not erroring.

Activity

  1. clartek commented on Mar 4, 2025

    @clartek

    Same problem here

  2. percy-g2 commented on Mar 18, 2025

    @percy-g2

    facing same issue

    Cc: @cameri

  3. shvkhzod commented on May 4, 2025

    @shvkhzod

    the same problem @cameri @amunrarara

  4. kartikangiras commented on Apr 8, 2026

    @kartikangiras
    Contributor

    @cameri I researched the docker file for the railway deployment and found some bugs in it which are causing this issue.

  5. cameri commented on Apr 18, 2026

    @cameri
    Owner

    thank you @kartikangiras !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions