0

I gotta problem with connecting Jira 6 to Pgpool-II which is responsible for load balancing and replication in Postgresql bases(2 instances).

enter image description here

Pgpool is started on port 9999, I just want to connect to it in this (Jira)installation step but Jira tolds that connection attempt failed....

asked Aug 11, 2014 at 8:09
6
  • What's the ...? Connection attempt failed because ... [error detail here please] Commented Aug 11, 2014 at 9:18
  • "Error connecting to database" Pgpool configuration of nodes: backend_hostname0 = 'localhost' backend_port0 = 5432 backend_weight0 = 1 backend_hostname1 = 'localhost' backend_port1 = 5433 backend_weight1 = 1 Commented Aug 11, 2014 at 9:27
  • Wow. That's a spectacularly unhelpful error. I'd check the container/appserver logs for the real stack trace. Commented Aug 11, 2014 at 9:28
  • Situation: there are two postgresql servers on ports 5433, 5434. Pgpool is started on port 9999, bases has no passwords set so access is easy(for testing) Commented Aug 11, 2014 at 9:48
  • Well ... check the pgpool logs and your servlet container logs. I'd also try psql 'host=localhost port=9999 dbname=postgres username=postgres password=whatever'. Commented Aug 11, 2014 at 9:49

2 Answers 2

1

Well ... check the pgpool logs and your servlet container logs.

I'd also try psql 'host=localhost port=9999 dbname=postgres username=postgres password=whatever'

Most likely the PgPool configuration has issues. If it works from psql, you'd need to check out the server logs to see what's up.

answered Aug 11, 2014 at 11:15
1
  • ok now I can login from console level, but during Jira installation process still cannot proceed, anyway I know where to look for the problem Thanks :) Commented Aug 11, 2014 at 12:28
1

Jira and Confluence have some issues starting up with PGPool -> PostgreSQL IF you have read-only query load balancing turned on in PGPool. Turn it off, then see if you can get Jira to successfully connect several times. Then, turn it back on and catch the errors...either Hibernate, C3P0, and/or PGPool get confused and some queries try to get bounced off the standby that should NOT be routed to the standby. Grab those errors and open a PGPool bug report with them...PGPool should handle Jira and Confluence just fine with load balancing turned on, but it does not (at least not in the versions I've tried).

OR, you could turn load balancing off, startup Jira, then turn load balancing back on. It only impacts Jira on startup, not during normal operation. That'll at least get you going. But definitely report whatever errors you see so the PGPool guys can fix it!

Paul White
95.4k30 gold badges440 silver badges689 bronze badges
answered Jul 18, 2017 at 2:20

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.