473,323 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

Error: server closed the connection unexpectedely

Hello everyone,

this is my first post to postgres mailing list.

System that I use:
I am using Postgres under last CygWin published on public mirrors at the moment.
OS system runing is Windows 2000 professional, 1024 or 256 or 512 MB of RAMand 40Gb of disk.
Postmaster shows version 7.4.1

Problem:
When trying to create database using script file (containing only create DB, USERS, TABLES, INDEXES inside tables) using psql or pgadminIII after awhile (5 seconds or so) I get next error:

server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

in log file I get this:

LOG: server process (PID 1080) was terminated by signal 11
LOG: terminating any other active server processes
LOG: all server processes terminated; reinitializing
LOG: database system was interrupted at 2004-05-26 15:55:48 CEDT
LOG: checkpoint record is at 0/9DE7C8
LOG: redo record is at 0/9DE7C8; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 534; next OID: 17142
LOG: database system was not properly shut down; automatic recovery in progress
LOG: redo starts at 0/9DE808
LOG: startup process (PID 1396) was terminated by signal 11
LOG: aborting startup due to startup process failure

This error happens sooner if I use pgadminIII and later if I use psql. I have instaled ipc-daemon2. I tried also with cygserver configuring enough memory, nothing happened.
I suspect error is somehow connected with size of one transaction. If transaction is small everything is OK. if transaction is large, this error happens.

I get the same error when doing vacuum analyze or when inserting larger amount of staff into database inside one transaction.

I tried to set next parameters from min to max in postgresql.conf but nothing helps (I get the same error).
shared_buffers = 10000
sort_mem = 2048
vacuum_mem = 8192
fsync = true
wal_buffers = 32
effective_cash_size = 5000
default_statistics_target = 50
tcpip_socket = true
max_connections = 32
other parameters are as default (I tried also with all parameters as default but problem remains the same).

I also tested memory (RAM), tests came out OK.


One interesting thing more:
On Linux RH8.0, Postgres 7.4.2 everything works fine. Also tried with the same postgresql.conf file on Linux,postgres 7.4.2. works ok, on Windows under CygWin, last postgres 7.4.1 have this error.




if somebody have a clue, what is going on here, please help.

Janez Kostanjsek
software engineer


Nov 23 '05 #1
1 4618
I believe this is a known problem with the cygwin version of 7.4.1.
7.4.2 should be available soon now that cygwin 1.5.10 has been
released. I believe their was a post in the pgsql-cygwin mailing list
from Jason Tishler with the reasons for waiting for 1.5.10.

Hopefully Jason can release 7.4.2 soon.
On Wed, 2004-05-26 at 09:17, Janez Kostanjšek wrote:
Hello everyone,

this is my first post to postgres mailing list.

System that I use:
I am using Postgres under last CygWin published on public mirrors at
the moment.
OS system runing is Windows 2000 professional, 1024 or 256 or 512 MB
of RAM and 40Gb of disk.
Postmaster shows version 7.4.1

Problem:
When trying to create database using script file (containing only
create DB, USERS, TABLES, INDEXES inside tables) using psql or
pgadminIII after awhile (5 seconds or so) I get next error:

server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.

in log file I get this:

LOG: server process (PID 1080) was terminated by signal 11
LOG: terminating any other active server processes
LOG: all server processes terminated; reinitializing
LOG: database system was interrupted at 2004-05-26 15:55:48 CEDT
LOG: checkpoint record is at 0/9DE7C8
LOG: redo record is at 0/9DE7C8; undo record is at 0/0; shutdown TRUE
LOG: next transaction ID: 534; next OID: 17142
LOG: database system was not properly shut down; automatic recovery
in progress
LOG: redo starts at 0/9DE808
LOG: startup process (PID 1396) was terminated by signal 11
LOG: aborting startup due to startup process failure

This error happens sooner if I use pgadminIII and later if I use psql.
I have instaled ipc-daemon2. I tried also with cygserver configuring
enough memory, nothing happened.
I suspect error is somehow connected with size of one transaction. If
transaction is small everything is OK. if transaction is large, this
error happens.

I get the same error when doing vacuum analyze or when inserting
larger amount of staff into database inside one transaction.

I tried to set next parameters from min to max in postgresql.conf but
nothing helps (I get the same error).
shared_buffers = 10000
sort_mem = 2048
vacuum_mem = 8192
fsync = true
wal_buffers = 32
effective_cash_size = 5000
default_statistics_target = 50
tcpip_socket = true
max_connections = 32
other parameters are as default (I tried also with all parameters as
default but problem remains the same).

I also tested memory (RAM), tests came out OK.


One interesting thing more:
On Linux RH8.0, Postgres 7.4.2 everything works fine. Also tried with
the same postgresql.conf file on Linux,postgres 7.4.2. works ok, on
Windows under CygWin, last postgres 7.4.1 have this error.




if somebody have a clue, what is going on here, please help.

Janez Kostanjsek
software engineer




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

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Matthew Louden | last post by:
The following ASP code yields the following error, but actually the new record is stored in database. The same error happens when the application deletes a record, such as sqlStmt ="delete from...
0
by: James Watts | last post by:
Hi I am running 2003 server. A program that I use called Maximizer uses portals into addressbooks. The portals run on ASP.NET (I think... *.aspx) When I try to log on to the portals from a...
0
by: BGS | last post by:
I have a web site (www.on-the-matrix.com) that displays photos in a "slide show" format on ASPX pages that run in an inline frame on an ASP page (or in a separate pop-up window). The ASPX pages...
6
by: karim | last post by:
I have an asp.net page that stopped running properly giving the error below. The app uses a SQL Server 2000 on another server. Enterprise Manager and Query analyzer on the web server can connect to...
1
by: Fredrik L | last post by:
Hi, We have an application outside the firewall who talks to a webservice inside the firewall. 9 times of 10 this works, but sometimes we got the error "The underlying connection was closed: An...
5
by: Vijayakrishna Pondala | last post by:
Hi, We are using the following error randomly, when accessing a webservice method/servlet hosted on JBoss application server: The underlying connection was closed: An unexpected error occurred...
3
by: Doug Durrett | last post by:
I'm having an issue and wanted to pass it by everyone to see what you think. Here is my code. //Code Start searchs = new...
5
by: =?Utf-8?B?V2VsdVI=?= | last post by:
I have a web client application built on .Net Frameworks 2.0 that connects to a web service on IIS 6.0 via SSL and using X509 Client Certificates. At some locations (it works at others), I get the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.