microsoft / Oryx

Build your repo automatically.
Other
744 stars 171 forks source link

node_modules.tar.gz is not uncompressed properly #567

Closed lovettchris closed 3 years ago

lovettchris commented 4 years ago

Bug Report

Sunday, April 19, 2020, 8:56:38 PM GMT-7 I tried to deploy my react node.js website to https://f99teleprompter.azurewebsites.net/ and the logs said everything worked, but the site returns ":( Application Error" because the node_modules did not uncompress properly.

image

lovettchris commented 4 years ago

I have been able to reproduce this again with the following steps:

  1. Create new Azure Web App, node.js version 12, on Linux
  2. Deploy git repo https://github.com/lovettchris/TeleprompterBuild using kudu
  3. Wait for deploy to succeed
  4. Navigate to your new web app url
  5. ":( Application Error"
  6. Now open the kudu BASH prompt and run this:
  7. cd site/wwwroot
  8. tar -xvf node_modules.tar.gz --directory node_modules
  9. restart your web app using restart button on Overview portal.
  10. now app is running...
arroyc commented 3 years ago

@lovettchris thanks for following up .. can you still repro this? I couldn't repro this when I tried those steps.

lovettchris commented 3 years ago

You couldn't repro because the github repo is gone right?

lovettchris commented 3 years ago

Here's the new repro steps:

  1. Create new Azure Web App, node.js version 12, on Linux: image

  2. Create "local git" with Kudu and clone that repo locally

  3. Copy the bits from https://github.com/lovettchris/Teleprompter and "push" these bits up to the Azure local git repo.

  4. Wait for "remote: Deployment successful." and navigate to the public website URL and you will see this: image

  5. Try and open SSH to the site using image

and you will see another problem: on.error - Error: connect ECONNREFUSED 172.16.1.2:2222Error: connect ECONNREFUSED 172.16.1.2:2222

See attached log file. log.txt

Interestingly it fails Chrome with a different error: SSH CONNECTION CLOSE - Error: Timed out while waiting for handshakeError: connect EHOSTUNREACH 172.16.1.2:2222Error: connect EHOSTUNREACH 172.16.1.2:2222Error: connect EHOSTUNREACH 172.16.1.2:2222

arroyc commented 3 years ago

thanks @lovettchris .. I will try again !

wasuaje commented 3 years ago

Same error here!

qianz2 commented 3 years ago

Closing it as it's been long time, feel free to reopen if you have other questions.