Ask A Question

Notifications

You’re not receiving notifications from this thread.

Hatchbox Postgres Problem

Houssein abil asked in Rails

Hello,

I have my app running on Hatchbox. I link it with the app hosted on Github so anytime that I push something on my master branch, its deploy automatically. Yesterday I did some modification in one of .html.erb file (I just change h1 name from project to list of project). Since then all the deployments of my app failed and now the whole app is not running. I check the log and I see this error

PG::ConnectionBad (could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?

Postgresql is provided by Hatchbox so I don't know how to solve it. Any help please

Reply

You should use the Hatchbox support link instead of posting in the GoRails forum.

Sounds like Postgres isn't running. Hatchbox doesn't fully manage your Postgres server for you, but it will install it and start it up.

I checked out your server and Postgres crashed because your server ran out of memory. You may need to upgrade to the next server size.

Reply

Great thanks will use the Hatchbox support link to move further

Reply

I logged into your server and restart postgres and your deploy succeeded now. sudo systemctl restart postgresql will restart it over SSH.

Reply

I would like to understand, when you talk about my server running out of memory, which server are you talking about? (the one I choose from Digital Ocean or my plan on Hatchbox). If you want we close the discussion here and continue via Hatchbox Support link

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.