[OpenSIPS-Users] how to generate a config file for module carrierroute and getting error "sorry -- cannot open write fifo" on opensips-cp

Michael Leung gbcbooksmj at gmail.com
Tue Oct 28 10:57:06 CET 2014


to Zhou

[root at opensips ~]# ps -axu | grep -i httpd
Warning: bad syntax, perhaps a bogus '-'? See
/usr/share/doc/procps-3.2.8/FAQ
root      1798  0.0  0.5 285088 10616 ?        Ss   Oct26   0:04
/usr/sbin/httpd
apache    1831  0.0  0.2 285000  5832 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1834  0.0  0.5 287980 10964 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1837  0.0  0.5 288000 10900 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1840  0.0  0.5 287980 10964 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1842  0.0  0.5 287716 10784 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1844  0.0  0.4 287148 10060 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1845  0.0  0.5 287744 10760 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1847  0.0  0.4 287808 10188 ?        S    Oct26   0:00
/usr/sbin/httpd
apache    1849  0.0  0.5 287632 10696 ?        S    Oct26   0:00
/usr/sbin/httpd
root      1882  0.0  0.0 103252   864 pts/0    S+   10:04   0:00 grep -i
httpd

i think  httpd run as apache users

to Livui

i actually restart service and machine many times ,
OMG, i just to restart opensips service and opensips-cp work fine now ,

i really  think i did this steps before,

any way ,thanks a lot

this the fifo issue has been solved , what about the carrierroute one?


On Tue, Oct 28, 2014 at 4:54 PM, Liviu Chircu <liviu at opensips.org> wrote:

>  Hello Michael,
>
> Have you restarted OpenSIPS after making the permission changes? I'm
> saying this because:
>
> - you have correctly fixed the permissions issue in your script with:
>     modparam("mi_fifo", "fifo_mode", 0666)
>
> - however, these changes are not yet visible in your /tmp directory!
> *     prw-------  1 root root    0 10月 27 02:30 opensips_fifo*
>
> It could also be possible that OpenSIPS is running on a different script
> than you are expecting.
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 10/27/2014 04:15 AM, Michael Leung wrote:
>
> Hi Guys
>
> i run opensips and opensips-cp well on ubuntu 14.04 but i get error
>
> Array ( [0] => sorry -- cannot open write fifo
>
> when i run opensips and opensips-cp on CentosOS 6 x86_64
>
> that is so wired
>
> i pretty so i modify /etc/default/opensip  to make sure that opensips is
> run root use
>
> and i check the following lines in /usr/local/opensips_proxy/etc/
> opensips/opensips_residential_xxxxx.cfg
>
> #### FIFO Management Interface
> loadmodule "mi_fifo.so"
> modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
> modparam("mi_fifo", "fifo_mode", 0666)
>
> i also check opensips_fifo in /tmp as the screenshot next
>
> seems rights of fifo are correct
>
> [root at opensips ~]# ls -l /tmp/
> total 4
> srwxrwxrwx  1 root root    0 10月 26 12:46 OpenSIPS.2729.UzgMCc
> *prw-------  1 root root    0 10月 27 02:30 opensips_fifo*
> drwxr-xr-x. 3 root root 4096 10月 23 09:19 pear
> prw-rw-rw-  1 root root    0 10月 26 11:40 webfifo_1073486329
> prw-rw-rw-  1 root root    0 10月 26 11:45 webfifo_1470388925
> prw-rw-rw-  1 root root    0 10月 26 11:46 webfifo_1476361529
> prw-rw-rw-  1 root root    0 10月 26 11:44 webfifo_1502401728
> prw-rw-rw-  1 root root    0 10月 26 11:43 webfifo_1518457939
> prw-rw-rw-  1 root root    0 10月 26 11:38 webfifo_1873894080
> prw-rw-rw-  1 root root    0 10月 26 11:47 webfifo_1952463342
> prw-rw-rw-  1 root root    0 10月 26 11:42 webfifo_1972326408
> prw-rw-rw-  1 root root    0 10月 26 11:36 webfifo_314032636
> prw-rw-rw-  1 root root    0 10月 26 11:35 webfifo_411862295
> prw-rw-rw-  1 root root    0 10月 26 11:39 webfifo_428297397
> prw-rw-rw-  1 root root    0 10月 26 11:37 webfifo_452862263
> prw-rw-rw-  1 root root    0 10月 26 11:41 webfifo_978440604
> -rw-------. 1 root root    0 10月 23 06:15 yum.log
>
>
>
> from output of /var/log/httpd/error.log
> i was told user did not have permission to write /read /tmp/opensips_fifo
> file
>
>
> [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Notice:  A
> session had already been started - ignoring session_start() in
> /var/www/opensips-cp/web/tools/system/smonitor/lib/put_select_boxes.php on
> line 25, referer:http://10.67.255.154/cp/menu.php
> [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Notice:
> Undefined variable: box_val in
> /var/www/opensips-cp/web/tools/system/smonitor/lib/functions.inc.php on
> line 306, referer: http://10.67.255.154/cp/menu.php
> [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Notice:
> Undefined variable: arg_list in /var/www/opensips-cp/web/common/mi_comm.php
> on line 178, referer: http://10.67.255.154/cp/menu.php
> [Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Warning:
> fopen(/tmp/opensips_fifo): failed to open stream: *Permission denied* in
> /var/www/opensips-cp/web/common/mi_comm.php on line 193, referer:
> http://10.67.255.154/cp/menu.php
>
> anyone faced my problem before?
>
>
> there is another problem
>
> i read opensips support document
> http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092 for
> twice
>
> but i still dont figure out where and how can i generate a config file
> that required by carrierroute.so before opensips initialated .
>
>
> thanks for your help  very much
>
>
> Michael Leung
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141028/c3fa450b/attachment-0001.htm>


More information about the Users mailing list