Hello,I have one postgres server at one server and Kamailio at another server.So I believe I did true configuration to the Kamailio. Actually I made some tests and I could create user and authenticated etc. But I have a problem. When I tried to present "kamdbctl create" Kamailio asks password 50 times (almost, much or less idk certainly).After 50 times Db created successfully and works. And it looks like this:
root@bs-kamailio:/home/bs-kamailio# kamdbctl create INFO: creating database kamailio ... Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: Password for user postgres: So how can I solve this situation? I want Kamailio to asks password one time and handle it's job. Regards.
Hello,
I haven't used the postgres in a long while, but I think it should ask only once.
Can you try by setting the password inside the kamctlrc file and see if works straight away?
Cheers, Daniel
On 22/03/16 11:52, Barış Şekerciler wrote:
Hello, I have one postgres server at one server and Kamailio at another server. So I believe I did true configuration to the Kamailio. Actually I made some tests and I could create user and authenticated etc.
But I have a problem. When I tried to present "kamdbctl create" Kamailio asks password 50 times (almost, much or less idk certainly). After 50 times Db created successfully and works.
And it looks like this:
root@bs-kamailio:/home/bs-kamailio# kamdbctl create
INFO: creating database kamailio ...
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
Password for user postgres:
So how can I solve this situation? I want Kamailio to asks password one time and handle it's job.
Regards.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
"BŞ" == Barış Şekerciler baris.sekerciler@outlook.com writes:
BŞ> Hello,I have one postgres server at one server and Kamailio at BŞ> another server.So I believe I did true configuration to the BŞ> Kamailio. Actually I made some tests and I could create user and BŞ> authenticated etc. But I have a problem. When I tried to present BŞ> "kamdbctl create" Kamailio asks password 50 times (almost, much or BŞ> less idk certainly).After 50 times Db created successfully and BŞ> works. And it looks like this:
I usually end up switching the pg config to trust when creating the db locally.
You can also use a pgpass file (cf https://wiki.postgresql.org/wiki/Pgpass).
or export the env PGPASSWORD with the password. Ie, try:
:; env PGPASSWORD=.... kamdbctl create
replacing .... with the password.
-JimC