[solved] Mup deploy stopped working


#1

Last week mup deploy was working fine, and the app is still running fine on an AWS EC2 Ubuntu server. Now when I try to push the latest version it fails after a few seconds, before even trying to communicate with the server. The app works fine locally. Can someone see what’s wrong from this error message?

mup deploy

Meteor Up: Production Quality Meteor Deployments
------------------------------------------------

“ Checkout Kadira!
  It's the best way to monitor performance of your app.
  Visit: https://kadira.io/mup ”

Building Started: /home/fnpr/Desktop/work/2015_wissen_teilen/meteorAppDev/
Bundling Error: code=2, error:
-------------------STDOUT-------------------

-------------------STDERR-------------------
6_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:245:19)
  at Object.exports.bundle (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/bundler.js:2040:31)
  at buildCommand (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/commands.js:894:30)
  at Command.main.registerCommand._.extend.name [as func] (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/commands.js:746:12)
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/main.js:1363:23

/home/fnpr/npm/lib/node_modules/mup/lib/build.sh: line 42: cd: /tmp/15a5644c-88cd-49b5-968e-63f0d98e5e30: No such file or directory
tar: bundle: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

#2

I tried meteor build and can see now the real error:

meteor build ../meteorAppDeploy/
                                              
/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:245
                                                throw(ex);
                                                      ^
Error: RangeError: Maximum call stack size exceeded
  at Object.Future.wait (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/fibers/future.js:395:16)
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:556:31
  at Array.forEach (native)
  at Function._.each._.forEach (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:554:9
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:352:18
  at [object Object]._.extend.withValue (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:345:34
  at [object Object]._.extend.withValue (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:343:23
  at [object Object]._.extend.withValue (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/fiber-helpers.js:115:14)
  at enterJob (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:317:26)
  at Object.forkJoin (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/buildmessage.js:531:3)
  at [object Object]._.extend.minifyJs (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/bundler.js:818:28)
  at [object Object]._.extend.make (/home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/bundler.js:509:12)
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/bundler.js:2054:14
  at /home/fnpr/.meteor/packages/meteor-tool/.1.1.3.1a18zfr++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/tools/bundler.js:2099:20
  at Array.forEach (native)

I think I’ve seen that mentioned before. Going to research.


#3

Trying meteor build led me to this issue: https://github.com/meteor/meteor/issues/3019

It seems that what triggers the problem is the size of the default OpenLayers library (almost half megabyte).

Building my custom simplified OpenLayers brings down the size to 140Kb, and building works again.

You can build a custom OpenLayers with

npm tasks/build.js yourMapConfig.json yourLittleOpenLayers.js