Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQmWl-000xbv-U0 for pgsql-general@arkaria.postgresql.org; Tue, 01 Aug 2023 10:22:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qQmWi-005Sn5-Tv for pgsql-general@arkaria.postgresql.org; Tue, 01 Aug 2023 10:22:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQmWi-005Smx-K0 for pgsql-general@lists.postgresql.org; Tue, 01 Aug 2023 10:22:54 +0000 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qQmWh-000B5B-2U for pgsql-general@lists.postgresql.org; Tue, 01 Aug 2023 10:22:53 +0000 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-765942d497fso453875385a.1 for ; Tue, 01 Aug 2023 03:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690885368; x=1691490168; h=subject:to:content-language:user-agent:mime-version:date:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=xwyrIdH9QmxwQRPxJtKTqQppXzkHSCfuCPlIWqm4MHk=; b=Iv4rp4w+SstGLOZL8JhVFA3TeEc5MjOaOvt5Y8Uy6AJAE1SNYk2VtEMUtNeiNcoaQF e0yx78pjqnQr/e7O9lkGN3TeMPkt5PEDYGefqqm+9LzeSLnTYS5zbKbg3zOcwYGDQhQi CiNxpZOKECWkFr3UJFAx8F8wT7REWImaEAsSWWIM4DvhIPxshTdYh8G/dgxDr8EwR85G ePpUrDtWjjZtdX1ZC+kaRYkHbcrqjn7Rm3G9PcWAGqoOfw4OrpjmmuzrG2TckNpPYnxj 7Ceyno2o22BwJtAnh/mRkkZ9yw60gPkSoCEgubtv3jNd0B5L98bg+6an/CQdCbcMiIQl 4dyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690885368; x=1691490168; h=subject:to:content-language:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xwyrIdH9QmxwQRPxJtKTqQppXzkHSCfuCPlIWqm4MHk=; b=aaW6tN7SKldmYwZeuIzao9DSlnox6cLYSjO6cnJ7v5CPGtspzzjvbzH9wWT2bFcs3S Tpn5168jI3eYmeKj8UMW0qNuEOlipm9ODARIMn45C9yYmZaOeeBHvj8KR1V0raohYFhq GGjObDh+GTYnbuCg7Dn6D/5E8koabziWCKItjCpgJ/W7Bb+kw4BO33tBiErP+EjNxZ7S pBjsgR/gt3hfQNRHCVCbyau8tYvtdw07XzcBU4/TP7whXNTUNuMEOt/bOt1C4fwLhieo 3487astvVwSfaLbQDj/ypw4pyyWFw51XMFLWnMfJQ8au0oPHg0igaxCOAUY/3Mxo8jTv gs0w== X-Gm-Message-State: ABy/qLbjTLBczllbpwgbXlXBMFsmjboblHI5RbBJmr4/MPvoiT5jyhmB J7GQEFREKCSOGQs9/Zm5C2pLRAZgIalarQ== X-Google-Smtp-Source: APBJJlGbZQptcofbPVuMSFz3Z6WGiqbrRENe1rMXGRYC2rrPZSnMmeydI/7ALWZpJc5QNvGt7UprWg== X-Received: by 2002:ac8:5947:0:b0:404:e64:f5ad with SMTP id 7-20020ac85947000000b004040e64f5admr19128941qtz.47.1690885368378; Tue, 01 Aug 2023 03:22:48 -0700 (PDT) Received: from [192.168.2.170] (bras-base-bmtnon1319w-grc-34-67-70-150-114.dsl.bell.ca. [67.70.150.114]) by smtp.gmail.com with ESMTPSA id t13-20020ac8530d000000b004033992e2dbsm4307323qtn.45.2023.08.01.03.22.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Aug 2023 03:22:48 -0700 (PDT) From: Amn Ojee Uw X-Google-Original-From: Amn Ojee Uw Content-Type: multipart/alternative; boundary="------------n78CrGv2MH2F0LUBQ7CEtwY3" Message-ID: <97d77785-22a0-5d48-9582-4a7beb2dc14f@gmail.com> Date: Tue, 1 Aug 2023 06:22:46 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Content-Language: en-US To: pgsql-general@lists.postgresql.org Subject: error: connection to server on socket... List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------n78CrGv2MH2F0LUBQ7CEtwY3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Using the following command on my Debian 12 machine: /*sudo apt-get install postgresql postgresql-15 postgresql-client-common postgresql-common postgresql-contrib postgresql-doc phppgadmin */ and following the instruction on this web page I have installed PostgreSQL-15. The installation went smooth, until the following command was issued : /*sudo -u postgres psql*/ ... I get an error message that reads: /*could not change directory to "/home/my_account": Permission denied*//* *//*psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory*//* *//*    Is the server running locally and accepting connections on that socket?*/ What can I do to resolve this issue? Thanks in advance. --------------n78CrGv2MH2F0LUBQ7CEtwY3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Using the following command on my Debian 12 machine:

sudo apt-get install postgresql postgresql-15 postgresql-client-common postgresql-common postgresql-contrib postgresql-doc phppgadmin


and following the instruction on this web page I have installed PostgreSQL-15.
The installation went smooth, until the following command was issued :

sudo -u postgres psql

... I get an error message that reads:

could not change directory to "/home/my_account": Permission denied
psql: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
    Is the server running locally and accepting connections on that socket?

What can I do to resolve this issue?

Thanks in advance.

--------------n78CrGv2MH2F0LUBQ7CEtwY3--