3 Replies Latest reply on Nov 25, 2013 3:33 PM by tiffany@puppetlabs.com

    readme example crashes and burns in Heroku

    tiffany@puppetlabs.com

      Hi, I am a Node N00b,

      I followed the instructions in the GitHub readme in our Jive instance (in the developer sandbox, the add-ons tab sends me to a "No Services have been authorized").

       

      Since we're behind a firewall, we were attempting to deploy the example app to heroku so that hosted Jive could communicate with it.

       

      These are the steps that we followed:

      * Created example app as directed.

      * Successfully ran locally with `node app.js`

          * app start

          * success hitting `http://<localip>:8090/tiles`

      * Successfully ran locally with `foreman start`

          * app start

          * success hitting `http://<localip>:8090/tiles`

      * Changed `jiveclientconfigurations.json` to heroku app name and port 80

      * Created `Procfile` with `web: node app.js`

      * `git push heroku master`

      * `heroku ps:scale web=1`

      * App dies a terrible, fiery death

      * `heroku logs`

      * halp!

       

       

      ```

      foo:jivetile-sample tiffany$ heroku logs

      2013-11-19T19:30:09.460482+00:00 heroku[api]: Enable Logplex by tiffany@puppetlabs.com

      2013-11-19T19:30:09.496274+00:00 heroku[api]: Release v2 created by tiffany@puppetlabs.com

      2013-11-19T19:33:33+00:00 heroku[slug-compiler]: Slug compilation started

      2013-11-19T19:33:52.486873+00:00 heroku[api]: Scale to web=1 by tiffany@puppetlabs.com

      2013-11-19T19:33:52.505638+00:00 heroku[api]: Add PATH config by tiffany@puppetlabs.com

      2013-11-19T19:33:52.534141+00:00 heroku[api]: Release v3 created by tiffany@puppetlabs.com

      2013-11-19T19:33:52.600210+00:00 heroku[api]: Deploy 3827e93 by tiffany@puppetlabs.com

      2013-11-19T19:33:52.636996+00:00 heroku[api]: Release v4 created by tiffany@puppetlabs.com

      2013-11-19T19:33:52+00:00 heroku[slug-compiler]: Slug compilation finished

      2013-11-19T19:33:56.166364+00:00 heroku[web.1]: Starting process with command `node app.js`

      2013-11-19T19:33:57.450096+00:00 app[web.1]: [2013-11-19 19:33:57.449] [WARN] jive-sdk - File persistence is configured.

      2013-11-19T19:33:57.449231+00:00 app[web.1]: [2013-11-19 19:33:57.446] [WARN] jive-sdk - ******************************

      2013-11-19T19:33:57.450320+00:00 app[web.1]: [2013-11-19 19:33:57.450] [WARN] jive-sdk - Please note that this should

      2013-11-19T19:33:57.450488+00:00 app[web.1]: [2013-11-19 19:33:57.450] [WARN] jive-sdk - not be used for production!

      2013-11-19T19:33:57.450671+00:00 app[web.1]: [2013-11-19 19:33:57.450] [WARN] jive-sdk - ******************************

      2013-11-19T19:33:57.476290+00:00 app[web.1]: [2013-11-19 19:33:57.475] [INFO] jive-sdk - Updating definition 'tablesample'

      2013-11-19T19:33:57.553442+00:00 app[web.1]: [2013-11-19 19:33:57.553] [INFO] jive-sdk - Http node setup

      2013-11-19T19:33:57.543379+00:00 app[web.1]: [2013-11-19 19:33:57.543] [INFO] jive-sdk - Running bootstrap.

      2013-11-19T19:33:57.547478+00:00 app[web.1]: [2013-11-19 19:33:57.547] [WARN] jive-sdk - Starting service in HTTP mode

      2013-11-19T19:33:57.889380+00:00 app[web.1]: [2013-11-19 19:33:57.889] [INFO] jive-sdk - 17342 total bytes written to extension archive  'extension.zip'

      2013-11-19T19:33:57.895488+00:00 app[web.1]: [2013-11-19 19:33:57.895] [INFO] jive-sdk - Bootstrap complete.

      2013-11-19T19:33:57.895488+00:00 app[web.1]: [2013-11-19 19:33:57.895] [INFO] jive-sdk - Jive SDK version 0.1.85

      2013-11-19T19:33:57.897300+00:00 app[web.1]: [2013-11-19 19:33:57.897] [INFO] jive-sdk - Service started in development mode

      2013-11-19T19:33:57.895712+00:00 app[web.1]: [2013-11-19 19:33:57.895] [INFO] jive-sdk - Started service in  'self-contained' 'mode'

      2013-11-19T19:33:57.904119+00:00 app[web.1]:               ^

      2013-11-19T19:33:57.903644+00:00 app[web.1]: events.js:72

      2013-11-19T19:33:57.903494+00:00 app[web.1]:

      2013-11-19T19:33:57.903913+00:00 app[web.1]:         throw er; // Unhandled 'error' event

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at _fulfilled (/app/node_modules/q/q.js:880:54)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at resolvedValue.promiseDispatch.done (/app/node_modules/q/q.js:910:30)

      2013-11-19T19:33:57.904959+00:00 app[web.1]: Error: listen EACCES

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at makePromise.promise.promiseDispatch (/app/node_modules/q/q.js:559:13)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at Server._listen2 (net.js:1020:19)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at errnoException (net.js:901:11)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at listen (net.js:1061:10)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at startServer (/app/app.js:40:45)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at Server.listen (net.js:1127:5)

      2013-11-19T19:33:57.904959+00:00 app[web.1]:     at Object._onImmediate (/app/node_modules/q/q.js:438:41)

      2013-11-19T19:33:57.905145+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:330:15)

      2013-11-19T19:33:59.168391+00:00 heroku[web.1]: Process exited with status 8

      2013-11-19T19:33:59.191562+00:00 heroku[web.1]: State changed from crashed to starting

      2013-11-19T19:33:59.190089+00:00 heroku[web.1]: State changed from starting to crashed

      2013-11-19T19:34:02.096446+00:00 heroku[web.1]: Starting process with command `node app.js`

      2013-11-19T19:34:03.244489+00:00 app[web.1]: [2013-11-19 19:34:03.241] [WARN] jive-sdk - ******************************

      2013-11-19T19:34:03.245006+00:00 app[web.1]: [2013-11-19 19:34:03.244] [WARN] jive-sdk - Please note that this should

      2013-11-19T19:34:03.245080+00:00 app[web.1]: [2013-11-19 19:34:03.244] [WARN] jive-sdk - not be used for production!

      2013-11-19T19:34:03.244908+00:00 app[web.1]: [2013-11-19 19:34:03.244] [WARN] jive-sdk - File persistence is configured.

      2013-11-19T19:34:03.245160+00:00 app[web.1]: [2013-11-19 19:34:03.245] [WARN] jive-sdk - ******************************

      2013-11-19T19:34:03.265621+00:00 app[web.1]: [2013-11-19 19:34:03.264] [INFO] jive-sdk - Updating definition 'tablesample'

      2013-11-19T19:34:03.322545+00:00 app[web.1]: [2013-11-19 19:34:03.322] [INFO] jive-sdk - Running bootstrap.

      2013-11-19T19:34:03.326150+00:00 app[web.1]: [2013-11-19 19:34:03.326] [WARN] jive-sdk - Starting service in HTTP mode

      2013-11-19T19:34:03.331063+00:00 app[web.1]: [2013-11-19 19:34:03.330] [INFO] jive-sdk - Http node setup

      2013-11-19T19:34:03.608062+00:00 app[web.1]: [2013-11-19 19:34:03.607] [INFO] jive-sdk - 17342 total bytes written to extension archive  'extension.zip'

      2013-11-19T19:34:03.611409+00:00 app[web.1]: [2013-11-19 19:34:03.611] [INFO] jive-sdk - Bootstrap complete.

      2013-11-19T19:34:03.611496+00:00 app[web.1]: [2013-11-19 19:34:03.611] [INFO] jive-sdk - Jive SDK version 0.1.85

      2013-11-19T19:34:03.611615+00:00 app[web.1]: [2013-11-19 19:34:03.611] [INFO] jive-sdk - Started service in  'self-contained' 'mode'

      2013-11-19T19:34:03.613213+00:00 app[web.1]: [2013-11-19 19:34:03.613] [INFO] jive-sdk - Service started in development mode

      2013-11-19T19:34:03.618549+00:00 app[web.1]:

      2013-11-19T19:34:03.618670+00:00 app[web.1]: events.js:72

      2013-11-19T19:34:03.619086+00:00 app[web.1]:               ^

      2013-11-19T19:34:03.618939+00:00 app[web.1]:         throw er; // Unhandled 'error' event

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at startServer (/app/app.js:40:45)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at Object._onImmediate (/app/node_modules/q/q.js:438:41)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at Server.listen (net.js:1127:5)

      2013-11-19T19:34:03.619871+00:00 app[web.1]: Error: listen EACCES

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at errnoException (net.js:901:11)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at Server._listen2 (net.js:1020:19)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at listen (net.js:1061:10)

      2013-11-19T19:34:03.620072+00:00 app[web.1]:     at processImmediate [as _immediateCallback] (timers.js:330:15)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at makePromise.promise.promiseDispatch (/app/node_modules/q/q.js:559:13)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at _fulfilled (/app/node_modules/q/q.js:880:54)

      2013-11-19T19:34:03.619871+00:00 app[web.1]:     at resolvedValue.promiseDispatch.done (/app/node_modules/q/q.js:910:30)

      2013-11-19T19:34:04.805639+00:00 heroku[web.1]: Process exited with status 8

      2013-11-19T19:34:20.668490+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/tiles host=protected-headland-5950.herokuapp.com fwd="74.85.255.17" dyno= connect= service= status=503 bytes=

      2013-11-19T19:34:04.820878+00:00 heroku[web.1]: State changed from starting to crashed

      2013-11-19T19:34:42.322900+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-headland-5950.herokuapp.com fwd="74.85.255.17" dyno= connect= service= status=503 bytes=

      2013-11-19T19:34:20.905108+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-headland-5950.herokuapp.com fwd="74.85.255.17" dyno= connect= service= status=503 bytes=

      2013-11-19T19:34:45.497920+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-headland-5950.herokuapp.com fwd="74.85.255.17" dyno= connect= service= status=503 bytes=

      2013-11-19T19:34:42.116862+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-headland-5950.herokuapp.com fwd="74.85.255.17" dyno= connect= service= status=503 bytes=

      2013-11-19T19:34:41.915334+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=protected-headland-5950.herokuapp.com fwd="74.85.255.17" dyno= connect= service= status=503 bytes=

      ```