Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Unable to deploy AppService using VSCode Web Deploy feature

Open jainmnsh opened this issue 2 years ago • 1 comments

Bug Report

  • At what date and time did you most recently experience the problem? May 13th 2022 12.10 pm PST time.

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Deploying Azure App service as Web app.

  • If your repo is publicly available please share its URL:

  • What happened?

2:41:01 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 12:41:01 AM dev-liftime: Running 'npm run build'... 12:41:01 AM dev-liftime: > [email protected] build /tmp/8da344b057f91e8 12:41:01 AM dev-liftime: > react-scripts build 12:41:03 AM dev-liftime: Could not find a required file. 12:41:03 AM dev-liftime: Name: index.js 12:41:03 AM dev-liftime: npm ERR! code ELIFECYCLE 12:41:03 AM dev-liftime: Searched in: /tmp/8da344b057f91e8/src 12:41:03 AM dev-liftime: npm ERR! errno 1 12:41:03 AM dev-liftime: npm ERR! [email protected] build: react-scripts build 12:41:03 AM dev-liftime: npm ERR! Exit status 1 12:41:03 AM dev-liftime: npm ERR! 12:41:03 AM dev-liftime: npm ERR! Failed at the [email protected] build script. 12:41:03 AM dev-liftime: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  • What did you expect or want to happen? deployment to be successful.

  • How can we reproduce it? this is reactjs and nodejs application should be easy to reproduce

  • Do you have log output? Please include between the backticks:

12:28:45 AM dev-liftime: Starting deployment...
12:29:12 AM dev-liftime: Creating zip package...
12:29:12 AM dev-liftime: Ignoring files from "appService.zipIgnorePattern"
".vscode{,/**}"
"src"
"node_modules{,/**}"
12:29:25 AM dev-liftime: Zip package size: 16.4 MB
12:29:26 AM dev-liftime: Fetching changes.
12:29:27 AM dev-liftime: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/d71c1104-8568-4574-9838-7ea163317b0f.zip (15.68 MB) to /tmp/zipdeploy/extracted
12:29:41 AM dev-liftime: Updating submodules.
12:29:42 AM dev-liftime: Preparing deployment for commit id '553db7fa-9'.
12:29:42 AM dev-liftime: PreDeployment: context.CleanOutputPath False
12:29:42 AM dev-liftime: PreDeployment: context.OutputPath /home/site/wwwroot
12:29:42 AM dev-liftime: Repository path is /tmp/zipdeploy/extracted
12:29:42 AM dev-liftime: Running oryx build...
12:29:42 AM dev-liftime: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8da344992bef044 -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log  | tee /tmp/oryx-build.log
12:29:47 AM dev-liftime: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
12:29:47 AM dev-liftime: You can report issues at https://github.com/Microsoft/Oryx/issues
12:29:47 AM dev-liftime: Oryx Version: 0.2.20211207.1, Commit: 46633df49cc8fbe9718772a3c894df221273b2af, ReleaseTagName: 20211207.1
12:29:47 AM dev-liftime: Build Operation ID: |Ekpt86IHY1U=.5c7eae12_
12:29:47 AM dev-liftime: Repository Commit : 553db7fa-9ea9-4047-b196-65fd2eb0a0b5
12:29:47 AM dev-liftime: Detecting platforms...
12:29:48 AM dev-liftime: Detected following platforms:
12:29:48 AM dev-liftime:   nodejs: 10.14.2
12:29:49 AM dev-liftime: Using intermediate directory '/tmp/8da344992bef044'.
12:29:49 AM dev-liftime: Copying files to the intermediate directory...
12:29:49 AM dev-liftime: Done in 0 sec(s).
12:29:49 AM dev-liftime: Source directory     : /tmp/8da344992bef044
12:29:49 AM dev-liftime: Destination directory: /home/site/wwwroot
12:29:49 AM dev-liftime: Removing existing manifest file
12:29:49 AM dev-liftime: Creating directory for command manifest file if it doesnot exist
12:29:49 AM dev-liftime: Creating a manifest file...
12:29:49 AM dev-liftime: Node Build Command Manifest file created.
12:29:49 AM dev-liftime: Using Node version:
12:29:50 AM dev-liftime: v10.14.2
12:29:50 AM dev-liftime: Using Npm version:
12:29:55 AM dev-liftime: 6.9.0
12:29:55 AM dev-liftime: Running 'npm install --unsafe-perm'...
12:29:58 AM dev-liftime: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
12:30:51 AM dev-liftime: > [email protected] install /tmp/8da344992bef044/node_modules/keytar
12:30:51 AM dev-liftime: > prebuild-install || npm run build
12:30:51 AM dev-liftime: > [email protected] postinstall /tmp/8da344992bef044/node_modules/babel-runtime/node_modules/core-js
12:30:51 AM dev-liftime: > node -e "try{require('./postinstall')}catch(e){}"
12:30:51 AM dev-liftime: [96mThank you for using core-js ([94m https://github.com/zloirock/core-js [96m) for polyfilling JavaScript standard library![0m
12:30:51 AM dev-liftime: [96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: [0m
12:30:51 AM dev-liftime: [96m>[94m https://opencollective.com/core-js [0m
12:30:51 AM dev-liftime: [96m>[94m https://www.patreon.com/zloirock [0m
12:30:51 AM dev-liftime: [96mAlso, the author of core-js ([94m https://github.com/zloirock [96m) is looking for a good job -)[0m
12:30:51 AM dev-liftime: > [email protected] postinstall /tmp/8da344992bef044/node_modules/core-js
12:30:52 AM dev-liftime: > node -e "try{require('./postinstall')}catch(e){}"
12:30:52 AM dev-liftime: > [email protected] postinstall /tmp/8da344992bef044/node_modules/core-js-pure
12:30:52 AM dev-liftime: > node -e "try{require('./postinstall')}catch(e){}"
12:30:52 AM dev-liftime: > @progress/[email protected] postinstall /tmp/8da344992bef044/node_modules/@progress/kendo-licensing
12:30:52 AM dev-liftime: > node ./bin/kendo-ui-license.js activate --ignore-no-license
12:30:52 AM dev-liftime: (INFO) Kendo UI: KENDO_UI_LICENSE environment variable not set
12:30:52 AM dev-liftime: (INFO) Kendo UI: Reading license from "/tmp/8da344992bef044/kendo-ui-license.txt"...
12:30:52 AM dev-liftime: (INFO) Kendo UI: License imported successfully.
12:30:52 AM dev-liftime: > [email protected] postinstall /tmp/8da344992bef044/node_modules/nodemon
12:30:52 AM dev-liftime: > node bin/postinstall || exit 0
12:30:53 AM dev-liftime: [32mLove nodemon? You can now support the project via the open collective:[22m[39m
12:30:53 AM dev-liftime:  > [96m[1mhttps://opencollective.com/nodemon/donate[0m
12:30:56 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
12:30:56 AM dev-liftime: added 2007 packages from 974 contributors and audited 2016 packages in 58.592s
12:30:56 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:30:57 AM dev-liftime: found 144 vulnerabilities (2 low, 65 moderate, 60 high, 17 critical)
12:30:57 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/react-scripts/node_modules/fsevents):
12:30:57 AM dev-liftime:   run `npm audit fix` to fix them, or `npm audit` for details
12:30:57 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:30:57 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
12:30:57 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:30:57 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents):
12:30:57 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:30:57 AM dev-liftime: Running 'npm run build'...
12:30:57 AM dev-liftime: > [email protected] build /tmp/8da344992bef044
12:30:57 AM dev-liftime: > react-scripts build
12:30:59 AM dev-liftime: Could not find a required file.
12:30:59 AM dev-liftime: npm ERR! code ELIFECYCLE
12:30:59 AM dev-liftime:   Name: index.js
12:30:59 AM dev-liftime: npm ERR! errno 1
12:30:59 AM dev-liftime:   Searched in: /tmp/8da344992bef044/src
12:30:59 AM dev-liftime: npm ERR! [email protected] build: `react-scripts build`
12:30:59 AM dev-liftime: npm ERR! Exit status 1
12:30:59 AM dev-liftime: npm ERR! 
12:30:59 AM dev-liftime: npm ERR! Failed at the [email protected] build script.
12:30:59 AM dev-liftime: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:30:59 AM dev-liftime: npm ERR! A complete log of this run can be found in:
12:30:59 AM dev-liftime: npm ERR!     /home/.npm/_logs/2022-05-12T19_00_59_360Z-debug.log
12:31:00 AM dev-liftime: /bin/bash -c "oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8da344992bef044 -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log  | tee /tmp/oryx-build.log ; exit $PIPESTATUS "
12:31:01 AM dev-liftime: Generating summary of Oryx build
12:31:01 AM dev-liftime: Parsing the build logs
12:31:01 AM dev-liftime: Found 0 issue(s)
12:31:01 AM dev-liftime: Build Summary :
12:31:01 AM dev-liftime: ===============
12:31:01 AM dev-liftime: Errors (0)
12:31:01 AM dev-liftime: Warnings (0)
12:31:02 AM dev-liftime: Deployment Failed.
12:31:12 AM dev-liftime: Deployment failed.
12:39:33 AM dev-liftime: Starting deployment...
12:39:36 AM dev-liftime: Creating zip package...
12:39:36 AM dev-liftime: Ignoring files from "appService.zipIgnorePattern"
".vscode{,/**}"
"src"
"node_modules{,/**}"
12:39:48 AM dev-liftime: Zip package size: 13.8 MB
12:39:48 AM dev-liftime: Fetching changes.
12:39:50 AM dev-liftime: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/df7c8801-fa07-4f10-a6a7-c27b9b5e741f.zip (13.19 MB) to /tmp/zipdeploy/extracted
12:40:37 AM dev-liftime: Opening "config.js"...
12:40:03 AM dev-liftime: Updating submodules.
12:40:04 AM dev-liftime: Preparing deployment for commit id 'e7c03047-9'.
12:40:04 AM dev-liftime: PreDeployment: context.CleanOutputPath False
12:40:04 AM dev-liftime: PreDeployment: context.OutputPath /home/site/wwwroot
12:40:04 AM dev-liftime: Repository path is /tmp/zipdeploy/extracted
12:40:04 AM dev-liftime: Running oryx build...
12:40:04 AM dev-liftime: Command: oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8da344b057f91e8 -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log  | tee /tmp/oryx-build.log
12:40:05 AM dev-liftime: Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
12:40:05 AM dev-liftime: You can report issues at https://github.com/Microsoft/Oryx/issues
12:40:05 AM dev-liftime: Oryx Version: 0.2.20211207.1, Commit: 46633df49cc8fbe9718772a3c894df221273b2af, ReleaseTagName: 20211207.1
12:40:05 AM dev-liftime: Build Operation ID: |gYrp732Plg0=.efb20931_
12:40:05 AM dev-liftime: Repository Commit : e7c03047-9700-415e-a5c0-8e7766890cdc
12:40:05 AM dev-liftime: Detecting platforms...
12:40:06 AM dev-liftime: Detected following platforms:
12:40:06 AM dev-liftime:   nodejs: 10.14.2
12:40:06 AM dev-liftime: Using intermediate directory '/tmp/8da344b057f91e8'.
12:40:07 AM dev-liftime: Copying files to the intermediate directory...
12:40:07 AM dev-liftime: Done in 0 sec(s).
12:40:07 AM dev-liftime: Source directory     : /tmp/8da344b057f91e8
12:40:07 AM dev-liftime: Destination directory: /home/site/wwwroot
12:40:07 AM dev-liftime: Removing existing manifest file
12:40:07 AM dev-liftime: Creating directory for command manifest file if it doesnot exist
12:40:07 AM dev-liftime: Creating a manifest file...
12:40:07 AM dev-liftime: Node Build Command Manifest file created.
12:40:07 AM dev-liftime: Using Node version:
12:40:07 AM dev-liftime: v10.14.2
12:40:07 AM dev-liftime: Using Npm version:
12:40:07 AM dev-liftime: 6.9.0
12:40:07 AM dev-liftime: Running 'npm install --unsafe-perm'...
12:40:08 AM dev-liftime: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
12:40:55 AM dev-liftime: > [email protected] install /tmp/8da344b057f91e8/node_modules/keytar
12:40:55 AM dev-liftime: > prebuild-install || npm run build
12:40:57 AM dev-liftime: > [email protected] postinstall /tmp/8da344b057f91e8/node_modules/babel-runtime/node_modules/core-js
12:40:57 AM dev-liftime: > node -e "try{require('./postinstall')}catch(e){}"
12:40:57 AM dev-liftime: [96mThank you for using core-js ([94m https://github.com/zloirock/core-js [96m) for polyfilling JavaScript standard library![0m
12:40:57 AM dev-liftime: [96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: [0m
12:40:57 AM dev-liftime: [96m>[94m https://opencollective.com/core-js [0m
12:40:57 AM dev-liftime: [96m>[94m https://www.patreon.com/zloirock [0m
12:40:57 AM dev-liftime: [96mAlso, the author of core-js ([94m https://github.com/zloirock [96m) is looking for a good job -)[0m
12:40:57 AM dev-liftime: > [email protected] postinstall /tmp/8da344b057f91e8/node_modules/core-js
12:40:57 AM dev-liftime: > node -e "try{require('./postinstall')}catch(e){}"
12:40:57 AM dev-liftime: > [email protected] postinstall /tmp/8da344b057f91e8/node_modules/core-js-pure
12:40:57 AM dev-liftime: > node -e "try{require('./postinstall')}catch(e){}"
12:40:57 AM dev-liftime: > @progress/[email protected] postinstall /tmp/8da344b057f91e8/node_modules/@progress/kendo-licensing
12:40:58 AM dev-liftime: > node ./bin/kendo-ui-license.js activate --ignore-no-license
12:40:58 AM dev-liftime: (INFO) Kendo UI: KENDO_UI_LICENSE environment variable not set
12:40:58 AM dev-liftime: (INFO) Kendo UI: Reading license from "/tmp/8da344b057f91e8/kendo-ui-license.txt"...
12:40:58 AM dev-liftime: (INFO) Kendo UI: License imported successfully.
12:40:58 AM dev-liftime: > [email protected] postinstall /tmp/8da344b057f91e8/node_modules/nodemon
12:40:58 AM dev-liftime: > node bin/postinstall || exit 0
12:41:00 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack/node_modules/fsevents):
12:41:00 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:41:00 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/react-scripts/node_modules/fsevents):
12:41:00 AM dev-liftime: added 2007 packages from 974 contributors and audited 2016 packages in 52.899s
12:41:00 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:41:00 AM dev-liftime: found 144 vulnerabilities (2 low, 65 moderate, 60 high, 17 critical)
12:41:01 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
12:41:01 AM dev-liftime:   run `npm audit fix` to fix them, or `npm audit` for details
12:41:01 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:41:01 AM dev-liftime: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents):
12:41:01 AM dev-liftime: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
12:41:01 AM dev-liftime: Running 'npm run build'...
12:41:01 AM dev-liftime: > [email protected] build /tmp/8da344b057f91e8
12:41:01 AM dev-liftime: > react-scripts build
12:41:03 AM dev-liftime: Could not find a required file.
12:41:03 AM dev-liftime:   Name: index.js
12:41:03 AM dev-liftime: npm ERR! code ELIFECYCLE
12:41:03 AM dev-liftime:   Searched in: /tmp/8da344b057f91e8/src
12:41:03 AM dev-liftime: npm ERR! errno 1
12:41:03 AM dev-liftime: npm ERR! [email protected] build: `react-scripts build`
12:41:03 AM dev-liftime: npm ERR! Exit status 1
12:41:03 AM dev-liftime: npm ERR! 
12:41:03 AM dev-liftime: npm ERR! Failed at the [email protected] build script.
12:41:03 AM dev-liftime: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
12:41:03 AM dev-liftime: npm ERR! A complete log of this run can be found in:
12:41:03 AM dev-liftime: npm ERR!     /home/.npm/_logs/2022-05-12T19_11_03_185Z-debug.log
12:41:04 AM dev-liftime: /bin/bash -c "oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8da344b057f91e8 -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log  | tee /tmp/oryx-build.log ; exit $PIPESTATUS "
12:41:04 AM dev-liftime: Generating summary of Oryx build
12:41:04 AM dev-liftime: Parsing the build logs
12:41:05 AM dev-liftime: Found 0 issue(s)
12:41:05 AM dev-liftime: Build Summary :
12:41:05 AM dev-liftime: ===============
12:41:05 AM dev-liftime: Errors (0)
12:41:05 AM dev-liftime: Warnings (0)
12:41:05 AM dev-liftime: Deployment Failed.
12:41:20 AM dev-liftime: Deployment failed.
12:50:47 AM: Checking app settings...
12:50:48 AM: Initializing SSH...
12:50:50 AM: [Tunnel] Pinging app default url...

jainmnsh avatar May 12 '22 19:05 jainmnsh

Hi @jainmnsh , from the logging it looks that it's running the command "npm run build" if a build script is specified in your package.json. Can we try without having a build script in your package.json?

qianz2 avatar May 18 '22 16:05 qianz2

We're closing this issue due to its age. If this is still impacting you please open a new issue and simply link back to this one.

simonjj avatar Jan 11 '24 20:01 simonjj