Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha53x-0004RZ-Eo for pgsql-general@arkaria.postgresql.org; Sun, 09 Jun 2019 21:09:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ha53v-0001zF-SP for pgsql-general@arkaria.postgresql.org; Sun, 09 Jun 2019 21:09:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha53v-0001yt-II for pgsql-general@lists.postgresql.org; Sun, 09 Jun 2019 21:09:11 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ha53r-0001nv-E0 for pgsql-general@postgresql.org; Sun, 09 Jun 2019 21:09:11 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 93D1721FC6; Sun, 9 Jun 2019 17:09:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 09 Jun 2019 17:09:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=+ rw28PNR6hAeYMKjuBxWD6L21DJK6pPm0JUqjLuXY5c=; b=n2Jx3f8Tukpv/w29G v6IMdv5fNKkE3c8OI+XW2WqJBW6Sav6eVkUMce27amanUoX9wpEa6uZcw3JjSZPG QaC4HMyb1yfXEXv+XjTXOs3vVvzkMPbWrLbQFwix5pIu3+RaLKHliusAg5azlOMh SlTNLWiH8hY3DHR8VsF/G8W/jViBkGeAVzOJtcZSC23nwhw8ki9lM5M+5b2h2oTy jqbr382siCHOufBuo7PVC58xmk0H9mcgDJWjzJFxF7chqdkTh1D/uCWMOxbBZEqX BioI1veytOf1GaJedL1j7hWydywVCJEggXDZTZFjoC51ngRkYMJTrAU53TyjZMEW Jx6xQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm3; bh=+rw28PNR6hAeYMKjuBxWD6L21DJK6pPm0JUqjLuXY 5c=; b=hDfK2XrvagpSw31cn3QMpaDP+kM3C3EsxaKDN8qvmT2p2UTUTVi8xnRJj +Unte6lnP66WHH1dZf2ZVS1PxK5biV3sGiQCEDQEmhkO2ylMpgE1FUDdtRMJutGt ANdgfKjSYWjgyvxk9rDx/He9xZRB/35VJVMCc/6/3vZjvsyQKPkoWX32LpKcoeke RN0sjVyYmh1cTrHBrnAYwsk07b+Phr+AL7TmhDCcyP0LhWBXGAWCZUX1dsjB8dvd +4gqkWZfd058UOmySt2WRpnJpOBExczbgeKtxKH3ncgEin0yWo97ElKuCObfWo9Z 2OaBRPxIVW4RqrleCMyuv9yqM+ihQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehtddgudeitdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecukfhppeejuddrvdduvddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhf rhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhush htvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 8C2C5380073; Sun, 9 Jun 2019 17:09:03 -0400 (EDT) Subject: Re: Connection refused (0x0000274D/10061) To: Ray O'Donnell , Sourav Majumdar Cc: pgsql-general@postgresql.org References: <669cf8ed-877e-4420-3b60-f4e112ad8208@rodonnell.ie> <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie> From: Adrian Klaver Message-ID: <9779f586-c2d8-fe90-54d9-6a2911a64224@aklaver.com> Date: Sun, 9 Jun 2019 14:09:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <33b9eb3f-278e-977b-1290-a6eddf044c7e@rodonnell.ie> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/9/19 1:46 PM, Ray O'Donnell wrote: > On 09/06/2019 20:49, Sourav Majumdar wrote: >> Hello, >> Thanks for your quick response. I am new to pgsql, didnot configured >> it , can you please give a guidance for that? I will be highly oblised >> if you can assist me. >> I am using windows 8.1, 64 bit. >> ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32] >> Rails 5.2.3 >> Trying to setup ruby on rails on my local host Alright the penny just dropped, maybe: 1) You have started the Rails Web server on port 3000 2) You tried to do something that accessed the Postgres server. 3) You got connection refused error. If the above is correct then the error message: ": Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?" means either: 1) The server is not running. Check that the Postgres service is running in Windows. 2) The server is running but not listening on port 5432. Check the Postgres config file(postgresql.conf) to see what the settings I mentioned earlier are. > > Hi, > > PostgreSQL's default port is 5432, and if the Postgres instance on your > computer is the only one there then that's what it'll be listening on. > > I don't know anything about Ruby or how you connect to PG from it, but > you need to tell it to use port 5432. > > Alternatively, if you really want to use port 3000, then you need to > edit postgresql.conf and change the "port" setting there. You'll need to > restart PG for this to take effect. > > Either way, you need to connect to the port on which PG is listening. > > Ray. > -- Adrian Klaver adrian.klaver@aklaver.com