[Pgpool-general] Problems running pgpool, no access to db
Axel.Weber at rtl.de
Axel.Weber at rtl.de
Tue Dec 12 15:42:44 UTC 2006
Hi,
I have setup pgpool-II from CVS on a ubuntu edgy system. When I try to
connect to the db the connection will be closed imediately.
The client says:
psql: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
This is the log. I can not find the reason why. At the end is the pgpool
configuration.
Dec 12 18:31:36 smartdev postgres[5996]: [78-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
received password packet
Dec 12 18:31:36 smartdev postgres[5996]: [78-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
recv_password_packet, auth.c:
Dec 12 18:31:36 smartdev postgres[5996]: [79-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
postmaster child[5996]: s
Dec 12 18:31:36 smartdev postgres[5996]: [79-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
BackendRun, postmaster.c:2847
Dec 12 18:31:36 smartdev postgres[5996]: [80-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
^Ipostgres
Dec 12 18:31:36 smartdev postgres[5996]: [80-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
BackendRun, postmaster.c:2850
Dec 12 18:31:36 smartdev postgres[5996]: [81-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
^I-v196608
Dec 12 18:31:36 smartdev postgres[5996]: [81-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
BackendRun, postmaster.c:2850
Dec 12 18:31:36 smartdev postgres[5996]: [82-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000: ^I-p
Dec 12 18:31:36 smartdev postgres[5996]: [82-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
BackendRun, postmaster.c:2850
Dec 12 18:31:36 smartdev postgres[5996]: [83-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
^ISmartMaz
Dec 12 18:31:36 smartdev postgres[5996]: [83-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
BackendRun, postmaster.c:2850
Dec 12 18:31:36 smartdev postgres[5996]: [84-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000: )
Dec 12 18:31:36 smartdev postgres[5996]: [84-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
BackendRun, postmaster.c:2852
Dec 12 18:31:36 smartdev postgres[5996]: [85-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
InitPostgres
Dec 12 18:31:36 smartdev postgres[5996]: [85-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
PostgresMain, postgres.c:2959
Dec 12 18:31:36 smartdev postgres[5996]: [86-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
StartTransaction
Dec 12 18:31:36 smartdev postgres[5996]: [86-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
ShowTransactionState, xact.c:
Dec 12 18:31:36 smartdev postgres[5996]: [87-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000: name:
unnamed; blockState
Dec 12 18:31:36 smartdev postgres[5996]: [87-2] xid/subid/cid:
96130/1/0, nestlvl: 1, children: <>
Dec 12 18:31:36 smartdev postgres[5996]: [87-3]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
ShowTransactionStateRec, xact
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5824:
trying clear text password authentication
Dec 12 18:31:36 smartdev postgres[5996]: [88-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOG: 08006: could
not send data to clie
Dec 12 18:31:36 smartdev postgres[5996]: [88-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
internal_flush, pqcomm.c:1057
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5817:
reap_handler called
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5817:
reap_handler: call wait3
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5817:
child 5824 exits with status 11 by signal 11
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5997: I
am 5997
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5817:
fork a new child pid 5997
Dec 12 18:31:36 smartdev pgpool: 2006-12-12 18:31:36 DEBUG: pid 5817:
reap_handler: normally exited
Dec 12 18:31:36 smartdev postgres[5996]: [89-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
CommitTransaction
Dec 12 18:31:36 smartdev postgres[5996]: [89-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
ShowTransactionState, xact.c:
Dec 12 18:31:36 smartdev postgres[5996]: [90-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000: name:
unnamed; blockState
Dec 12 18:31:36 smartdev postgres[5996]: [90-2] xid/subid/cid:
96130/1/0, nestlvl: 1, children: <>
Dec 12 18:31:36 smartdev postgres[5996]: [90-3]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
ShowTransactionStateRec, xact
Dec 12 18:31:36 smartdev postgres[5996]: [91-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOG: 08P01:
unexpected EOF on client co
Dec 12 18:31:36 smartdev postgres[5996]: [91-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
SocketBackend, postgres.c:295
Dec 12 18:31:36 smartdev postgres[5996]: [92-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
proc_exit(0)
Dec 12 18:31:36 smartdev postgres[5996]: [92-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION: proc_exit,
ipc.c:95
Dec 12 18:31:36 smartdev postgres[5996]: [93-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
shmem_exit(0)
Dec 12 18:31:36 smartdev postgres[5996]: [93-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION:
shmem_exit, ipc.c:126
Dec 12 18:31:36 smartdev postgres[5996]: [94-1]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>DEBUG: 00000:
exit(0)
Dec 12 18:31:36 smartdev postgres[5996]: [94-2]
<SmartMaz172.25.2.83(55659)2006-12-12 18:31:36 CET>LOCATION: proc_exit,
ipc.c:113
Dec 12 18:31:36 smartdev postgres[5949]: [79-1] <2006-12-12 18:31:36
CET>DEBUG: 00000: reaping dead processes
Dec 12 18:31:36 smartdev postgres[5949]: [79-2] <2006-12-12 18:31:36
CET>LOCATION: reaper, postmaster.c:2021
Dec 12 18:31:36 smartdev postgres[5949]: [80-1] <2006-12-12 18:31:36
CET>DEBUG: 00000: server process (PID 5996) exited with exit code 0
Dec 12 18:31:36 smartdev postgres[5949]: [80-2] <2006-12-12 18:31:36
CET>LOCATION: LogChildExit, postmaster.c:2419
#
# pgpool configuration file sample
# $Header: /cvsroot/pgpool/pgpool-II/pgpool.conf.sample,v 1.2 2006/11/29
21:54:26 devrim Exp $
# Host name or IP address to listen on: '*' for all, '' for no TCP/IP
# connections
listen_addresses = '*'
# Port number for pgpool
port = 9999
# Port number for pgpool communication manager
pcp_port = 9898
# Unix domain socket path. (The Debian package defaults to
# /var/run/postgresql.)
socket_dir = '/var/run/postgresql'
# Unix domain socket path for pgpool communication manager.
# (Debian package defaults to /var/run/postgresql)
pcp_socket_dir = '/tmp'
# Unix domain socket path for the backend. Debian package defaults to
/var/run/postgresql!
backend_socket_dir = '/tmp'
# pgpool communication manager timeout. 0 means no timeout, but strongly
not recommended!
pcp_timeout = 10
# number of pre-forked child process
num_init_children = 8
# Number of connection pools allowed for a child process
max_pool = 8
# If idle for this many seconds, child exits. 0 means no timeout.
child_life_time = 0
# If idle for this many seconds, connection to PostgreSQL closes.
# 0 means no timeout.
connection_life_time = 0
# If child_max_connections connections were received, child exits.
# 0 means no exit.
child_max_connections = 0
# Logging directory
logdir = '/tmp'
# Replication mode
replication_mode = true
# Set this to true if you want to avoid deadlock situations when
# replication is enabled. There will, however, be a noticable
performance
# degradation. A workaround is to set this to false and insert a
/*STRICT*/
# comment at the beginning of the SQL command.
replication_strict = true
# When replication_strict is set to false, there will be a chance for
# deadlocks. Set this to nonzero (in milliseconds) to detect this
# situation and resolve the deadlock by aborting current session.
replication_timeout = 5000
# Load balancing mode, i.e., all SELECTs except in a transaction block
# are load balanced. This is ignored if replication_mode is false.
load_balance_mode = true
# if there's a data mismatch between master and secondary
# start degeneration to stop replication mode
replication_stop_on_mismatch = true
# Semicolon separated list of queries to be issued at the end of a
session
reset_query_list = 'ABORT; RESET ALL; SET SESSION AUTHORIZATION DEFAULT'
# If true print timestamp on each log line.
print_timestamp = true
# If true, operate in master/slave mode.
master_slave_mode = false
# If true, cache connection pool.
connection_cache = true
# Health check timeout. 0 means no timeout.
health_check_timeout = 60
# Health check period. 0 means no health check.
health_check_period = 660
# Health check user
health_check_user = 'postgres'
# If true, automatically lock table with INSERT statements to keep
SERIAL
# data consistency. An /*INSERT LOCK*/ comment has the same effect. A
# /NO INSERT LOCK*/ comment disables the effect.
insert_lock = false
# If true, ignore leading white spaces of each query while pgpool judges
# whether the query is a SELECT so that it can be load balanced. This
# is useful for certain APIs such as DBI/DBD which is known to adding an
# extra leading white space.
ignore_leading_white_space = false
# If true, print all statements to the log. Like the log_statement
option
# to PostgreSQL, this allows for observing queries without engaging in
full
# debugging.
log_statement = true
# if non 0, run in parallel query mode
parallel_mode = false
# if non 0, use query cache
enable_query_cache = false
#set pgpool2 hostname
pgpool2_hostname = ''
# system DB info
system_db_hostname = 'localhost'
system_db_port = 5432
system_db_dbname = 'pgpool'
system_db_schema = 'pgpool_catalog'
system_db_user = 'pgpool'
system_db_password = ''
# backend_hostname, backend_port, backend_weight
# here are examples
backend_hostname0 = 'smartdev'
backend_port0 = 5432
backend_weight0 = 9
backend_hostname1 = 'cleverdev'
backend_port1 = 5432
backend_weight1 = 1
Axel Weber * (+49) 221 456 3918
Technical Engineering * (+49) 221 456 3799
Email: axel.weber at rtl.de
AIM cabowabortl
RTL Television GmbH
Aachener Str. 1036
50858 Koeln/Germany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/pgpool-general/attachments/20061212/8713d11f/attachment-0001.html
More information about the Pgpool-general
mailing list