Hi all,
I install a new cloud foundry from source code last week. and I found
the postgresql_node can not work well.
Then I check the log and found that the postgresql_node can not
connect to localhost 5433. But there is no prints when I use "netstat -
an | grep 5433", so does it means the postgresql service fail to
start?
and the following is my postgresql_node configuration:
-------------------------------------------------------------------------------
capacity: 50
plan: free
local_db: sqlite3:/var/vcap/services/postgresql/postgresql_node.db
ip_route: 127.0.0.1
base_dir: /var/vcap/services/postgresql/
dump_bin: pg_dump
restore_bin: pg_resotre
mbus: nats://nats:[email protected]:4222/
index: 0
pid: /var/vcap/sys/run/postgresql_node.pid
node_id: postgresql_node_0
max_db_size: 20
max_long_query: 3
max_long_tx: 30
max_db_conns: 20
db_size_overhead: 5.4
migration_nfs: /mnt/migration
postgresql:
host: localhost
port: 5433
user: root
pass: changeme
database: pg_service
logging:
level: debug
-------------------------------------------------------------------------------
And the following is the log:
=================== LOG ======================
/home/dragon/cloudfoundry/.deployments/devbox/deploy/rubies/ruby-1.9.2-
p180/lib/ruby/gems/1.9.1/gems/uuid-2.3.5/lib/uuid.rb:72: warning:
already initialized constant VERSION
[2012-06-19 02:42:39.999342] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- AuaaS-Node: Initializing
[2012-06-19 02:42:40.172745] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 DEBUG -- AuaaS-Node: Connected to node mbus
DataObjects::URI.new with arguments is deprecated, use a Hash of URI
components (/home/dragon/cloudfoundry/.deployments/devbox/deploy/
rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/dm-do-adapter-1.1.0/
lib/dm-do-adapter/adapter.rb:231:in `new')
[2012-06-19 02:42:40.362114] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- PostgreSQL connect: localhost, 5433, root,
changeme, pg_service (fail_with_nil: false)
[2012-06-19 02:42:40.362668] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 ERROR -- PostgreSQL connection attempt failed: localhost
5433 pg_service root changeme
[2012-06-19 02:42:42.362939] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- PostgreSQL connect: localhost, 5433, root,
changeme, pg_service (fail_with_nil: false)
[2012-06-19 02:42:42.363444] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 ERROR -- PostgreSQL connection attempt failed: localhost
5433 pg_service root changeme
[2012-06-19 02:42:44.363716] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- PostgreSQL connect: localhost, 5433, root,
changeme, pg_service (fail_with_nil: false)
[2012-06-19 02:42:44.364400] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 ERROR -- PostgreSQL connection attempt failed: localhost
5433 pg_service root changeme
[2012-06-19 02:42:46.364706] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- PostgreSQL connect: localhost, 5433, root,
changeme, pg_service (fail_with_nil: false)
[2012-06-19 02:42:46.365100] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 ERROR -- PostgreSQL connection attempt failed: localhost
5433 pg_service root changeme
[2012-06-19 02:42:48.365321] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- PostgreSQL connect: localhost, 5433, root,
changeme, pg_service (fail_with_nil: false)
[2012-06-19 02:42:48.365871] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 ERROR -- PostgreSQL connection attempt failed: localhost
5433 pg_service root changeme
[2012-06-19 02:42:50.366111] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 FATAL -- PostgreSQL connection unrecoverable
[2012-06-19 02:42:50.366267] postgresql_node_0 - pid=13718 tid=ce0b
fid=b6b2 INFO -- AuaaS-Node: Shutting down
===================================
How to fix it and let the postgresql_node work as well?
Thanks
Brick.