Trying the Webmachine clickstart on CloudBees

10 views
Skip to first unread message

Robin Hilliard

unread,
Sep 9, 2014, 7:13:18 AM9/9/14
to erl...@googlegroups.com
Hi All (but particularly Michael if you've got a moment),

I'm trying out the WebMachine clickstart on CloudBees - I was thinking of converting it over to a ChicagoBoss app once I had it going and understood how it works, but at the moment I'm unable to get it running on CloudBees (I get a 502 from nginx) or locally on OSX 10.8/Erlang R17:

=PROGRESS REPORT==== 9-Sep-2014::20:53:19 ===
         application
: crypto
          started_at
: nonode@nohost
{"init terminating in do_boot",{{case_clause,{error,{not_started,ssl}}},[{clickstart,ensure_started,1,[{file,"src/clickstart.erl"},{line,11}]},{clickstart,start,0,[{file,"src/clickstart.erl"},{line,34}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}


I have OpenSSL 1.0.1i installed, Googling around it seemed that crypto, ssl or both might have a runtime dependency on this on OSX but it wasn't clear. Is R17 too new to make it work?

I tried blunt-edged hacky things like commenting out the start checks in the supervisor but it seems inets wants crypto there. 

I promise if I get it working I'll do a talk on it at the next ErlSyd.

Cheers,
Robin

Tim McGilchrist

unread,
Sep 18, 2014, 6:54:46 PM9/18/14
to Robin Hilliard, erl...@googlegroups.com
Hi Robin,

I think you're right about the crypto app not being started. What does your *.app file look like?
For a basic webmachine application it should have a section describing it's dependencies like this.

  {applications, [
                  kernel,
                  stdlib,
                  inets,
                  crypto,
                  mochiweb,
                  webmachine
                 ]},

Also how is the erlang application being started? If it's using the usual OTP startup then it should make sure the applications you depend on are started for you.
If you've got a place where you can share the source code I'd be happy to have a look at it.

Cheers,
Tim

-----------------------------------------------------
Tim McGilchrist

Reply all
Reply to author
Forward
0 new messages