[Freeswitch-users] Error Mod_lua.

Steven Ayre steveayre at gmail.com
Thu Apr 2 14:10:44 MSD 2015


2015-04-01 10:39:34.860517 [ERR] mod_lua.cpp:203
...itch/scripts/resources/functions/database_handle.lua:5: attempt to index
global 'database' (a nil value)

That means you're trying to use a variable named database that has not yet
been set.

On 1 April 2015 at 23:31, Ing. Antonyam <ing.antonyam at gmail.com> wrote:

> Hi
>
> I change of permisión and Now i have this error:
>
> 2015-04-01 10:39:34.860517 [ERR] mod_lua.cpp:203
> ...itch/scripts/resources/functions/database_handle.lua:5: attempt to index
> global 'database' (a nil value)
> stack traceback:
> ...itch/scripts/resources/functions/database_handle.lua:5: in function
> 'database_handle'
> ...ml_handler/resources/scripts/directory/directory.lua:113: in main chunk
> [C]: in function 'dofile'
> ...r/local/freeswitch/scripts/app/xml_handler/index.lua:110: in main chunk
> /usr/local/freeswitch/scripts/app.lua:50: in main chunk
> 2015-04-01 10:39:34.860530 [ERR] mod_lua.cpp:269 LUA script parse/ejecutes
>
> Regatas.
>
> El 31/03/2015, a las 13:35, Steven Ayre <steveayre at gmail.com> escribió:
>
> It's probably a file permission problem. Linux returns the same 'no such
> file' error for both missing files and permission errors.
>
> Does the 'freeswitch' user have +r on the file and +rx on every directory
> component in the path - either through user (u), group (g) or other (o)?
>
> On 31 March 2015 at 20:21, Antony Aguirre Morales <ing.antonyam at gmail.com>
> wrote:
>
>> Hi,
>>
>> Install fusionpbx to manage freeswitch, perform the configuration of lua
>> module enable these lines in lua.conf.xml
>>
>> <param name = "xml-handler-script" value = "app.lua xml_handler" />
>>   <param name = "xml-handler-bindings" value = "dialplan | directory |
>> configuration" />
>>
>> I am using the script for the configuration that comes in the pbx in the
>> following path:
>>
>> / var / www / html / fusionpbx / resources / install / scripts
>>
>> copy them to the following path freeswitch:
>>
>> / usr / local / freeswitch / scripts /
>>
>> but when you start freeswitch shows me the following errors have some
>> idea:
>>
>> 2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:203 cannot open
>> /usr/local/freeswitch/scripts/resources/config.lua: No such file or
>> directory
>> stack traceback:
>> [C]: in function 'dofile'
>> /usr/local/freeswitch/scripts/app.lua:30: in main chunk
>> 2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:269 LUA script parse/execute
>> error!
>> 2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:203 cannot open
>> /usr/local/freeswitch/scripts/resources/config.lua: No such file or
>> directory
>> stack traceback:
>> [C]: in function 'dofile'
>> /usr/local/freeswitch/scripts/app.lua:30: in main chunk
>> 2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:269 LUA script parse/execute
>> error!
>> 2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:203 cannot open
>> /usr/local/freeswitch/scripts/resources/config.lua: No such file or
>> directory
>> stack traceback:
>> [C]: in function 'dofile'
>> /usr/local/freeswitch/scripts/app.lua:30: in main chunk
>> 2015-03-31 07:47:15.386121 [ERR] mod_lua.cpp:269 LUA script parse/execute
>> error!
>>
>> Regards.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150402/0a416224/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list