fractal-code / meteor-azure

Automate Meteor deployments on Azure App Service
MIT License
67 stars 20 forks source link

ERROR! Could not generate Meteor bundle #21

Closed mattdell closed 7 years ago

mattdell commented 7 years ago

I'm getting this when I run the script. It seems to be failing in build.sh around here...

echo meteor-azure: Building app
cmd //c meteor build "%DEPLOYMENT_TEMP%" --directory --server-only
if [ ! -e "$DEPLOYMENT_TEMP\bundle\programs\server\package.json" ]; then
  echo "meteor-azure: ERROR! Could not generate Meteor bundle"
  exit 1
fi

Presumably it can't find that package.json file. Any ideas?

ramijarrar commented 7 years ago

Have you configured your application settings on Azure?

mattdell commented 7 years ago

This is the bare minimum, yeah?

screen shot 2017-02-16 at 01 51 34
mattdell commented 7 years ago

App structure is...

screen shot 2017-02-16 at 01 53 31
ramijarrar commented 7 years ago

Your values for "METEOR_AZURE_NODE_VERSION" and "METEOR_AZURE_NPM_VERSION" should reflect what is bundled with your current Meteor release (as per docs).

The easiest way to confirm this is by running meteor node -v and meteor npm -v on your local machine.

mattdell commented 7 years ago

Hmm... that's a good spot. I've updated the values to 4.6.2 and 3.10.9 respectively but I still get the same error.

remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id '3baba2aa82'.
remote: Running custom deployment command...
remote: Running deployment command...
remote: meteor-azure: Setting Node version
remote: Downloading node.js version 4.6.2 (32-bit)... Complete
remote: Creating D:/home/meteor-azure/nvm\temp
remote: 
remote: Downloading npm version 2.15.11... Complete
remote: ..................................................
remote: Installing npm v2.15.11...
remote: 
remote: Installation complete. If you want to use this version, type
remote: 
remote: nvm use 4.6.2
remote: meteor-azure: Now using Node v4.6.2 (32-bit)
remote: meteor-azure: Setting NPM version
remote: .......................................................................................................................................
remote: D:\home\meteor-azure\nvm\v4.6.2\npm -> D:\home\meteor-azure\nvm\v4.6.2\node_modules\npm\bin\npm-cli.js
remote: ....
remote: npm@3.10.9 D:\home\meteor-azure\nvm\v4.6.2\node_modules\npm
remote: meteor-azure: Now using NPM v3.10.9
remote: meteor-azure: Installing JSON tool
remote: ...........
remote: D:\home\meteor-azure\nvm\v4.6.2\json -> D:\home\meteor-azure\nvm\v4.6.2\node_modules\json\lib\json.js
remote: D:\home\meteor-azure\nvm\v4.6.2
remote: `-- json@9.0.4 
remote: 
remote: meteor-azure: Installing NPM dependencies
remote: .............................................
remote: meteor-azure: Building app
remote: The system cannot find the path specified.
remote: meteor-azure: ERROR! Could not generate Meteor bundle
mattdell commented 7 years ago

Further digging... I've output the path it's looking for which is

D:\local\Temp\8d456129ea5ac45\bundle\programs\server\package.json

If I go into the Azure console a cd to D:\local\Temp\8d456129ea5ac45 the directory is empty.

ramijarrar commented 7 years ago

Can you try rebuilding the app (without changing any configuration) then paste the full deployment log here when it's done.

mattdell commented 7 years ago

I'm not sure which command you meant exactly for "rebuilding the app". From what I can tell I simply deploy my unbuilt meteor app with the config files and deployment script to Azure and it builds from there.

I attempted to deploy onto another App Service and have the same result. I found that I forgot to mention that previously the script times out when downloading Meteor. Perhaps that is the cause? Regardless here is the full deployment log from start to finish including the timeout.

mdell@UK134489 ~/W/R/my-website> git push azure master
Password for 'https://username@my-website.scm.azurewebsites.net:443': 
Counting objects: 9302, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6643/6643), done.
Writing objects: 100% (9302/9302), 17.12 MiB | 744.00 KiB/s, done.
Total 9302 (delta 2226), reused 9266 (delta 2209)
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id '9eea349237'.
remote: Running custom deployment command...
remote: Running deployment command...
remote: meteor-azure: Installing Meteor
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
remote:                                  Dload  Upload   Total   Spent    Left  Speed
remote: 
remote:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
remote:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
remote:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
remote: 
remote:   2  165M    2 4895k    0     0  4176k      0  0:00:40  0:00:01  0:00:39 4176k
remote:   7  165M    7 12.9M    0     0  6121k      0  0:00:27  0:00:02  0:00:25 8400k
remote:  12  165M   12 21.0M    0     0  6809k      0  0:00:24  0:00:03  0:00:21 8352k
remote:  18  165M   18 29.9M    0     0  7355k      0  0:00:23  0:00:04  0:00:19 8597k
remote:  22  165M   22 37.8M    0     0  7492k      0  0:00:22  0:00:05  0:00:17 8464k
remote:  28  165M   28 47.3M    0     0  7854k      0  0:00:21  0:00:06  0:00:15 8716k
remote:  33  165M   33 56.3M    0     0  8044k      0  0:00:21  0:00:07  0:00:14 8880k
remote:  38  165M   38 63.9M    0     0  7834k      0  0:00:21  0:00:08  0:00:13 8461k
remote:  42  165M   42 70.4M    0     0  7862k      0  0:00:21  0:00:09  0:00:12 8284k
remote:  47  165M   47 78.5M    0     0  7910k      0  0:00:21  0:00:10  0:00:11 8342k
remote:  53  165M   53 87.9M    0     0  8065k      0  0:00:21  0:00:11  0:00:10 8326k
remote:  57  165M   57 96.0M    0     0  8077k      0  0:00:21  0:00:12  0:00:09 8124k
remote:  62  165M   62  104M    0     0  8087k      0  0:00:21  0:00:13  0:00:08 8526k
remote:  67  165M   67  112M    0     0  8106k      0  0:00:20  0:00:14  0:00:06 8553k
remote:  72  165M   72  120M    0     0  8122k      0  0:00:20  0:00:15  0:00:05 8553k
remote:  77  165M   77  128M    0     0  8152k      0  0:00:20  0:00:16  0:00:04 8345k
remote:  82  165M   82  136M    0     0  8133k      0  0:00:20  0:00:17  0:00:03 8268k
remote:  87  165M   87  144M    0     0  8135k      0  0:00:20  0:00:18  0:00:02 8262k
remote:  92  165M   92  152M    0     0  8160k      0  0:00:20  0:00:19  0:00:01 8313k
remote:  96  165M   96  160M    0     0  8164k      0  0:00:20  0:00:20 --:--:-- 8294k
remote: 100  165M  100  165M    0     0  8156k      0  0:00:20  0:00:20 --:--:-- 8172k
fatal: The remote end hung up unexpectedly
error: error in sideband demultiplexer
To https://my-website.scm.azurewebsites.net:443/my-website.git
 * [new branch]      master -> master

Error here πŸ‘†πŸ»

Then continue πŸ‘‡πŸ»

mdell@UK134489 ~/W/R/my-website> git commit --allow-empty -m "deploy azure"
[master c8e1dff] deploy azure
mdell@UK134489 ~/W/R/my-website> git push azure master
Counting objects: 1, done.
Writing objects: 100% (1/1), 182 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id 'c8e1dff867'.
remote: Running custom deployment command...
remote: Running deployment command...
remote: meteor-azure: Installing NVM
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
remote:                                  Dload  Upload   Total   Spent    Left  Speed
remote: 
remote:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
remote: 100   594    0   594    0     0   1000      0 --:--:-- --:--:-- --:--:--  1027
remote: 
remote:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
remote:   7 2409k    7  185k    0     0   112k      0  0:00:21  0:00:01  0:00:20  179k
remote:  43 2409k   43 1052k    0     0   400k      0  0:00:06  0:00:02  0:00:04  526k
remote: 100 2409k  100 2409k    0     0   744k      0  0:00:03  0:00:03 --:--:--  923k
remote: Archive:  nvm-noinstall.zip
remote:   inflating: nvm/LICENSE             
remote:   inflating: nvm/elevate.cmd         
remote:   inflating: nvm/elevate.vbs         
remote:   inflating: nvm/install.cmd         
remote:   inflating: nvm/nvm.exe             
remote: meteor-azure: Setting Node version
remote: Downloading node.js version 4.6.2 (32-bit)... Complete
remote: Creating D:/home/meteor-azure/nvm\temp
remote: 
remote: Downloading npm version 2.15.11... Complete
remote: .................................
remote: Installing npm v2.15.11...
remote: 
remote: Installation complete. If you want to use this version, type
remote: 
remote: nvm use 4.6.2
remote: meteor-azure: Now using Node v4.6.2 (32-bit)
remote: meteor-azure: Setting NPM version
remote: ...........................................................................................................................................................................
remote: D:\home\meteor-azure\nvm\v4.6.2\npm -> D:\home\meteor-azure\nvm\v4.6.2\node_modules\npm\bin\npm-cli.js
remote: ......
remote: npm@3.10.9 D:\home\meteor-azure\nvm\v4.6.2\node_modules\npm
remote: .
remote: meteor-azure: Now using NPM v3.10.9
remote: meteor-azure: Installing JSON tool
remote: ................
remote: D:\home\meteor-azure\nvm\v4.6.2\json -> D:\home\meteor-azure\nvm\v4.6.2\node_modules\json\lib\json.js
remote: D:\home\meteor-azure\nvm\v4.6.2
remote: `-- json@9.0.4 
remote: 
remote: ..
remote: meteor-azure: Installing NPM dependencies
remote: ............................................
remote: npm WARN deprecated husl@5.0.3: Project renamed to HSLuv
remote: ...................................................................................................................................................................................................
remote: npm WARN prefer global voc@0.5.0 should be installed with -g
remote: .......
remote: my-website@ D:\home\site\repository
remote: +-- alasql@0.3.6 
remote: | +-- dom-storage@2.0.2 
remote: | +-- es6-promise@3.3.1 
remote: | +-- request@2.79.0 
remote: | | +-- aws-sign2@0.6.0 
remote: | | +-- aws4@1.6.0 
remote: | | +-- caseless@0.11.0 
remote: | | +-- combined-stream@1.0.5 
remote: | | | `-- delayed-stream@1.0.0 
remote: | | +-- extend@3.0.0 
remote: | | +-- forever-agent@0.6.1 
remote: | | +-- form-data@2.1.2 
remote: | | | `-- asynckit@0.4.0 
remote: | | +-- har-validator@2.0.6 
remote: | | | +-- chalk@1.1.3 
remote: | | | | +-- ansi-styles@2.2.1 
remote: | | | | +-- escape-string-regexp@1.0.5 
remote: | | | | +-- has-ansi@2.0.0 
remote: | | | | `-- supports-color@2.0.0 
remote: | | | +-- commander@2.9.0 
remote: | | | +-- is-my-json-valid@2.15.0 
remote: | | | | +-- generate-function@2.0.0 
remote: | | | | +-- generate-object-property@1.2.0 
remote: | | | | | `-- is-property@1.0.2 
remote: | | | | +-- jsonpointer@4.0.1 
remote: | | | | `-- xtend@4.0.1 
remote: | | | `-- pinkie-promise@2.0.1 
remote: | | |   `-- pinkie@2.0.4 
remote: | | +-- hawk@3.1.3 
remote: | | | +-- boom@2.10.1 
remote: | | | +-- cryptiles@2.0.5 
remote: | | | +-- hoek@2.16.3 
remote: | | | `-- sntp@1.0.9 
remote: | | +-- http-signature@1.1.1 
remote: | | | +-- assert-plus@0.2.0 
remote: | | | +-- jsprim@1.3.1 
remote: | | | | +-- extsprintf@1.0.2 
remote: | | | | +-- json-schema@0.2.3 
remote: | | | | `-- verror@1.3.6 
remote: | | | `-- sshpk@1.10.2 
remote: | | |   +-- asn1@0.2.3 
remote: | | |   +-- assert-plus@1.0.0 
remote: | | |   +-- bcrypt-pbkdf@1.0.1 
remote: | | |   +-- dashdash@1.14.1 
remote: | | |   | `-- assert-plus@1.0.0 
remote: | | |   +-- ecc-jsbn@0.1.1 
remote: | | |   +-- getpass@0.1.6 
remote: | | |   | `-- assert-plus@1.0.0 
remote: | | |   +-- jodid25519@1.0.2 
remote: | | |   +-- jsbn@0.1.1 
remote: | | |   `-- tweetnacl@0.14.5 
remote: | | +-- is-typedarray@1.0.0 
remote: | | +-- isstream@0.1.2 
remote: | | +-- json-stringify-safe@5.0.1 
remote: | | +-- mime-types@2.1.14 
remote: | | | `-- mime-db@1.26.0 
remote: | | +-- oauth-sign@0.8.2 
remote: | | +-- qs@6.3.1 
remote: | | +-- stringstream@0.0.5 
remote: | | +-- tough-cookie@2.3.2 
remote: | | | `-- punycode@1.4.1 
remote: | | +-- tunnel-agent@0.4.3 
remote: | | `-- uuid@3.0.1 
remote: | +-- xlsjs@0.7.5 
remote: | | +-- cfb@0.10.3 
remote: | | | `-- commander@2.9.0 
remote: | | +-- codepage@1.3.8 
remote: | | | +-- commander@2.9.0 
remote: | | | +-- concat-stream@1.6.0 
remote: | | | | `-- typedarray@0.0.6 
remote: | | | `-- voc@0.5.0 
remote: | | +-- commander@2.9.0 
remote: | | | `-- graceful-readlink@1.0.1 
remote: | | `-- ssf@0.8.2 
remote: | |   +-- colors@0.6.2 
remote: | |   `-- frac@0.3.1 
remote: | +-- xlsx@0.8.3 
remote: | | +-- adler-32@1.0.0 
remote: | | | `-- printj@1.0.0 
remote: | | +-- codepage@1.6.0 
remote: | | +-- commander@2.9.0 
remote: | | +-- crc-32@1.0.1 
remote: | | `-- exit-on-epipe@1.0.0 
remote: | `-- yargs@5.0.0 
remote: |   +-- cliui@3.2.0 
remote: |   | +-- strip-ansi@3.0.1 
remote: |   | | `-- ansi-regex@2.1.1 
remote: |   | `-- wrap-ansi@2.1.0 
remote: |   +-- decamelize@1.2.0 
remote: |   +-- get-caller-file@1.0.2 
remote: |   +-- lodash.assign@4.2.0 
remote: |   +-- os-locale@1.4.0 
remote: |   | `-- lcid@1.0.0 
remote: |   |   `-- invert-kv@1.0.0 
remote: |   +-- read-pkg-up@1.0.1 
remote: |   | +-- find-up@1.1.2 
remote: |   | | `-- path-exists@2.1.0 
remote: |   | `-- read-pkg@1.1.0 
remote: |   |   +-- load-json-file@1.1.0 
remote: |   |   | +-- graceful-fs@4.1.11 
remote: |   |   | +-- parse-json@2.2.0 
remote: |   |   | | `-- error-ex@1.3.0 
remote: |   |   | |   `-- is-arrayish@0.2.1 
remote: |   |   | +-- pify@2.3.0 
remote: |   |   | `-- strip-bom@2.0.0 
remote: |   |   |   `-- is-utf8@0.2.1 
remote: |   |   +-- normalize-package-data@2.3.5 
remote: |   |   | +-- hosted-git-info@2.2.0 
remote: |   |   | +-- is-builtin-module@1.0.0 
remote: |   |   | | `-- builtin-modules@1.1.1 
remote: |   |   | +-- semver@5.3.0 
remote: |   |   | `-- validate-npm-package-license@3.0.1 
remote: |   |   |   +-- spdx-correct@1.0.2 
remote: |   |   |   | `-- spdx-license-ids@1.2.2 
remote: |   |   |   `-- spdx-expression-parse@1.0.4 
remote: |   |   `-- path-type@1.1.0 
remote: |   +-- require-directory@2.1.1 
remote: |   +-- require-main-filename@1.0.1 
remote: |   +-- set-blocking@2.0.0 
remote: |   +-- string-width@1.0.2 
remote: |   | +-- code-point-at@1.1.0 
remote: |   | `-- is-fullwidth-code-point@1.0.0 
remote: |   |   `-- number-is-nan@1.0.1 
remote: |   +-- which-module@1.0.0 
remote: |   +-- window-size@0.2.0 
remote: |   +-- y18n@3.2.1 
remote: |   `-- yargs-parser@3.2.0 
remote: |     `-- camelcase@3.0.0 
remote: +-- babel-runtime@6.18.0 
remote: | +-- core-js@2.4.1 
remote: | `-- regenerator-runtime@0.9.6 
remote: +-- chart.js@2.4.0 
remote: | `-- chartjs-color@2.0.0 
remote: |   +-- chartjs-color-string@0.4.0 
remote: |   | `-- color-name@1.1.1 
remote: |   `-- color-convert@0.5.3 
remote: +-- classnames@2.2.5 
remote: +-- enzyme@2.7.1 
remote: | +-- cheerio@0.22.0 
remote: | | +-- css-select@1.2.0 
remote: | | | +-- boolbase@1.0.0 
remote: | | | +-- css-what@2.1.0 
remote: | | | `-- nth-check@1.0.1 
remote: | | +-- dom-serializer@0.1.0 
remote: | | | `-- domelementtype@1.1.3 
remote: | | +-- entities@1.1.1 
remote: | | +-- lodash.assignin@4.2.0 
remote: | | +-- lodash.bind@4.2.1 
remote: | | +-- lodash.defaults@4.2.0 
remote: | | +-- lodash.filter@4.6.0 
remote: | | +-- lodash.flatten@4.4.0 
remote: | | +-- lodash.foreach@4.5.0 
remote: | | +-- lodash.map@4.6.0 
remote: | | +-- lodash.merge@4.6.0 
remote: | | +-- lodash.pick@4.4.0 
remote: | | +-- lodash.reduce@4.6.0 
remote: | | +-- lodash.reject@4.6.0 
remote: | | `-- lodash.some@4.6.0 
remote: | +-- function.prototype.name@1.0.0 
remote: | | +-- define-properties@1.1.2 
remote: | | | `-- foreach@2.0.5 
remote: | | +-- function-bind@1.1.0 
remote: | | `-- is-callable@1.1.3 
remote: | +-- is-subset@0.1.1 
remote: | +-- object-is@1.0.1 
remote: | +-- object.assign@4.0.4 
remote: | | `-- object-keys@1.0.11 
remote: | +-- object.entries@1.0.4 
remote: | | +-- es-abstract@1.7.0 
remote: | | | +-- es-to-primitive@1.1.1 
remote: | | | | +-- is-date-object@1.0.1 
remote: | | | | `-- is-symbol@1.0.1 
remote: | | | `-- is-regex@1.0.3 
remote: | | `-- has@1.0.1 
remote: | +-- object.values@1.0.4 
remote: | `-- uuid@2.0.3 
remote: +-- file-saver@1.3.3 
remote: +-- history@2.1.2 
remote: | +-- deep-equal@1.0.1 
remote: | +-- invariant@2.2.2 
remote: | +-- query-string@3.0.3 
remote: | | `-- strict-uri-encode@1.1.0 
remote: | `-- warning@2.1.0 
remote: +-- html-to-react@1.2.2 
remote: | +-- ent@2.2.0 
remote: | +-- htmlparser2@3.9.2 
remote: | | +-- domelementtype@1.3.0 
remote: | | +-- domhandler@2.3.0 
remote: | | +-- domutils@1.5.1 
remote: | | +-- inherits@2.0.3 
remote: | | `-- readable-stream@2.2.2 
remote: | |   +-- buffer-shims@1.0.0 
remote: | |   +-- core-util-is@1.0.2 
remote: | |   +-- isarray@1.0.0 
remote: | |   +-- process-nextick-args@1.0.7 
remote: | |   +-- string_decoder@0.10.31 
remote: | |   `-- util-deprecate@1.0.2 
remote: | +-- ramda@0.22.1 
remote: | `-- underscore.string.fp@1.0.4 
remote: |   +-- chickencurry@1.1.1 
remote: |   +-- compose-function@2.0.0 
remote: |   | `-- arity-n@1.0.4 
remote: |   +-- reverse-arguments@1.0.0 
remote: |   `-- underscore.string@3.0.3 
remote: +-- lodash@4.17.2 
remote: +-- meteor-node-stubs@0.2.5 
remote: | +-- asn1.js@4.9.0 
remote: | +-- assert@1.4.1 
remote: | +-- Base64@0.2.1 
remote: | +-- base64-js@1.2.0 
remote: | +-- bn.js@4.11.6 
remote: | +-- brorand@1.0.6 
remote: | +-- browserify-aes@1.0.6 
remote: | +-- browserify-cipher@1.0.0 
remote: | +-- browserify-des@1.0.0 
remote: | +-- browserify-rsa@4.0.1 
remote: | +-- browserify-sign@4.0.0 
remote: | +-- browserify-zlib@0.1.4 
remote: | +-- buffer@4.9.1 
remote: | +-- buffer-shims@1.0.0 
remote: | +-- buffer-xor@1.0.3 
remote: | +-- cipher-base@1.0.3 
remote: | +-- console-browserify@1.1.0 
remote: | +-- constants-browserify@1.0.0 
remote: | +-- core-util-is@1.0.2 
remote: | +-- create-ecdh@4.0.0 
remote: | +-- create-hash@1.1.2 
remote: The system cannot find the path specified.
remote: | +-- create-hmac@1.1.4 
remote: | +-- crypto-browserify@3.11.0 
remote: | +-- date-now@0.1.4 
remote: | +-- des.js@1.0.0 
remote: | +-- diffie-hellman@5.0.2 
remote: | +-- domain-browser@1.1.7 
remote: | +-- elliptic@6.3.2 
remote: | +-- events@1.1.1 
remote: | +-- evp_bytestokey@1.0.0 
remote: | +-- hash.js@1.0.3 
remote: | +-- http-browserify@1.7.0 
remote: | +-- https-browserify@0.0.1 
remote: | +-- ieee754@1.1.8 
remote: | +-- indexof@0.0.1 
remote: | +-- inherits@2.0.1 
remote: | +-- isarray@1.0.0 
remote: | +-- miller-rabin@4.0.0 
remote: | +-- minimalistic-assert@1.0.0 
remote: | +-- os-browserify@0.2.1 
remote: | +-- pako@0.2.9 
remote: | +-- parse-asn1@5.0.0 
remote: | +-- path-browserify@0.0.0 
remote: | +-- pbkdf2@3.0.9 
remote: | +-- process@0.11.9 
remote: | +-- process-nextick-args@1.0.7 
remote: | +-- public-encrypt@4.0.0 
remote: | +-- punycode@1.4.1 
remote: | +-- querystring@0.2.0 
remote: | +-- querystring-es3@0.2.1 
remote: | +-- randombytes@2.0.3 
remote: | +-- readable-stream@2.2.1 
remote: | +-- ripemd160@1.0.1 
remote: | +-- sha.js@2.4.8 
remote: | +-- stream-browserify@2.0.1 
remote: | +-- string_decoder@0.10.31 
remote: | +-- timers-browserify@1.4.2 
remote: | +-- tty-browserify@0.0.0 
remote: | +-- url@0.11.0 
remote: | | `-- punycode@1.3.2 
remote: | +-- util@0.10.3 
remote: | +-- util-deprecate@1.0.2 
remote: | `-- vm-browserify@0.0.4 
remote: +-- meteor-redux-middlewares@3.0.4 
remote: | `-- sanctuary@0.11.1 
remote: |   +-- ramda@0.21.0 
remote: |   `-- sanctuary-def@0.6.0 
remote: +-- moment@2.17.1 
remote: +-- react@15.4.2 
remote: | +-- fbjs@0.8.9 
remote: | | +-- core-js@1.2.7 
remote: | | +-- isomorphic-fetch@2.2.1 
remote: | | | +-- node-fetch@1.6.3 
remote: | | | | +-- encoding@0.1.12 
remote: | | | | | `-- iconv-lite@0.4.15 
remote: | | | | `-- is-stream@1.1.0 
remote: | | | `-- whatwg-fetch@2.0.2 
remote: | | +-- promise@7.1.1 
remote: | | | `-- asap@2.0.5 
remote: | | +-- setimmediate@1.0.5 
remote: | | `-- ua-parser-js@0.7.12 
remote: | +-- loose-envify@1.3.1 
remote: | | `-- js-tokens@3.0.1 
remote: | `-- object-assign@4.1.1 
remote: +-- react-addons-pure-render-mixin@15.3.2 
remote: +-- react-addons-test-utils@15.4.2 
remote: +-- react-chartjs-2@2.0.0 
remote: | `-- lodash.isequal@4.5.0 
remote: +-- react-dom@15.4.2 
remote: +-- react-html-email@1.2.0 
remote: +-- react-js-pagination@2.0.2 
remote: | +-- paginator@1.0.0 
remote: | `-- react-hot-loader@3.0.0-beta.6 
remote: |   +-- babel-template@6.23.0 
remote: |   | +-- babel-runtime@6.23.0 
remote: |   | | `-- regenerator-runtime@0.10.1 
remote: |   | +-- babel-traverse@6.23.1 
remote: |   | | +-- babel-code-frame@6.22.0 
remote: |   | | +-- babel-messages@6.23.0 
remote: |   | | | `-- babel-runtime@6.23.0 
remote: |   | | |   `-- regenerator-runtime@0.10.1 
remote: |   | | +-- babel-runtime@6.23.0 
remote: |   | | | `-- regenerator-runtime@0.10.1 
remote: |   | | +-- debug@2.6.1 
remote: |   | | | `-- ms@0.7.2 
remote: |   | | `-- globals@9.15.0 
remote: |   | +-- babel-types@6.23.0 
remote: |   | | +-- babel-runtime@6.23.0 
remote: |   | | | `-- regenerator-runtime@0.10.1 
remote: |   | | +-- esutils@2.0.2 
remote: |   | | `-- to-fast-properties@1.0.2 
remote: |   | `-- babylon@6.15.0 
remote: |   +-- global@4.3.1 
remote: |   | +-- min-document@2.19.0 
remote: |   | | `-- dom-walk@0.1.1 
remote: |   | `-- process@0.5.2 
remote: |   +-- react-deep-force-update@2.0.1 
remote: |   +-- react-proxy@3.0.0-alpha.1 
remote: |   +-- redbox-react@1.3.3 
remote: |   | `-- error-stack-parser@1.3.6 
remote: |   |   `-- stackframe@0.3.1 
remote: |   `-- source-map@0.4.4 
remote: |     `-- amdefine@1.0.1 
remote: +-- react-redux@5.0.2 
remote: | +-- hoist-non-react-statics@1.2.0 
remote: | `-- lodash-es@4.17.4 
remote: +-- react-router@3.0.0 
remote: | +-- history@3.2.1 
remote: | | `-- query-string@4.3.2 
remote: | `-- warning@3.0.0 
remote: +-- react-router-redux@4.0.8 
remote: +-- react-star-rating-component@1.2.4 
remote: +-- react-tabs@0.8.2 
remote: | `-- js-stylesheet@0.0.1 
remote: +-- redux@3.6.0 
remote: | `-- symbol-observable@1.0.4 
remote: +-- redux-devtools@3.3.2 
remote: | `-- redux-devtools-instrument@1.8.0 
remote: +-- redux-devtools-dock-monitor@1.1.1 
remote: | +-- parse-key@0.2.1 
remote: | +-- react-dock@0.2.3 
remote: | | `-- lodash.debounce@3.1.1 
remote: | |   `-- lodash._getnative@3.9.1 
remote: | `-- react-pure-render@1.0.2 
remote: +-- redux-devtools-log-monitor@1.2.0 
remote: | +-- lodash.debounce@4.0.8 
remote: | +-- react-json-tree@0.10.1 
remote: | | `-- react-base16-styling@0.4.7 
remote: | |   +-- color-space@1.14.7 
remote: | |   | +-- husl@5.0.3 
remote: | |   | `-- mumath@3.3.3 
remote: | |   |   `-- almost-equal@1.1.0 
remote: | |   +-- lodash.curry@4.1.1 
remote: | |   +-- lodash.flow@3.5.0 
remote: | |   `-- pure-color@1.2.0 
remote: | `-- redux-devtools-themes@1.0.0 
remote: |   `-- base16@1.0.0 
remote: +-- redux-form@6.5.0 
remote: | +-- es6-error@4.0.2 
remote: | +-- is-promise@2.1.0 
remote: | `-- lodash@4.17.4 
remote: +-- redux-logger@2.8.1 
remote: | `-- deep-diff@0.3.4 
remote: `-- redux-thunk@2.2.0 
remote: 
remote: meteor-azure: Building app
remote: D:\local\Temp\8d4565464017bab\bundle\programs\server\package.json
remote: meteor-azure: ERROR! Could not generate Meteor bundle
remote: 
remote: Error - Changes committed to remote repository but deployment to website failed.
mattdell commented 7 years ago

Deploying your example app it at least builds but still errors during the deployment...

It also hangs during the meteor install.

remote: meteor-azure: Building app
remote: meteor-azure: Setting Node runtime
remote: meteor-azure: Setting entry-point
remote: meteor-azure: Deploying bundle
remote: meteor-azure: Installing Meteor server
remote: .config/azure/deploy.sh: line 169: cd: D:\home\site\wwwroot\programs\server: No such file or directory
remote: ..........
remote: meteor-azure: Finished successfully
remote: Running post deployment command(s)...
remote: Deployment successful.

πŸ€”

mattdell commented 7 years ago

Further digging... it seems like Meteor isn't installing fully. It seems like Azure is timing out before Meteor finishes installing.

I'm currently letting Meteor install manually and it's taking nearly an hour, so it's no wonder this script is failing. Will update when I know how this goes.

mattdell commented 7 years ago

So I've updated the tar command from tar -zxf meteor.tar.gz to tar -vzxf meteor.tar.gz to make it verbose which seems to stop Azure from timing out. My assumption is that it doesn't like the console doing nothing for up to an hour.

So that gets me a bit further along where now it's just stuck on

remote: meteor-azure: Building app

I've tried to leave it running but it doesn't seem to be doing anything as far as I can tell.

mattdell commented 7 years ago

I let it run while I was out (for about 4 hours so not sure how long the script took) and I have a deployed Meteor site!

remote: meteor-azure: Building app
remote: ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
remote: meteor-azure: Setting Node runtime
remote: meteor-azure: Setting entry-point
remote: meteor-azure: Deploying bundle
remote: ...................................................................................................................................................................................
remote: meteor-azure: Installing Meteor server
remote: ..................................................
remote: 
remote: > fibers@1.0.15 install D:\home\site\wwwroot\programs\server\node_modules\fibers
remote: > node build.js || nodejs build.js
remote: 
remote: `win32-ia32-46` exists; testing
remote: Binary is fine; exiting
remote: meteor-dev-bundle@0.0.0 D:\home\site\wwwroot\programs\server
remote: +-- amdefine@1.0.1 
remote: npm WARN meteor-dev-bundle@0.0.0 No description
remote: +-- asap@2.0.5 
remote: +-- fibers@1.0.15 
remote: +-- meteor-promise@0.8.0 
remote: +-- node-gyp@3.4.0 
remote: | +-- fstream@1.0.10 
remote: | | `-- inherits@2.0.3 
remote: | +-- glob@7.1.1 
remote: | | +-- fs.realpath@1.0.0 
remote: | | +-- inflight@1.0.6 
remote: npm WARN meteor-dev-bundle@0.0.0 No repository field.
remote: | | | `-- wrappy@1.0.2 
remote: npm WARN meteor-dev-bundle@0.0.0 No license field.
remote: | | +-- once@1.4.0 
remote: | | `-- path-is-absolute@1.0.1 
remote: | +-- graceful-fs@4.1.11 
remote: | +-- minimatch@3.0.3 
remote: | | `-- brace-expansion@1.1.6 
remote: | |   +-- balanced-match@0.4.2 
remote: | |   `-- concat-map@0.0.1 
remote: | +-- mkdirp@0.5.1 
remote: | | `-- minimist@0.0.8 
remote: | +-- nopt@3.0.6 
remote: | | `-- abbrev@1.1.0 
remote: | +-- npmlog@3.1.2 
remote: | | +-- are-we-there-yet@1.1.2 
remote: | | | +-- delegates@1.0.0 
remote: | | | `-- readable-stream@2.2.2 
remote: | | +-- console-control-strings@1.1.0 
remote: | | +-- gauge@2.6.0 
remote: | | | +-- aproba@1.1.1 
remote: | | | +-- has-color@0.1.7 
remote: | | | +-- has-unicode@2.0.1 
remote: | | | +-- object-assign@4.1.1 
remote: | | | +-- signal-exit@3.0.2 
remote: | | | +-- string-width@1.0.2 
remote: | | | | +-- code-point-at@1.1.0 
remote: | | | | `-- is-fullwidth-code-point@1.0.0 
remote: | | | |   `-- number-is-nan@1.0.1 
remote: | | | +-- strip-ansi@3.0.1 
remote: | | | | `-- ansi-regex@2.1.1 
remote: | | | `-- wide-align@1.1.0 
remote: | | `-- set-blocking@2.0.0 
remote: | +-- osenv@0.1.4 
remote: | | +-- os-homedir@1.0.2 
remote: | | `-- os-tmpdir@1.0.2 
remote: | +-- path-array@1.0.1 
remote: | | `-- array-index@1.0.0 
remote: | |   +-- debug@2.6.1 
remote: | |   | `-- ms@0.7.2 
remote: | |   `-- es6-symbol@3.1.0 
remote: | |     +-- d@0.1.1 
remote: | |     `-- es5-ext@0.10.12 
remote: | |       `-- es6-iterator@2.0.0 
remote: | +-- request@2.79.0 
remote: | | +-- aws-sign2@0.6.0 
remote: | | +-- aws4@1.6.0 
remote: | | +-- caseless@0.11.0 
remote: | | +-- combined-stream@1.0.5 
remote: | | | `-- delayed-stream@1.0.0 
remote: | | +-- extend@3.0.0 
remote: | | +-- forever-agent@0.6.1 
remote: | | +-- form-data@2.1.2 
remote: | | | `-- asynckit@0.4.0 
remote: | | +-- har-validator@2.0.6 
remote: | | | +-- chalk@1.1.3 
remote: | | | | +-- ansi-styles@2.2.1 
remote: | | | | +-- escape-string-regexp@1.0.5 
remote: | | | | +-- has-ansi@2.0.0 
remote: | | | | `-- supports-color@2.0.0 
remote: | | | +-- commander@2.9.0 
remote: | | | | `-- graceful-readlink@1.0.1 
remote: | | | +-- is-my-json-valid@2.15.0 
remote: | | | | +-- generate-function@2.0.0 
remote: | | | | +-- generate-object-property@1.2.0 
remote: | | | | | `-- is-property@1.0.2 
remote: | | | | +-- jsonpointer@4.0.1 
remote: | | | | `-- xtend@4.0.1 
remote: | | | `-- pinkie-promise@2.0.1 
remote: | | |   `-- pinkie@2.0.4 
remote: | | +-- hawk@3.1.3 
remote: | | | +-- boom@2.10.1 
remote: | | | +-- cryptiles@2.0.5 
remote: | | | +-- hoek@2.16.3 
remote: | | | `-- sntp@1.0.9 
remote: | | +-- http-signature@1.1.1 
remote: | | | +-- assert-plus@0.2.0 
remote: | | | +-- jsprim@1.3.1 
remote: | | | | +-- extsprintf@1.0.2 
remote: | | | | +-- json-schema@0.2.3 
remote: | | | | `-- verror@1.3.6 
remote: | | | `-- sshpk@1.10.2 
remote: | | |   +-- asn1@0.2.3 
remote: | | |   +-- assert-plus@1.0.0 
remote: | | |   +-- bcrypt-pbkdf@1.0.1 
remote: | | |   +-- dashdash@1.14.1 
remote: | | |   | `-- assert-plus@1.0.0 
remote: | | |   +-- ecc-jsbn@0.1.1 
remote: | | |   +-- getpass@0.1.6 
remote: | | |   | `-- assert-plus@1.0.0 
remote: | | |   +-- jodid25519@1.0.2 
remote: | | |   +-- jsbn@0.1.1 
remote: | | |   `-- tweetnacl@0.14.5 
remote: | | +-- is-typedarray@1.0.0 
remote: | | +-- isstream@0.1.2 
remote: | | +-- json-stringify-safe@5.0.1 
remote: | | +-- mime-types@2.1.14 
remote: | | | `-- mime-db@1.26.0 
remote: | | +-- oauth-sign@0.8.2 
remote: | | +-- qs@6.3.1 
remote: | | +-- stringstream@0.0.5 
remote: | | +-- tough-cookie@2.3.2 
remote: | | | `-- punycode@1.4.1 
remote: | | +-- tunnel-agent@0.4.3 
remote: | | `-- uuid@3.0.1 
remote: | +-- rimraf@2.5.4 
remote: | +-- tar@2.2.1 
remote: | | `-- block-stream@0.0.9 
remote: | `-- which@1.2.12 
remote: |   `-- isexe@1.1.2 
remote: +-- node-pre-gyp@0.6.29 
remote: | +-- rc@1.1.6 
remote: | | +-- deep-extend@0.4.1 
remote: | | +-- ini@1.3.4 
remote: | | +-- minimist@1.2.0 
remote: | | `-- strip-json-comments@1.0.4 
remote: | +-- semver@5.2.0 
remote: | `-- tar-pack@3.1.4 
remote: |   +-- debug@2.2.0 
remote: |   | `-- ms@0.7.1 
remote: |   +-- fstream-ignore@1.0.5 
remote: |   +-- once@1.3.3 
remote: |   +-- readable-stream@2.1.5 
remote: |   | +-- buffer-shims@1.0.0 
remote: |   | +-- core-util-is@1.0.2 
remote: |   | +-- isarray@1.0.0 
remote: |   | +-- process-nextick-args@1.0.7 
remote: |   | +-- string_decoder@0.10.31 
remote: |   | `-- util-deprecate@1.0.2 
remote: |   `-- uid-number@0.0.6 
remote: +-- promise@7.1.1 
remote: +-- semver@4.1.0 
remote: +-- source-map@0.1.32 
remote: +-- source-map-support@0.3.2 
remote: `-- underscore@1.5.2 
remote: 
remote: meteor-azure: Finished successfully
remote: Running post deployment command(s)...
remote: Deployment successful.

I'm struggling to understand why I'm the first person to have this problem with the script. It seems to work flawlessly for everyone else. πŸ€”

matfantinel commented 7 years ago

I am having the same issue. How do you force Meteor to install again on Azure? When I try to deploy it just goes straight to building app after installing NPM dependencies.

Here's my output when i git push:

Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 532 bytes | 0 bytes/s, done.
Total 5 (delta 2), reused 0 (delta 0)
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id '8f7c82f710'.
remote: Running custom deployment command...
remote: Running deployment command...
remote: meteor-azure: Setting Node version
remote: Version 4.6.2 is already installed.
remote: meteor-azure: Now using Node v4.6.2 (32-bit)
remote: meteor-azure: Setting NPM version
remote: ....
remote: meteor-azure: Now using NPM v3.10.9
remote: meteor-azure: Installing NPM dependencies
remote: ...................
remote: meteor-azure: Building app
remote: The system cannot find the path specified.
remote: meteor-azure: ERROR! Could not generate Meteor bundle
remote:
remote: Error - Changes committed to remote repository but deployment to website failed.
mattdell commented 7 years ago

@matfantinel you'll need to at least delete the meteor.bat file at D:\home\meteor-azure\meteor\meteor.bat, though could be worth deleting the whole meteor folder if you're so inclined.

matfantinel commented 7 years ago

@mattdell thank you, I have changed the tar command like you've said and managed to start meteor install again by deleting the file. However, after a while, it got stuck on the .meteor/packages/meteor-tool/1.4.2_7/mt-os.windows.x86_32/isopackets/cordova-support/npm/node_modules/meteor/babel-compiler/node_modules/babel-generator/lib/buffer.js file.

I'm not sure if I should try starting over or wait. :/

matfantinel commented 7 years ago

I let it continue, and after 2 hours it stopped with this error:

fatal: protocol error: bad line length character: <!DO
error: error in sideband demultiplexer
error: failed to push some refs to {git_url}

I'm posting on this thread since the root issue appears to be the same.

matfantinel commented 7 years ago

Another update: I tried installing Meteor again, and it succeeded this time. Then, it started the meteor-azure: Building app step, which after about 5 minutes gave the same "bad line length character" error as above. Now, when I try deploying it again, it errors out after a few seconds. Checking deployment logs only give me this line:

Could not open 'D:/home/site/repository/.config/azure/deploy.sh' for writing: Access is denied.\r\n

Apparently the file is read-only, since I cannot edit it with Kudu either. I guess something that went wrong with the deploy earlier has made this file stay read-only?

matfantinel commented 7 years ago

So I was able to solve it by deleting the home/site/repository folder and deploying it again. Now my website is working! The issues appear to be all related with timeouts.

mattdell commented 7 years ago

That's good to hear @matfantinel !

Glad you got it working. Is it just us who are experiencing problems?

matfantinel commented 7 years ago

Apparently yes. There is a possibility that the problem may be with the Meteor package or with Azure itself when deploying, maybe some recent update. Sadly I don't know much to help.

ramijarrar commented 7 years ago

Hey guys, sorry for not jumping in earlier. There are a lot of separate points raised here (many of which need to be addressed with better documentation). I've got a lot on my plate at the moment, but I should be able to review this properly early next week.

matfantinel commented 7 years ago

No problems mate, I wanna thank you for maintaining this project. Saved me from a big headache.

Let me know if I can give you any info to help when you look into this issue.

bastiW commented 7 years ago

@mattdell Thanks! replacing tar -zxf meteor.tar.gz to tar -vzxf meteor.tar.gz helped.

Also i did a complete resetup of the app service.

DanceParty commented 7 years ago

I am trying this to see if it helps with the issue I opened. Going on 3.5 hours for deployment and I will update whether this worked or not

mattdell commented 7 years ago

Sorry to say, but despite my 1 success I haven't been able to replicate it again.

My solution has now become to use demeteorizer as suggested by MSDN: https://blogs.msdn.microsoft.com/azureossds/2016/08/24/meteor-1-4-on-azure-app-services/

This consistently works for me.

DanceParty commented 7 years ago

@mattdell do you need to delete .demeteorized/ everytime you build with that tool?

I think I am going to switch to this too for now.

mattdell commented 7 years ago

@jkd65 I just have it as part of my .gitignore file.

I suppose a better approach is to have it as part of a deployment script which then deletes it after deployment.

varunkumar17 commented 7 years ago

Having similar issues, Here is my deployment log

Command: bash .config/azure/deploy.sh meteor-azure: Setting Node version Version 8.0.0 is already installed. meteor-azure: Now using Node v8.0.0 (32-bit) meteor-azure: Setting NPM version meteor-azure: Now using NPM v5.0.0 meteor-azure: Installing NPM dependencies npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it! up to date in 3.794s up to date in 3.045s meteor-azure: Building app '"D:\home\meteor-azure.meteor\packages\meteor-tool\1.5.0\mt-os.windows.x86_32\meteor.bat"' is not recognized as an internal or external command, operable program or batch file. meteor-azure: Setting Node runtime .config/azure/deploy.sh: line 150: cd: D:\local\Temp\8d4ac22f73c0a6b\bundle: Not a directory meteor-azure: Setting entry-point .config/azure/deploy.sh: line 155: cd: D:\local\Temp\8d4ac22f73c0a6b\bundle\programs\server: Not a directory meteor-azure: Deploying bundle meteor-azure: Installing Meteor server .config/azure/deploy.sh: line 169: cd: D:\home\site\wwwroot\programs\server: No such file or directory up to date in 3.571s meteor-azure: Finished successfully

Can someone help?

DanceParty commented 7 years ago

@varunkumar17 I ended up switching to demeteorizer as I could not get this issue figured out

ramijarrar commented 7 years ago

@jkd65 @varunkumar17

We're aiming to release v2 this week, which is rewritten as a CLI tool to support local bundling and automatic configuration (as well as addressing pain points like slow initial builds and tracking deployments without opening Kudu).

If you're eager to try this out before the official release, we have some tentative instructions in issue https://github.com/fractal-code/meteor-azure/issues/28. We're only working on documentation at this point, so all functionality should be stable/production-ready.

ramijarrar commented 7 years ago

Closing this as v2 has now been officially released. See full announcement here.

Please open a new thread for any further issues/questions.