[erlang-questions] Cowboy - cowboy_req:reply
Theepan
vasdeveloper@REDACTED
Mon Aug 1 23:47:55 CEST 2016
Now when I probed what happens during the 500 error, I see the following
error in the Erlang logs.
Ranch listener http had connection process started with
cowboy_protocol:start_link/4 at <0.2399.0> exit with reason:
{cowboy_handler,[{class,error},{reason,{badmatch,{error,enoent}}},{mfa,{cowboy_static,init,2}},{stacktrace,[{filename,absname,1,[{file,"filename.erl"},{line,68}]},{cowboy_static,init_dir,3,[{file,"../src/cowboy_static.erl"},{line,82}]},{cowboy_handler,execute,2,[{file,"../src/cowb
But all the files are present in the server, and their read access rights
have not changed.
Do you have a quick guess?
On Tue, Aug 2, 2016 at 3:11 AM, Loïc Hoguin <essen@REDACTED> wrote:
> Never heard of it but feel free to open a ticket with more details.
>
> If there's a 500 error then there's probably a related log sent to
> error_logger.
>
> On 08/01/2016 11:39 PM, Theepan wrote:
>
>> I noticed another issue with Cowboy. When it comes to static files, once
>> or twice a day they fail to deliver with "500 - Internal Server Error".
>> Dynamics pages are working fine.
>>
>> Is there any any issue?
>>
>> When the server (Erlang Node) is restarted, things work fine back, then
>> after about 10 hours or so again the same pattern recurred. Unless you
>> restart the node, the error is persistent.
>>
>>
>>
>> On Tue, Aug 2, 2016 at 12:28 AM, Loïc Hoguin <essen@REDACTED
>> <mailto:essen@REDACTED>> wrote:
>>
>> No, 2.0.0-pre.3 and below are pretty similar to 1.0.4 in terms of
>> known bugs (for the same features).
>>
>> Anything in between is anyone's guess.
>>
>> On 08/01/2016 06:20 PM, Theepan wrote:
>>
>> Great Loïc..
>>
>> Were there any serious bugs in 2.0.0-pre.2 ?
>>
>> On Mon, Aug 1, 2016 at 8:58 PM, Loïc Hoguin <essen@REDACTED
>> <mailto:essen@REDACTED>
>> <mailto:essen@REDACTED <mailto:essen@REDACTED>>> wrote:
>>
>> No!
>>
>> I am finishing up changes to what will be released as
>> 2.0.0-pre.4. I
>> will start recommending this version which, although it won't
>> be
>> finished, should be pretty close to the final interface.
>>
>> It'll be out before the end of summer.
>>
>> On 08/01/2016 05:01 PM, Max Lapshin wrote:
>>
>> Btw, is it time to convert all production code to cowboy2?
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> <mailto:erlang-questions@REDACTED>
>> <mailto:erlang-questions@REDACTED
>> <mailto:erlang-questions@REDACTED>>
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>> --
>> Loïc Hoguin
>> http://ninenines.eu
>> Author of The Erlanger Playbook,
>> A book about software development using Erlang
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> <mailto:erlang-questions@REDACTED>
>> <mailto:erlang-questions@REDACTED
>> <mailto:erlang-questions@REDACTED>>
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>>
>> --
>> Loïc Hoguin
>> http://ninenines.eu
>> Author of The Erlanger Playbook,
>> A book about software development using Erlang
>>
>>
>>
> --
> Loïc Hoguin
> http://ninenines.eu
> Author of The Erlanger Playbook,
> A book about software development using Erlang
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160802/f0d258cb/attachment.htm>
More information about the erlang-questions
mailing list