{"id":334,"date":"2016-06-14T15:23:21","date_gmt":"2016-06-14T15:23:21","guid":{"rendered":"https:\/\/www.tech.shinynewthings.com\/?p=334"},"modified":"2016-07-26T16:05:05","modified_gmt":"2016-07-26T16:05:05","slug":"postgres-doesnt-start-after-restart-postmaster-pid-may-be-blocking-startup","status":"publish","type":"post","link":"https:\/\/www.tech.shinynewthings.com\/?p=334","title":{"rendered":"postgres doesn&#8217;t start after restart. postmaster.pid may be blocking startup."},"content":{"rendered":"<p>psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket &#8220;\/tmp\/.s.PGSQL.5432&#8221;?<\/p>\n<\/p>\n<p><code>$ rm \/usr\/local\/var\/postgres\/postmaster.pid<\/code><\/p>\n<p><code>$ pg_ctl -D \/usr\/local\/var\/postgres -l \/usr\/local\/var\/postgres\/server.log start<\/code><\/p>\n<p>Note: the path to postgres may be different.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket &#8220;\/tmp\/.s.PGSQL.5432&#8221;? $ rm \/usr\/local\/var\/postgres\/postmaster.pid $ pg_ctl -D \/usr\/local\/var\/postgres -l \/usr\/local\/var\/postgres\/server.log start Note: the path to postgres may be different.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=334"}],"version-history":[{"count":7,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions"}],"predecessor-version":[{"id":359,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/334\/revisions\/359"}],"wp:attachment":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}