pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Connection error
19+ messages / 13 participants
[nested] [flat]

* Connection error
@ 2005-07-22 01:50 Richard Sydney-Smith <richard@ibisau.com>
  2005-07-22 07:31 ` Re: Connection error Richard Huxton <dev@archonet.com>
  2005-07-22 09:29 ` Re: Connection error Mario Guenterberg <mg@mattheis-berlin.de>
  0 siblings, 2 replies; 19+ messages in thread

From: Richard Sydney-Smith @ 2005-07-22 01:50 UTC (permalink / raw)
  To: pgsql-general

An associate is using Postgresql 8 on a windows xp system. The 
installation has been operating for several months and he has recently 
tried installing some software and postgresql has begun refusing 
connection " could not receive server response to SSL negotiation packet".

Unfortunately he is unable to tell me what was done! We have tried 
turning off the firewall, opening connections to "trust" but so far have 
not been able to connect.

We can confirm that the postgresql service is operational. It starts /  
stops cleanly.

Can someone point me on how to get this site operational again without 
having to do a complete database re-install?

thanks muchly

Richard Sydney-Smith
ibisau.com





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

* Re: Connection error
  2005-07-22 01:50 Connection error Richard Sydney-Smith <richard@ibisau.com>
@ 2005-07-22 07:31 ` Richard Huxton <dev@archonet.com>
  2005-07-22 09:58   ` Re: Connection error WA Pennant & Flag Displays - Darren <Proprietor@FlagDisplays.com>
  1 sibling, 1 reply; 19+ messages in thread

From: Richard Huxton @ 2005-07-22 07:31 UTC (permalink / raw)
  To: Richard Sydney-Smith <richard@ibisau.com>; +Cc: pgsql-general

Richard Sydney-Smith wrote:
> An associate is using Postgresql 8 on a windows xp system. The 
> installation has been operating for several months and he has recently 
> tried installing some software and postgresql has begun refusing 
> connection " could not receive server response to SSL negotiation packet".
> 
> Unfortunately he is unable to tell me what was done! We have tried 
> turning off the firewall, opening connections to "trust" but so far have 
> not been able to connect.

Do you get different messages with SSL disabled?
Can you connect with psql locally?
Can you connect with psql via localhost?

Quickest solution is probably to run ethereal on each end (I think 
there's a Windows version) and see what messages are going back and 
fore. I'd still suspect a firewall or client library problem.

--
   Richard Huxton
   Archonet Ltd



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

* Re: Connection error
  2005-07-22 01:50 Connection error Richard Sydney-Smith <richard@ibisau.com>
  2005-07-22 07:31 ` Re: Connection error Richard Huxton <dev@archonet.com>
@ 2005-07-22 09:58   ` WA Pennant & Flag Displays - Darren <Proprietor@FlagDisplays.com>
  0 siblings, 0 replies; 19+ messages in thread

From: WA Pennant & Flag Displays - Darren @ 2005-07-22 09:58 UTC (permalink / raw)
  To: 'Richard Huxton' <dev@archonet.com>; 'Mario Guenterberg' <mg@mattheis-berlin.de>; +Cc: pgsql-general

Thanks for your advice:

Do you get different messages with SSL disabled?
Yes - "Error connecting to the server: server closed the connection
unexpectedly.  This probably means the server terminated abnormally before
or while processing the request."
Can you connect with psql locally?
No
Can you connect with psql via localhost?
No

The program installed was a web excelerator.  I think the Windows Firewall
exceptions were turned off for PG and the program calling it.  They are now
on.

Will try the ethereal option.

All recommended Windows updates are installed.

Darren Meerwald
FlagDisplays.com
-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Richard Huxton
Sent: Friday, 22 July 2005 15:31
To: Richard Sydney-Smith
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Connection error

Richard Sydney-Smith wrote:
> An associate is using Postgresql 8 on a windows xp system. The 
> installation has been operating for several months and he has recently 
> tried installing some software and postgresql has begun refusing 
> connection " could not receive server response to SSL negotiation packet".
> 
> Unfortunately he is unable to tell me what was done! We have tried 
> turning off the firewall, opening connections to "trust" but so far have 
> not been able to connect.

Do you get different messages with SSL disabled?
Can you connect with psql locally?
Can you connect with psql via localhost?

Quickest solution is probably to run ethereal on each end (I think 
there's a Windows version) and see what messages are going back and 
fore. I'd still suspect a firewall or client library problem.

--
   Richard Huxton
   Archonet Ltd

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.9.2/55 - Release Date: 21/07/05
 




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

* Re: Connection error
  2005-07-22 01:50 Connection error Richard Sydney-Smith <richard@ibisau.com>
@ 2005-07-22 09:29 ` Mario Guenterberg <mg@mattheis-berlin.de>
  1 sibling, 0 replies; 19+ messages in thread

From: Mario Guenterberg @ 2005-07-22 09:29 UTC (permalink / raw)
  To: pgsql-general

Richard Sydney-Smith schrieb:
> An associate is using Postgresql 8 on a windows xp system. The
> installation has been operating for several months and he has recently
> tried installing some software and postgresql has begun refusing
> connection " could not receive server response to SSL negotiation packet".
> 
> Unfortunately he is unable to tell me what was done! We have tried
> turning off the firewall, opening connections to "trust" but so far have
> not been able to connect.
> 
> We can confirm that the postgresql service is operational. It starts / 
> stops cleanly.
> 
> Can someone point me on how to get this site operational again without
> having to do a complete database re-install?
>

Eventually, is Windows XP updated to SP2?

-- 
Mario Guenterberg
mattheis. werbeagentur
IT Engineer / Projektleiter



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

* Re: Connection error
@ 2005-07-22 10:08 Richard Huxton <dev@archonet.com>
  0 siblings, 0 replies; 19+ messages in thread

From: Richard Huxton @ 2005-07-22 10:08 UTC (permalink / raw)
  To: WA Pennant & Flag Displays - Darren <Proprietor@FlagDisplays.com>; +Cc: Mario Guenterberg <mg@mattheis-berlin.de>; pgsql-general

WA Pennant & Flag Displays - Darren wrote:
> Thanks for your advice:
> 
> Do you get different messages with SSL disabled?
> Yes - "Error connecting to the server: server closed the connection
> unexpectedly.  This probably means the server terminated abnormally before
> or while processing the request."

Good - so it's not just SSL related.

> Can you connect with psql locally?
> No
> Can you connect with psql via localhost?
> No

Hmm - that makes the firewall options slightly less likely.

1. Make sure PG is listening on port 5432 and that log_connections is 
set in your postgresql.conf. Then check your pg_hba.conf allows 
connections from localhost and your local network. Restart PG.

2. Try telnetting to localhost, port 5432 (from the command-line in 
Windows it should be "telnet localhost:5432" I think). If it connects, 
hit return a couple of times and you should be disconnected. 
PostgreSQL's logs should say something about an invalid startup packet.

If it doesn't even connect, then suspect a firewall.

> The program installed was a web excelerator.  I think the Windows Firewall
> exceptions were turned off for PG and the program calling it.  They are now
> on.
> 
> Will try the ethereal option.

Seems less useful if you can't connect locally.

> All recommended Windows updates are installed.

--
   Richard Huxton
   Archonet Ltd



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

* Re: Connection error
@ 2005-07-25 17:43 Richard Huxton <dev@archonet.com>
  2005-07-25 18:56 ` Re: Connection error Jonathan Lam <lamj@spawar.navy.mil>
  0 siblings, 1 reply; 19+ messages in thread

From: Richard Huxton @ 2005-07-25 17:43 UTC (permalink / raw)
  To: WA Pennant & Flag Displays - Darren <Proprietor@FlagDisplays.com>; +Cc: richard@ibisau.com; pgsql-general

WA Pennant & Flag Displays - Darren wrote:
> Hi Richard,
> 
> Thanks for your advice.  I implemented your tests as shown below and they
> seem to indicate there's a firewall problem (but the firewall is off).  I
> found though that I can probably retrieve the data and have discussed what
> I've been trying at the bottom of the email.  Could you please let me know
> your thoughts on what I have been doing wrong or should do in order to
> retrieve the data.

>>>Can you connect with psql locally?
>>>No
>>>Can you connect with psql via localhost?
>>>No
>>
>>Hmm - that makes the firewall options slightly less likely.
>>
>>1. Make sure PG is listening on port 5432 and that log_connections is
>>set in your postgresql.conf.
> 
> Under 'Connections and Authentication' postgresql.conf displays:
> listen_addresses = '*'
> port = 5432
> I've now also added:
> log_connections = yes

Good. I take it you're not seeing any connections.

> Then check your pg_hba.conf allows
> 
>>connections from localhost and your local network. Restart PG.
> 
> pg_hba.conf shows (does this cover the localhost?):
> local all all all trust

On a unix machine it covers connection over unix-sockets. Not sure about 
Windows.

> # IPv4 local connections:
> host    all         all         127.0.0.1/32          md5
> # IPv6 local connections:
> #host    all         all         ::1/128               md5
> host   all      all     192.168.1.230/32     md5
> host   all      all     192.168.1.240/32     md5
> host   all      all     192.168.1.210/32     md5
> host   all      all     192.168.1.211/32     md5
> host   all      all     192.168.1.220/32     md5
> host   all      remote     all  md5
> hostnossl all all 127.0.0.1/32 md5
> 
> 
>>2. Try telnetting to localhost, port 5432 (from the command-line in
>>Windows it should be "telnet localhost:5432" I think). If it connects,
>>hit return a couple of times and you should be disconnected.
>>PostgreSQL's logs should say something about an invalid startup packet.
>>
>>If it doesn't even connect, then suspect a firewall.
> 
> Connection failed (even with Microsoft's firewall off)

Well, if you're not getting *anything* then either:
1. There is nothing on that port
2. There is some sort of firewall interfering.

> I did a backup on 5th July and this incident happened after the 19th July.
> I've found http://www.postgresql.org/docs/8.0/interactive/backup-online.html
> which seems to indicate that my data is retrievable, however I'm doing
> something wrong.  I have a new installation of postgres on another compter
> and have restored the data of the 5th July.  I have used the sample
> recovery.conf and the two pertinent lines of code together with relevant
> comments are below.  

Well, there's no evidence your postgresql backend is having problems. 
This means recovery is simple.

1. Make sure both the old and new machine have the same version of 
PostgreSQL installed (i.e. both 8.0.x)
2. Stop Postgresql on the machine you can't connect to.
3. Zip up the entire contents of the "data" directory - you want all of 
it pg_clog/xlog - all of it.
4. Unzip it to the right location on the new machine
5. Restart PG on the new machine

Done - the new machine might go through some recovery, depending whether 
the backend on the old machine was shut down cleanly.

NOTE - you can't necessarily move data this way between different 
architectures (e.g. x86 <=> PPC <=> 64-bit x86), nor between different 
releases (e.g. 8.0.x => 8.1.x).

-- 
   Richard Huxton
   Archonet Ltd



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

* Re: Connection error
  2005-07-25 17:43 Re: Connection error Richard Huxton <dev@archonet.com>
@ 2005-07-25 18:56 ` Jonathan Lam <lamj@spawar.navy.mil>
  0 siblings, 0 replies; 19+ messages in thread

From: Jonathan Lam @ 2005-07-25 18:56 UTC (permalink / raw)
  To: pgsql-general

unsubscribe

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org] On Behalf Of Richard Huxton
Sent: Monday, July 25, 2005 10:43 AM
To: WA Pennant & Flag Displays - Darren
Cc: richard@ibisau.com; pgsql-general@postgresql.org
Subject: Re: [GENERAL] Connection error

WA Pennant & Flag Displays - Darren wrote:
> Hi Richard,
> 
> Thanks for your advice.  I implemented your tests as shown below and
they
> seem to indicate there's a firewall problem (but the firewall is off).
I
> found though that I can probably retrieve the data and have discussed
what
> I've been trying at the bottom of the email.  Could you please let me
know
> your thoughts on what I have been doing wrong or should do in order to
> retrieve the data.

>>>Can you connect with psql locally?
>>>No
>>>Can you connect with psql via localhost?
>>>No
>>
>>Hmm - that makes the firewall options slightly less likely.
>>
>>1. Make sure PG is listening on port 5432 and that log_connections is
>>set in your postgresql.conf.
> 
> Under 'Connections and Authentication' postgresql.conf displays:
> listen_addresses = '*'
> port = 5432
> I've now also added:
> log_connections = yes

Good. I take it you're not seeing any connections.

> Then check your pg_hba.conf allows
> 
>>connections from localhost and your local network. Restart PG.
> 
> pg_hba.conf shows (does this cover the localhost?):
> local all all all trust

On a unix machine it covers connection over unix-sockets. Not sure about

Windows.

> # IPv4 local connections:
> host    all         all         127.0.0.1/32          md5
> # IPv6 local connections:
> #host    all         all         ::1/128               md5
> host   all      all     192.168.1.230/32     md5
> host   all      all     192.168.1.240/32     md5
> host   all      all     192.168.1.210/32     md5
> host   all      all     192.168.1.211/32     md5
> host   all      all     192.168.1.220/32     md5
> host   all      remote     all  md5
> hostnossl all all 127.0.0.1/32 md5
> 
> 
>>2. Try telnetting to localhost, port 5432 (from the command-line in
>>Windows it should be "telnet localhost:5432" I think). If it connects,
>>hit return a couple of times and you should be disconnected.
>>PostgreSQL's logs should say something about an invalid startup
packet.
>>
>>If it doesn't even connect, then suspect a firewall.
> 
> Connection failed (even with Microsoft's firewall off)

Well, if you're not getting *anything* then either:
1. There is nothing on that port
2. There is some sort of firewall interfering.

> I did a backup on 5th July and this incident happened after the 19th
July.
> I've found
http://www.postgresql.org/docs/8.0/interactive/backup-online.html
> which seems to indicate that my data is retrievable, however I'm doing
> something wrong.  I have a new installation of postgres on another
compter
> and have restored the data of the 5th July.  I have used the sample
> recovery.conf and the two pertinent lines of code together with
relevant
> comments are below.  

Well, there's no evidence your postgresql backend is having problems. 
This means recovery is simple.

1. Make sure both the old and new machine have the same version of 
PostgreSQL installed (i.e. both 8.0.x)
2. Stop Postgresql on the machine you can't connect to.
3. Zip up the entire contents of the "data" directory - you want all of 
it pg_clog/xlog - all of it.
4. Unzip it to the right location on the new machine
5. Restart PG on the new machine

Done - the new machine might go through some recovery, depending whether

the backend on the old machine was shut down cleanly.

NOTE - you can't necessarily move data this way between different 
architectures (e.g. x86 <=> PPC <=> 64-bit x86), nor between different 
releases (e.g. 8.0.x => 8.1.x).

-- 
   Richard Huxton
   Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly





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

* Connection error
@ 2006-03-21 16:27 Shulman, Michael <mshulman@bu.edu>
  0 siblings, 0 replies; 19+ messages in thread

From: Shulman, Michael @ 2006-03-21 16:27 UTC (permalink / raw)
  To: pgsql-general

Hi,
I tried to connect PostgeSQL 8.1 (Windows 2000) from remote computer
(Windows XP) using pgAdmin 1.4.2 and got error:

"Error connecting to the server: server closed the connection
unexpectedly This probably means the server terminated abnormally before
or while processing the request"

I start stop service few time before I got this error. Now it become
permanent. 
I try to connect from deferent PC and have same result. I reinstall
PostgreSQL but it does  not help. 
Local pgAdmin work normally.
Any idea.

Michael 



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

* FW: Connection Error
@ 2006-06-08 12:05 Johan van der Merwe <johan@bnrel.co.za>
  2006-06-09 00:42 ` Re: FW: Connection Error Chris <dmagick@gmail.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Johan van der Merwe @ 2006-06-08 12:05 UTC (permalink / raw)
  To: pgsql-general

 
 
My code is as follows:

Public dbRemote As New Connection
Public rsData As New Recordset

dbRemote.Properties("Data Source").Value = "DSM"
dbRemote.Properties("Initial Catalog").Value = "BCM_DSM" 
dbRemote.Properties("User ID").Value = "user"
dbRemote.Properties("Password").Value = "password"
dbRemote.Open

rsData.Open "tblsuburb", dbRemote, , , adCmdTable

I am getting an error "relation tblsuburb does not exist"

Where am I going wrong?

Regards

Johan van der Merwe
Ballenden & Robb Consulting Engineers
Tel (043) 743 3809
Fax (043) 743 9321
Cell 082 5530445

"I Don't want to be a human being, I want to be a human doing"

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 2006/06/02
 
  

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 2006/06/06
 
  

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 2006/06/06
 
  

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/358 - Release Date: 2006/06/07
 




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

* Re: FW: Connection Error
  2006-06-08 12:05 FW: Connection Error Johan van der Merwe <johan@bnrel.co.za>
@ 2006-06-09 00:42 ` Chris <dmagick@gmail.com>
  0 siblings, 0 replies; 19+ messages in thread

From: Chris @ 2006-06-09 00:42 UTC (permalink / raw)
  To: Johan van der Merwe <johan@bnrel.co.za>; +Cc: pgsql-general

Johan van der Merwe wrote:
>  
>  
> My code is as follows:
> 
> Public dbRemote As New Connection
> Public rsData As New Recordset
> 
> dbRemote.Properties("Data Source").Value = "DSM"
> dbRemote.Properties("Initial Catalog").Value = "BCM_DSM" 
> dbRemote.Properties("User ID").Value = "user"
> dbRemote.Properties("Password").Value = "password"
> dbRemote.Open
> 
> rsData.Open "tblsuburb", dbRemote, , , adCmdTable
> 
> I am getting an error "relation tblsuburb does not exist"
> 
> Where am I going wrong?

It's telling you - the object "tblsuburb" doesn't exist (this could be a 
table, sequence, view or anything else).

Are you looking at the right database on the right host?

-- 
Postgresql & php tutorials
http://www.designmagick.com/



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

* Connection error
@ 2007-07-24 10:07 Fst Procurement <fst-procurement@telkomsa.net>
  2007-07-24 10:43 ` Re: Connection error Richard Huxton <dev@archonet.com>
  0 siblings, 1 reply; 19+ messages in thread

From: Fst Procurement @ 2007-07-24 10:07 UTC (permalink / raw)
  To: pgsql-general

Hi ,

I am trying to connect to postgres on Win 2003 server std version but I 
keep on getting an error . "Are you sure the server is running and that 
connections for the client's IP address have been enabled" . The Win 
2003 is a 64 bit edition.

I am sure of my settings. I have installed on a Win 2000 server with no 
problems.

The only difference between this installation and the Win 2000 
installation is that I installed the database on logical drive D and the 
program was installed on drive C.

I have checked all settings that I can think of. Do you have any other 
ideas for me?

I have used EMS SqlManager to transfer data and that worked Ok. However 
when trying to make a backup with PgAdmin 1.7 I get the same connection 
error. I tried installing PgAdmin 1.8 but this will not connect at all - 
not even to the Win 2000 server.

I have tried changing some parameters in the conf file. I first stop the 
service, change the settings and re-start the service. On some changes 
the service will not re-start. I have to undo these changes to get the 
service to start again. Are there some settings which cannot be changed?

regards,

Jimmy.



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

* Re: Connection error
  2007-07-24 10:07 Connection error Fst Procurement <fst-procurement@telkomsa.net>
@ 2007-07-24 10:43 ` Richard Huxton <dev@archonet.com>
  2007-07-24 12:26   ` Re: Connection error Richard Huxton <dev@archonet.com>
  2007-07-24 14:19   ` Re: Connection error Fst Procurement <fst-procurement@telkomsa.net>
  0 siblings, 2 replies; 19+ messages in thread

From: Richard Huxton @ 2007-07-24 10:43 UTC (permalink / raw)
  To: Fst Procurement <fst-procurement@telkomsa.net>; +Cc: pgsql-general

Fst Procurement wrote:
> Hi ,
> 
> I am trying to connect to postgres on Win 2003 server std version but I 
> keep on getting an error . "Are you sure the server is running and that 
> connections for the client's IP address have been enabled" . The Win 
> 2003 is a 64 bit edition.
> 
> I am sure of my settings. I have installed on a Win 2000 server with no 
> problems.

So is PostgreSQL listening on the port you've set?
Can you connect to that port from the client machine?
What do the logs show (you have turned connection logging on, haven't you)?

> The only difference between this installation and the Win 2000 
> installation is that I installed the database on logical drive D and the 
> program was installed on drive C.

And the fact that they are different machines, running different 
operating systems.

> I have checked all settings that I can think of. Do you have any other 
> ideas for me?

There's no need to check all your settings. Just work through the basic 
steps to check PG (or any service) is running:
1. Does the service start?
    - does it say started in your service manager?
    - does it appear in your process list?
    - what do the logs say?
2. Is it listening to the right port?
    - what does netstat say?
3. Can you connect to that port?
    - Will a telnet to that port connect?
    - do your firewall logs show anything?

If you pass these 3 then you should be able to get PG to log a 
connection attempt (whether it passes or fails).

> I have used EMS SqlManager to transfer data and that worked Ok. 

Hang on - can you connect, or can't you? If you can connect with 
SqlManager but not pgadmin that suggests your settings in pgadmin, 
doesn't it?

 > However
> when trying to make a backup with PgAdmin 1.7 I get the same connection 
> error. I tried installing PgAdmin 1.8 but this will not connect at all - 
> not even to the Win 2000 server.

I don't think they released a version 1.7 of pgAdmin-III, and I know 1.8 
is in beta. Stick to the working releases if you're trying to diagnose a 
problem.

> I have tried changing some parameters in the conf file. I first stop the 
> service, change the settings and re-start the service. On some changes 
> the service will not re-start. I have to undo these changes to get the 
> service to start again. Are there some settings which cannot be changed?

No. You might get the syntax wrong, in which case you might stop the 
system from starting. Your logs should say why.

-- 
   Richard Huxton
   Archonet Ltd



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

* Re: Connection error
  2007-07-24 10:07 Connection error Fst Procurement <fst-procurement@telkomsa.net>
  2007-07-24 10:43 ` Re: Connection error Richard Huxton <dev@archonet.com>
@ 2007-07-24 12:26   ` Richard Huxton <dev@archonet.com>
  1 sibling, 0 replies; 19+ messages in thread

From: Richard Huxton @ 2007-07-24 12:26 UTC (permalink / raw)
  To: Fst Procurement <fst-procurement@telkomsa.net>; pgsql-general

Don't forget to cc: the list

Fst Procurement wrote:
> Netstat has the following two entries.
> 
> Local address                                Foreign address.
> 
> fstserver1:2359                              fstserver1.fst.co.za:5432
> fstserver1:5432                              fstserver1.fst.co.za:2359

OK, so it looks like something is listening on the right port. 
Furthermore, you have a connection too!

> The service starts, a new log file is created every time the service 
> starts, the conf file has been set to listen on all ip addresses and the 
> pg_hba.conf is exactly the same as the Win 2000 server.

And what is in the log-file? Does it show evidence of connections.

> Perhaps I should recap.
> 
> We acquired a new server, installed Win 2003, installed Postgresql and 
> configured it with the same databases etc as the old one. We then tried 
> to run our 3rd party software to access the database on the new server 
> and received the connection error. The software uses ODBC to connect and 
> the only change that was required for the ODBC was to set the host 
> parameter to point to the new server. If I use the "Test" button it 
> returns "connection successful".

Well, if your odbc test works but the application doesn't then you need 
to find out what is different between the two.

> I can connect to the server with PgAdmin running from a remote machine, 
> but when I try and make a backup of the database through PgAdmin from 
> the remote machine, I get the same error message as that of the 3rd 
> party software.

OK, so there clearly isn't a problem with the server side of things. If 
you can connect with pgadmin, then you can connect.

Hmm - pgadmin just seems to run pg_dump with the relevant parameters. 
One of the following is different between pgadmin connecting normally 
and running pg_dump:
  - host
  - port
  - user
  - password
See the server logs for details (assuming you've turned connection 
logging on)

> When changing parameters in the conf file all I do is remove the comment 
> in the relevant line and then with some parameters the service refuses 
> to re-start. If I replace the comment it re-starts.

Something will be logged. Although, if you're uncommenting the default 
values I can't see how you can get errors.

> I have no fire wall set up and also don't have anti-virus running on the 
> server. I have also switched off DEP on the new server.

It's not your server, it's your clients.

-- 
   Richard Huxton
   Archonet Ltd



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

* Re: Connection error
  2007-07-24 10:07 Connection error Fst Procurement <fst-procurement@telkomsa.net>
  2007-07-24 10:43 ` Re: Connection error Richard Huxton <dev@archonet.com>
@ 2007-07-24 14:19   ` Fst Procurement <fst-procurement@telkomsa.net>
  2007-07-24 16:02     ` Re: Connection error Raymond O'Donnell <rod@iol.ie>
  1 sibling, 1 reply; 19+ messages in thread

From: Fst Procurement @ 2007-07-24 14:19 UTC (permalink / raw)
  To: Richard Huxton <dev@archonet.com>; +Cc: pgsql-general

Hi Richard,

Thanks for all your help. It is working. I think.- not sure - I removed 
PgAdmin 1.7 from my computer and now everything is working. Got it 
somewhere on the net. Can't remember where.

Moral of the story . Beware where you obtain software

regards,

Jimmy




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

* Re: Connection error
  2007-07-24 10:07 Connection error Fst Procurement <fst-procurement@telkomsa.net>
  2007-07-24 10:43 ` Re: Connection error Richard Huxton <dev@archonet.com>
  2007-07-24 14:19   ` Re: Connection error Fst Procurement <fst-procurement@telkomsa.net>
@ 2007-07-24 16:02     ` Raymond O'Donnell <rod@iol.ie>
  0 siblings, 0 replies; 19+ messages in thread

From: Raymond O'Donnell @ 2007-07-24 16:02 UTC (permalink / raw)
  To: Fst Procurement <fst-procurement@telkomsa.net>; +Cc: Richard Huxton <dev@archonet.com>; pgsql-general

On 24/07/2007 15:19, Fst Procurement wrote:

> Thanks for all your help. It is working. I think.- not sure - I removed 
> PgAdmin 1.7 from my computer and now everything is working. Got it 
> somewhere on the net. Can't remember where.

1.7 was a development version of pgAdmin, so you must have got a 
snapshot from the pgAdmin site. The current stable version is 1.6, and 
1.8 is in beta.

Ray.


---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
---------------------------------------------------------------



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

* connection error
@ 2018-09-07 10:37 Sonam Sharma <sonams1209@gmail.com>
  2018-09-07 11:40 ` Re: connection error amul sul <sulamul@gmail.com>
  2018-09-10 04:19 ` RE: connection error Ahmed, Nawaz <Nawaz@fast.au.fujitsu.com>
  0 siblings, 2 replies; 19+ messages in thread

From: Sonam Sharma @ 2018-09-07 10:37 UTC (permalink / raw)
  To: pgsql-general

getting below error from application side :
========

Last acquisition attempt exception:

org.postgresql.util.PSQLException: Connection refused. Check that the
hostname and port are correct and that the postmaster is accepting TCP/IP
connections.


the port no is set correct :

[postgres@lxsqlptgsdev004 data]$ psql -h localhost -p 5432

psql (9.5.14)

Type "help" for help.



postgres=#

 In pg_hba.conf also:


# IPv4 local connections:

host    all             all             127.0.0.1/32            trust

host    all             all             127.0.0.1/23            trust

host    all             all             172.29.161.53/23        trust

host    all             all             172.29.161.52/23        trust


Can someone please help what can be done to resolve this.


Thanks,

Sonam

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

* Re: connection error
  2018-09-07 10:37 connection error Sonam Sharma <sonams1209@gmail.com>
@ 2018-09-07 11:40 ` amul sul <sulamul@gmail.com>
  2018-09-07 11:45   ` Re: connection error amul sul <sulamul@gmail.com>
  1 sibling, 1 reply; 19+ messages in thread

From: amul sul @ 2018-09-07 11:40 UTC (permalink / raw)
  To: sonams1209@gmail.com; +Cc: pgsql-general

Do you have following entry as well?

# IPv6 local connections:
host    all             all             ::1/128                 trust

I hope "listen_addresses " in postgresql.conf is on default setting.

Regards,
Amul Sul
On Fri, Sep 7, 2018 at 4:08 PM Sonam Sharma <sonams1209@gmail.com> wrote:
>
> getting below error from application side :
> ========
>
> Last acquisition attempt exception:
>
> org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
>
>
> the port no is set correct :
>
> [postgres@lxsqlptgsdev004 data]$ psql -h localhost -p 5432
>
> psql (9.5.14)
>
> Type "help" for help.
>
>
>
> postgres=#
>
>  In pg_hba.conf also:
>
>
> # IPv4 local connections:
>
> host    all             all             127.0.0.1/32            trust
>
> host    all             all             127.0.0.1/23            trust
>
> host    all             all             172.29.161.53/23        trust
>
> host    all             all             172.29.161.52/23        trust
>
>
> Can someone please help what can be done to resolve this.
>
>
> Thanks,
>
> Sonam




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

* Re: connection error
  2018-09-07 10:37 connection error Sonam Sharma <sonams1209@gmail.com>
  2018-09-07 11:40 ` Re: connection error amul sul <sulamul@gmail.com>
@ 2018-09-07 11:45   ` amul sul <sulamul@gmail.com>
  0 siblings, 0 replies; 19+ messages in thread

From: amul sul @ 2018-09-07 11:45 UTC (permalink / raw)
  To: sonams1209@gmail.com; +Cc: pgsql-general

On Fri, Sep 7, 2018 at 5:10 PM amul sul <sulamul@gmail.com> wrote:
>
> Do you have following entry as well?
>
> # IPv6 local connections:
> host    all             all             ::1/128                 trust
>
> I hope "listen_addresses " in postgresql.conf is on default setting.
>

Sorry, I misread -- your local psql connection is fine .

Try setting listen_addresses = '*' in postgresql.conf.

For more detail please have a look to
https://www.postgresql.org/docs/9.5/static/runtime-config-connection.html

Regards,
Amul Sul




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

* RE: connection error
  2018-09-07 10:37 connection error Sonam Sharma <sonams1209@gmail.com>
@ 2018-09-10 04:19 ` Ahmed, Nawaz <Nawaz@fast.au.fujitsu.com>
  1 sibling, 0 replies; 19+ messages in thread

From: Ahmed, Nawaz @ 2018-09-10 04:19 UTC (permalink / raw)
  To: Sonam Sharma <sonams1209@gmail.com>; pgsql-general

Hi,

Are you sure it is /23 and not /32 for the CIDR notation ?


host    all             all             127.0.0.1/32<http://127.0.0.1/32;            trust
host    all             all             127.0.0.1/23<http://127.0.0.1/23;            trust
host    all             all             172.29.161.53/23<http://172.29.161.53/23;        trust
host    all             all             172.29.161.52/23<http://172.29.161.52/23;        trust




Best Regards,

Nawaz Ahmed
Software Development Engineer

Fujitsu Australia Software Technology Pty Ltd
14 Rodborough Road, Frenchs Forest NSW 2086, Australia
T +61 2 9452 9027
Nawaz@fast.au.fujitsu.com<mailto:Nawaz@fast.au.fujitsu.com>
fastware.com.au<http://fastware.com.au/;

[cid:image001.jpg@01D44911.4DB77F50]
[cid:image002.jpg@01D44911.4DB77F50]

From: Sonam Sharma [mailto:sonams1209@gmail.com]
Sent: Friday, 7 September 2018 8:38 PM
To: pgsql-general@postgresql.org
Subject: connection error

getting below error from application side :
========
Last acquisition attempt exception:
org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

the port no is set correct :
[postgres@lxsqlptgsdev004 data]$ psql -h localhost -p 5432
psql (9.5.14)
Type "help" for help.

postgres=#
 In pg_hba.conf also:

# IPv4 local connections:
host    all             all             127.0.0.1/32<http://127.0.0.1/32;            trust
host    all             all             127.0.0.1/23<http://127.0.0.1/23;            trust
host    all             all             172.29.161.53/23<http://172.29.161.53/23;        trust
host    all             all             172.29.161.52/23<http://172.29.161.52/23;        trust

Can someone please help what can be done to resolve this.

Thanks,
Sonam
Disclaimer

The information in this e-mail is confidential and may contain content that is subject to copyright and/or is commercial-in-confidence and is intended only for the use of the above named addressee. If you are not the intended recipient, you are hereby notified that dissemination, copying or use of the information is strictly prohibited. If you have received this e-mail in error, please telephone Fujitsu Australia Software Technology Pty Ltd on + 61 2 9452 9000 or by reply e-mail to the sender and delete the document and all copies thereof.


Whereas Fujitsu Australia Software Technology Pty Ltd would not knowingly transmit a virus within an email communication, it is the receiver’s responsibility to scan all communication and any files attached for computer viruses and other defects. Fujitsu Australia Software Technology Pty Ltd does not accept liability for any loss or damage (whether direct, indirect, consequential or economic) however caused, and whether by negligence or otherwise, which may result directly or indirectly from this communication or any files attached.


If you do not wish to receive commercial and/or marketing email messages from Fujitsu Australia Software Technology Pty Ltd, please email unsubscribe@fast.au.fujitsu.com


Attachments:

image001.jpg (image/jpeg, 7.7K) download view image
image002.jpg (image/jpeg, 3.8K) download view image
^ permalink raw reply [nested|flat] 19+ messages in thread


end of thread, other threads:[~2018-09-10 04:19 UTC | newest]

Thread overview: 19+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 01:50 Connection error Richard Sydney-Smith <richard@ibisau.com>
2005-07-22 07:31 ` Richard Huxton <dev@archonet.com>
2005-07-22 09:58   ` WA Pennant & Flag Displays - Darren <Proprietor@FlagDisplays.com>
2005-07-22 09:29 ` Mario Guenterberg <mg@mattheis-berlin.de>
2005-07-22 10:08 Re: Connection error Richard Huxton <dev@archonet.com>
2005-07-25 17:43 Re: Connection error Richard Huxton <dev@archonet.com>
2005-07-25 18:56 ` Jonathan Lam <lamj@spawar.navy.mil>
2006-03-21 16:27 Connection error Shulman, Michael <mshulman@bu.edu>
2006-06-08 12:05 FW: Connection Error Johan van der Merwe <johan@bnrel.co.za>
2006-06-09 00:42 ` Re: FW: Connection Error Chris <dmagick@gmail.com>
2007-07-24 10:07 Connection error Fst Procurement <fst-procurement@telkomsa.net>
2007-07-24 10:43 ` Richard Huxton <dev@archonet.com>
2007-07-24 12:26   ` Richard Huxton <dev@archonet.com>
2007-07-24 14:19   ` Fst Procurement <fst-procurement@telkomsa.net>
2007-07-24 16:02     ` Raymond O'Donnell <rod@iol.ie>
2018-09-07 10:37 connection error Sonam Sharma <sonams1209@gmail.com>
2018-09-07 11:40 ` Re: connection error amul sul <sulamul@gmail.com>
2018-09-07 11:45   ` Re: connection error amul sul <sulamul@gmail.com>
2018-09-10 04:19 ` RE: connection error Ahmed, Nawaz <Nawaz@fast.au.fujitsu.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