Hello,
based on the prompt in the snippets, kamailio is executed as a common
user. Probably that user has no sufficient rights to write in the
/var/run folder to create fifo/socket files. Either run kamailio as a
root or grant appropriate privileges to the user starting kamailio.
Cheers,
Daniel
On 15.12.23 12:23, Sergey Safarov via sr-dev wrote:
Which dist, OS?
Please start with "strace kamailio -E -e" this will show to which file
kamaili try access.
On Thu, Dec 14, 2023 at 10:28 PM nguyenquocchinhdev--- via sr-dev
<sr-dev(a)lists.kamailio.org> wrote:
Hi guys,
When I ran below the command, an error appeared, how do I fix this?
/etc/kamailio$ kamailio -E -e
loading modules under config path:
/usr/lib/x86_64-linux-gnu/kamailio/modules/
Listening on
udp: 192.168.0.158:5090 <http://192.168.0.158:5090>
tcp: 192.168.0.158:5090 <http://192.168.0.158:5090>
tcp: 192.168.0.158:10080 <http://192.168.0.158:10080>
sctp: 192.168.0.158:5090 <http://192.168.0.158:5090>
Aliases:
sctp: vizoai1:5090
tcp: vizoai1:10080
tcp: vizoai1:5090
udp: vizoai1:5090
0(564421) INFO: <core> [core/tcp_main.c:4999]: init_tcp(): using
epoll_lt as the io watch method (auto detected)
0(564423) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable
to import bind_ob - maybe module is not loaded
0(564423) INFO: rr [rr_mod.c:188]: mod_init(): outbound module
not available
0(564423) ERROR: ctl [init_socks.c:114]: init_unix_sock(): ERROR:
init_unix_sock: bind: Permission denied [13]
0(564423) ERROR: ctl [ctl.c:291]: mod_init(): ERROR: ctl:
mod_init: init ctrl. sockets failed
0(564423) ERROR: <core> [core/sr_module.c:945]: init_mod(): Error
while initializing module ctl
(/usr/lib/x86_64-linux-gnu/kamailio/modules/ctl.so)
ERROR: error while initializing modules
0(564423) ERROR: jsonrpcs [jsonrpcs_fifo.c:599]:
jsonrpc_fifo_destroy(): FIFO stat failed: Permission denied
=============================================
grep loadmodule modules.cfg
loadmodule "db_mysql.so"
loadmodule "textopsx.so"
loadmodule "websocket.so"
loadmodule "xhttp.so"
loadmodule "kex.so"
loadmodule "corex.so"
loadmodule "tm.so"
loadmodule "tmx.so"
loadmodule "sl.so"
loadmodule "rr.so"
loadmodule "pv.so"
loadmodule "maxfwd.so"
loadmodule "usrloc.so"
loadmodule "registrar.so"
loadmodule "textops.so"
loadmodule "siputils.so"
loadmodule "xlog.so"
loadmodule "sanity.so"
loadmodule "ctl.so"
loadmodule "cfg_rpc.so"
loadmodule "sdpops.so"
loadmodule "jsonrpcs.so"
loadmodule "auth.so"
loadmodule "auth_db.so"
loadmodule "nathelper.so"
loadmodule "rtpengine.so"
loadmodule "tls.so"
loadmodule "debugger.so"
loadmodule "sctp.so"
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-leave(a)lists.kamailio.org
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-leave(a)lists.kamailio.org
--
Daniel-Constantin Mierla (@
asipto.com)
twitter.com/miconda --
linkedin.com/in/miconda
Kamailio Consultancy and Development Services
Kamailio Advanced Training --
asipto.com