[99s-extend] cowboy websocket example runtime error

Samir Sow samset at wanadoo.fr
Thu Mar 19 18:46:38 CET 2015


I’ve exported ERL_LIBS=<root_dir> before erl execution. but got same error ...


> On 19 mars 2015, at 18:40, Loïc Hoguin <essen at ninenines.eu> wrote:
> 
> If you don't use the release start script it can still work but you must define ERL_LIBS to let Erlang know where applications are located (-pa **ebin only says where *beams* are located).
> 
> Maybe more things.
> 
> On 03/19/2015 06:31 PM, Samir Sow wrote:
>> Manually from the application root dir.
>> with exec erl <paths>
>> Then starting all required applications
>> 
>> Not very clever i admit but could not print debug info with _rel/bin/websocket
>> 
>> Samir
>> 
>> 
>>> On 19 mars 2015, at 18:10, Loïc Hoguin <essen at ninenines.eu> wrote:
>>> 
>>> How do you run it?
>>> 
>>> On 03/19/2015 06:08 PM, Samir Sow wrote:
>>>> Hi there,
>>>> 
>>>> I would appreciate your help to understand the following error when running the websocket example.
>>>> 
>>>> Context is :
>>>> 
>>>> ERL 17
>>>> Cowboy 2.0.0-pre (master)
>>>> no source modification
>>>> 
>>>> 
>>>> =ERROR REPORT==== 19-Mar-2015::18:04:36 ===
>>>> Error in process <0.160.0> with exit value: {[{reason,{badarg,"Can't resolve the priv_dir of application websocket"}},{mfa,{cowboy_static,init,2}},{stacktrace,[{cowboy_static,priv_path,2,[{file,"src/cowboy_static.erl"},{line,66}]},{cowboy_static,init_opts,2,[{file…
>>>> 
>>>> Thank you.
>>>> 
>>>> Samir
>>>> _______________________________________________
>>>> Extend mailing list
>>>> Extend at lists.ninenines.eu
>>>> https://lists.ninenines.eu/listinfo/extend
>>>> 
>>> 
>>> --
>>> Loïc Hoguin
>>> http://ninenines.eu
>> 
> 
> -- 
> Loïc Hoguin
> http://ninenines.eu



More information about the Extend mailing list