Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6Gir-0007gB-LB for pgsql-general@arkaria.postgresql.org; Sat, 08 Jan 2022 18:45:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n6Giq-0001V6-GA for pgsql-general@arkaria.postgresql.org; Sat, 08 Jan 2022 18:45:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6Giq-0001Ux-5s for pgsql-general@lists.postgresql.org; Sat, 08 Jan 2022 18:45:48 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6Gin-00027Z-Lu for pgsql-general@postgresql.org; Sat, 08 Jan 2022 18:45:47 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8FB285C00EB; Sat, 8 Jan 2022 13:45:44 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 08 Jan 2022 13:45:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=J pTALq68jN6cIDbQF6v1TpgJs5Asejc507cvmhpC4WA=; b=aGRulwSBR9rgjH+7F eAhG+WMo+xvm4LkhMOhwrojDjVhoCbf3kiydrrijH6OzgaVUmpKcGvYSt2uf8UIy MePl8BvCTe8B9lvepOoTqsxdQ6O+nbdY6j5EoflJ1W1NBh5ceoOr2NjjOaPk1JAv YM9o1q76+abhii2VlDXl0SMr6rB00vy+ba8qZDLIWPrYDGkydDEu7KZHqg+ad+uZ 14zUFSTeizrk/MbJ8nhIoSEQRkXq5S9z99HIjRZ9Fg2xlcSezFzTMmeiqQg/90tP W3+MrT1vvcuXuv6rGZ3sogo3Q9ZbouDUOVtLtrLrM/ueXMTBxPJbC0PPpueusbme sm1oA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=JpTALq68jN6cIDbQF6v1TpgJs5Asejc507cvmhpC4 WA=; b=VRyIRXiKBKTfkI3tcWu14g6wf0vLXqUjPDFlcDd8GIjpkTU38gzwMQHII BFq9TS+ucGsAdsAC3F6ZLbZVyOQtUUDmK0F/XbzFSre+KLGHcZJ76fYqa3J7L7/j D4DH6BoLvCJZbUl71y48b/LD6Pn24Vau9FHeGGAmgEQzm/cRnnV/u/eVcxAZtVSi WMQSsA1enoPB5NoqglOXIYWxaHLJoyVnlJdIYfsjpOjujrwjnvUffzO4mG3nJc4f 6wh+eAmkJZ9ofaLwg8P5HsDYyYKr6BbC9t+gGFyJfsz6rpRGKmNecWgwomAjqiSg mnh+LdCiZO4t/CYDO3/rkgGLqMddQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudeghedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeejuefggeeuffehjeeggffhkefgudegvdelhfejgfel jeegkeeltdetleeuheefjeenucffohhmrghinheptddrtddrtddrtdenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Jan 2022 13:45:43 -0500 (EST) Message-ID: <28407a68-9917-31ea-bca8-08fb9dfd30c8@aklaver.com> Date: Sat, 8 Jan 2022 10:45:43 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: The postgres server don't work Content-Language: en-US To: Mohammed falih , pgsql-general@postgresql.org References: From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/7/22 10:05, Mohammed falih wrote: > Hello Mr/Mrs > I hope you are fine and doing well > I have a problem with the postgres server > first my operating system is windows 10 pro > and my postgres version is 13 > this problem i have tried to solve it for more than two weeks and > nothing changed > lastly I have formatted the laptop and downloaded only PostgreSQL > program and it worked well for less than a hour then its server broken Questions and comments inline below. Define broken? In other words what does the Postgres log show in the period from when it ran to when it did not? > the error says in sql shell " could not connect to server: Connection > refused (0x0000274D/10061) >         Is the server running on host "localhost" (::1) and accepting >         TCP/IP connections on port 5432?" > I changed the port and nothing different > yes this problem is happening regularly but with me nothing solved it The issue is the below where it could not find the executable. Are you starting the service as an administrator? > > I tried to go to configuration files (the pg_hba.conf ( I added a line > in the last > host all all 0.0.0.0/0 md5) > and in postgresql.conf file (the listening addresses was already to :"*") > > also I when I try to start the server from service tab says > the postgres service cannot restart > it says that "some services stop automatically if they are not in use by > other services or programs > and when I check it in the event viewer there is an error says >  "FATAL: XX000: C:\Program Files\PostgreSQL\13\bin\postgres.exe: could > not locate matching postgres executable LOCATION: getInstallationPaths, > d:\pginstaller_13.auto\postgres.windows-x64\src\backend\postmaster\postmaster.c:1489" Does this path C:\Program Files\PostgreSQL\13\bin\postgres.exe actually exist? > > and maybe you need to know that after I finish installing the postgre > program I haven't installed the stack builder and when I run the sql > shell for first time there were a problem says "Console code page (437) > differs from Windows code page (1252) >          8-bit characters might not work correctly. See psql reference >          page "Notes for Windows users" This has to do with the psql client not the server. > and I solved this problem by go to registry > editor/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/command processor > and there i have entered a new string value called Autorun and its value > is chcp 1252 > > I hope you’ll help me to fix this problem because I have many tasks I > couldn't do because the postgres problem > > thank you for your efforts > my best regards > -- Adrian Klaver adrian.klaver@aklaver.com