AdmitHub / meteor-buildpack-horse

Heroku buildpack for Meteor v1.0+. The horse one.
MIT License
641 stars 586 forks source link

mv: cannot stat ‘/tmp/buildpack20160407-161-1peoq2o/build-k71Z/bundle’: No such file or directory #82

Closed JeanLebrument closed 8 years ago

JeanLebrument commented 8 years ago

Hello,

I get this error message when trying to deploy on heroku.

Counting objects: 1065, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (410/410), done.
Writing objects: 100% (1065/1065), 140.61 KiB | 0 bytes/s, done.
Total 1065 (delta 757), reused 931 (delta 632)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching set buildpack https://github.com/my-repo/meteor-buildpack-horse.git... done
remote: -----> Node.js app detected
remote: + export_env_dir /tmp/d20160407-161-1hssp02
remote: + env_dir=/tmp/d20160407-161-1hssp02
remote: + whitelist_regex=
remote: + blacklist_regex=^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH)$
remote: + [ -d /tmp/d20160407-161-1hssp02 ]
remote: + ls /tmp/d20160407-161-1hssp02
remote: + echo METEOR_SETTINGS
remote: + grep -qvE ^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH)$
remote: + grep -E 
remote: + cat /tmp/d20160407-161-1hssp02/METEOR_SETTINGS
remote: + :
remote: + echo MONGO_URL
remote: + + grep -qvE ^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH)$
remote: grep -E 
remote: + cat /tmp/d20160407-161-1hssp02/MONGO_URL
remote: + export MONGO_URL=nope
remote: + :
remote: + grep -qvE ^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH)$
remote: + grep -E 
remote: + echo PORT
remote: + cat /tmp/d20160407-161-1hssp02/PORT
remote: + export PORT=3000
remote: + :
remote: + grep -E 
remote: + grep -qvE ^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH)$
remote: + echo POSTGRESQL_URL
remote: + cat /tmp/d20160407-161-1hssp02/POSTGRESQL_URL
remote: + :
remote: + grep -qvE ^(PATH|GIT_DIR|CPATH|CPPATH|LD_PRELOAD|LIBRARY_PATH)$
remote: + grep -E 
remote: + echo ROOT_URL
remote: + cat /tmp/d20160407-161-1hssp02/ROOT_URL
remote: + export ROOT_URL=https://myapp.herokuapp.com
remote: + :
remote: + dirname -- /tmp/buildpack20160407-161-1peoq2o/bin/compile
remote: + cd -P -- /tmp/buildpack20160407-161-1peoq2o/bin
remote: + cd ..
remote: + pwd -P
remote: + BUILDPACK_DIR=/tmp/buildpack20160407-161-1peoq2o
remote: + APP_CHECKOUT_DIR=/tmp/build_21929a3e8268914b64f423993e860740
remote: + APP_SOURCE_DIR=/tmp/build_21929a3e8268914b64f423993e860740
remote: + [ ! -d /tmp/build_21929a3e8268914b64f423993e860740/.meteor ]
remote: + mktemp -d /tmp/buildpack20160407-161-1peoq2o/meteor-XXXX
remote: + METEOR_DIR=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O
remote: + COMPILE_DIR_SUFFIX=.meteor/heroku_build
remote: + COMPILE_DIR=/tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build
remote: + METEOR_PRETTY_OUTPUT=0
remote: + mkdir -p /tmp/build_21929a3e8268914b64f423993e860740 /tmp/buildpack20160407-161-1peoq2o/meteor-kc9O /tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build
remote: + PATH=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor:/tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build/bin:/app/bin:/app/vendor/bundle/bin:/app/vendor/bundle/ruby/2.3.0/bin:/usr/local/bin:/usr/bin:/bin:/tmp/codon/vendor/bin
remote: + echo -----> Installing node
remote: -----> Installing node
remote: + curl -sS --get https://semver.io/node/resolve/0.10.x
remote: + NODE_VERSION=0.10.44
remote: + NODE_URL=http://s3pository.heroku.com/node/v0.10.44/node-v0.10.44-linux-x64.tar.gz
remote: + tar -zxf+ curl -sS http://s3pository.heroku.com/node/v0.10.44/node-v0.10.44-linux-x64.tar.gz -o -
remote:  - -C /tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build --strip 1
remote: + export npm_config_prefix=/tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build
remote: + export CPATH=/tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build/include
remote: + export CPPPATH=/tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build/include
remote: + echo -----> Installing meteor
remote: -----> Installing meteor
remote: + HOME=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O /bin/sh
remote: + curl -sS https://install.meteor.com
remote: Downloading Meteor distribution
remote: ######################################################################## 100.0%
remote: 
remote: Meteor 1.3.1 has been installed in your home directory (~/.meteor).
remote: 
remote: Now you need to do one of the following:
remote: 
remote:   (1) Add "$HOME/.meteor" to your path, or
remote:   (2) Run this command as root:
remote:         cp "/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor/packages/meteor-tool/1.3.1/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
remote: 
remote: Then to get started, take a look at 'meteor --help' or see the docs at
remote: docs.meteor.com.
remote: + METEOR=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor/meteor
remote: + HOME=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O /tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor/meteor --version
remote: + sed -e s/Meteor /METEOR@/
remote: + CUR_RELEASE=METEOR@1.3.1
remote: + cat /tmp/build_21929a3e8268914b64f423993e860740/.meteor/release
remote: + APP_RELEASE=METEOR@1.2.1
remote: + test METEOR@1.3.1 != METEOR@1.2.1
remote: + echo -----> Upgrading meteor to METEOR@1.2.1
remote: -----> Upgrading meteor to METEOR@1.2.1
remote: + cat /tmp/build_21929a3e8268914b64f423993e860740/.meteor/release
remote: + HOME=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O /tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor/meteor update --release METEOR@1.2.1
remote: Installed. Run 'meteor update --release 1.2.1' inside of a particular project
remote: directory to update that project to Meteor 1.2.1.
remote: + echo -----> Bundling bundle
remote: -----> Bundling bundle
remote: + cd /tmp/build_21929a3e8268914b64f423993e860740
remote: + [ -e /tmp/build_21929a3e8268914b64f423993e860740/package.json ]
remote: + mktemp -d /tmp/buildpack20160407-161-1peoq2o/build-XXXX
remote: + BUNDLE_DEST=/tmp/buildpack20160407-161-1peoq2o/build-k71Z
remote: + HOME=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O /tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor/meteor remove-platform android
remote: 
remote: 
remote: While removing platforms:
remote: error: android: platform is not in this project
remote: 
remote: + true
remote: + [ -n  ]
remote: + echo -----> Building Meteor with ROOT_URL: https://myapp-staging.herokuapp.com
remote: -----> Building Meteor with ROOT_URL: https://myapp-staging.herokuapp.com
remote: + HOME=/tmp/buildpack20160407-161-1peoq2o/meteor-kc9O /tmp/buildpack20160407-161-1peoq2o/meteor-kc9O/.meteor/meteor build --server https://myapp-staging.herokuapp.com --directory /tmp/buildpack20160407-161-1peoq2o/build-k71Z
remote: simple:bookshelf: updating npm dependencies -- bookshelf, knex, exposify,
remote: bluebird...
remote: simple:pg: updating npm dependencies -- pg, murmurhash-js...
remote: 
remote: Changes to your project's package version selections:
remote: 
remote: accounts-base                              added, version 1.2.2
remote: accounts-base-pg-driver                    added, version 0.0.1
remote: accounts-facebook                          added, version 1.0.6
remote: accounts-google                            added, version 1.0.6
remote: accounts-oauth                             added, version 1.1.8
remote: accounts-password                          added, version 1.1.4
remote: accounts-password-pg-driver                added, version 0.0.1
remote: ajduke:bootstrap-tagsinput                 added, version 0.7.0
remote: aldeed:autoform                            added, version 5.8.1
remote: aldeed:autoform-bs-datepicker              added, version 1.1.1
remote: aldeed:collection2                         added, version 2.9.1
remote: aldeed:collection2-core                    added, version 1.1.1
remote: aldeed:schema-deny                         added, version 1.0.1
remote: aldeed:schema-index                        added, version 1.0.1
remote: aldeed:simple-schema                       added, version 1.5.3
remote: aldeed:template-extension                  added, version 3.4.3
remote: andrei:autoform-raty                       added, version 0.0.1
remote: anti:fake                                  added, version 0.4.1
remote: autoupdate                                 added, version 1.2.4
remote: babel-compiler                             added, version 5.8.24_1
remote: babel-runtime                              added, version 0.1.4
remote: base64                                     added, version 1.0.4
remote: binary-heap                                added, version 1.0.4
remote: blaze                                      added, version 2.1.3
remote: blaze-html-templates                       added, version 1.0.1
remote: blaze-tools                                added, version 1.0.4
remote: boilerplate-generator                      added, version 1.0.4
remote: caching-compiler                           added, version 1.0.0
remote: caching-html-compiler                      added, version 1.0.2
remote: callback-hook                              added, version 1.0.4
remote: cfs:http-methods                           added, version 0.0.30
remote: check                                      added, version 1.1.0
remote: coffeescript                               added, version 1.0.11
remote: cosmos:browserify                          added, version 0.5.1
remote: dburles:google-maps                        added, version 1.1.5
remote: dburles:mongo-collection-instances         added, version 0.1.3
remote: ddp                                        added, version 1.2.2
remote: ddp-client                                 added, version 1.2.1
remote: ddp-common                                 added, version 1.2.2
remote: ddp-rate-limiter                           added, version 1.0.0
remote: ddp-server                                 added, version 1.2.2
remote: deps                                       added, version 1.0.9
remote: diff-sequence                              added, version 1.0.1
remote: ecmascript                                 added, version 0.1.6
remote: ecmascript-runtime                         added, version 0.2.6
remote: edgee:slingshot                            added, version 0.7.1
remote: ejson                                      added, version 1.0.7
remote: elevatedevdesign:autoform-nouislider       added, version 0.1.1
remote: email                                      added, version 1.0.8
remote: es5-shim                                   added, version 4.1.14
remote: facebook                                   added, version 1.2.2
remote: fastclick                                  added, version 1.0.7
remote: fortawesome:fontawesome                    added, version 4.4.0_1
remote: fourseven:scss                             added, version 3.4.1
remote: geojson-utils                              added, version 1.0.4
remote: gfk:notifications                          added, version 1.1.4
remote: google                                     added, version 1.1.7
remote: gwendall:autoform-i18n                     added, version 0.1.9_1
remote: gwendall:simple-schema-i18n                added, version 0.2.1
remote: hot-code-push                              added, version 1.0.0
remote: html-tools                                 added, version 1.0.5
remote: htmljs                                     added, version 1.0.5
remote: http                                       added, version 1.1.1
remote: id-map                                     added, version 1.0.4
remote: iron:controller                            added, version 1.0.12
remote: iron:core                                  added, version 1.0.11
remote: iron:dynamic-template                      added, version 1.0.12
remote: iron:layout                                added, version 1.0.12
remote: iron:location                              added, version 1.0.11
remote: iron:middleware-stack                      added, version 1.0.11
remote: iron:router                                added, version 1.0.12
remote: iron:url                                   added, version 1.0.11
remote: jquery                                     added, version 1.11.4
remote: jsx                                        added, version 0.1.6
remote: launch-screen                              added, version 1.0.4
remote: less                                       added, version 2.5.1
remote: livedata                                   added, version 1.0.15
remote: localstorage                               added, version 1.0.5
remote: logging                                    added, version 1.0.8
remote: lookback:dropdowns                         added, version 1.4.1
remote: martino:i18n-conf                          added, version 0.3.4
remote: martino:iron-router-i18n                   added, version 1.2.3
remote: mdg:geolocation                            added, version 1.3.0
remote: mdg:validation-error                       added, version 0.2.0
remote: meteor                                     added, version 1.1.10
remote: meteor-base                                added, version 1.0.1
remote: meteorhacks:async                          added, version 1.0.0
remote: meteorhacks:npm                            added, version 1.5.0
remote: meteorspark:util                           added, version 0.2.0
remote: meteorsteam:meteor-postgres                added, version 0.1.4
remote: minifiers                                  added, version 1.1.7
remote: minimongo                                  added, version 1.0.10
remote: mizzao:build-fetcher                       added, version 0.2.0
remote: mizzao:jquery-ui                           added, version 1.11.4
remote: mobile-experience                          added, version 1.0.1
remote: mobile-status-bar                          added, version 1.0.6
remote: momentjs:moment                            added, version 2.12.0
remote: mongo                                      added, version 1.1.3
remote: mongo-id                                   added, version 1.0.1
remote: mquandalle:jade                            added, version 0.4.9
remote: mquandalle:jade-compiler                   added, version 0.4.5
remote: npm-bcrypt                                 added, version 0.7.8_2
remote: npm-mongo                                  added, version 1.4.39_1
remote: oauth                                      added, version 1.1.6
remote: oauth2                                     added, version 1.1.5
remote: observe-sequence                           added, version 1.0.7
remote: ordered-dict                               added, version 1.0.4
remote: peerlibrary:aws-sdk                        added, version 2.2.42_1
remote: peerlibrary:blocking                       added, version 0.5.2
remote: percolate:momentum                         added, version 0.7.2
remote: percolate:velocityjs                       added, version 1.1.0
remote: promise                                    added, version 0.5.1
remote: quackware:jplack-bootstrap-timepicker      added, version 0.2.2
remote: quackware:lukemadera-autoform-googleplace  added, version 1.0.8
remote: quackware:meteor-autoform-salary           added, version 0.0.1
remote: quackware:yogiben-autoform-file            added, version 0.2.9
remote: raix:eventemitter                          added, version 0.1.3
remote: rajit:bootstrap3-datepicker                added, version 1.5.1
remote: random                                     added, version 1.0.5
remote: rate-limit                                 added, version 1.0.0
remote: rcy:nouislider                             added, version 7.0.7_2
remote: reactive-dict                              added, version 1.1.3
remote: reactive-var                               added, version 1.0.6
remote: reload                                     added, version 1.1.4
remote: retry                                      added, version 1.0.4
remote: routepolicy                                added, version 1.0.6
remote: service-configuration                      added, version 1.0.5
remote: session                                    added, version 1.1.1
remote: sha                                        added, version 1.0.4
remote: simple:bookshelf                           added, version 0.0.1
remote: simple:pg                                  added, version 0.0.2
remote: spacebars                                  added, version 1.0.7
remote: spacebars-compiler                         added, version 1.0.7
remote: srp                                        added, version 1.0.4
remote: standard-minifiers                         added, version 1.0.2
remote: tap:i18n                                   added, version 1.8.0
remote: templating                                 added, version 1.1.5
remote: templating-tools                           added, version 1.0.0
remote: timbrandin:slick                           added, version 1.5.9
remote: tracker                                    added, version 1.0.9
remote: twbs:bootstrap                             added, version 3.3.6
remote: ui                                         added, version 1.0.8
remote: underscore                                 added, version 1.0.4
remote: url                                        added, version 1.0.5
remote: webapp                                     added, version 1.2.3
remote: webapp-hashing                             added, version 1.0.5
remote: yogiben:autoform-tags                      added, version 0.2.0
remote: 
remote: => Creating container package for npm modules
remote: 
remote: -> npm support has been initialized.
remote: -> please start your app again.
remote: 
remote: + mv /tmp/buildpack20160407-161-1peoq2o/build-k71Z/bundle /tmp/build_21929a3e8268914b64f423993e860740/.meteor/heroku_build/app
remote: mv: cannot stat ‘/tmp/buildpack20160407-161-1peoq2o/build-k71Z/bundle’: No such file or directory
remote: 
remote:  !     Push rejected, failed to compile Node.js app
remote: 
remote: Verifying deploy...
remote: 
remote: !       Push rejected to myapp-staging.
remote: 

Any suggestion?

yourcelf commented 8 years ago

It looks like meteorhacks:npm might be hijacking the bundling process to do initialization. Do you have the packages/npm-container subdirectory excluded by gitignore, or otherwise not checked into version control? It ought to be checked in so that npm doesn't need to reinitialize.

JeanLebrument commented 8 years ago

It worked! Perfect, thanks!

yourcelf commented 8 years ago

Great!