Log postgres SSL to stdout
tim2
PROOP

11 days ago

Hi, I used to use the LOG_TO_STDOUT variable on your Postgres services, but it has been removed in below PR. The PR calls it dead code, but I think this is wrong as it used to work for us. Could you restore this functionality? Or is there another method to achieve this?

https://github.com/railwayapp-templates/postgres-ssl/pull/72/changes

$20 Bounty

6 Replies

Railway
BOT

11 days ago

Having looked into this, the issue appears to be in your application code or configuration rather than the Railway platform itself, which puts it outside what Railway support can resolve directly.

This is exactly the kind of problem the Railway community is good at, so we'd like to open your thread as a community bounty. Railway pays a bounty to the community member who solves it, and threads like this usually get picked up quickly.

Opening it makes this entire thread public, including everything already posted. Nothing becomes public until you decide. Use the buttons below.

  • Open to the community - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away.
  • Keep it private and close the thread - Nothing becomes public. The thread closes, since this isn't something Railway support can take further.

Status changed to Awaiting User Response Railway 11 days ago


Railway
BOT

11 days ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway 11 days ago


11 days ago

You could change the start command on the Postgres service to this:

/usr/local/bin/docker-entrypoint.sh "$@" 2>&1


milo

You could change the start command on the Postgres service to this: `/usr/local/bin/docker-entrypoint.sh "$@" 2>&1`

tim2
PROOP

11 days ago

That causes it to crash (on the "$@"). Doesn't that skip the entire wrapper?


11 days ago

try removing that part and trying again; that part simply passes all arguments that are passed to the invocation of the start command to the wrapper.


tim2
PROOP

10 days ago

That starts the database but that skips the entire wrapper right? It also makes it impossible to connect to the database from Python.

"Is the server running on that host and accepting TCP/IP connections?"


fvicent
PRO

3 days ago

This change broke our monitoring too. Having all the postgres output sent to stderr is very annoying.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...