[Serusers] problems when starting ser

Andrei Pelinescu-Onciul andrei at iptel.org
Wed Dec 23 21:32:11 CET 2009


On Dec 23, 2009 at 13:06, "Mart?nez Garc?a, Rebeca" <remartinez at indra.es> wrote:
> 
> Hello all,
> 
> I have installed ser in Ubuntu Karmic by means of Synaptic without any problems or errors during the installation.
> But before starting to configure the ser.cfg, I decided firstly to try the configuration by default and I got this error (I only uncommented the "log_stderror=yes"):

> 
> cng at cng:/etc/ser$ ser D E
> Listening on
>              udp: 127.0.0.1 [127.0.0.1]:5060
>              udp: 10.1.3.207 [10.1.3.207]:5060
>              udp: 192.168.50.10 [192.168.50.10]:5060
>              tcp: 127.0.0.1 [127.0.0.1]:5060
>              tcp: 10.1.3.207 [10.1.3.207]:5060
>              tcp: 192.168.50.10 [192.168.50.10]:5060
> Aliases:
>              tcp: cng.local:5060
>              tcp: cng:5060
>              tcp: localhost:5060
>              udp: cng.local:5060
>              udp: cng:5060
>              udp: localhost:5060
> 
>  0(2956) init_tcp: using epoll_lt as the io watch method (auto detected)
> cng at cng:/etc/ser$  0(2958) Maxfwd module- initializing
>  0(2958) ERROR: fifo_server.c:857: Can't create FIFO: No such file or directory (mode=384)
>  0(2958) ERROR: ctl: mod_init: init ctrl. sockets failed
>  0(2958) init_mod(): Error while initializing module ctl
> ERROR: error while initializing modules

I don't know which version and what config are included with the Ubuntu
package, but it looks at least a 2.0 version.
You probably don't need the fifo at all. You only need it if you have
some scripts for an older ser version. Just comment it out of the .cfg
and use sercmd to send runtime commands to ser.

> 
> It seems that it starts ok but suddenly finds an error and stops.

There is probably a problem with the fifo path in the .cfg.

> However if I run:
> 
> cng at cng:/etc/ser$ sudo /etc/init.d/ser start
> Starting ser: serListening on
>              udp: 127.0.0.1 [127.0.0.1]:5060
>              udp: 10.1.3.207 [10.1.3.207]:5060
>              udp: 192.168.50.10 [192.168.50.10]:5060
>              tcp: 127.0.0.1 [127.0.0.1]:5060
>              tcp: 10.1.3.207 [10.1.3.207]:5060
>              tcp: 192.168.50.10 [192.168.50.10]:5060
> Aliases:
>              tcp: cng.local:5060
>              tcp: cng:5060
>              tcp: localhost:5060
>              udp: cng.local:5060
>              udp: cng:5060
>              udp: localhost:5060
> 
>  0(3016) init_tcp: using epoll_lt as the io watch method (auto detected)
> .
>  0(3018) unable to create pid file /var/run/ser/ser.pid: No such file or directory
> 
> It only complains about the ser.pid file.
> 
> I am a little bit confused. Where is the problem?

Probably you don't have /var/run/ser (maybe it was not created
by the package) or there is some kind of permission problem.
Either mkdir /var/run/ser or start ser with -P /var/run/ser.pid.

Andrei



More information about the sr-users mailing list