いろいろ
Seize the day.
2006-08-03 [長年日記]
■ [comp] PostgreSQL が動かない時
久しぶりに PostgreSQL に query を投げてみたら…
psql: could not connect to server: Connection refused
Is the server running on host hostname and accepting
TCP/IP connections on port 5432?
…あれ?
# /etc/init.d/postgresql restart PostgreSQL starting. /usr/local/pgsql/bin/pg_ctl: kill: permission denied waiting for postmaster to shut down................................................................ failed pg_ctl: postmaster does not shut downがーんん.
pg_ctl status -D で調べると postmaster は走ってると言うのだが,ps で見てもそんなプロセスは走ってない.
ぐぐると,以下のスレッド にそっくりな事例があった.
たぶんすでに postmaster がいないのでしょう。 ps で確認してみました? pg_ctl status って ${PGDATA}/postmaster.pid と ${PGDATA}/postmaster.opts を見てるだけみたいなので 正常終了せずに、ファイルが残っていただけなのではないでしょうか?調べると,確かに ${PGDATA}/postmaster.pid が残っていて,日付が前回のサーバ障害と一致.PID ファイルだけが残っちゃったんだな.
というわけで,PID ファイルをリネームして postgresql restart したらおk.
[ ツッコミ | permalink | trackback ]
[TrackBack URL: http://nao.s164.xrea.com/td/tb.rb/20060803]
[(注) スパム対策のため,言及リンクのないトラックバックは受け付けていません.]
[(注) スパム対策のため,言及リンクのないトラックバックは受け付けていません.]
本日のリンク元
検索
- pg_ctl status ×38 / postgres 動かない ×12 / キーワード不明 ×7 / postgresql 動かない ×6 / pg_ctl: server does not shut down ×5 / postgresqlが動かない ×4 / Postgresqlが動かない ×3 / init.d 動かない ×3 / psql 動かない ×3 / postmaster.pid ない ×2 / pg_ctl server does not shut down ×2 / postgre 動かない ×2 / failed pg_ctl ×2 / meadow postgresql ×2 / could not start postmaster ×2 / postgres postmaster.pid ×2 / postgresql "pg_ctl kill" ×2 / restart postmaster.pid ×2 / PostgreSQL bin フォルダが ない ×2 / postmaster.pid バグ ×2 / postgresql restart 動かな ×2 / psql:could not connect to server ×2 / pg_ctl kill ×2 / postgreSQL サーバ 動かない ×2 / pg_ctl 動かない ×2 / postgresql VMware ×2 / Is the postmaster running (with -i) at and accepting connections on TCP/IP port '5432'? ×2 / PostgreSQL shutdown failed ×1 / windows pg_ctl permission denied ×1 / WinDbg 動かない ×1 / PostgreSQL xrea ×1 / cronが動かない postgres ×1 / Is the postmaster postgresql running (with -i) and accepting ×1 / Connection error: could not connect to server: Connection refused xrea ×1 / PostgreSQL server: could not connect to server: Permission denied Is the server ×1 / postgres pidが ×1 / postgresql 消失 ×1 / VMware psql :could not connect to sever ×1 / Is the server running on host and accepting ×1 / postgresql postmaster kill ×1 / php postgresql 動かない ×1 / postmaster.pid パス ×1 / server does not shutdown postgres ×1 / server does not shut down postgresql ×1 / ポスグレが動かない ×1 / postgresql pg_ctl postmaster.pid ×1 / pg_ctl status ps ×1 / postgresql pidファイル ×1 / VMWare postgresqlが動かない ×1 / windows postmaster.pid -cygwin ×1 / postmaster running with -i accepting TCP/IP ×1 / postgresql does not pid ×1 / postgres 平均日数 ×1 / postgres pid 動かない ×1 / Postgresql pid permission ×1 / PostgreSQL 動かない ×1 / ポスグレ 動かない ×1 / PostgreSQL server: could not connect to server: Permission denied 5432 ×1 / "could not connect to server: Connection refused" Ruby ×1 / postgreSQL shutdown failed ×1 / PostgerSQLが動かない ×1 / psql could not connect to server connection refused ×1 / pg_ctl -w status ×1 / postgresql postmaster.pid ない ×1 / is the postmaster running (with -i) at and accepting connections on TCP/IP port ×1 / postgresql matlab ×1 / VMWARE Server 2.0 Login Name Connection Refused ×1 / postgresql pg_ctl ×1 / xrea postgres connect refused ×1 / postgresql postmaster pid postmaster.opts ×1 / postgres ruby refused ×1 / postgresql shutdown failed ×1 / postgresql サーバ 動かない ×1 / matlab postgresql ×1 / PostgreSQL pidファイル ×1 / posgresql 確認 ps ×1 / php Permission denied Is the server running on host and accepting TCP/IP connections on port 5432? in ×1 / connection refused postgresql サーバ 追加 ×1 / postgreSQL 動かない ×1 / PHP postgresql 動かない ×1 / postgresql ps waiting 複数 ×1 / postgres postmaster.pid postmaster.opts ×1 / postmaster.pid 正常に終了 ×1 / postgres 途絶 ×1 / postmaster.pid 動かない ×1 / postmaster.pidとは ×1 / pg_ctl -start 日本語 ×1 / pidファイル postgresql ×1 / postmaster.pid permission denied PostgreSQL ×1 / postgresql pidファイル ない ×1 / PostgreSQL HOT ×1 / could not connect server psql ×1 / failed in postmaster ×1 / is the postmaster running (with -in) at and accepting connections on TCP/IP port '5432' ×1
以下の広告はサーバによって自動的に挿入されています.
Copyright © 2004-2006, nao. All rights reserved.





