Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In case people can't determine if Postgresql is running with lsof -i :5432 #40

Closed
Leo328 opened this issue May 24, 2020 · 5 comments · Fixed by #152
Closed

In case people can't determine if Postgresql is running with lsof -i :5432 #40

Leo328 opened this issue May 24, 2020 · 5 comments · Fixed by #152
Assignees
Labels
chore enhancement New feature or request priority-2 T5m Quick tasks that take 5 mins or less. See: GTD 2 min rule. user-feedback

Comments

@Leo328
Copy link

Leo328 commented May 24, 2020

Hi there,

This is my first ever open-source contribution post on GitHub. I'm super-new at this but also want to make sure others don't get stuck with frustrating issues when learning.

I noticed that when going through the tutorial, there was a recommendation to use lsof -i :5432 to check if Postgresql was running correctly. This didn't work for me (there was no output), but I do know that Postgres was running as I had just successfully created a new DB with Ecto.

Instead, I used pg_isready and got the desired confirmation:

image

For context, I am running Ubuntu 18.04 through WSL2 with Postgresql-12.

Cheers,
Leo.

@Leo328 Leo328 mentioned this issue May 24, 2020
5 tasks
@nelsonic
Copy link
Member

@Leo328 great addition.

pg_isready
/tmp:5432 - accepting connections

Works on Mac too. ✅

@nelsonic
Copy link
Member

nelsonic commented Feb 3, 2023

@LuchoTurtle please add the pg_isread command to the https://github.com/dwyl/phoenix-chat-example#check-you-have-everything-before-starting section during your update #149 🙏

@nelsonic nelsonic added enhancement New feature or request chore priority-2 user-feedback T5m Quick tasks that take 5 mins or less. See: GTD 2 min rule. labels Feb 3, 2023
LuchoTurtle added a commit that referenced this issue Feb 3, 2023
@nelsonic
Copy link
Member

nelsonic commented Feb 6, 2023

Just tried to run:

pg_isready

On my M1 mac and ...

Got:

zsh: command not found: pg_isready

@LuchoTurtle
Copy link
Member

Weird that it was working on your Mac prior and not anymore.
It comes with psql, weird that you get a not found error.

@nelsonic
Copy link
Member

nelsonic commented Feb 6, 2023

Yeah, thought it was weird too… hence capturing in case anyone else faces this in the future … ⏳

nelsonic pushed a commit that referenced this issue Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore enhancement New feature or request priority-2 T5m Quick tasks that take 5 mins or less. See: GTD 2 min rule. user-feedback
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants