Heroku Deploy Error

Technical Support
  • Just did a deploy on Heroku. The build succeeded, but when nodded tries to run i get:

    2015-09-29T15:28:26.939075+00:00 heroku[api]: Release v7 created by [email protected]
    2015-09-29T15:28:28.795032+00:00 heroku[web.1]: Stopping all processes with SIGTERM
    2015-09-29T15:28:29.139986+00:00 app[web.1]: fs.js:883
    2015-09-29T15:28:29.140014+00:00 app[web.1]:   return binding.unlink(pathModule._makeLong(path));
    2015-09-29T15:28:29.140017+00:00 app[web.1]:                  ^
    2015-09-29T15:28:29.140019+00:00 app[web.1]: Error: ENOENT, no such file or directory '/app/pidfile'
    2015-09-29T15:28:29.140021+00:00 app[web.1]:     at Error (native)
    2015-09-29T15:28:29.140024+00:00 app[web.1]:     at Object.fs.unlinkSync (fs.js:883:18)
    2015-09-29T15:28:29.140026+00:00 app[web.1]:     at process.Loader.stop (/app/loader.js:226:5)
    2015-09-29T15:28:29.140027+00:00 app[web.1]:     at process.emit (events.js:104:17)
    2015-09-29T15:28:29.140029+00:00 app[web.1]:     at Signal.wrap.onsignal (node.js:655:46)
    2015-09-29T15:28:30.108059+00:00 heroku[web.1]: Process exited with status 1
    2015-09-29T15:28:32.328599+00:00 heroku[web.1]: Starting process with command `node loader.js --no-daemon`
    2015-09-29T15:28:27.070703+00:00 heroku[web.1]: State changed from up to starting
    2015-09-29T15:28:45.037482+00:00 heroku[web.1]: State changed from starting to up
    2015-09-29T17:07:38.359609+00:00 heroku[slug-compiler]: Slug compilation started
    2015-09-29T17:07:38.359620+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Node.js app
    2015-09-29T18:24:27.288142+00:00 heroku[slug-compiler]: Slug compilation started
    2015-09-29T18:24:27.288151+00:00 heroku[slug-compiler]: Slug compilation failed: failed to compile Node.js app
    2015-09-29T18:30:29.652288+00:00 heroku[slug-compiler]: Slug compilation started
    2015-09-29T18:30:29.652332+00:00 heroku[slug-compiler]: Slug compilation finished
    2015-09-29T18:30:29.585288+00:00 heroku[api]: Deploy 4da95eb by [email protected]
    2015-09-29T18:30:29.585288+00:00 heroku[api]: Release v8 created by [email protected]
    2015-09-29T18:30:30.805941+00:00 heroku[web.1]: State changed from up to starting
    

    Any ideas / suggestions?

  • Here is the log with --no-silent:

    2015-09-29T19:42:50.624831+00:00 heroku[api]: Deploy 715e5ac by [email protected]
    2015-09-29T19:42:50.624831+00:00 heroku[api]: Release v11 created by [email protected]
    2015-09-29T19:42:51.132849+00:00 heroku[web.1]: State changed from crashed to starting
    2015-09-29T19:42:56.134355+00:00 heroku[web.1]: Starting process with command `node loader.js --no-daemon --no-silent`
    2015-09-29T19:42:58.582537+00:00 app[web.1]: NodeBB v0.7.2 Copyright (C) 2013-2014 NodeBB Inc.
    2015-09-29T19:42:58.581013+00:00 app[web.1]: 
    2015-09-29T19:42:58.582880+00:00 app[web.1]: This program comes with ABSOLUTELY NO WARRANTY.
    2015-09-29T19:42:58.582945+00:00 app[web.1]: For the full license, please visit: http://www.gnu.org/copyleft/gpl.html
    2015-09-29T19:42:58.582915+00:00 app[web.1]: This is free software, and you are welcome to redistribute it under certain conditions.
    2015-09-29T19:42:58.582983+00:00 app[web.1]: 
    2015-09-29T19:42:58.585384+00:00 app[web.1]: Clustering enabled: Spinning up 1 process(es).
    2015-09-29T19:42:58.585388+00:00 app[web.1]: 
    2015-09-29T19:42:58.969416+00:00 app[web.1]: 29/9 19:42 [14] - info: Time: Tue Sep 29 2015 19:42:58 GMT+0000 (UTC)
    2015-09-29T19:42:58.971906+00:00 app[web.1]: 29/9 19:42 [14] - info: Initializing NodeBB v0.7.2
    2015-09-29T19:43:00.597928+00:00 app[web.1]: 29/9 19:43 [14] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them:
    2015-09-29T19:43:00.597198+00:00 app[web.1]: [outdated] nodebb-plugin-sso-session v1.0.0, requires https://github.com/contentblvd/nodebb-plugin-sso-session.git
    2015-09-29T19:43:00.621467+00:00 app[web.1]: [cluster] Child Process (14) has exited (code: 0, signal: null)
    2015-09-29T19:43:00.598121+00:00 app[web.1]: 29/9 19:43 [14] - warn:     ./nodebb upgrade
    2015-09-29T19:43:01.400551+00:00 heroku[web.1]: Process exited with status 0
    2015-09-29T19:43:05.707029+00:00 heroku[web.1]: Starting process with command `node loader.js --no-daemon --no-silent`
    2015-09-29T19:43:07.737952+00:00 app[web.1]: NodeBB v0.7.2 Copyright (C) 2013-2014 NodeBB Inc.
    2015-09-29T19:43:07.738785+00:00 app[web.1]: This program comes with ABSOLUTELY NO WARRANTY.
    2015-09-29T19:43:07.735771+00:00 app[web.1]: 
    2015-09-29T19:43:07.738856+00:00 app[web.1]: This is free software, and you are welcome to redistribute it under certain conditions.
    2015-09-29T19:43:07.738915+00:00 app[web.1]: For the full license, please visit: http://www.gnu.org/copyleft/gpl.html
    2015-09-29T19:43:07.738985+00:00 app[web.1]: 
    2015-09-29T19:43:07.742875+00:00 app[web.1]: Clustering enabled: Spinning up 1 process(es).
    2015-09-29T19:43:07.742881+00:00 app[web.1]: 
    2015-09-29T19:43:08.261768+00:00 app[web.1]: 29/9 19:43 [14] - info: Time: Tue Sep 29 2015 19:43:08 GMT+0000 (UTC)
    2015-09-29T19:43:08.264657+00:00 app[web.1]: 29/9 19:43 [14] - info: Initializing NodeBB v0.7.2
    2015-09-29T19:43:01.412721+00:00 heroku[web.1]: State changed from starting to crashed
    2015-09-29T19:43:01.413927+00:00 heroku[web.1]: State changed from crashed to starting
    2015-09-29T19:43:09.654606+00:00 app[web.1]: [outdated] nodebb-plugin-sso-session v1.0.0, requires https://github.com/contentblvd/nodebb-plugin-sso-session.git
    2015-09-29T19:43:09.655386+00:00 app[web.1]: 29/9 19:43 [14] - warn: One or more of NodeBB's dependent packages are out-of-date. Please run the following command to update them:
    2015-09-29T19:43:09.655481+00:00 app[web.1]: 29/9 19:43 [14] - warn:     ./nodebb upgrade
    2015-09-29T19:43:09.691575+00:00 app[web.1]: [cluster] Child Process (14) has exited (code: 0, signal: null)
    2015-09-29T19:43:10.516695+00:00 heroku[web.1]: State changed from starting to crashed
    2015-09-29T19:43:10.489869+00:00 heroku[web.1]: Process exited with status 0
    
  • How are you trying to run it? ./nodebb start or node app?

  • @Nivix neither, as per the doc at https://docs.nodebb.org/en/latest/installing/cloud/heroku.html I have the following in my Procfile:

    web: node loader.js --no-daemon --no-silent
    
  • @markcarey did you get anywhere with this? Hitting the exact same problem


Suggested Topics


  • 0 Votes
    1 Posts
    197 Views
  • 0 Votes
    7 Posts
    1048 Views
  • 0 Votes
    23 Posts
    6571 Views
  • Error Starting NodeBB

    Technical Support
    1 Votes
    20 Posts
    5460 Views
  • 0 Votes
    3 Posts
    798 Views