specifically, the 127.0.0.1 part - Postgres isn’t running on that IP address so you should make sure you are using the correct internal string/hostname for your database, typically via the DATABASE_URL - it’s worth checking config/database.js and make sure it’s what you expect here.
I appreciate your input. I thought that this IP looked out of place here, thanks for confirming.
I double checked my DATABASE_URL variable and database.js files and they are correct. I can confirm that DATABASE_URL is the internal connection string. I even tried using the external connection string. It does work when connecting via SSH from my machine and I can access this db. It gives the same error when connecting from render.
That looks exactly as it should do - it would be worth checking what you have in config/database.js then - it could be that for some reason that is being used instead of config/production/database.js - you could try changing the port number in that file and seeing if the service uses that new port when it tries to start, if it does then that’s the problem.