[OpenSIPS-Users] Problem with mi_fifo replies

opensipslist at encambio.com opensipslist at encambio.com
Wed Dec 9 20:20:17 CET 2009


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



More information about the Users mailing list