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

Joe Micciche jmiccich at redhat.com
Fri Jun 4 17:41:27 CEST 2010


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

On 06/04/2010 11:33 AM, Bogdan-Andrei Iancu wrote:
> Hi Joe,
> 
> What user is the apache server running as ? as simple test, you can "su"
> as that user and try to open for write the fifo file.
> 
> On a first look, everything seams to be ok....

Thanks Bogdan. httpd is running as user apache. As I mentioned, I set
/tmp/opensips_fifo owner:group to apache and 0660 and restarted opensips
and still no luck.

I cannot su apache, this user has nologin.

joe

> 
> Regards,
> Bogdan
> 
> Joe Micciche wrote:
> 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
> ==================================================================
> 
>>
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>

- -- 
==================================================================
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/

iEYEARECAAYFAkwJHqcACgkQJHjEUGX5D+Fp4wCeKAvoDMVz2hKsc47VvaJtRirV
USMAn0u3jM5qdn8LU98vfBEdp62mRCrj
=0hd/
-----END PGP SIGNATURE-----



More information about the Users mailing list