[OpenSIPS-Users] OpenSIPS-CP: mi_fifo and "cannot open write fifo"

Joe Micciche jmiccich at redhat.com
Fri Jun 4 17:03:18 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Running OpenSIPS 1.6.2 with OpenSIPS-CP 4.0 (downloaded Monday) on RHEL
5.5, Apache/2.2.3.

In CP, I cannot apply any changes to server, each time it errors out
with "sorry - cannot open write fifo".

I am running opensips as root. modules/mi_fifo.so is loading properly
when opensips is started.

ls -l /tmp:
prw-rw-rw- 1 root root    0 Jun  4 07:58 opensips_fifo

boxes.global.inc.php has:

$box_id=0;
// mi host:port pair || fifo_file
//$boxes[$box_id]['mi']['conn']="127.0.0.1:8080";
$boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";

/etc/opensips/opensips.cfg has:
# ----- mi_fifo params -----
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0666)

I've also tried various iterations of users and groups for mi_fifo, all
with the same results. This includes setting owner:group to apache. I
also tried to start it with 0777, same result.

Sample from httpd/error_log:
[Fri Jun 04 07:46:37 2010] [error] [client 10.11.226.42] PHP Warning:
fopen(/tmp/opensips_fifo) [<a href='function.fopen'>function.fopen</a>]:
failed to open stream: Permission denied in
/opt/opensips_cp4/web/common/mi_comm.php on line 91, referer:
http://10.5.10.21/opensips_cp4/tools/system/drouting/gateways.php

I've been googling and reading for a day and a half now and can't
resolve this. Anyone have other suggestions on where to look?

- -- 
==================================================================
Joe Micciche				jmiccich at redhat.com
Red Hat, Inc.				http://www.redhat.com
Senior Communications Engineer		X(81) 44554
+1.919.754.4554				Key: 65F90FE1
==================================================================

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkwJFbYACgkQJHjEUGX5D+FPzwCdFvZT0/gdIA8FEG9ataWnrLEj
EgsAn3S55mVsiU8omgUHyCIXW44BTpTE
=B7aS
-----END PGP SIGNATURE-----



More information about the Users mailing list