[OpenSIPS-Users] OpenSIPS-CP: mi_fifo and "cannot open write fifo"
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Sat Jun 5 13:07:58 CEST 2010
Hi Joe,
Good - as said, everything looked ok from the beginning, and I was just
about to ask you about selinux - I had some hard time on some systems
because of it :P...
Regards,
Bogdan
Joe Micciche wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Fixed, this was an SELinux issue. setenforce 0 solved this.
>
> joe
>
> On 06/04/2010 11:03 AM, 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?
>>
>>
>
> _______________________________________________
> 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/
>
> iEYEARECAAYFAkwJMioACgkQJHjEUGX5D+EYDwCfeCcg3Q8/g9ylYPXDq0yDuR0y
> 63IAoKOWlNl+fgsx/7MAKyhtGceFunn5
> =XRDc
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> 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