SIP Router Project
FS#178 - Kamailio 3.2.0 postgresql 9.1.1 connection problems.
Attached to Project:
sip-router
Opened by Nick Altmann (nikbyte) - Monday, 14 November 2011, 06:43 GMT
Last edited by Daniel-Constantin Mierla (miconda) - Thursday, 24 November 2011, 11:38 GMT
Opened by Nick Altmann (nikbyte) - Monday, 14 November 2011, 06:43 GMT
Last edited by Daniel-Constantin Mierla (miconda) - Thursday, 24 November 2011, 11:38 GMT
|
DetailsKamailio 3.2.0, linux x86_64.
After upgrading postgresql from 9.0 to 9.1.1 I get: Nov 14 10:30:59 ERROR: db_postgres [km_pg_con.c:82]: connection pointer is NULL in log. In postgresql log I see that about a half connections was made ok, but then this error. If I set debug=4 in config, connections are made okay and kamailio starts. I think because connections was made slowly than without debug options. |
This task depends upon
Closed by Daniel-Constantin Mierla (miconda)
Thursday, 24 November 2011, 11:38 GMT
Reason for closing: Fixed
Additional comments about closing: Closing at the fix was already in the branch 3.2 but not an official released version number. It will be in 3.2.1
Thursday, 24 November 2011, 11:38 GMT
Reason for closing: Fixed
Additional comments about closing: Closing at the fix was already in the branch 3.2 but not an official released version number. It will be in 3.2.1
Nov 14 14:56:04 ERROR: db_postgres [km_pg_con.c:82]: connection pointer is NULL
Nov 14 14:56:04 ERROR: db_postgres [km_pg_con.c:95]: cleaning up 0x7f4dca93bc00=pkg_free()
Nov 14 14:56:04 ERROR: <core> [db.c:302]: could not add connection to the pool
Nov 14 14:56:04 ERROR: usrloc [ul_mod.c:360]: child(0): failed to connect to database
Nov 14 14:56:04 ERROR: <core> [sr_module.c:882]: init_mod_child(): Error while initializing module usrloc (//lib64/kamailio/modules_k/usrloc.so)
When I disable location module, kamailio works with db without problems.
What is your linux distribution? Do you have SELinux enabled or a firewall that does not allow fast opening of new connections? Is potgress on same server or remote? Have you tried with mysql and if yes, did you get same behavior?
0(435) ERROR: db_postgres [km_pg_con.c:95]: cleaning up 0x7fb7c8970e10=pkg_free()
0(435) ERROR: <core> [db.c:302]: could not add connection to the pool 0(435) ERROR: usrloc [ul_mod.c:360]: child(0): failed to connect to database
0(435) ERROR: <core> [sr_module.c:882]: init_mod_child(): Error while initializing module usrloc (//lib64/kamailio/modules_k/usrloc.so)
0(435) ERROR: <core> [main.c:1388]: ERROR: main_dontfork: init_child(PROC_MAIN) -- exiting
http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commit;h=b3b34accb2f65ccef6045b083879166cb1a1e060
fixes the problem.
* http://www.kamailio.org/wiki/install/3.2.x/git
The next release in 3.2 series (i.e., version 3.2.1) will have it included.
Btw, have you tried the suggestion of loading the postgres module first?