[GH-ISSUE #78] Database that is not localhost #66

Closed
opened 2026-02-26 21:34:15 +03:00 by kerem · 1 comment
Owner

Originally created by @alandecastros on GitHub (Jan 21, 2025).
Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/78

I get this error when I use a database that is not localhost (some IP address)

task: [migrate-serve] task serve
task: [serve] ./dist/app
{"time":"2025-01-21T12:30:22.579122663Z","level":"INFO","msg":"cron scheduler initialized"}
{"time":"2025-01-21T12:30:22.579801933Z","level":"ERROR","msg":"could not ping DB","error":"dial tcp [::1]:5432: connect: connection refused"}
task: Failed to run task "serve": exit status 1
task: Failed to run task "migrate-serve": exit status 201

Originally created by @alandecastros on GitHub (Jan 21, 2025). Original GitHub issue: https://github.com/eduardolat/pgbackweb/issues/78 I get this error when I use a database that is not localhost (some IP address) task: [migrate-serve] task serve task: [serve] ./dist/app {"time":"2025-01-21T12:30:22.579122663Z","level":"INFO","msg":"cron scheduler initialized"} {"time":"2025-01-21T12:30:22.579801933Z","level":"ERROR","msg":"could not ping DB","error":"dial tcp [::1]:5432: connect: connection refused"} task: Failed to run task "serve": exit status 1 task: Failed to run task "migrate-serve": exit status 201
kerem closed this issue 2026-02-26 21:34:16 +03:00
Author
Owner

@alandecastros commented on GitHub (Jan 21, 2025):

I changed
environment:

  • PBW_POSTGRES_CONN_STRING="...."
    to
    environment:
  • PBW_POSTGRES_CONN_STRING=....
    and it worked
<!-- gh-comment-id:2604620840 --> @alandecastros commented on GitHub (Jan 21, 2025): I changed environment: - PBW_POSTGRES_CONN_STRING="...." to environment: - PBW_POSTGRES_CONN_STRING=.... and it worked
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pgbackweb#66
No description provided.