<div dir="ltr">Thanks Loïc, the issue was with the VM used. I hosted the system on a bare metal, and everything was fine. There were also other issues from the file system, so I decided to move it to bare metal.<div><br></div><div>Cowboy is working like a charm!<br><div><br></div><div>Regards,</div><div>Theepan</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 1:04 PM, 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">The error log says the error happens in filename:absname/1, probably here: <a href="https://github.com/erlang/otp/blob/maint/lib/stdlib/src/filename.erl#L69" rel="noreferrer" target="_blank">https://github.com/erlang/otp/<wbr>blob/maint/lib/stdlib/src/file<wbr>name.erl#L69</a><br>
<br>
You'll need to investigate when it happens again. Perhaps someone can help you, on a quick glance it seems the error could come from the port driver. I have no experience in that area.<br>
<br>
Cheers,<span class=""><br>
<br>
On 08/01/2016 11:53 PM, Theepan wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Also wanted to share that the server is running on a VM instance and the<br>
OS is CentOS 7.<br>
<br>
When I restarted the node every thing started working fine. When this<br>
happens next time, I would also problem if the node itself is prevented<br>
from accessing the file system.<br>
<br>
<br>
On Tue, Aug 2, 2016 at 3:17 AM, Theepan <<a href="mailto:vasdeveloper@gmail.com" target="_blank">vasdeveloper@gmail.com</a><br></span><span class="">
<mailto:<a href="mailto:vasdeveloper@gmail.com" target="_blank">vasdeveloper@gmail.com</a><wbr>>> wrote:<br>
<br>
Now when I probed what happens during the 500 error, I see the<br>
following error in the Erlang logs.<br>
<br>
Ranch listener http had connection process started with<br>
cowboy_protocol:start_link/4 at <0.2399.0> exit with reason:<br>
{cowboy_handler,[{class,error}<wbr>,{reason,{badmatch,{error,enoe<wbr>nt}}},{mfa,{cowboy_static,init<wbr>,2}},{stacktrace,[{filename,<wbr>absname,1,[{file,"filename.<wbr>erl"},{line,68}]},{cowboy_<wbr>static,init_dir,3,[{file,"../<wbr>src/cowboy_static.erl"},{line,<wbr>82}]},{cowboy_handler,execute,<wbr>2,[{file,"../src/cowb<br>
<br>
But all the files are present in the server, and their read access<br>
rights have not changed.<br>
<br>
Do you have a quick guess?<br>
<br>
<br>
<br>
On Tue, Aug 2, 2016 at 3:11 AM, Loïc Hoguin <<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a><br></span><span class="">
<mailto:<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>>> wrote:<br>
<br>
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<br>
to error_logger.<br>
<br>
On 08/01/2016 11:39 PM, Theepan wrote:<br>
<br>
I noticed another issue with Cowboy. When it comes to static<br>
files, once<br>
or twice a day they fail to deliver with "500 - Internal<br>
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<br>
back, then<br>
after about 10 hours or so again the same pattern recurred.<br>
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<br>
<<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>><br></span><div><div class="h5">
<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, 2.0.0-pre.3 and below are pretty similar to 1.0.4 in<br>
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<br>
<<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>><br>
<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>>><br>
<mailto:<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>> <mailto:<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>>>>> wrote:<br>
<br>
No!<br>
<br>
I am finishing up changes to what will be<br>
released as<br>
2.0.0-pre.4. I<br>
will start recommending this version which,<br>
although it won't be<br>
finished, should be pretty close to the final<br>
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<br>
code to cowboy2?<br>
<br>
<br>
______________________________<wbr>_________________<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@erlan<wbr>g.org</a>><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a>>><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a>><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a>>>><br>
<br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/list<wbr>info/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>
______________________________<wbr>_________________<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@erlan<wbr>g.org</a>><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a>>><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a>><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a><br>
<mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlan<wbr>g.org</a>>>><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/list<wbr>info/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>
<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>
<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
<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>