Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error while starting postgresql
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
manu.rhel
n00b
n00b


Joined: 11 Apr 2014
Posts: 45

PostPosted: Tue Jul 09, 2024 5:08 pm    Post subject: Error while starting postgresql Reply with quote

Hi Experts, I recently uninstalled and trying to reinstall postgresql on gentoo server. however I am not able start its service and getting the below error -

Quote:
# /etc/init.d/postgresql-13 restart
* Stopping PostgreSQL 13 (this can take up to 92 seconds) ...
pg_ctl: PID file "/var/lib/postgresql/13/data/postmaster.pid" does not exist
Is server running?
* Previous attempt failed. Trying RUDE_QUIT.
pg_ctl: PID file "/var/lib/postgresql/13/data/postmaster.pid" does not exist
Is server running? [ !! ]
* ERROR: postgresql-13 failed to stop


To uninstall , I did
Quote:
emerge --unmerge =dev-db/postgresql-13.15-r2


Then to install , I did -

Quote:
emerge =dev-db/postgresql-13.15-r2
emerge --config dev-db/postgresql:13


Please suggest what exactly am I missing here and how to Get over this issue. Thanks in advance.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20521

PostPosted: Tue Jul 09, 2024 5:24 pm    Post subject: Reply with quote

Instead of using restart, have you tried using start? I'm guessing restart may not try to start since the stop fails.

https://wiki.gentoo.org/wiki/PostgreSQL/QuickStart#Starting_the_server
Code:
root # /etc/init.d/postgresql-9.3 start

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum