Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR! Could not generate Meteor bundle #21

Closed
mattdell opened this issue Feb 16, 2017 · 31 comments
Closed

ERROR! Could not generate Meteor bundle #21

mattdell opened this issue Feb 16, 2017 · 31 comments

Comments

@mattdell
Copy link

  • Script version (listed in .config/azure/deploy.sh)
    1.4.5

  • Deployment log

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 '48f614b45f'.
remote: Running custom deployment command...
remote: Running deployment command...
remote: meteor-azure: Setting Node version
remote: Version 0.10.40 is already installed.
remote: meteor-azure: Now using Node v0.10.40 (32-bit)
remote: meteor-azure: Setting NPM version
remote: ...
remote: meteor-azure: Now using NPM v1.4.28
remote: meteor-azure: Installing NPM dependencies
remote: ...............
remote: npm WARN package.json [email protected] No README data
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.

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
Copy link
Member

Have you configured your application settings on Azure?

@mattdell
Copy link
Author

This is the bare minimum, yeah?

screen shot 2017-02-16 at 01 51 34

@mattdell
Copy link
Author

App structure is...

screen shot 2017-02-16 at 01 53 31

@ramijarrar
Copy link
Member

ramijarrar commented Feb 16, 2017

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
Copy link
Author

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: [email protected] 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: `-- [email protected] 
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
Copy link
Author

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
Copy link
Member

ramijarrar commented Feb 16, 2017

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

@mattdell
Copy link
Author

mattdell commented Feb 16, 2017

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://[email protected]: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: [email protected] 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: `-- [email protected] 
remote: 
remote: ..
remote: meteor-azure: Installing NPM dependencies
remote: ............................................
remote: npm WARN deprecated [email protected]: Project renamed to HSLuv
remote: ...................................................................................................................................................................................................
remote: npm WARN prefer global [email protected] should be installed with -g
remote: .......
remote: my-website@ D:\home\site\repository
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | | `-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | |   `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   | `-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   | `-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | `-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | | `-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   |   `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | | `-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   |   +-- [email protected] 
remote: |   |   | +-- [email protected] 
remote: |   |   | +-- [email protected] 
remote: |   |   | | `-- [email protected] 
remote: |   |   | |   `-- [email protected] 
remote: |   |   | +-- [email protected] 
remote: |   |   | `-- [email protected] 
remote: |   |   |   `-- [email protected] 
remote: |   |   +-- [email protected] 
remote: |   |   | +-- [email protected] 
remote: |   |   | +-- [email protected] 
remote: |   |   | | `-- [email protected] 
remote: |   |   | +-- [email protected] 
remote: |   |   | `-- [email protected] 
remote: |   |   |   +-- [email protected] 
remote: |   |   |   | `-- [email protected] 
remote: |   |   |   `-- [email protected] 
remote: |   |   `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   |   `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   `-- [email protected] 
remote: |     `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   `-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: The system cannot find the path specified.
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | | `-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | | `-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | | +-- [email protected] 
remote: |   | | +-- [email protected] 
remote: |   | | | `-- [email protected] 
remote: |   | | |   `-- [email protected] 
remote: |   | | +-- [email protected] 
remote: |   | | | `-- [email protected] 
remote: |   | | +-- [email protected] 
remote: |   | | | `-- [email protected] 
remote: |   | | `-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | | +-- [email protected] 
remote: |   | | | `-- [email protected] 
remote: |   | | +-- [email protected] 
remote: |   | | `-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | | `-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   |   `-- [email protected] 
remote: |   `-- [email protected] 
remote: |     `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | |   `-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   | +-- [email protected] 
remote: | |   | `-- [email protected] 
remote: | |   |   `-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   `-- [email protected] 
remote: | `-- [email protected] 
remote: |   `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: +-- [email protected] 
remote: | `-- [email protected] 
remote: `-- [email protected] 
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
Copy link
Author

mattdell commented Feb 16, 2017

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

mattdell commented Feb 17, 2017

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: > [email protected] 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: [email protected] D:\home\site\wwwroot\programs\server
remote: +-- [email protected] 
remote: npm WARN [email protected] No description
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: npm WARN [email protected] No repository field.
remote: | | | `-- [email protected] 
remote: npm WARN [email protected] No license field.
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   `-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | |   `-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | |   +-- [email protected] 
remote: | |   | `-- [email protected] 
remote: | |   `-- [email protected] 
remote: | |     +-- [email protected] 
remote: | |     `-- [email protected] 
remote: | |       `-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | | `-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | |   `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | +-- [email protected] 
remote: | | | | `-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   | `-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   | `-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   +-- [email protected] 
remote: | | |   `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | | `-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | `-- [email protected] 
remote: |   `-- [email protected] 
remote: +-- [email protected] 
remote: | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | +-- [email protected] 
remote: | | `-- [email protected] 
remote: | +-- [email protected] 
remote: | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | +-- [email protected] 
remote: |   | `-- [email protected] 
remote: |   `-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: +-- [email protected] 
remote: `-- [email protected] 
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
Copy link

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
Copy link
Author

@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
Copy link

@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
Copy link

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
Copy link

matfantinel commented Feb 18, 2017

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
Copy link

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
Copy link
Author

That's good to hear @matfantinel !

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

@matfantinel
Copy link

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
Copy link
Member

ramijarrar commented Feb 19, 2017

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
Copy link

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
Copy link

bastiW commented Feb 20, 2017

@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
Copy link

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
Copy link
Author

mattdell commented Mar 8, 2017

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
Copy link

@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
Copy link
Author

mattdell commented Mar 8, 2017

@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
Copy link

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
Copy link

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

@ramijarrar
Copy link
Member

ramijarrar commented Jun 6, 2017

@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 #28. We're only working on documentation at this point, so all functionality should be stable/production-ready.

@ramijarrar
Copy link
Member

ramijarrar commented Jun 14, 2017

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants