When using -u or -g cli params
``` root@sip:~ # kamailio -u kamailio -g kamailio loading modules under config path: /usr/local/lib/kamailio/modules/ Listening on udp: x.x.x.x:5060 udp: 127.0.0.1:5060 tcp: x.x.x.x:5060 tcp: 127.0.0.1:5060 Aliases: tcp: localhost.my.domain:5060 tcp: localhost:5060 udp: localhost.my.domain:5060 udp: localhost:5060
```
``` root@sip:~ # kamailio -u kamailio -g kamailio loading modules under config path: /usr/local/lib/kamailio/modules/ ERROR: bad config file (2 errors) Segmentation fault (core dumped) ```
``` (gdb) bt #0 0x0000000805cb3200 in ?? () #1 0x000000000078fb0d in destroy_tls () #2 0x0000000000512fd1 in cleanup () #3 0x000000000051a91a in handle_sigs () #4 0x0000000000532441 in main () (gdb) ```
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374
The main problem is that you have errors in kamailio.cfg, so kamailio is not starting at all. Fix the errors in config, do:
``` kamailio -c ```
to get the lines where the errors are.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149643639
Going to close it here. If you have troubles figuring out what is the error in kamailio.cfg, then email users mailing list sr-users@lists.sip-router.org
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149673367
Closed #374.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#event-440727573
the config is the default shipped with kamailio, nothing touched just added WITH_TLS
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149801466
Have you run with kamailio -c to see where the errors are?
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149803633
``` root@sip:~ # kamailio -c loading modules under config path: /usr/local/lib/kamailio/modules/ 0(2918) INFO: tls [tls_init.c:401]: init_tls_compression(): tls: init_tls: disabling compression... 0(2918) INFO: <core> [sctp_core.c:75]: sctp_core_check_support(): SCTP API not enabled - if you want to use it, load sctp module 0(2918) WARNING: <core> [socket_info.c:1371]: fix_hostname(): could not rev. resolve x.x.x.x 0(2918) WARNING: <core> [socket_info.c:1371]: fix_hostname(): could not rev. resolve x.x.x.x 0(2918) WARNING: <core> [socket_info.c:1371]: fix_hostname(): could not rev. resolve x.x.x.x Listening on udp: x.x.x.x:5060 udp: 127.0.0.1:5060 tcp: x.x.x.x:5060 tcp: 127.0.0.1:5060 tls: x.x.x.x:5061 tls: 127.0.0.1:5061 Aliases: tls: localhost.my.domain:5061 tls: localhost:5061 tcp: localhost.my.domain:5060 tcp: localhost:5060 udp: localhost.my.domain:5060 udp: localhost:5060
config file ok, exiting... ```
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149805185
``` root@sip:~ # kamailio -c -u kamailio -g kamailio loading modules under config path: /usr/local/lib/kamailio/modules/ 0(2933) INFO: tls [tls_init.c:401]: init_tls_compression(): tls: init_tls: disabling compression... 0(2933) ERROR: <core> [sr_module.c:615]: load_module(): Undefined symbol "_nss_cache_cycle_prevention_function" 0(2933) : <core> [cfg.y:3432]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 271, column 12-19: failed to load module 0(2933) ERROR: <core> [modparam.c:150]: set_mod_param_regex(): No module matching <tls> found 0(2933) : <core> [cfg.y:3435]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 427, column 60: Can't set module parameter ERROR: bad config file (2 errors) Segmentation fault (core dumped) ```
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149805410
When using the uid and gid numbers instead of the names kamailio starts ``` kamailio 2999 0.0 0.6 163608 24780 - I 9:51AM 0:00.08 kamailio -u 986 -g 986 ```
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/374#issuecomment-149811650