<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    The question would be more specific to the error message printed
    from postgres client library:<br>
    <br>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    FATAL:  no pg_hba.conf entry for
    host "129.240.1.1", user "foo_test_user", database "
    foo_test", SSL off<br>
    <br>
    Is it something that is documented somewhere or maybe some web
    search can indicate the reasons why it happens?<br>
    <br>
    Can you try loading tls module before db_postgres?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 16/12/14 10:00, Øyvind Kolbu wrote:<br>
    </div>
    <blockquote cite="mid:548FF4C8.1080807@usit.uio.no" type="cite">This
      is the last lines before the SYSCALL error:
      <br>
      /usr/sbin/kamailio[30073]: DEBUG: db_postgres [km_pg_con.c:78]:
      db_postgres_new_connection(): PQsetdbLogin(0xbfe360)
      <br>
      /usr/sbin/kamailio[30071]: DEBUG: <core>
      [mem/q_malloc.c:369]: qm_malloc(): qm_malloc(0x7f0e07395000, 100)
      called from tls: tls_init.c: ser_malloc(271)
      <br>
      <br>
      These are all the db_postgres lines from the startup until crash:
      <br>
      <br>
      Dec 16 09:51:11 fooserver1 kamailio[30067]: DEBUG: <core>
      [cfg.y:1635]: yyparse(): loading module db_postgres.so
      <br>
      Dec 16 09:51:11 fooserver1 kamailio[30067]: DEBUG: <core>
      [sr_module.c:591]: load_module(): load_module: trying to load
      </usr/lib64/kamailio/modules/db_postgres.so>
      <br>
      Dec 16 09:51:11 fooserver1 kamailio[30067]: DEBUG: <core>
      [cfg.lex:1703]: pp_define(): defining id: MOD_db_postgres
      <br>
      Dec 16 09:51:12 fooserver1 /usr/sbin/kamailio[30070]: DEBUG:
      <core> [sr_module.c:966]: init_mod(): DEBUG: init_mod:
      db_postgres
      <br>
      Dec 16 09:51:12 fooserver1 /usr/sbin/kamailio[30070]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e07395000, 80) called from db_postgres:
      ../../lock_alloc.h: lock_set_alloc(72)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30072]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30072]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30072]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30072]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30072]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218bd8=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30071]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30071]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30071]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30071]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30071]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218bd8=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30071]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30072]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30074]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30074]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30074]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30074]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30074]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218bd8=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30074]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218bd8=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30076]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30076]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30077]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30077]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30076]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30076]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30076]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218bd8=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30076]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30077]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30077]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30077]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218c78=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30077]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30078]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30075]: DEBUG:
      <core> [sr_module.c:701]: find_mod_export_record():
      find_export_record: found <db_bind_api> in module
      db_postgres [/usr/lib64/kamailio/modules/db_postgres.so]
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30075]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30078]: DEBUG:
      <core> [db.c:213]: db_bind_mod(): using db bind api for
      db_postgres
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30075]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30075]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30075]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218bd8=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30075]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30078]: DEBUG:
      db_postgres [km_pg_con.c:49]: db_postgres_new_connection(): db_id
      = 0x7f0e0d220a28
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30078]: DEBUG:
      <core> [mem/q_malloc.c:369]: qm_malloc():
      qm_malloc(0x7f0e0d1ce010, 80) called from db_postgres:
      km_pg_con.c: db_postgres_new_connection(56)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30078]: DEBUG:
      db_postgres [km_pg_con.c:62]: db_postgres_new_connection():
      0x7f0e0d218c78=pkg_malloc(80)
      <br>
      Dec 16 09:51:16 fooserver1 /usr/sbin/kamailio[30078]: DEBUG:
      db_postgres [km_pg_con.c:74]: db_postgres_new_connection():
      opening connection:
      <a class="moz-txt-link-abbreviated" href="mailto:postgres://xxxx:xxxx@fooserver2.uio.no/voip_test">postgres://xxxx:xxxx@fooserver2.uio.no/voip_test</a>
      <br>
      Dec 16 09:51:21 fooserver1 /usr/sbin/kamailio[30073]: DEBUG:
      db_postgres [km_pg_con.c:78]: db_postgres_new_connection():
      PQsetdbLogin(0xbfe360)
      <br>
      <br>
      So it looks like it manages to create a few postgres connections
      before it calls PQsetdbLogin and
      <br>
      then the next connection is rejected and Kamailio refuses to
      start.
      <br>
      <br>
      Øyvind
      <br>
      <br>
      On 15.12.2014 16:07, Daniel-Constantin Mierla wrote:
      <br>
      <blockquote type="cite">Hello,
        <br>
        <br>
        I see the error is:
        <br>
        <br>
        Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
        db_postgres
        <br>
        [km_pg_con.c:82]: db_postgres_new_connection(): SSL SYSCALL
        error:
        <br>
        Resource temporarily unavailable#012FATAL:  no pg_hba.conf entry
        for
        <br>
        host "129.240.1.1", user "foo_test_user", database "
        <br>
        foo_test", SSL off#012
        <br>
        <br>
        TLS module is initializing the libssl instance, because it needs
        to set
        <br>
        the shared memory manager for handling tls connections. It was
        working
        <br>
        fine so far.
        <br>
        <br>
        Can you get more from the above log message related to postgres?
        TLS
        <br>
        module initializes ok.
        <br>
        <br>
        Cheers,
        <br>
        Daniel
        <br>
        <br>
        On 15/12/14 14:03, Øyvind Kolbu wrote:
        <br>
        <blockquote type="cite">Hi,
          <br>
          <br>
          I'm trying to add tls to our services, but seem hindered by
          <br>
          "something". When enabling the tls
          <br>
          module it seems to turn off the SSL setting in postgresql, and
          since
          <br>
          we require SSL on our postgres servers
          <br>
          Kamailio can't connect and it fails to start.
          <br>
          <br>
          If I disable WITH_TLS it will start. If I comment out the
          sqlops
          <br>
          modparam it will also start.
          <br>
          <br>
          Kamailio on RHEL6, from ~4.1.6 git rev
          <br>
          2f690887b45dbc49a8038b1fa041d47cd9ae39ea.
          <br>
          <br>
          # kamailio -V
          <br>
          version: kamailio 4.1.6 (x86_64/linux)
          <br>
          flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
          <br>
          DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
          PKG_MALLOC,
          <br>
          DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
          USE_DNS_CACHE,
          <br>
          USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
          HAVE_RESOLV_RES
          <br>
          ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
          MAX_LISTEN 16,
          <br>
          MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
          <br>
          poll method support: poll, epoll_lt, epoll_et, sigio_rt,
          select.
          <br>
          id: unknown
          <br>
          compiled on 16:48:10 Sep 26 2014 with gcc 4.4.7
          <br>
          <br>
          Very simpel config file:
          <br>
          <br>
          debug=3
          <br>
          log_stderror=no
          <br>
          log_facility=LOG_LOCAL0
          <br>
          <br>
          fork=yes
          <br>
          children=2
          <br>
          <br>
          #!define TLSFILE "/kamailio/tls-fooserver1.cfg"
          <br>
          <br>
          port=5060
          <br>
          <br>
          #!define WITH_TLS
          <br>
          #!ifdef WITH_TLS
          <br>
          enable_tls=yes
          <br>
          #!endif
          <br>
          <br>
          include_file "/kamailio/databases.cfg"
          <br>
          <br>
          loadmodule "tm.so"              # Transaction (stateful)
          module
          <br>
          loadmodule "tmx.so"             # Extensions from Kamailio TM
          module
          <br>
          loadmodule "sl.so"              # Stateless replier module
          <br>
          loadmodule "rr.so"              # Record-Route and Route
          module
          <br>
          loadmodule "pv.so"              # Module holding
          Pseudo-Variables
          <br>
          loadmodule "sqlops.so"          # SQL operations
          <br>
          <br>
          loadmodule "db_postgres.so"     # POSTGRES-backend for
          database API
          <br>
          module
          <br>
          <br>
          #!ifdef WITH_TLS
          <br>
          loadmodule "tls.so"
          <br>
          #!endif
          <br>
          <br>
          modparam("sqlops","sqlcon",SQLOPS_DATA)
          <br>
          <br>
          #!ifdef WITH_TLS
          <br>
          modparam("tls", "config", TLSFILE)
          <br>
          #!endif
          <br>
          <br>
          route{
          <br>
               exit;
          <br>
          }
          <br>
          <br>
          SQLOPS_DATA is just a normal
          "data=>postgres://user:pass@server/db".
          <br>
          <br>
          TLSFILE contains:
          <br>
          [server:default]
          <br>
          method = TLSv1
          <br>
          verify_certificate = no
          <br>
          require_certificate = no
          <br>
          private_key = /ssl/key
          <br>
          certificate = /ssl/cert
          <br>
          ca_list = /ssl/terena_chain2.pem
          <br>
          <br>
          [client:default]
          <br>
          verify_certificate = no
          <br>
          require_certificate = no
          <br>
          <br>
           From messages on startup:
          <br>
          <br>
          Dec 15 13:50:19 fooserver1 kamailio[12115]: INFO: tls
          <br>
          [tls_init.c:385]: init_tls_compression(): tls: init_tls:
          disabling
          <br>
          compression...
          <br>
          Dec 15 13:50:19 fooserver1 kamailio[12115]: INFO: <core>
          <br>
          [tcp_main.c:4836]: init_tcp(): init_tcp: using epoll_lt as the
          io
          <br>
          watch method (auto detected)
          <br>
          Dec 15 13:50:19 fooserver1 kamailio[12118]: WARNING:
          <core>
          <br>
          [daemonize.c:352]: daemonize(): pid file contains old pid,
          replacing pid
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO: rr
          <br>
          [../outbound/api.h:54]: ob_load_api(): Failed to import
          bind_ob
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO: rr
          <br>
          [rr_mod.c:159]: mod_init(): outbound module not available
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_mod.c:346]: mod_init(): With ECDH-Support!
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_mod.c:349]: mod_init(): With Diffie Hellman
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_init.c:549]: init_tls_h(): tls: _init_tls_h:  compiled 
          with
          <br>
          openssl  version "OpenSSL 1.0.1e-fips 11 Feb 2013"
          (0x1000105f),
          <br>
          kerberos support: on, compression: on
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_init.c:557]: init_tls_h(): tls: init_tls_h: installed
          openssl
          <br>
          library version "OpenSSL 1.0.1e-fips 11 Feb 2013"
          (0x1000105f),
          <br>
          kerberos support: on,  zlib compression: on#012 compiler: gcc
          -fPIC -DO
          <br>
          PENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
          <br>
          -DHAVE_DLFCN_H -DKRB5_MIT -m64 -DL_ENDIAN -DTERMIO -Wall -O2
          -g -pipe
          <br>
          -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
          <br>
          --param=ssp-buffer-size=4 -m64 -mtune=generic
          -Wa,--noexecstack
          <br>
          -DPURIFY -DOPEN
          <br>
          SSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5
          <br>
          -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM
          -DMD5_ASM
          <br>
          -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: WARNING:
          tls
          <br>
          [tls_init.c:611]: init_tls_h(): tls: openssl bug #1491
          (crash/mem
          <br>
          leaks on low memory) workaround enabled (on low memory tls
          operations
          <br>
          will fail preemptively) with free memory thresholds 5242880
          and
          <br>
            2621440 bytes
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [cfg/cfg_ctx.c:613]: cfg_set_now(): INFO: cfg_set_now():
          <br>
          tls.low_mem_threshold1 has been changed to 5242880
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [cfg/cfg_ctx.c:613]: cfg_set_now(): INFO: cfg_set_now():
          <br>
          tls.low_mem_threshold2 has been changed to 2621440
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [udp_server.c:176]: probe_max_receive_buffer(): INFO:
          udp_init:
          <br>
          SO_RCVBUF is initially 124928
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [udp_server.c:227]: probe_max_receive_buffer(): INFO:
          udp_init:
          <br>
          SO_RCVBUF is finally 249856
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [udp_server.c:176]: probe_max_receive_buffer(): INFO:
          udp_init:
          <br>
          SO_RCVBUF is initially 124928
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [udp_server.c:227]: probe_max_receive_buffer(): INFO:
          udp_init:
          <br>
          SO_RCVBUF is finally 249856
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:275]: fill_missing(): TLSs<default>:
          tls_method=9
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:287]: fill_missing(): TLSs<default>:
          <br>
          certificate='/path/ssl/fooserver1.uio.no.crt'
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:294]: fill_missing(): TLSs<default>:
          <br>
          ca_list='/voip/packages/mgmt/ssl/terena_chain2.pem'
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:301]: fill_missing(): TLSs<default>:
          crl='(null)'
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:305]: fill_missing(): TLSs<default>:
          require_certificate=0
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:312]: fill_missing(): TLSs<default>:
          cipher_list='(null)'
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:319]: fill_missing(): TLSs<default>:
          <br>
          private_key='/path/ssl/fooserver1.uio.no.key'
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:323]: fill_missing(): TLSs<default>:
          verify_certificate=0
          <br>
          Dec 15 13:50:19 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:326]: fill_missing(): TLSs<default>:
          verify_depth=9
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:670]: set_verification(): TLSs<default>:
          No client
          <br>
          certificate required and no checks performed
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:275]: fill_missing(): TLSc<default>:
          tls_method=9
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:287]: fill_missing(): TLSc<default>:
          certificate='(null)'
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:294]: fill_missing(): TLSc<default>:
          ca_list='(null)'
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:301]: fill_missing(): TLSc<default>:
          crl='(null)'
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:305]: fill_missing(): TLSc<default>:
          require_certificate=0
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:312]: fill_missing(): TLSc<default>:
          cipher_list='(null)'
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:319]: fill_missing(): TLSc<default>:
          private_key='(null)'
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:323]: fill_missing(): TLSc<default>:
          verify_certificate=0
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:326]: fill_missing(): TLSc<default>:
          verify_depth=9
          <br>
          Dec 15 13:50:23 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          tls
          <br>
          [tls_domain.c:673]: set_verification(): TLSc<default>:
          Server MAY
          <br>
          present invalid certificate
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          <br>
          db_postgres [km_pg_con.c:82]: db_postgres_new_connection():
          SSL
          <br>
          SYSCALL error: Resource temporarily unavailable#012FATAL:  no
          <br>
          pg_hba.conf entry for host "129.240.1.1", user
          "foo_test_user",
          <br>
          database "
          <br>
          foo_test", SSL off#012
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          <br>
          db_postgres [km_pg_con.c:95]: db_postgres_new_connection():
          cleaning
          <br>
          up 0x7fce98be0c78=pkg_free()
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          <core>
          <br>
          [db.c:322]: db_do_init2(): could not add connection to the
          pool
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          sqlops
          <br>
          [sql_api.c:166]: sql_connect(): failed to connect to the
          database [data]
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          <core>
          <br>
          [sr_module.c:927]: init_mod_child(): init_mod_child(): Error
          while
          <br>
          initializing module sqlops
          (/usr/lib64/kamailio/modules/sqlops.so)
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          <core>
          <br>
          [pt.c:490]: fork_tcp_process(): ERROR: fork_tcp_process():
          init_child
          <br>
          failed for process 7, pid 12125, "tcp receiver (generic)
          child=0"
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12125]: ERROR:
          <core>
          <br>
          [tcp_main.c:4962]: tcp_init_children(): ERROR: tcp_main: fork
          failed:
          <br>
          Success
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12118]: ALERT:
          <core>
          <br>
          [main.c:774]: handle_sigs(): child process 12125 exited
          normally,
          <br>
          status=255
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12118]: INFO:
          <core>
          <br>
          [main.c:792]: handle_sigs(): INFO: terminating due to SIGCHLD
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12126]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12124]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12123]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12122]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12121]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12120]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          Dec 15 13:50:26 fooserver1 /usr/sbin/kamailio[12127]: INFO:
          <core>
          <br>
          [main.c:843]: sig_usr(): INFO: signal 15 received
          <br>
          <br>
          Any ideas?
          <br>
          <br>
          Best regards,
          <br>
          Øyvind
          <br>
          <br>
          _______________________________________________
          <br>
          SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
          mailing list
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
          <br>
          <a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
          <br>
        </blockquote>
      </blockquote>
      <br>
      <br>
      _______________________________________________
      <br>
      SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
      list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>