dbTalk Databases Forums  

Server closed the connection unexpectedly

comp.databases.postgresql.novice comp.databases.postgresql.novice


Discuss Server closed the connection unexpectedly in the comp.databases.postgresql.novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Carla
 
Posts: n/a

Default Server closed the connection unexpectedly - 04-28-2004 , 08:42 PM






This problem occurs when running postgres locally on win2k ,

psql was running ok but now when typing:
c:\>psql psql -d template1
c:\>psql -U username
c:\>psql -l
c:\>psql -e

I still get
psql: server closed the connection unexpectedly
This problem means the server terminated abnormally
before or while processing the request.

I have checked the .pid file on the starting of postgres which is fine and
the log file said that postgres is still running.

I have checked the TYPE, DATABASE, IP_ADRESS in pg_hba.conf
I have checked my host.txt and the IP is correct. In pgruntime.config,
tcpip_socket = true and the port is correct.

I thought it might be a TCP/IP problem but am sure that the -I for TCP/IP
connections is being passed in when starting postgres. pg_ctl is working

If you run psql when postgres is stopped you get the expected error.
The only command I can run is
c:\>psql -V
all other options in psql result in this 'server closed the connection
unexpectedly' error.

Is their something that I am doing wrong, overlooked or not checked?

Carla
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.670 / Virus Database: 432 - Release Date: 27/04/2004


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Reply With Quote
  #2  
Old   
joseph speigle
 
Posts: n/a

Default Re: Server closed the connection unexpectedly - 04-28-2004 , 10:06 PM






carla,
sometimes people have a psql version which doesn't match that of the server. since you can run psql and get the version, maybe there is a mismatch?
?

On Wed, Apr 28, 2004 at 06:42:22PM -0700, Carla wrote:
Quote:
This problem occurs when running postgres locally on win2k ,

psql was running ok but now when typing:
c:\>psql psql -d template1
c:\>psql -U username
c:\>psql -l
c:\>psql -e

I still get
psql: server closed the connection unexpectedly
This problem means the server terminated abnormally
before or while processing the request.

I have checked the .pid file on the starting of postgres which is fine and
the log file said that postgres is still running.

I have checked the TYPE, DATABASE, IP_ADRESS in pg_hba.conf
I have checked my host.txt and the IP is correct. In pgruntime.config,
tcpip_socket = true and the port is correct.

I thought it might be a TCP/IP problem but am sure that the -I for TCP/IP
connections is being passed in when starting postgres. pg_ctl is working

If you run psql when postgres is stopped you get the expected error.
The only command I can run is
c:\>psql -V
all other options in psql result in this 'server closed the connection
unexpectedly' error.

Is their something that I am doing wrong, overlooked or not checked?

Carla
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.670 / Virus Database: 432 - Release Date: 27/04/2004


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
--
joe speigle
www.sirfsup.com

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.