{"id":6235,"date":"2021-04-17T22:30:07","date_gmt":"2021-04-17T17:00:07","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=6235"},"modified":"2021-04-17T22:31:16","modified_gmt":"2021-04-17T17:01:16","slug":"is-the-server-running-locally-and-accepting-connections-on-unix-domain-socket-var-run-postgresql-s-pgsql-5432","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/is-the-server-running-locally-and-accepting-connections-on-unix-domain-socket-var-run-postgresql-s-pgsql-5432\/","title":{"rendered":"Is the server running locally and accepting connections on Unix domain socket &#8220;\/var\/run\/postgresql\/.s.PGSQL.5432&#8221;?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you get the above error, please follow the below steps.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Above error states that postgres is not running.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Running&nbsp;<code>pg_lsclusters<\/code>&nbsp;will list all the postgres clusters running on your device.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"55\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53-1024x55.png\" alt=\"\" class=\"wp-image-6238\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53-1024x55.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53-300x16.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53-768x41.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53-850x46.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-22-21-53.png 1096w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2. Most probably the status will be down if we get the above error . Try restarting Postgres clusters and service<br><span class=\"has-inline-color has-vivid-cyan-blue-color\">systemctl start postgresql@12-main<\/span><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3. Check ownership of postgres. Make sure that postgres is the owner of \/var\/lib\/postgresql\/version_no\/main<br>eg: sudo chown postgres -R \/var\/lib\/postgresql\/12\/main\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The issue will be resolved with the above steps. If the issue still persists then we need to debug further.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you get the above error, please follow the below steps. Above error states that postgres is not running. Running&nbsp;pg_lsclusters&nbsp;will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[851,852,853],"class_list":["post-6235","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-postgres","tag-postgres-server-down","tag-unable-to-start-the-postgres","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1Cz","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6235"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6235\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}