arunoda / meteor-up-legacy

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

meteor-tool bunding error #208

Open dasmodel opened 9 years ago

dasmodel commented 9 years ago

I'm having an issue deploying with Mup. I can't seem to figure out what is going wrong. Here is the error message after I mup deploy

Any hints as to how to fix would be great. I am running the latest meteor release. Let me know if you need more info

Building Started: .
Bundling Error: code=1, error:
-------------------STDOUT-------------------

-------------------STDERR-------------------
r-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:317:26)
  at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:536:24
  at runWithEnvironment (/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:136:21)
  at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:143:14
  at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:549:11

/usr/local/lib/node_modules/mup/lib/build.sh: line 42: cd: /tmp/b47bd338-c403-4a29-b060-e35a51ae39be: No such file or directory
tar: bundle: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
arunoda commented 9 years ago

Try to run your meteor app, before doing mup deploy.

On Thu Jan 01 2015 at 12:42:15 PM dasmodel notifications@github.com wrote:

I'm having an issue deploying with Mup. I can't seem to figure out what is going wrong. Here is the error message after I mup deploy

Any hints as to how to fix would be great. I am running the latest meteor release. Let me know if you need more info

Building Started: . Bundling Error: code=1, error: -------------------STDOUT-------------------

-------------------STDERR------------------- r-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:317:26) at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:536:24 at runWithEnvironment (/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:136:21) at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/fiber-helpers.js:143:14 at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:549:11

/usr/local/lib/node_modules/mup/lib/build.sh: line 42: cd: /tmp/b47bd338-c403-4a29-b060-e35a51ae39be: No such file or directory tar: bundle: Cannot stat: No such file or directory tar: Error exit delayed from previous errors.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208.

dasmodel commented 9 years ago

I am able to run my meteor app fine without any errors. However I still get this same error when running mup deploy Thank you for the quick response.

dasmodel commented 9 years ago

here are my mup logs:

error:   script /opt/myApp/app/main.js does not exist.
error:   Cannot start forever
error:   script /opt/myApp/app/main.js does not exist.
error:   Cannot start forever
error:   script /opt/myApp/app/main.js does not exist.
error:   Cannot start forever
error:   script /opt/myApp/app/main.js does not exist.
error:   Cannot start forever
error:   script /opt/myApp/app/main.js does not exist.
arunoda commented 9 years ago

Mup logs are fine, since app is not deployed yet.

Try invoking meteor build to get the bundle. See if there's an error.

Is this a cordova app? On 2015 ජන 2, සිකු at පෙ.ව. 8.15 dasmodel notifications@github.com wrote:

here are my mup logs:

error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506361.

dasmodel commented 9 years ago

This isn’t a cordova app. I think meteor just has something related to cordova in their core library since all the cordova stuff is in .meteor/ . Running meteor build threw a huge error. Here’s a snippet since the error output is enormous:

/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173
            throw(ex);
                  ^
Error: RangeError: Maximum call stack size exceeded
  at Object.Future.wait (/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:323:16)
  at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:556:31
  at Array.forEach (native)
  at Function._.each._.forEach (/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)
  at /Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:554:9

On Jan 1, 2015, at 6:58 PM, Arunoda Susiripala [Masked] FWD_0QtKR3lb@opayq.com wrote:

github.com> wrote:

here are my mup logs:

error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506361.

— Reply to this email directly or view it on GitHub.

arunoda commented 9 years ago

Hmm.

I'm not sure why this error caused. Could you submit into meteor's issue list?

On Fri Jan 02 2015 at 8:36:13 AM dasmodel notifications@github.com wrote:

This isn’t a cordova app. I think meteor just has something related to cordova in their core library since all the cordova stuff is in .meteor/ . Running meteor build threw a huge error. Here’s a snippet since the error output is enormous:

/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173

throw(ex);
^
Error: RangeError: Maximum call stack size exceeded
at Object.Future.wait
(/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:323:16)

at
/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:556:31

at Array.forEach (native)
at Function._.each._.forEach
(/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:79:11)

at
/Users/dm/.meteor/packages/meteor-tool/.1.0.38.1v7ejbf++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/buildmessage.js:554:9

On Jan 1, 2015, at 6:58 PM, Arunoda Susiripala [Masked] < FWD_0QtKR3lb@opayq.com> wrote:

github.com> wrote:

here are my mup logs:

error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506361.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506756.

dasmodel commented 9 years ago

will do. thank you for taking a look.

On Jan 1, 2015, at 7:36 PM, Arunoda Susiripala [Masked] FWD_yd7CjlV2@opayq.com wrote:

wrote:

github.com> wrote:

here are my mup logs:

error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506361.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506756.

— Reply to this email directly or view it on GitHub.

arunoda commented 9 years ago

no problem at all.

On Fri Jan 02 2015 at 9:07:43 AM dasmodel notifications@github.com wrote:

will do. thank you for taking a look.

On Jan 1, 2015, at 7:36 PM, Arunoda Susiripala [Masked] < FWD_yd7CjlV2@opayq.com> wrote:

wrote:

github.com> wrote:

here are my mup logs:

error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist. error: Cannot start forever error: script /opt/myApp/app/main.js does not exist.

— Reply to this email directly or view it on GitHub < https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506361>.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68506756.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68507342.

dasmodel commented 9 years ago

Ok I was able to find the cause of the meteor build error by creating a fresh project and adding back components individually. The file that broke the build was a 3rd party plugin that I had commented out completely because it was being executed when not in use. Deleting it did the trick.

However, when I try to deploy I now run into this error:

[104.236.100.163] ✘ Invoking deployment process: FAILED

    -----------------------------------STDERR-----------------------------------
    oot_dir=/root/.node-gyp/0.10.33',
    gyp info spawn args   '-Dmodule_root_dir=/opt/packaging/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt',
    gyp info spawn args   '--depth=.',
    gyp info spawn args   '--no-parallel',
    gyp info spawn args   '--generator-output',
    gyp info spawn args   'build',
    gyp info spawn args   '-Goutput_dir=.' ]
    gyp info spawn make
    gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    gyp info ok 
    npm WARN 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
    stop: Unknown instance: 
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to localhost port 80: Connection refused
    App did not pick up! Please check app logs.
    -----------------------------------STDOUT-----------------------------------
    e
      SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node: Finished
      COPY Release/bcrypt_lib.node
    make: Leaving directory `/opt/packaging/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'

    > fibers@1.0.1 install /opt/packaging/tmp/bundle/programs/server/node_modules/fibers
    > node ./build.js

    `linux-x64-v8-3.14` exists; testing
    Binary is fine; exiting
    underscore@1.5.2 node_modules/underscore

    semver@4.1.0 node_modules/semver

    eachline@2.3.3 node_modules/eachline
    └── type-of@2.0.1

    source-map-support@0.2.8 node_modules/source-map-support
    └── source-map@0.1.32 (amdefine@0.1.0)

    fibers@1.0.1 node_modules/fibers

    chalk@0.5.1 node_modules/chalk
    ├── ansi-styles@1.1.0
    ├── escape-string-regexp@1.0.2
    ├── supports-color@0.2.0
    ├── strip-ansi@0.3.0 (ansi-regex@0.2.1)
    └── has-ansi@0.1.0 (ansi-regex@0.2.1)
    Waiting for MongoDB to initialize. (5 minutes)
    connected
    packaging start/running, process 21211
    Waiting for 30 seconds while app is booting up
    Checking is app booted or not?
    ----------------------------------------------------------------------------
Completed TaskList: Deploy app 'packaging' (linux)

I will keep looking into it but let me know if u have any ideas. thanks

arunoda commented 9 years ago

Check logs.

On Fri Jan 02 2015 at 9:40:41 AM dasmodel notifications@github.com wrote:

Ok I was able to find the cause of the meteor build error by creating a fresh project and adding back components individually. The file that broke the build was a 3rd party plugin that I had commented out completely because it was being executed when not in use. Deleting it did the trick.

However, when I try to deploy I now run into this error:

[104.236.100.163] ✘ Invoking deployment process: FAILED

-----------------------------------STDERR-----------------------------------
oot_dir=/root/.node-gyp/0.10.33',
gyp info spawn args   '-Dmodule_root_dir=/opt/packaging/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp info ok
npm WARN 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
stop: Unknown instance:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 80: Connection refused App did not pick up! Please check app logs. -----------------------------------STDOUT----------------------------------- e SOLINK_MODULE(target) Release/obj.target/bcrypt_lib.node: Finished COPY Release/bcrypt_lib.node make: Leaving directory `/opt/packaging/tmp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build'

> fibers@1.0.1 install /opt/packaging/tmp/bundle/programs/server/node_modules/fibers
> node ./build.js

`linux-x64-v8-3.14` exists; testing
Binary is fine; exiting
underscore@1.5.2 node_modules/underscore

semver@4.1.0 node_modules/semver

eachline@2.3.3 node_modules/eachline
└── type-of@2.0.1

source-map-support@0.2.8 node_modules/source-map-support
└── source-map@0.1.32 (amdefine@0.1.0)

fibers@1.0.1 node_modules/fibers

chalk@0.5.1 node_modules/chalk
├── ansi-styles@1.1.0
├── escape-string-regexp@1.0.2
├── supports-color@0.2.0
├── strip-ansi@0.3.0 (ansi-regex@0.2.1)
└── has-ansi@0.1.0 (ansi-regex@0.2.1)
Waiting for MongoDB to initialize. (5 minutes)
connected
packaging start/running, process 21211
Waiting for 30 seconds while app is booting up
Checking is app booted or not?
----------------------------------------------------------------------------

Completed TaskList: Deploy app 'packaging' (linux)

I will keep looking into it but let me know if u have any ideas. thanks

— Reply to this email directly or view it on GitHub https://github.com/arunoda/meteor-up/issues/208#issuecomment-68508008.