heroku-buildpack-meteor icon indicating copy to clipboard operation
heroku-buildpack-meteor copied to clipboard

App works locally but crashes on Heroku?

Open Broham opened this issue 8 years ago • 7 comments

I followed the steps in this stackoverflow question, but for some reason the app crashes on heroku even though it works on my local machine. I checked the logs and found this information:

2016-09-20T19:28:18.096258+00:00 heroku[web.1]: State changed from crashed to starting
2016-09-20T19:28:39.792352+00:00 heroku[web.1]: Starting process with command `node build/bundle/main.js`
2016-09-20T19:28:44.018244+00:00 app[web.1]: 
2016-09-20T19:28:44.018578+00:00 app[web.1]: assert.js:93
2016-09-20T19:28:44.018940+00:00 app[web.1]:   throw new assert.AssertionError({
2016-09-20T19:28:44.018944+00:00 app[web.1]:         ^
2016-09-20T19:28:44.021453+00:00 app[web.1]: AssertionError: "undefined" === "function"
2016-09-20T19:28:44.021455+00:00 app[web.1]:     at wrapPathFunction (/app/build/bundle/programs/server/mini-files.js:77:10)
2016-09-20T19:28:44.021456+00:00 app[web.1]:     at Object.<anonymous> (/app/build/bundle/programs/server/mini-files.js:108:24)
2016-09-20T19:28:44.021456+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2016-09-20T19:28:44.021457+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2016-09-20T19:28:44.021458+00:00 app[web.1]:     at Module.load (module.js:356:32)
2016-09-20T19:28:44.021459+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2016-09-20T19:28:44.021459+00:00 app[web.1]:     at Module.require (module.js:364:17)
2016-09-20T19:28:44.021460+00:00 app[web.1]:     at require (module.js:380:17)
2016-09-20T19:28:44.021461+00:00 app[web.1]:     at Object.<anonymous> (/app/build/bundle/programs/server/boot.js:9:13)
2016-09-20T19:28:44.021461+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2016-09-20T19:28:44.174809+00:00 heroku[web.1]: State changed from starting to crashed
2016-09-20T19:28:44.137122+00:00 heroku[web.1]: Process exited with status 8

Any idea why this might be happening or how I can fix it?

Broham avatar Sep 20 '16 19:09 Broham

@Broham I too am facing the same issue. I would assume that this build pack would not work with meteor 1.4.x

Seems this needs to be fixed asap.

rahulserver avatar Sep 21 '16 04:09 rahulserver

Same issue.

maxko87 avatar Sep 22 '16 18:09 maxko87

i have same problem

frayeralex avatar Sep 25 '16 18:09 frayeralex

this buildpack is not being updated anymore, i guess.. The version of node is still on v0.10.x, meteor is already using 4.5.0 version of node. I've made a guide for this, here. The buildpack I've used there is a fork of this buildpack.

ickyrr avatar Sep 26 '16 09:09 ickyrr

@ickyrr Thank you for the workaround! It works for me.

vlasov01 avatar Nov 24 '16 01:11 vlasov01

@ickyrr could you give me access to your page?

Luis16287 avatar Nov 25 '16 13:11 Luis16287

Same problem

NagaSai6 avatar Aug 08 '20 12:08 NagaSai6