<div dir="ltr">Chris, thanks for the response! Is there anything I can do to test / work around that theory?</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 10, 2015 at 8:15 PM, Chris Wong <span dir="ltr"><<a href="mailto:lambda.fairy@gmail.com" target="_blank">lambda.fairy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Stephen,<br>
<span class=""><br>
On Sun, Jan 11, 2015 at 4:15 PM, Stephen Portanova <<a href="mailto:sportano@gmail.com">sportano@gmail.com</a>> wrote:<br>
> Update: I found out that it works when I use normal scotty, but not when I use scottyTLS. When I use scottyTLS, it prints "starting up", but doesn't get to "getting here". No error messages<br>
<br>
</span>Really shooting in the dark here... but could it be a lack of entropy?<br>
crypto-random (which scotty-tls depends on) seems to favor /dev/random<br>
[1], which can block.<br>
<br>
Chris<br>
<br>
[1] <a href="http://hackage.haskell.org/package/crypto-random-0.0.8/docs/src/Crypto-Random-Entropy.html#supportedBackends" target="_blank">http://hackage.haskell.org/package/crypto-random-0.0.8/docs/src/Crypto-Random-Entropy.html#supportedBackends</a><br>
<div><div class="h5"><br>
> @Konstantine: Just learned how to do Docker - very cool! Here's my image - it's an ubuntu 14.04. <a href="https://registry.hub.docker.com/u/sportanova/starme/" target="_blank">https://registry.hub.docker.com/u/sportanova/starme/</a><br>
><br>
> To run, do these commands:<br>
><br>
> source /root/.profile<br>
><br>
> /starme/StarMe/dist/dist-sandbox-2c59b82/build/starz/starz "test.key" "test.cert"<br>
><br>
><br>
> @Brandon: I tried running     sudo strace <executable>, but I got the error:<br>
><br>
> trace: test_ptrace_setoptions_followfork: PTRACE_TRACEME doesn't work: Permission denied<br>
><br>
> strace: test_ptrace_setoptions_followfork: unexpected exit status 1<br>
><br>
><br>
> Thanks Konstantine +  Brandon!<br>
><br>
><br>
> On Sat, Jan 10, 2015 at 4:28 AM, Konstantine Rybnikov <<a href="mailto:k-bx@k-bx.com">k-bx@k-bx.com</a>> wrote:<br>
>><br>
>> Also, just for making this super-clear to reproduce, I would advice to express a problem as a Dockerfile that lets you reproduce the problem in a one command.<br>
>><br>
>> Thanks.<br>
>><br>
>> On Sat, Jan 10, 2015 at 4:02 AM, Stephen Portanova <<a href="mailto:sportano@gmail.com">sportano@gmail.com</a>> wrote:<br>
>>><br>
>>> I'm having trouble running my Scotty binary on amazon web services...<br>
>>><br>
>>> I'm using Ubuntu 15.04, this gist (<a href="https://gist.github.com/yantonov/10083524" target="_blank">https://gist.github.com/yantonov/10083524</a>) to install the haskell platform dependencies, and then I do a git pull to my repo and build my binary.<br>
>>><br>
>>> Everything compiles, but when I do ./cabal-sandbox/bin/app or<br>
>>><br>
>>> ./dist/build/app/app, nothing happens. No error messages or anything - the terminal just goes to the next line and hangs (on my Mac development machine the server starts up fine and prints a startup message).<br>
>>><br>
>>> Any ideas or experience with deploying Scotty / Haskell apps would be really appreciated, thanks!<br>
>>><br>
>>><br>
>>> - Stephen<br>
>>><br>
>>> _______________________________________________<br>
>>> Haskell-Cafe mailing list<br>
>>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
>>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
>>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Stephen Portanova<br>
> <a href="tel:%28480%29%20495-2634" value="+14804952634">(480) 495-2634</a><br>
><br>
> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
<br>
<br>
<br>
--<br>
</div></div><a href="https://lambda.xyz" target="_blank">https://lambda.xyz</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Stephen Portanova<div>(480) 495-2634</div></div></div>
</div>