[OpenSIPS-Users] Problem with mi_fifo replies
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Dec 10 09:22:10 CET 2009
Hi Brian,
Does opensipsctl through some error ? because I see opensips receives
the command (via command FIFO), but it is not able to reply back because
the reply fifo does not exists. The reply fifo is created by the
application that fires the request, the opensipsctl in this case. So,
either opensipsctl does not properly create the reply fifo, either it is
created with wrong permissions (like if you run opensipsctl as root, the
reply fifo will be created with root ownership and opensips, running as
osuser, may not have permissions to write into the reply fifo.
So, if there are no error, try to run opensipsctl as user osuser also.
Regards,
Bogdan
opensipslist at encambio.com wrote:
> Hello list,
>
> The platform is:
>
> Solaris 11 x86 (nv-b91)
> OpenSIPS 1.6.0 with TLS
>
> Some permissions and runtime info (see the FIFO):
>
> # ls -ld /pfx/var/opensips/*
> drwx------ 2 osuser osuser 45 Dec 9 00:03 /pfx/var/opensips/db
> prw-rw---- 1 osuser osuser 0 Dec 9 19:29 /pfx/var/opensips/opensips.fifo
> -rw-rw-r-- 1 root root 218362 Dec 9 19:30 /pfx/var/opensips/opensips.log
> -rw-r--r-- 1 osuser osuser 5 Dec 9 19:27 /pfx/var/opensips/opensips.pid
> drwx------ 2 osuser osuser 2 Dec 9 19:17 /pfx/var/opensips/tmp
>
> # ps -ef | grep opensips
> osuser 2034 2030 0 19:27:10 ? 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
> osuser 2039 2030 0 19:27:10 ? 0:00 /pfx/sbin/opensips -P /pfx/var/opensips/opensips.pid
> [... more lines like these two ...]
>
> PROBLEM
> -------
>
> When examining the location table using either opensipsctl(1) or
> osipsconsoe(1) the commands hang:
>
> $ opensipsctl ul show --brief
> [hang]
>
> In the log (debug=20) I see:
>
> Dec 09 20:03:57 name.host.tld <error> opensips[6280]: ERROR:mi_fifo:mi_open_reply_pipe: open error (/pfx/var/opensips/opensips_receiver_6293): No such file or directory
> Dec 09 20:03:57 name.host.tld <error> opensips[6280]: ERROR:mi_fifo:mi_fifo_server: cannot open reply pipe /pfx/var/opensips/opensips_receiver_6293
> Dec 09 20:03:57 name.host.tld <debug> opensips[6280]: DBG:mi_fifo:mi_fifo_server: entered consume
> Dec 09 20:03:57 name.host.tld <debug> opensips[6280]: DBG:mi_fifo:mi_fifo_server: **** done consume
>
> It seems that the ul_dump command is getting piped to the FIFO,
> but mi_fifo then tries to open another 'receiver' FIFO and cannot.
>
> CONFIG opensipsctlrc
> --------------------
>
> DBENGINE=DBTEXT
> DBHOST=localhost
> DBNAME=opensips
> DB_PATH=/pfx/var/opensips/db
> DBRWUSER=osuser
> DBRWPW=thishere1
> DBROUSER=osuser
> DBROPW=thishere2
> DBROOTUSER=root
> USERCOL="username"
>
> CTLENGINE=FIFO
> OSIPS_FIFO=/pfx/var/opensips/opensips.fifo
> MI_CONNECTOR=FIFO:/pfx/var/opensips/opensips.fifo
>
> CONFIG opensips.cfg
> -------------------
>
> loadmodule "mi_fifo.so"
>
> modparam("mi_fifo", "fifo_name", "/pfx/var/opensips/opensips.fifo")
> modparam("mi_fifo", "fifo_mode", 0660)
> modparam("mi_fifo", "fifo_user", "osuser")
> modparam("mi_fifo", "fifo_group", "osuser")
> modparam("mi_fifo", "reply_dir", "/pfx/var/opensips/")
>
> Has anyone seen similar problems or have an idea how to solve it?
>
> Thanks,
> Brian
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list