mozilla / openbadges-badgekit

No Longer Maintained
https://badgekit.org
Mozilla Public License 2.0
123 stars 84 forks source link

deployment issues #477

Open pbunyasrie opened 9 years ago

pbunyasrie commented 9 years ago

I'm trying to run self-hosted badgekit under phusion passenger 5.0.5 (and nodejs v0.10.33), but get this error:

App 9560 stdout:
App 9560 stdout: [Function]
App 9560 stderr: connect.multipart() will be removed in connect 3.0
App 9560 stderr: visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
App 9560 stderr: connect.limit() will be removed in connect 3.0
[ 2015-03-30 13:46:11.3136 9479/7fac4818b700 App/Implementation.cpp:287 ]: Could not spawn process for application /www/badgekit.local/html: An error occurred while starting the web application: it did not write a startup response in time.
  Error ID: f3e2ea58
  Error details saved to: /tmp/passenger-error-nE1kpZ.html
  Message from application: An error occurred while starting the web application: it did not write a startup response in time. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem.<br>
<h2>Raw process output:</h2>
<pre>
[Function]
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
</pre>

[ 2015-03-30 13:46:11.3268 9479/7fac4a2cd700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 2-1] Cannot checkout session because a spawning error occurred. The identifier of the error is f3e2ea58. Please see earlier logs for details about the error.

I have the badgekit-api running in a separete process (independent of phusion passenger). Badgekit-web works fine if I use forever/node instead of passenger.

I've confirmed that node.js is working under phusion passenger by creating a quick Express app. Has anyone gotten badgekit working under phusion passenger? What is the recommended way to deploy self-hosted badgekit to the public internet?

FooBarWidget commented 9 years ago

This issue can be closed in favor of the pull request I just sent.