arunoda / meteor-up-legacy

Production Quality Meteor Deployments
MIT License
2.26k stars 395 forks source link

[meteor 1.4] AssertionError: "undefined" === "function" #1091

Open WayneUong opened 8 years ago

WayneUong commented 8 years ago

Upgraded 1.3.5.1 to 1.4, it works fine locally, but when I deployed to EC2 using mupx

[52.35.45.35] x Verifying deployment: FAILED

-----------------------------------STDERR-----------------------------------
package.json meteor-dev-bundle@0.0.0 No description
npm WARN package.json meteor-dev-bundle@0.0.0 No repository field.
npm WARN package.json meteor-dev-bundle@0.0.0 No README data
npm WARN cannot run in wd meteor-dev-bundle@0.0.0 node npm-rebuild.js (wd=/bundle/bundle/programs/server)
=> Starting meteor app on port:80

assert.js:93
  throw new assert.AssertionError({
        ^
AssertionError: "undefined" === "function"
    at wrapPathFunction (/bundle/bundle/programs/server/mini-files.js:77:10)
    at Object.<anonymous> (/bundle/bundle/programs/server/mini-files.js:108:24)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:9:13)
    at Module._compile (module.js:456:26)

=> Redeploying previous version of the app
aaronsmulktis commented 7 years ago

after trying all the things mentioned here @cwaring had the only solution that worked for me

i had to change _/usr/local/lib/nodemodules/mupx/templates/linux/start.sh in 3 places

edu2969 commented 7 years ago

Thnx @humbertocruz Working on Debian 8 (64) Npm@2.15.11, Node@4.6.2, METEOR@1.4.2.3

@devarthurribeiro explains the docker image replacing on start.sh

avishaan commented 7 years ago

I ended up switching to the newer kadira mup

suyuti commented 7 years ago

same problem still remaining