[OpenSIPS-Users] ERROR:perl:parser_init: failed to load perl file

Vadim Grinco vadim at grinco.eu
Sun May 2 12:41:38 CEST 2010


On Fri, Apr 30, 2010 at 2:34 PM, samoh <dahmani.samy at gmail.com> wrote:

>
> Hi everybody,
>
> I try to use the perl module to execute a script perl, I have compiled
> opensips with this module and I put the path of my script in
> modparam("perl", "filename", "/home/opensips/etc/opensips/script.pl") but
> it
> doesn't work :(. I have these message in log file :
>
> Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]:
> INFO:perl:mod_init: initializing...
> Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]:
> INFO:perl:parser_init: setting lib path: '/path/to/perllib'
> Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]:
> ERROR:perl:parser_init: failed to load perl file
> "/home/opensips/etc/opensips/script.pl".
>
Did you check file permissions? Is the user opensips is running as able to
access that file?
Do you have selinux enabled on your system?
The easiest way to check permissions is:
*su - opensips -c "file /home/opensips/etc/opensips/script.pl"*
I assume that opensips runs as opensips user...


> Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]:
> ERROR:core:init_mod: failed to initialize module perl
> Apr 30 14:26:11 samy-desktop /home/opensips/sbin/opensips[21501]:
> ERROR:core:main: error while initializing modules
> Apr 30 14:29:01 samy-desktop opensips: INFO:core:init_tcp: using epoll_lt
> as
> the TCP io watch method (auto detected)
> Apr 30 14:29:01 samy-desktop opensips: ERROR:core:daemonize: unable to
> create pid file /var/run/opensips/opensips.pid: No such file or directory
>
> Someone can help me ?
>
> Thanks.
> Sam.
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4985385.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
Best regards,
Vadim Grinco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100502/13084383/attachment.htm 


More information about the Users mailing list