<div dir="ltr">Also wanted to share that the server is running on a VM instance and the OS is CentOS 7.<div><br></div><div>When I restarted the node every thing started working fine. When this happens next time, I would also problem if the node itself is prevented from accessing the file system.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 3:17 AM, Theepan <span dir="ltr"><<a href="mailto:vasdeveloper@gmail.com" target="_blank">vasdeveloper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Now when I probed what happens during the 500 error, I see the following error in the Erlang logs.<div><br></div><div>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<br></div><div><br></div><div>But all the files are present in the server, and their read access rights have not changed.</div><div><br></div><div>Do you have a quick guess?</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 3:11 AM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Never heard of it but feel free to open a ticket with more details.<br>
<br>
If there's a 500 error then there's probably a related log sent to error_logger.<span><br>
<br>
On 08/01/2016 11:39 PM, Theepan wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
I noticed another issue with Cowboy. When it comes to static files, once<br>
or twice a day they fail to deliver with "500 - Internal Server Error".<br>
Dynamics pages are working fine.<br>
<br>
Is there any any issue?<br>
<br>
When the server (Erlang Node) is restarted, things work fine back, then<br>
after about 10 hours or so again the same pattern recurred. Unless you<br>
restart the node, the error is persistent.<br>
<br>
<br>
<br>
On Tue, Aug 2, 2016 at 12:28 AM, Loïc Hoguin <<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a><br></span><span>
<mailto:<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>>> wrote:<br>
<br>
    No, 2.0.0-pre.3 and below are pretty similar to 1.0.4 in terms of<br>
    known bugs (for the same features).<br>
<br>
    Anything in between is anyone's guess.<br>
<br>
    On 08/01/2016 06:20 PM, Theepan wrote:<br>
<br>
        Great Loïc..<br>
<br>
        Were there any serious bugs in 2.0.0-pre.2 ?<br>
<br>
        On Mon, Aug 1, 2016 at 8:58 PM, Loïc Hoguin <<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a><br>
        <mailto:<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>><br></span><span>
        <mailto:<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a> <mailto:<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>>>> wrote:<br>
<br>
            No!<br>
<br>
            I am finishing up changes to what will be released as<br>
        2.0.0-pre.4. I<br>
            will start recommending this version which, although it won't be<br>
            finished, should be pretty close to the final interface.<br>
<br>
            It'll be out before the end of summer.<br>
<br>
            On 08/01/2016 05:01 PM, Max Lapshin wrote:<br>
<br>
                Btw, is it time to convert all production code to cowboy2?<br>
<br>
<br>
                _______________________________________________<br>
                erlang-questions mailing list<br>
                <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
        <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br></span>
        <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><span><br>
        <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>>><br>
                <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br>
            --<br>
            Loïc Hoguin<br>
            <a href="http://ninenines.eu" rel="noreferrer" target="_blank">http://ninenines.eu</a><br>
            Author of The Erlanger Playbook,<br>
            A book about software development using Erlang<br>
            _______________________________________________<br>
            erlang-questions mailing list<br>
            <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
        <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br></span>
        <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><span><br>
        <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>>><br>
            <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br>
<br>
    --<br>
    Loïc Hoguin<br>
    <a href="http://ninenines.eu" rel="noreferrer" target="_blank">http://ninenines.eu</a><br>
    Author of The Erlanger Playbook,<br>
    A book about software development using Erlang<br>
<br>
<br>
</span></blockquote><div><div>
<br>
-- <br>
Loïc Hoguin<br>
<a href="http://ninenines.eu" rel="noreferrer" target="_blank">http://ninenines.eu</a><br>
Author of The Erlanger Playbook,<br>
A book about software development using Erlang<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>