pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection refused (0x0000274D/10061)
16+ messages / 8 participants
[nested] [flat]

* Connection refused (0x0000274D/10061)
@ 2011-09-30 10:17 Pietro Laranci <p.laranci@terrasystem.it>
  2011-09-30 13:46 ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@gmail.com>
  2011-09-30 23:31 ` Re: Connection refused (0x0000274D/10061) Craig Ringer <ringerc@ringerc.id.au>
  0 siblings, 2 replies; 16+ messages in thread

From: Pietro Laranci @ 2011-09-30 10:17 UTC (permalink / raw)
  To: pgsql-general

 Good morning to everybody

I have a pg9 db to wich i can connect to by local but not from remote. In the properties of the postgres db , the port is set to 5300 (not the default 5432).
I tried to connect in remote with pgadmin3 and quantum gis, both give the error Connection refused (0x0000274D/10061).
This is the complet message in quantum gis (but is silimar in pgadmin3)

"could not connect to server: Connection refused (0x0000274D/10061)

Is the server running on host "95.110.201.74" and accepting

TCP/IP connections on port 5300?"



Whit both the programs installed on the same pc of the db, i can connect without problem to the db.



I already did these settings:



- in postgresql.conf : listen_addresses = '*' and port = 5300 (in the place of the default 5432)



- in pg_hba.conf:  

host   [dbname]   all     0.0.0.0/0      md5

host   [dbname]  all      127.0.0.1/32         md5



- restarted postgres





I also tried to substitute on the db properties "host=localhost" with "host=95.110.201.74"



On the machines are not active firewalls.



Have you any clue of what's wrong?



Grazie



Thanks

^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2011-09-30 10:17 Connection refused (0x0000274D/10061) Pietro Laranci <p.laranci@terrasystem.it>
@ 2011-09-30 13:46 ` Adrian Klaver <adrian.klaver@gmail.com>
  1 sibling, 0 replies; 16+ messages in thread

From: Adrian Klaver @ 2011-09-30 13:46 UTC (permalink / raw)
  To: pgsql-general; +Cc: Pietro Laranci <p.laranci@terrasystem.it>

On Friday, September 30, 2011 3:17:51 am Pietro Laranci wrote:
>  Good morning to everybody
> 
> I have a pg9 db to wich i can connect to by local but not from remote. In
> the properties of the postgres db , the port is set to 5300 (not the
> default 5432). I tried to connect in remote with pgadmin3 and quantum gis,
> both give the error Connection refused (0x0000274D/10061). This is the
> complet message in quantum gis (but is silimar in pgadmin3)
> 
> "could not connect to server: Connection refused (0x0000274D/10061)
> 
> Is the server running on host "95.110.201.74" and accepting
> 
> TCP/IP connections on port 5300?"
> 
> 
> 
> Whit both the programs installed on the same pc of the db, i can connect
> without problem to the db.
> 
> 
> 
> I already did these settings:
> 
> 
> 
> - in postgresql.conf : listen_addresses = '*' and port = 5300 (in the place
> of the default 5432)
> 
> 
> 
> - in pg_hba.conf:
> 
> host   [dbname]   all     0.0.0.0/0      md5
> 
> host   [dbname]  all      127.0.0.1/32         md5
> 
> 
> 
> - restarted postgres
> 
> 
> 
> 
> 
> I also tried to substitute on the db properties "host=localhost" with
> "host=95.110.201.74"
> 
> 
> 
> On the machines are not active firewalls.
> 
> 
> 
> Have you any clue of what's wrong?

You did not say what OS you are running Postgres on, at a guess I am going to go 
with Windows. Are you sure the Windows firewall is not blocking port 5300?

> 
> 
> 
> Grazie
> 
> 
> 
> Thanks

-- 
Adrian Klaver
adrian.klaver@gmail.com



^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2011-09-30 10:17 Connection refused (0x0000274D/10061) Pietro Laranci <p.laranci@terrasystem.it>
@ 2011-09-30 23:31 ` Craig Ringer <ringerc@ringerc.id.au>
  1 sibling, 0 replies; 16+ messages in thread

From: Craig Ringer @ 2011-09-30 23:31 UTC (permalink / raw)
  To: Pietro Laranci <p.laranci@terrasystem.it>; +Cc: pgsql-general

On 09/30/2011 06:17 PM, Pietro Laranci wrote:

> On the machines are not active firewalls.

Most likely there _is_ a firewall involved, maybe just not one you're 
aware of. As Adrian said, check the settings in the standard Windows 
Firewall if you're on Windows.

For more troubleshooting: Check netstat to see if PostgreSQL is actually 
listening on the port you've configured. Use Wireshark to capture 
incoming tcp/ip traffic and see if (a) SYN packets to open the 
connection actually reach the server, and (b) whether the server 
actually replies with an RST to reject the connection or if something 
else happens.

--
Craig Ringer



^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Connection refused (0x0000274D/10061)
@ 2019-06-09 18:51 Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:29 ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  0 siblings, 2 replies; 16+ messages in thread

From: Sourav Majumdar @ 2019-06-09 18:51 UTC (permalink / raw)
  To: pgsql-general

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? could not connect to server: Connection refused
(0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1)
and accepting TCP/IP connections on port 5432?

When I am trying to run localhost:3000, its giving this error massage, Can
you please help me out here?

-- 
*Regards-*
*Sourav Majumdar*
*Mob.- 9732354141*

^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
@ 2019-06-09 19:29 ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 16+ messages in thread

From: Adrian Klaver @ 2019-06-09 19:29 UTC (permalink / raw)
  To: Sourav Majumdar <souravmajumdar2002@gmail.com>; pgsql-general

On 6/9/19 11:51 AM, Sourav Majumdar wrote:
> 
>     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? could not connect to server: Connection
>     refused (0x0000274D/10061) Is the server running on host "localhost"
>     (127.0.0.1) and accepting TCP/IP connections on port 5432?
> 
>     When I am trying to run localhost:3000, its giving this error
>     massage, Can you please help me out here?

Do you mean in postgresql.conf?:

listen_addresses = localhost
port = 3000

What is the connection string you are using?

OS and version?

How was Postgres installed?

> 
> 
> -- 
> /Regards-/
> /Sourav Majumdar/
> /Mob.- *9732354141*/


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
@ 2019-06-09 19:43 ` Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  1 sibling, 1 reply; 16+ messages in thread

From: Ray O'Donnell @ 2019-06-09 19:43 UTC (permalink / raw)
  To: Sourav Majumdar <souravmajumdar2002@gmail.com>; pgsql-general

On 09/06/2019 19:51, Sourav Majumdar wrote:
> 
>     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? could not connect to server: Connection
>     refused (0x0000274D/10061) Is the server running on host "localhost"
>     (127.0.0.1) and accepting TCP/IP connections on port 5432?

Hi there,

 From the above, you have the server listening on port 3000 (you would 
have set this in postgresql.conf - did you?), but the client is trying 
to connect on port 5432 (the default).

You therefore need to tell the client to connect to port 3000 - if you 
are using psql, you need the -p option:

    psql -p 3000 (... etc ...)

HTH,

Ray.

-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
@ 2019-06-09 19:49   ` Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  0 siblings, 1 reply; 16+ messages in thread

From: Sourav Majumdar @ 2019-06-09 19:49 UTC (permalink / raw)
  To: Ray O'Donnell <ray@rodonnell.ie>; +Cc: pgsql-general

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

On Mon, Jun 10, 2019 at 1:13 AM Ray O'Donnell <ray@rodonnell.ie> wrote:

> On 09/06/2019 19:51, Sourav Majumdar wrote:
> >
> >     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? could not connect to server: Connection
> >     refused (0x0000274D/10061) Is the server running on host "localhost"
> >     (127.0.0.1) and accepting TCP/IP connections on port 5432?
>
> Hi there,
>
>  From the above, you have the server listening on port 3000 (you would
> have set this in postgresql.conf - did you?), but the client is trying
> to connect on port 5432 (the default).
>
> You therefore need to tell the client to connect to port 3000 - if you
> are using psql, you need the -p option:
>
>     psql -p 3000 (... etc ...)
>
> HTH,
>
> Ray.
>
> --
> Raymond O'Donnell // Galway // Ireland
> ray@rodonnell.ie
>


-- 
*Regards-*
*Sourav Majumdar*
*Mob.- 9732354141*

^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
@ 2019-06-09 20:46     ` Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:01       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 2 replies; 16+ messages in thread

From: Ray O'Donnell @ 2019-06-09 20:46 UTC (permalink / raw)
  To: Sourav Majumdar <souravmajumdar2002@gmail.com>; +Cc: pgsql-general

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

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.

-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
@ 2019-06-09 21:01       ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 16+ messages in thread

From: Adrian Klaver @ 2019-06-09 21:01 UTC (permalink / raw)
  To: Ray O'Donnell <ray@rodonnell.ie>; Sourav Majumdar <souravmajumdar2002@gmail.com>; +Cc: pgsql-general

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

Where are you doing?:

"When I am trying to run localhost:3000 ..."

Or is the above the port the Rails Web server is running on?

More below.

> 
> 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 o >
> 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.

https://guides.rubyonrails.org/configuring.html#configuring-a-database

 From a Redmine install of mine(running against standard port(5432)):

# PostgreSQL configuration example
production:
   adapter: postgresql
   database: redmine
   host: localhost
   port: 5432
   username: redmine
   password: ********


> 
> 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





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
@ 2019-06-09 21:09       ` Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-13 16:56         ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  1 sibling, 1 reply; 16+ messages in thread

From: Adrian Klaver @ 2019-06-09 21:09 UTC (permalink / raw)
  To: Ray O'Donnell <ray@rodonnell.ie>; Sourav Majumdar <souravmajumdar2002@gmail.com>; +Cc: pgsql-general

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





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-06-13 16:56         ` Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-13 20:28           ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  0 siblings, 1 reply; 16+ messages in thread

From: Sourav Majumdar @ 2019-06-13 16:56 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Ray O'Donnell <ray@rodonnell.ie>; pgsql-general

Hi,
I have tried many time for setup postgreSQL for my local host. Hence I have
tried to reInstall the one click app from
https://www.enterprisedb.com/downloads/postgres-postgresql-downloads -  Windows
x86-64  -  PostgreSQL Version 11.3. When installing using default port
5432, Its giving an error "Database Cluster Installation Failed". Please
advice how to resolve the issue. I am struggling to setup this POSTGRESQL
from more than a week.

The error screenshot is attached. PFA

On Mon, Jun 10, 2019 at 2:39 AM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:

> 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
>


-- 
*Regards-*
*Sourav Majumdar*
*Mob.- 9732354141*

Attachments:

postgreSQL error.jpg (image/jpeg, 233.9K) download view image
^ permalink raw reply [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-13 16:56         ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
@ 2019-06-13 20:28           ` Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-18 08:06             ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  0 siblings, 1 reply; 16+ messages in thread

From: Adrian Klaver @ 2019-06-13 20:28 UTC (permalink / raw)
  To: Sourav Majumdar <souravmajumdar2002@gmail.com>; +Cc: Ray O'Donnell <ray@rodonnell.ie>; pgsql-general

On 6/13/19 9:56 AM, Sourav Majumdar wrote:
> Hi,
> I have tried many time for setup postgreSQL for my local host. Hence I 
> have tried to reInstall the one click app from 
> https://www.enterprisedb.com/downloads/postgres-postgresql-downloads -  Windows 
> x86-64  -  PostgreSQL Version 11.3. When installing using default port 
> 5432, Its giving an error "Database Cluster Installation Failed". Please 
> advice how to resolve the issue. I am struggling to setup this 
> POSTGRESQL from more than a week.
> 
> The error screenshot is attached. PFA
> 

Sounds like a permissions problem to me.

See:

https://www.enterprisedb.com/docs/en/11.0/PG_Inst_Guide_v11/PostgreSQL_Installation_Guide.1.13.html#

to find the log of the install process. It will probably have more 
information.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-13 16:56         ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-13 20:28           ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-06-18 08:06             ` Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-18 13:57               ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-18 16:32               ` RE: Connection refused (0x0000274D/10061) Igor Neyman <ineyman@perceptron.com>
  0 siblings, 2 replies; 16+ messages in thread

From: Sourav Majumdar @ 2019-06-18 08:06 UTC (permalink / raw)
  To: Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Ray O'Donnell <ray@rodonnell.ie>; pgsql-general

Hii, I have checked the logged file. I am attaching it with this mail. PFA

On Fri, Jun 14, 2019 at 1:58 AM Adrian Klaver <adrian.klaver@aklaver.com>
wrote:

> On 6/13/19 9:56 AM, Sourav Majumdar wrote:
> > Hi,
> > I have tried many time for setup postgreSQL for my local host. Hence I
> > have tried to reInstall the one click app from
> > https://www.enterprisedb.com/downloads/postgres-postgresql-downloads -  Windows
>
> > x86-64  -  PostgreSQL Version 11.3. When installing using default port
> > 5432, Its giving an error "Database Cluster Installation Failed". Please
> > advice how to resolve the issue. I am struggling to setup this
> > POSTGRESQL from more than a week.
> >
> > The error screenshot is attached. PFA
> >
>
> Sounds like a permissions problem to me.
>
> See:
>
>
> https://www.enterprisedb.com/docs/en/11.0/PG_Inst_Guide_v11/PostgreSQL_Installation_Guide.1.13.html#
>
> to find the log of the install process. It will probably have more
> information.
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com
>


-- 
*Regards-*
*Sourav Majumdar*
*Mob.- 9732354141*

Attachments:

  install-postgresql.log (application/octet-stream, 1.4M) download

^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-13 16:56         ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-13 20:28           ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-18 08:06             ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
@ 2019-06-18 13:57               ` Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-18 14:15                 ` Re: Connection refused (0x0000274D/10061) Moreno Andreo <moreno.andreo@evolu-s.it>
  1 sibling, 1 reply; 16+ messages in thread

From: Adrian Klaver @ 2019-06-18 13:57 UTC (permalink / raw)
  To: Sourav Majumdar <souravmajumdar2002@gmail.com>; +Cc: Ray O'Donnell <ray@rodonnell.ie>; pgsql-general

On 6/18/19 1:06 AM, Sourav Majumdar wrote:
> Hii, I have checked the logged file. I am attaching it with this mail. PFA

In future please do not attach a 1.4MB file. Most of it was Unpacking 
info. The relevant part was at the end:

"
fixing permissions on existing directory C:/PostgreSQL/data ... initdb: 
could not change permissions of directory "C:/PostgreSQL/data": 
Permission denied

Called Die(Failed to initialise the database cluster with initdb)...
Failed to initialise the database cluster with initdb

Script stderr:
  Program ended with an error exit code

Error running cscript //NoLogo 
"C:\PostgreSQL/installer/server/initcluster.vbs" "NT 
AUTHORITY\NetworkService" "postgres" "****" "C:\PostgreSQL" 
"C:\PostgreSQL\data" 5432 "DEFAULT" 0: Program ended with an error exit code
Problem running post-install step. Installation may not complete correctly
  The database cluster initialisation failed.
[23:30:13] Delete the temporary scripts directory...
Creating menu shortcuts...
Executing cscript //NoLogo 
"C:\PostgreSQL\installer\server\createshortcuts_clt.vbs" "PostgreSQL 11" 
"C:\PostgreSQL"
Script exit code: 0"


Did you follow the instructions here?:

https://www.enterprisedb.com/docs/en/11.0/PG_Inst_Guide_v11/PostgreSQL_Installation_Guide.1.08.html#

In particular the part about:

"To perform an installation using the graphical installation wizard, you 
must have superuser or administrator privileges. To start the 
installation wizard, assume sufficient privileges and double-click the 
installer icon; if prompted, provide a password.
Note that in some versions of Windows, you can invoke the installer with 
Administrator privileges by right clicking on the installer icon and 
selecting Run as Administrator from the context menu."



> 
> On Fri, Jun 14, 2019 at 1:58 AM Adrian Klaver <adrian.klaver@aklaver.com 
> <mailto:adrian.klaver@aklaver.com>> wrote:
> 
>     On 6/13/19 9:56 AM, Sourav Majumdar wrote:
>      > Hi,
>      > I have tried many time for setup postgreSQL for my local host.
>     Hence I
>      > have tried to reInstall the one click app from
>      >
>     https://www.enterprisedb.com/downloads/postgres-postgresql-downloads -  Windows
> 
>      > x86-64  -  PostgreSQL Version 11.3. When installing using default
>     port
>      > 5432, Its giving an error "Database Cluster Installation Failed".
>     Please
>      > advice how to resolve the issue. I am struggling to setup this
>      > POSTGRESQL from more than a week.
>      >
>      > The error screenshot is attached. PFA
>      >
> 
>     Sounds like a permissions problem to me.
> 
>     See:
> 
>     https://www.enterprisedb.com/docs/en/11.0/PG_Inst_Guide_v11/PostgreSQL_Installation_Guide.1.13.html#
> 
>     to find the log of the install process. It will probably have more
>     information.
> 
> 
>     -- 
>     Adrian Klaver
>     adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
> 
> 
> 
> -- 
> /Regards-/
> /Sourav Majumdar/
> /Mob.- *9732354141*/


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* Re: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-13 16:56         ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-13 20:28           ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-18 08:06             ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-18 13:57               ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
@ 2019-06-18 14:15                 ` Moreno Andreo <moreno.andreo@evolu-s.it>
  0 siblings, 0 replies; 16+ messages in thread

From: Moreno Andreo @ 2019-06-18 14:15 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

Il 18/06/19 15:57, Adrian Klaver ha scritto:
> On 6/18/19 1:06 AM, Sourav Majumdar wrote:
>> Hii, I have checked the logged file. I am attaching it with this 
>> mail. PFA
>
> In future please do not attach a 1.4MB file. Most of it was Unpacking 
> info. The relevant part was at the end:
>
> "
> fixing permissions on existing directory C:/PostgreSQL/data ... 
> initdb: could not change permissions of directory 
> "C:/PostgreSQL/data": Permission denied
>
> [...]
>
> Did you follow the instructions here?:
>
> https://www.enterprisedb.com/docs/en/11.0/PG_Inst_Guide_v11/PostgreSQL_Installation_Guide.1.08.html# 
>
>
> In particular the part about:
>
> "To perform an installation using the graphical installation wizard, 
> you must have superuser or administrator privileges. To start the 
> installation wizard, assume sufficient privileges and double-click the 
> installer icon; if prompted, provide a password.
> Note that in some versions of Windows, you can invoke the installer 
> with Administrator privileges by right clicking on the installer icon 
> and selecting Run as Administrator from the context menu."


We had this issue in the past, and noted that re-issuing initdb from an 
Administrator Command Prompt (not doing anything else) from the Bin 
directory worked perfectly.

This was applied for 9.5, 9.6 and 10.x. Still not using 11 in 
production, so I have no cases to test at the moment.

My 2 cent

Moreno.-








^ permalink  raw  reply  [nested|flat] 16+ messages in thread

* RE: Connection refused (0x0000274D/10061)
  2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 19:43 ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 19:49   ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-09 20:46     ` Re: Connection refused (0x0000274D/10061) Ray O'Donnell <ray@rodonnell.ie>
  2019-06-09 21:09       ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-13 16:56         ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
  2019-06-13 20:28           ` Re: Connection refused (0x0000274D/10061) Adrian Klaver <adrian.klaver@aklaver.com>
  2019-06-18 08:06             ` Re: Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
@ 2019-06-18 16:32               ` Igor Neyman <ineyman@perceptron.com>
  1 sibling, 0 replies; 16+ messages in thread

From: Igor Neyman @ 2019-06-18 16:32 UTC (permalink / raw)
  To: Sourav Majumdar <souravmajumdar2002@gmail.com>; Adrian Klaver <adrian.klaver@aklaver.com>; +Cc: Ray O'Donnell <ray@rodonnell.ie>; pgsql-general


From: Sourav Majumdar [mailto:souravmajumdar2002@gmail.com]
Sent: Tuesday, June 18, 2019 4:06 AM
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Ray O'Donnell <ray@rodonnell.ie>; pgsql-general@postgresql.org
Subject: Re: Connection refused (0x0000274D/10061)

Hii, I have checked the logged file. I am attaching it with this mail. PFA

On Fri, Jun 14, 2019 at 1:58 AM Adrian Klaver <adrian.klaver@aklaver.com<mailto:adrian.klaver@aklaver.com>> wrote:
On 6/13/19 9:56 AM, Sourav Majumdar wrote:
> Hi,
> I have tried many time for setup postgreSQL for my local host. Hence I
> have tried to reInstall the one click app from
> https://www.enterprisedb.com/downloads/postgres-postgresql-downloads -  Windows
> x86-64  -  PostgreSQL Version 11.3. When installing using default port
> 5432, Its giving an error "Database Cluster Installation Failed". Please
> advice how to resolve the issue. I am struggling to setup this
> POSTGRESQL from more than a week.
>
> The error screenshot is attached. PFA
>

Sounds like a permissions problem to me.

See:

https://www.enterprisedb.com/docs/en/11.0/PG_Inst_Guide_v11/PostgreSQL_Installation_Guide.1.13.html#...;

to find the log of the install process. It will probably have more
information.


--
Adrian Klaver
adrian.klaver@aklaver.com<mailto:adrian.klaver@aklaver.com>

_________________________________________________________________________________________________________

From the log that you attached:

Failed to remove inherited ACLs on (C:\PostgreSQL\data)
WScript.Network initialized...
strParentOfDataDirC:\PostgreSQL
logged in userMajumdar\Its Majumdar
Called AclCheck(C:\PostgreSQL\data)
Called IsVistaOrNewer()...
    'winmgmts' object initialized...
    Version:6.3
    MajorVersion:6
Executing icacls to ensure the Majumdar\Its Majumdar account can read the path C:\PostgreSQL\data
    Executing batch file 'rad3A6BD.bat'...
    'icacls' is not recognized as an internal or external command,
operable program or batch file.


Installation script doesn’t find on your machine ICACLS, Windows utility that is being used by installation script to grant proper permissions.
Something’s wrong with your Windows OS.

Regards,
Igor Neyman





^ permalink  raw  reply  [nested|flat] 16+ messages in thread


end of thread, other threads:[~2019-06-18 16:32 UTC | newest]

Thread overview: 16+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30 10:17 Connection refused (0x0000274D/10061) Pietro Laranci <p.laranci@terrasystem.it>
2011-09-30 13:46 ` Adrian Klaver <adrian.klaver@gmail.com>
2011-09-30 23:31 ` Craig Ringer <ringerc@ringerc.id.au>
2019-06-09 18:51 Connection refused (0x0000274D/10061) Sourav Majumdar <souravmajumdar2002@gmail.com>
2019-06-09 19:29 ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-06-09 19:43 ` Ray O'Donnell <ray@rodonnell.ie>
2019-06-09 19:49   ` Sourav Majumdar <souravmajumdar2002@gmail.com>
2019-06-09 20:46     ` Ray O'Donnell <ray@rodonnell.ie>
2019-06-09 21:01       ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-06-09 21:09       ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-06-13 16:56         ` Sourav Majumdar <souravmajumdar2002@gmail.com>
2019-06-13 20:28           ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-06-18 08:06             ` Sourav Majumdar <souravmajumdar2002@gmail.com>
2019-06-18 13:57               ` Adrian Klaver <adrian.klaver@aklaver.com>
2019-06-18 14:15                 ` Moreno Andreo <moreno.andreo@evolu-s.it>
2019-06-18 16:32               ` Igor Neyman <ineyman@perceptron.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox