Coder Social home page Coder Social logo

microsoft / oryx Goto Github PK

View Code? Open in Web Editor NEW
731.0 26.0 169.0 141.2 MB

Build your repo automatically.

License: Other

Shell 5.44% Dockerfile 9.86% C# 40.72% Go 1.84% JavaScript 5.35% CSS 2.96% HTML 4.13% Python 3.38% Mako 0.01% TypeScript 3.26% Makefile 0.03% Smarty 0.36% PHP 0.82% F# 0.02% Vue 0.25% PowerShell 0.01% Jupyter Notebook 20.75% Ruby 0.28% SCSS 0.23% Stylus 0.30%
build nodejs python container-builder azure

oryx's Introduction

Oryx

Build Status

Oryx is a build system which automatically compiles source code repos into runnable artifacts. It is used to build web apps for Azure App Service and other platforms.

To receive updates on runtimes and versions supported by Oryx and App Service, subscribe to Azure Updates or watch the github.com/Azure/app-service-announcements tracker.

Oryx generates and runs an opinionated build script within a build container based on analysis of a codebase's contents. For example, if package.json is discovered in the repo Oryx includes npm run build in the build script; or if requirements.txt is found it includes pip install -r requirements.txt.

Oryx also generates a run-time startup script for the app including typical start commands like npm run start for Node.js or a WSGI module and server for Python.

The built artifacts and start script are loaded into a minimalistic run container and run.

Supported platforms and versions

Link

Patches (0.0.x) are applied as soon as possible after they are released upstream.

Get started

Though built first for use within Azure services, you can also use the Oryx build system yourself for troubleshooting and tests. Following are simple instructions; for complete background see our architecture doc.

Oryx includes two command-line applications; the first is included in the build image and generates a build script by analyzing a codebase. The second is included in run images and generates a startup script. Both are aliased and accessible as oryx in their respective images.

oryx build

When oryx build is run, the system detects which programming platforms appear to be in use and applies toolsets appropriate for each one. You can override the default choices through configuration.

The --output (or -o) parameter specifies where prepared artifacts will be placed; if not specified the source directory is used for output as well.

For all options, specify oryx --help.

oryx create-script -appPath

When oryx is run in the runtime images it generates a start script named run.sh, by default in the same folder as the compiled artifact.

Support for Build Configuration File

The App Service YAML file (appsvc.yaml) is used to specify the build and run commands for your Web Apps, thus overriding any defaults provided by the App Service Build Service. App Service expects this file to be in the root directory of your project.

Format

There are ordered keys for pre-build, post-build, and run. The commands/scripts referenced by these keys are executed in-order. If a key is missing, it will be skipped and the next key will be processed. An optional version key specifies the version of the appsvc.yaml file, if new versions are introduced in the future.

version: 1

pre-build: apt-get install jq

post-build: |
    python manage.py makemigrations
    python manage.py migrate

run: gunicorn myapp.app --workers 5

Build and run an app

To build and run an app from a repo, follow these approximate steps. An example script follows.

  1. Mount the repo as a volume in Oryx's docker.io/oryxprod/build container.
  2. Run oryx build ... within the repo directory to build a runnable artifact.
  3. Mount the output directory from build in an appropriate Oryx "run" container, such as docker.io/oryxprod/node-10.14.
  4. Run oryx ... within the "run" container to write a startup script.
  5. Run the generated startup script, by default /run.sh.
# Run these from the root of the repo.
# build
docker run --volume $(pwd):/repo \
    'mcr.microsoft.com/oryx/build:latest' \
    oryx build /repo --output /repo

# run

# the -p/--publish and -e/--env flags specify and open a host port
docker run --detach --rm \
    --volume $(pwd):/app \
    --env PORT=8080 \
    --publish 8080:8080 \
    'mcr.microsoft.com/oryx/node:10' \
    sh -c 'oryx create-script -appPath /app && /run.sh'

Build Server Invocation

  1. Build the Oryx solution
    1. Build Solutionpng
  2. Create image with oryx and platform binaries
    1. time build/buildBuildImages.sh -t ltsversion
  3. Run docker to port map, volume mount a directory, specify the image with oryx build, and invoke BuildServer
    1.  docker run -it -p 8086:80 \
       -v C:\Repo\Oryx\tests\SampleApps\:/tmp/SampleApps \
       -e "ASPNETCORE_URLS=http://+80" \
       oryxdevmcr.azurecr.io/public/oryx/build:lts-versions \
       /opt/buildscriptgen/BuildServer
      Start
  4. Invoke build
    1. Post
      1. Under the hood oryx build is invoked
        oryx build [sourcePath] \
            --platform [platform] \
            --platform-version [version] \
            --output [outputPath] \
            --log-file [logPath]
  5. Check build status with id 1
    1. Status
  6. Check server healthcheck
    1. Health Check

Components

Oryx consists of a build image, a collection of runtime images, a build script generator, and a collection of startup script generators. For more details, refer to our architecture page.

Testing Locally

startup script generator

build/testStartupScriptGenerators.sh will perform tests on all startup script generators written in go. The tests are copied into a docker image for performing go test on all platforms.

Contributing

See CONTRIBUTING.md.

License

MIT, see LICENSE.md.

Security

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) at [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Trademark

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft’s Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

Data/Telemetry

When utilized within Azure services, this project collects usage data and sends it to Microsoft to help improve our products and services. Read Microsoft's privacy statement to learn more.

This project follows the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ. Contact [email protected] with questions and comments.

Disable Data Collection

To prevent Oryx command line tools from collecting any data, set the environment variable ORYX_DISABLE_TELEMETRY to true.

oryx's People

Contributors

arroyc avatar codingisbliss avatar cormacpayne avatar daniv-msft avatar dependabot[bot] avatar dorfire avatar github-actions[bot] avatar goalejandro avatar gpcastro avatar harryli0108 avatar kichalla avatar kumaraksh1 avatar kumaramit-msft avatar lenala avatar manekinekko avatar pamelafox avatar patricklee2 avatar pauld-msft avatar qianz2 avatar samruddhikhandale avatar sarsharma avatar showpune avatar snehapar9 avatar stepro avatar tulikac avatar vijaysaayi avatar walimsft avatar william-msft avatar yilims avatar yuzorma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oryx's Issues

Multiple node_modules Installed But Not Copied to Website Production Environment

There should be multiple node_modules in my project when the npm install command completed.

But not all the node_modules directory correctly copied to the production website directory.

Repro Steps:

This is my example project.

https://github.com/capraynor/kudu-bug-multiple-node-modules-not-copied-correctly

When I deployed this project to azure web app, I cannot see /home/site/wwwroot/another-directory/node_modules using ssh in advanced tools.

But I can see /tmp/the-hash/another-directory/node_modules using Bash in advanced tools

I really have no idea on this. Could you help us to figure this out? Thanks!

I'm using the following technologies:

Azure app service Local Git
Node.js 10.15
Azure Linux App Service
Looking forward for your reply!

PHP not automatically on PATH on build image

Bug Report

  • At what date and time did you most recently experience the problem?
    May 2, 2019

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
    Offline

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

  • What happened?
    php not found.

  • What did you expect or want to happen?
    php command should be found.

  • How can we reproduce it?

$ docker run -it oryxprod/build:latest
root@43ae7ffbd715:/# php
bash: php: command not found
root@43ae7ffbd715:/# ls /opt/php
5.6.40  7.0.33  7.2.17  7.3.4
root@43ae7ffbd715:/# source benv php=7.3.4
root@43ae7ffbd715:/# php --version
PHP 7.3.4 (cli) (built: Apr 17 2019 12:24:39) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.4, Copyright (c) 1998-2018 Zend Technologies
root@43ae7ffbd715:/# 

npm WARN

npm WARN tar ENOENT: no such file or directory, open '/tmp/8d77a4945a1b417/node_modules/.staging/readable-stream-c6b87ed5/package.json

Support V3 Function App in Oryx Build

Feature Request

The function team has recently previewed Function V3.
However, when using Oryx Build, seems like the latest ASP.NET Core version is missing in Oryx.

Dotnet Core Csproj

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
    <AzureFunctionsVersion>v3</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.29" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
</Project>

Oryx Build Log

Oryx Version      : 0.2.20191018.1, Commit: b56054ad55c50d02d333db35752b7f0aee706ad5, ReleaseTagName: 20191018.1
Build Operation ID: |lf5S8Yim1hg=.b7cc2e61_
Repository Commit : 5e0e5aa3a0d24ca9a33640227d6035f4


Source directory : /tmp/zipdeploy/extracted
Destination directory : /home/site/wwwroot


Using .NET Core SDK Version: 3.1.100-preview1-014459

Restoring packages...
  Restore completed in 447.11 ms for /tmp/zipdeploy/extracted/Dotnet3.csproj.
Publishing output to '/home/site/wwwroot'
Microsoft (R) Build Engine version 16.4.0-preview-19502-03+3af680463 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 23.45 ms for /tmp/zipdeploy/extracted/Dotnet3.csproj.
  You are using a preview version of .NET Core. See: https://aka.ms/dotnet-core-preview
  Dotnet3 -> /tmp/zipdeploy/extracted/bin/Release/netcoreapp3.0/bin/Dotnet3.dll
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : It was not possible to find any compatible framework version [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : The specified framework 'Microsoft.NETCore.App', version '2.1.0' was not found. [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :   - The following frameworks were found: [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :       3.1.0-preview1.19506.1 at [/opt/dotnet/sdks/3.1.100/shared/Microsoft.NETCore.App] [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :  [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : You can resolve the problem by installing the specified framework and/or SDK. [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :  [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : The .NET Core frameworks can be found at: [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :   - https://aka.ms/dotnet-download [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error :  [/tmp/zipdeploy/extracted/Dotnet3.csproj]
/var/nuget/microsoft.net.sdk.functions/1.0.29/build/netstandard1.0/Microsoft.NET.Sdk.Functions.Build.targets(41,5): error : Metadata generation failed. [/tmp/zipdeploy/extracted/Dotnet3.csproj]
\n/opt/Kudu/Scripts/starter.sh oryx build /tmp/zipdeploy/extracted -o /home/site/wwwroot --platform dotnet --platform-version ~3

Please advice, thanks.

Oryx Won't Deploy Dotnet Core Website When Deploying With Bin Files

Bug Report

  • At what date and time did you most recently experience the problem?
    Sept. 26th, 2019 - Sept. 27th, 2019

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

Azure Web Apps. On Linux.

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

Deploy source:
https://github.com/capraynor/oryx-bug-dotnet-core-2.1-cannot-deploy

  • What happened?
    When deploying dotnet core 2.1 web application, Oryx won't generate start script, and shows an error:

Could not detect the language from repo.

  • What did you expect or want to happen?
    Dotnet core 2.1 should be deployed.

  • How can we reproduce it?
    I have provided the binary repo, please directly deploy that repo, and you will find that problem.

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

C:\repositories\Test Core Application\Test Core Application\bin\Release\netcoreapp2.1\publish\testdeploy>git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 12 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 294 bytes | 294.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Deploy Async
remote: Updating branch 'master'.
remote: Updating submodules.
remote: Preparing deployment for commit id 'd26afee490'.
remote: Running oryx build...
remote: Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
remote: You can report issues at https://github.com/Microsoft/Oryx/issues
remote:
remote: Oryx Version      : 0.2.20190820.2, Commit: 450179ca187b5b9080175bb25f5b22466c63614b
remote: Build Operation ID: |ubqgvgMlEAs=.26fe5cc5_
remote: Repository Commit : d26afee490726150920c99365b031ba85b5e7486
remote:
remote: Error: Could not detect the language from repo.
remote: App container will begin restart within 10 seconds.

Directory did not sync caps change.

Bug Report

  • At what date and time did you most recently experience the problem?
    03/10/2019 (d/m/y)

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

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

  • What happened?
    A directory from the previous project "Api" was not renamed to the directory from the new project "api". This is important in my case (Python/Django).

  • What did you expect or want to happen?
    Expected directory "Api" to be renamed to "api".

  • How can we reproduce it?
    Assuming it can be reproduced by deploying a directory, renaming the directory, and re-deploying the directory.

  • Do you have log output? Please include between the backticks:
    Unsure where it find this

Support for Shapely python package

System Package Request

  • Why do you need this package? For example, are you using a language-level package which depends on this system package?

I would like to deploy an application on Azure which has Shapely as a requirement. Shapely, in turn, requires lib geos_c (or its variants, libgeos_c.so or libgeos_c.so.1). I'm currently getting this error after deploying:

Could not find lib geos_c or load any of its variants ['libgeos_c.so.1', 'libgeos_c.so'].

  • Which Oryx language runtime and version are you using? For example, "Node.js v10.14" or "Python v3.7".

I'm using Python 2.7.15+

python-shapely

  • Do you need a specific version? If so, which and why?

Since it's a Python 2.7 application, I need version 1.5.17 of Shapely

Failed to Remove _del_node_modules

Bug Report

  • At what date and time did you most recently experience the problem?
    7th Nov. 2019

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
    Azure app service
    Linux
    Node.js 10.14

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

No.

  • What happened?
    Oryx failed to remove _del_node_modules directory.

  • What did you expect or want to happen?
    The _del_node_modules should be correctly removed.

  • How can we reproduce it?

Please go to this resource

https://portal.azure.com/#@alexyazure2gmail.onmicrosoft.com/resource/subscriptions/24b4409f-01df-46d6-8b60-e4a394814213/resourceGroups/ProductSample-For-US/providers/Microsoft.Web/sites/gcef-arjs-onboarding-test1/appServices

to investigate the bug.

  • Do you have log output? Please include between the backticks:
Command: kudusync -v 50 -f /home/site/repository -t /home/site/wwwroot -n /home/site/deployments/4498876f3e10070be5ba623911356a3e2039eee9/manifest -p /home/site/deployments/25594c328453c9479ed0b53543d36b30d5cd2af8/manifest -i ".git;.hg;.deployment;.deploy.sh"
Kudu sync from: '/home/site/repository' to: '/home/site/wwwroot'
Error: ENOENT: no such file or directory, stat '/home/site/wwwroot/_del_node_modules'
\n/opt/Kudu/KuduConsole/Scripts/starter.sh kudusync -v 50 -f /home/site/repository -t /home/site/wwwroot -n /home/site/deployments/4498876f3e10070be5ba623911356a3e2039eee9/manifest -p /home/site/deployments/25594c328453c9479ed0b53543d36b30d5cd2af8/manifest -i ".git;.hg;.deployment;.deploy.sh"

Non-descript error message on Python/Django build

Bug Report

  • At what date and time did you most recently experience the problem?
    27-Mar-2019 13:38 Europe/Berlin

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

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

  • What happened?
    I deployed through local git and the build failed with the logged message below. As it contains no useful detail, I cannot troubleshoot.

  • What did you expect or want to happen?
    A successful deployment of my Django app, or an error message with enough detail to troubleshoot.

  • How can we reproduce it?

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

...
remote: Copying file: 'djangohealth/settings/databases/postgres.py'        
remote: Omitting next output lines...        
remote: Running oryx build...        
remote: Build Operation ID: |/qwnM3RiVsc=.1f8b683d_        
remote: Oops... An unexpected error has occurred.        
remote: App container will begin restart within 10 seconds.        
To https://shs-cm-demo.scm.azurewebsites.net/shs-cm-demo.git

Azure App Service Node.js Deployment Reports node_modules not found

Bug Report

  • At what date and time did you most recently experience the problem?

11:00 Oct. 12, 2019 GMT +8

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

Azure App Service

  • What happened?
    Please see: projectkudu/kudu#2946
    Well this is not randomly. This bug always occurs when I deploy.

I think that this is caused by making symbolic link to /node_modules that I suggested in another issue.

  • What did you expect or want to happen?

The deployment should be correctly executed.

  • How can we reproduce it?

Well I think that you can hack into my app service.

  • Do you have log output? Please include between the backticks:
[Step 1/1] remote: Deploy Async        
[05:35:07]	[Step 1/1] remote: Updating branch 'master'.        
[05:35:08]	[Step 1/1] remote: Updating submodules.        
[05:35:08]	[Step 1/1] remote: Preparing deployment for commit id '10b08ded5c'.        
[05:35:09]	[Step 1/1] remote: Oryx-Build: Running kudu sync...        
[05:35:10]	[Step 1/1] remote: Kudu sync from: '/home/site/repository' to: '/home/site/wwwroot'        
[05:35:10]	[Step 1/1] remote: Error: ENOENT: no such file or directory, stat '/home/site/wwwroot/node_modules'        
[05:35:11]	[Step 1/1] remote: App container will begin restart within 10 seconds.        
[05:35:11]	[Step 1/1] remote: Deployment Logs : 'https://forguncy-api-test.scm.azurewebsites.net/newui/jsonviewer?view_url=/api/deployments/10b08ded5c85ff67658365b853072b461f5b7b28/log'        
[05:35:11]	[Step 1/1] To https://forguncy-api-test.scm.azurewebsites.net:443/forguncy-api-test.git
[05:35:11]	[Step 1/1]  + eff6468...10b08de master -> master (forced update)

antenv is compressed

I cannot use antenv to run some commands in the azure ssh anymore. I use python and django, sometimes i would want to run some manage.py commands on file. Is there any alternative?

Rsync error code 23 while running Oryx build during deployment of Laravel PHP web app on Azure Linux App Server

Deployment Status failed due to rsync error during Oryx build. The current behaviour of the web app is that the latest commits are updated and working fine whereas the deployment status is being marked as failed. Is there any impact to this error and also how to resolve this so that deployment can be successful?
Have tried disabling oryx build but still, it does not work. It was able to deploy successfully previously, there was no changes to any config file in this current commit so we can't understand why the deployment failed.
Below is the full log:

Command: oryx build /home/site/repository -o /home/site/wwwroot --platform php --platform-version 7.3 --log-file /tmp/build-debug.log 
Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version      : 0.2.20191105.2, Commit: 67e159d71419415435cb5d10c05a0f0758ee8809, 
ReleaseTagName: 20191105.2
Build Operation ID: |7jeCWGdjBOA=.d3722b36_
Repository Commit : 39344432ee9241545d5d261930b58839a39e0721


Source directory     : /home/site/repository
Destination directory: /home/site/wwwroot

PHP executable: /opt/php/7.3.11/bin/php
Composer archive: /opt/php-composer/composer.phar
Running 'composer install --ignore-platform-reqs --no-interaction'...

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update

Copying files to destination directory '/home/site/wwwroot'...
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/carbon": Operation not permitted (1)
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/google-cloud-batch": Operation not permitted (1)
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/jp.php": Operation not permitted (1)
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/php-parse": Operation not permitted (1)
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/phpunit": Operation not permitted (1)
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/psysh": Operation not permitted (1)
rsync: failed to set times on "/home/site/wwwroot/vendor/bin/var-dump-server": Operation not 
permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
Loading composer repositories with package information\nInstalling dependencies (including require dev) from lock file\nNothing to install or update\nGenerating optimized autoload files\n> Illuminate\Foundation\ComposerScripts::postAutoloadDump\n> @php artisan package:discover -- ansi\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/carbon": Operation not permitted 
(1)\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/google-cloud-batch": Operation 
not permitted (1)\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/jp.php": Operation not 
permitted (1)\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/php-parse": Operation 
not permitted (1)\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/phpunit": Operation 
not permitted (1)\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/psysh": Operation not 
permitted (1)\nrsync: failed to set times on "/home/site/wwwroot/vendor/bin/var-dump-server": 
Operation not permitted (1)\nrsync error: some files/attrs were not transferred (see previous errors) 
(code 23) at main.c(1196) [sender=3.1.2]\n/opt/Kudu/Scripts/starter.sh oryx build 
/home/site/repository -o /home/site/wwwroot --platform php --platform-version 7.3 --log-file 
/tmp/build-debug.log 

zip deployment fails with rsync error: some files/attrs were not transferred

Bug Report

  • We experience problem 03th of October 2019 (03.10.2019) at 10.16 CET

  • We experience the problem at Azure Application Service Environment, Linux, Node.js 10.14

  • Zip deployment fails
    with the following

- rsync: rename "/home/site/wwwroot/.error1.log.W6GtMz" -> "error1.log": Permission denied (13)
- rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

application does not start after this error.

Our application uses error.log file for logging. It looks like the error.log file is somehow locked and that's the reason deployment fails. We have the following code in our Node.js application.

loggers.add('mainLog', {
    transports: [
        new transports.File({
            level: 'info',
            filename: './error.log',
            handleExceptions: true,
            maxsize: 524880,
            maxFiles: 5
        }),
        new transports.Console({
            level: 'debug'
        })
    ],
    exitOnError: false
});
  • zip deployment should work as expected no matter files are in use by the previous deployed application.

Here is the deployemnt log.
some lines about coping files are skipped in log for brevity.

 - Updating submodules.
 - Preparing deployment for commit id '3d28831339'.
 - Oryx-Build: Running kudu sync...
 - Command: kudusync -v 50 -f /tmp/zipdeploy/extracted -t /home/site/wwwroot -n /home/site/deployments/3d288313391f44dd8b61e2be2935d86a/manifest -p /opt/Kudu/Scripts/firstDeploymentManifest -i ".git;.hg;.deployment;.deploy.sh"
 - Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
 - Copying file: 'build.txt'
...
  - Copying file: 'lib/util/azureKeyVault.config.js'
  - Omitting next output lines...
 - Running oryx build...
 - Command: oryx build /home/site/wwwroot -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8d7428bfdffa780 -p compress_node_modules=tar-gz
 - Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
 - You can report issues at https://github.com/Microsoft/Oryx/issues
 - Oryx Version      : 0.2.20190820.2, Commit: 450179ca187b5b9080175bb25f5b22466c63614b
 - Build Operation ID: |Mfx6TBBAdkE=.70b50578_
 - Repository Commit : 3d288313391f44dd8b61e2be2935d86a
 - Warning: An outdated version of node was detected (10.14.2). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx
 - Using intermediate directory '/tmp/8d7428bfdffa780'.
 - Copying files to the intermediate directory...
 - Done in 4 sec(s).
 - Source directory     : /tmp/8d7428bfdffa780
 - Destination directory: /home/site/wwwroot
 - Running 'npm install'...
 - > [email protected] postinstall /tmp/8d7428bfdffa780/node_modules/nodemon
 - > node bin/postinstall || exit 0
 - �[32mLove nodemon? You can now support the project via the open collective:�[22m�[39m
 -  > �[96m�[1mhttps://opencollective.com/nodemon/donate�[0m
 - added 882 packages from 708 contributors and audited 20474 packages in 57.752s
 - found 422 vulnerabilities (62 low, 14 moderate, 345 high, 1 critical)
 - npm WARN [email protected] No description
 -   run `npm audit fix` to fix them, or `npm audit` for details
 - npm WARN [email protected] No repository field.
2019-09-26T14:16:41.339Z - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2019-09-26T14:16:41.351Z - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
- Running 'npm run build'...
- > [email protected] build /tmp/8d7428bfdffa780
- > tsc
- Zipping existing node_modules folder ...
- Done in 7 sec(s).
- Copying files to destination directory '/home/site/wwwroot'...
 - rsync: rename "/home/site/wwwroot/.error1.log.W6GtMz" -> "error1.log": Permission denied (13)
 - rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
 - npm WARN [email protected] No description\nnpm WARN [email protected] No repository field.\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})\n\nrsync: rename "/home/site/wwwroot/.error1.log.W6GtMz" -> "error1.log": Permission denied (13)\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/wwwroot -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8d7428bfdffa780 -p compress_node_modules=tar-gz
 - App container will begin restart within 10 seconds.

Publishing Azure Linux Web App does not update the running application

Hi,
i'm not sure this is the right repository to issue this, but here is how to reproduce the problem :

  • Create an azure Linux web app, code publishing, i'm not actually publishing the code but the compiled application, via FTP or web deployment i think, whatever visual studio and Octopus Deploy use (https://octopus.com/docs/deployment-examples/azure-deployments/deploying-a-package-to-an-azure-web-app).
    image

  • Configure the startup file with 'dotnet /home/site/wwwroot/WebApplication.dll'

  • Create an aspnetcore WebApplication (framework dependant)

  • Import the publish profile into visual studio

  • Deploy the application the first time, it should work as expected

  • Change something on the home page (like some text)

  • Publish the application again

  • Browsing to the same page, it should reflect the change, but it does not. Pressing restart on the portal has no effect, the only way is to STOP and Start the web application from the portal.

Build apps with a custom Docker image

Feature Request

I would like to be able to make Onyx build apps using a custom running Docker image, so that I'm able to install a system package (more specifically build-essential).

New deployment uncompress node_modules under root container folder

Bug Report

I have a nodeJS application that release with automatic deploy (git repository).
I have deploy the application several time without any problem.
Yesterday the deploy (with success status) break the application.
The log (omit some sensitive line) of Oryx script build does not show any error.

Running oryx build...
2019-05-28T22:44:11    Command: oryx build /home/site/wwwroot -o /home/site/wwwroot -l nodejs --language-version 10.14 -i /tmp/temp_directory -p compress_node_modules=tar-gz
2019-05-28T22:44:14    Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
2019-05-28T22:44:14    You can report issues at https://github.com/Microsoft/Oryx/issues
2019-05-28T22:44:14    
2019-05-28T22:44:14    Oryx Version       : 0.2.20190420.8, Commit: 391f7dd882e6fe5bea69edf6ba76d77e3d310e96
2019-05-28T22:44:16    Using intermediate directory '/tmp/temp_directory'.
2019-05-28T22:44:17    
2019-05-28T22:44:17    Copying files to the intermediate directory...
2019-05-28T22:44:19    Done in 3 sec(s).
2019-05-28T22:44:19    
2019-05-28T22:44:19    Source directory     : /tmp/temp_directory
2019-05-28T22:44:19    Destination directory: /home/site/wwwroot
2019-05-28T22:44:19    
2019-05-28T22:44:19    
2019-05-28T22:44:19    Running 'npm install'...
2019-05-28T22:44:19    
2019-05-28T22:45:49    added 803 packages from 1320 contributors and audited 5126 packages in 84.174s
2019-05-28T22:45:49    found 0 vulnerabilities
2019-05-28T22:45:49    
2019-05-28T22:45:49    Zipping existing node_modules folder ...
2019-05-28T22:47:38    Done in 108 sec(s).
2019-05-28T22:47:40    
2019-05-28T22:47:40    Copying files to destination directory '/home/site/wwwroot'...
2019-05-28T22:47:47    Done in 7 sec(s).
2019-05-28T22:47:47    
2019-05-28T22:47:47    Removing existing manifest file
2019-05-28T22:47:47    Creating a manifest file...
2019-05-28T22:47:47    Manifest file created.
2019-05-28T22:47:47    
2019-05-28T22:47:47    Done.
2019-05-28T22:47:51  Running post deployment command(s)...
2019-05-28T22:47:51  Deployment successful.
2019-05-28T22:48:42  App container will begin restart within 10 seconds.

If browse /home/site/wwwroot directory through WebSSH I do not find node_modules directory. There are _del_node_modules directory and node_modules.tar.gz file.
The node_modules directory is under the root container folder.
Is this change wanted/desired?

The problem, in my case, can be attributed an external library that not resolve dependencies imported from relative path ../node_modules/name-of-the-library from the project directory.

Cannot deploy NodeJS based app to linux plan

Bug Report

At what date and time did you most recently experience the problem?

Today while trying to run a NodeJS application in App Service.

Where did you experience the problem?

Azure Web apps with a NodeJS based app on a Linux plan.

What happened?

When deploying via local git option Oryx doesn't seem to extract the node_modules folder into the container root. So when I try to run the application through the Bash console in Kudu I got a package not found error for the first import.

Deployment log
2020-01-06T16:53:35  Updating branch 'master'.
2020-01-06T16:53:36  Updating submodules.
2020-01-06T16:53:36  Preparing deployment for commit id 'fe504b60c4'.
2020-01-06T16:53:36  Repository path is /home/site/repository
2020-01-06T16:53:36  Running oryx build...
2020-01-06T16:53:36    Command: oryx build /home/site/repository -o /home/site/wwwroot --platform nodejs --platform-version 12 -i /tmp/8d792c8f8ce3c07 -p compress_node_modules=tar-gz --log-file /tmp/build-debug.log 
2020-01-06T16:53:38    Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
2020-01-06T16:53:38    You can report issues at https://github.com/Microsoft/Oryx/issues
2020-01-06T16:53:38    
2020-01-06T16:53:38    Oryx Version      : 0.2.20191105.2, Commit: 67e159d71419415435cb5d10c05a0f0758ee8809, ReleaseTagName: 20191105.2
2020-01-06T16:53:38    Build Operation ID: |VxjiBhZnG80=.a6d4121b_
2020-01-06T16:53:38    Repository Commit : fe504b60c4355dee63a3cc3e98061b01f2be5e69
2020-01-06T16:53:38    
2020-01-06T16:53:40    Using intermediate directory '/tmp/8d792c8f8ce3c07'.
2020-01-06T16:53:40    
2020-01-06T16:53:40    Copying files to the intermediate directory...
2020-01-06T16:53:40    Done in 0 sec(s).
2020-01-06T16:53:40    
2020-01-06T16:53:40    Source directory     : /tmp/8d792c8f8ce3c07
2020-01-06T16:53:40    Destination directory: /home/site/wwwroot
2020-01-06T16:53:40    
2020-01-06T16:53:40    
2020-01-06T16:53:40    Using Node version:
2020-01-06T16:53:40    v12.13.0
2020-01-06T16:53:40    
2020-01-06T16:53:40    Using Npm version:
2020-01-06T16:53:40    6.12.0
2020-01-06T16:53:40    
2020-01-06T16:53:40    Running 'npm install'...
2020-01-06T16:53:40    
2020-01-06T16:53:55    added 156 packages from 458 contributors and audited 236 packages in 13.008s
2020-01-06T16:53:55    found 0 vulnerabilities
2020-01-06T16:53:55    
2020-01-06T16:53:55    
2020-01-06T16:53:55    Zipping existing node_modules folder...
2020-01-06T16:54:08    Done in 13 sec(s).
2020-01-06T16:54:08    
2020-01-06T16:54:08    Copying files to destination directory '/home/site/wwwroot'...
2020-01-06T16:54:09    Done in 1 sec(s).
2020-01-06T16:54:09    
2020-01-06T16:54:09    Removing existing manifest file
2020-01-06T16:54:09    Creating a manifest file...
2020-01-06T16:54:09    Manifest file created.
2020-01-06T16:54:09    
2020-01-06T16:54:09    Done in 29 sec(s).
2020-01-06T16:54:10  Running post deployment command(s)...
2020-01-06T16:54:10  Triggering recycle (preview mode disabled).
2020-01-06T16:54:10  Deployment successful.

Note: There is an empty node_modules folder located in /api/vfs/site/wwwroot/

What did you expect or want to happen?

I know about the performance improvements described in here so I would expect to find a node_modules folder in /node_modules but running the ls /node_modules shows nothing (I also looked for it everywhere via the Kudu api/vfs endpoint, but couldn't find an extracted version anywhere.

How can we reproduce it?

Deploy an application which includes a dependency from node_modules (I don't think it's broken for everyone because the there would be tons of issues for this.)

Do you have log output?

Already included in the related parts.

php missing mcrypt in php 5.6

Bug Report

see https://icm.ad.msft.net/imp/v3/incidents/details/142218082/home

  • At what date and time did you most recently experience the problem?

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

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

  • What happened?

  • What did you expect or want to happen?

  • How can we reproduce it?

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


Dotnet Core 3.1 Not Supported On Azure.

Hi,
When will you deploy the latest version to azure app service?

Now the Dotnet Core 3.1 is not supported on azure app service linux, and it shows that using an old version of Oryx.

App service Name:
sjs-...e-test-net-core
Log attached.

Command: oryx build /home/site/repository -o /home/site/wwwroot --platform dotnet --platform-version 3.1 -i /tmp/8d7a897238a60cc --log-file /tmp/build-debug.log 
Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version      : 0.2.20191105.2, Commit: 67e159d71419415435cb5d10c05a0f0758ee8809, ReleaseTagName: 20191105.2
Build Operation ID: |rxQnzkoXvEU=.44a31120_
Repository Commit : 56862e69c90acde5d91714a03eb6331f62f0bef6

Error: Platform 'dotnet' version '3.1' is unsupported. Supported versions: 1.0.16, 1.1.14, 2.0.9, 2.1.13, 2.2.7, 3.0.0
Error: Platform 'dotnet' version '3.1' is unsupported. Supported versions: 1.0.16, 1.1.14, 2.0.9, 2.1.13, 2.2.7, 3.0.0\n/opt/Kudu/KuduConsole/Scripts/starter.sh oryx build /home/site/repository -o /home/site/wwwroot --platform dotnet --platform-version 3.1 -i /tmp/8d7a897238a60cc --log-file /tmp/build-debug.log 

Thanks for your concern.

Raynor

oryx run-script - Platform name is required

Bug Report

  • At what date and time did you most recently experience the problem? =
    Apr 22 2019

  • Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use.
    Local

  • If your repo is publicly available please share its URL:
    https://github.com/vsls-contrib/guestbook

  • What happened?
    Platform name is required while the oryx README suggests it's not required.

  • What did you expect or want to happen?
    It runs without --platform nodejs being required.

  • How can we reproduce it?

$ docker run -it oryxprod/build:latest bash
# git clone https://github.com/vsls-contrib/guestbook
# cd guestbook/
# oryx build
# oryx run-script --appPath .
Platform name is required.

Support finding executables in package manager bin directories

Bug Report

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

Offline use.

  • What happened?

Executable installed with pip install not found on PATH.

The executable can be found in /opt/python/3/bin/pylint but it is not on PATH.

  • What did you expect or want to happen?

The executable was found and ran as expected.

  • How can we reproduce it?
$ docker run -it mcr.microsoft.com/oryx/build:20191015.2 bash
root@fbc1f71d1acc:/# pip install pylint
Collecting pylint
...
Successfully installed astroid-2.3.2 isort-4.3.21 lazy-object-proxy-1.4.2 mccabe-0.6.1 pylint-2.4.3 six-1.12.0 typed-ast-1.4.0 wrapt-1.11.2

root@fbc1f71d1acc:/# pylint
bash: pylint: command not found

--

Should the directory /opt/python/3/bin be added to /opt/oryx/defaultversions. So as long as I have /opt/oryx/defaultversions on PATH, it'll be found?

Azure Linux Web App, "it" culture not working

From @Eilon on Friday, 05 April 2019 16:49:46

From @valeriob on Friday, 05 April 2019 08:05:46

Describe the bug

Create a new aspnetcore 2.2 web app, enable it and en cultures as the documentation instructs, and make a page that prints the current date in short date format "d".
Run it locally with an italian browser, it correctly use the dd/MM/yyyy pattern, then deploy it to azure linux web app (code and framework dependent, not container) navigate to that page with the same browser with italian language : the displayed date has the english M/d/yyyy pattern.
Printing the output of this code in a page confirms that the database of culture information has problems :

new System.Globalization.CultureInfo("it").DateTimeFormat.ShortDatePattern)
new System.Globalization.CultureInfo("en").DateTimeFormat.ShortDatePattern)

Copied from original issue: dotnet/aspnetcore#9106

Copied from original issue: dotnet/corefx#36631

Best practice for customising Oryx/Python image

Hey guys,

Just looking for extra information.
Due to some constraints with an upstream vendor, we require some extra system packages and that Django is installed before pip install is ran. We all can agree that it is sub-optimal, but it's out of our control.

At first, I thought we could use the PRE_BUILD_SCRIPT_PATH and POST_BUILD_SCRIPT_PATH but it seems to lack the elevated system privileges required to do any apt-get commands. It also seems to be unable to install Django, because as I understand it, the virtual env is set up after the pre-build script.

Can you guys, confirm that I'm correct in my understanding and that is no way we could see this working using the default Oryx python image?

If so, we would still like to stay as closely aligned to Oryx as possible, so when the vendor fixes their issues we can move back to a more standard approach. We are wondering what is the best possible way for customizing the deployment that is based on Oryx?

We don't mind then launching it onto App Service Linux (container) for the short term.

nodejs platform is not supported

This morning deployment started to fail with the error nodejs platform is not supported. MS support team was unable to resolve the issue and suggested filling bug report on github

Command: oryx build /home/site/wwwroot -o /home/site/wwwroot -l nodejs --language-version 8.1 -i /tmp/8d70b6da48128e5 -p compress_node_modules=tar-gz
Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version : 0.2.20190521.9, Commit: c2ee5d8
Build Operation ID : |3XEBGdkeqic=.9113fed2_
Repository Commit : bc8303a4806bd0d58068b8009c7c27d257141e76

'nodejs' platform is not supported. Supported platforms are: nodejs, python, dotnet, php
'nodejs' platform is not supported. Supported platforms are: nodejs, python, dotnet, php\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/wwwroot -o /home/site/wwwroot -l nodejs --language-version 8.1 -i /tmp/8d70b6da48128e5 -p compress_node_modules=tar-gz

Oryx did npm run build but not using build folder

Hi,
I'm trying to deploy react app to Azure App Service Linux instance. It's using Microsoft Oryx in the deployment, and correctly executing "npm run build" to generate React production files and copy all the files to /home/site/wwwroot, however the web server is not using the "build" folder to serve content. How can I configure it to use the "build" folder? (default React production folder)

Issue pulling image

W: Conflicting distribution: https://packages.microsoft.com/debian/9/prod stretch InRelease (expected stretch but got stable)
W: Conflicting distribution: https://packages.microsoft.com/debian/9/prod stretch InRelease (expected stretch but got stable)
E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/main/binary-amd64/Packages.bz2 Hash Sum mismatch
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Hashes of received file:
- SHA512:a18b4df496d00477e52cf62e01c9f6c9534926ad0e3bf17f94fc28fc9bd91d5ee5e906b460477e2c1b280a5757a067937c9b2724bd6c72066e982a19306f28b8
- SHA256:94e637dd6df186bbed5a19f2e7bdc2dcc8f7bb0feb2f1eaf93f05b45dd322cc4
- SHA1:fb9e80e17952a577030e9266737b23269c8d878b [weak]
- MD5Sum:4360374f4ec05159ef14908c0dbf4116 [weak]
- Filesize:68668 [weak]
Last modification reported: Fri, 13 Dec 2019 01:35:23 +0000
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

npm version 'http://<registry-ip-address>:8080/' not found; choose one of

Bug Report

  • At what date and time did you most recently experience the problem?
    2019-07-15T15:49:29

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

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

  • What happened?
    I was trying to change our deployment to use a private NPM registry. After setting the environment npm_config_registry to be our private registry's address, I received an error shown below.

  • What did you expect or want to happen?
    I expected Oryx to install my packages from my private registry.

  • How can we reproduce it?
    Hopefully by setting a private repository as that environmnent variable and trying an npm install.

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

2019-07-15T15:49:29    benv: npm version 'http://<registry-address>:8080/' not found; choose one of:
2019-07-15T15:49:29      2 -> 2.15
2019-07-15T15:49:30      2.15 -> 2.15.9
2019-07-15T15:49:30      2.15.11
2019-07-15T15:49:30      2.15.8
2019-07-15T15:49:30      2.15.9
2019-07-15T15:49:30      3 -> 3.10
2019-07-15T15:49:30      3.10 -> 3.10.10
2019-07-15T15:49:30      3.10.10
2019-07-15T15:49:30      3.10.3
2019-07-15T15:49:30      3.9 -> 3.9.5
2019-07-15T15:49:30      3.9.5
2019-07-15T15:49:30      5 -> 5.6
2019-07-15T15:49:30      5.0 -> 5.0.3
2019-07-15T15:49:30      5.0.0
2019-07-15T15:49:30      5.0.3
2019-07-15T15:49:30      5.3 -> 5.3.0
2019-07-15T15:49:31      5.3.0
2019-07-15T15:49:31      5.4 -> 5.4.2
2019-07-15T15:49:31      5.4.2
2019-07-15T15:49:31      5.6 -> 5.6.0
2019-07-15T15:49:31      5.6.0
2019-07-15T15:49:31      6 -> 6.9
2019-07-15T15:49:31      6.9 -> 6.9.0
2019-07-15T15:49:31      6.9.0
2019-07-15T15:49:31      latest -> 6

pip install not installing in virtualenv

Bug Report

  • issue observed in the last days (~ 1 week max)

  • issue when deploying a django app on an Azure Webapp on Linux ASE

  • repo not publicly avail

  • pip install is started

remote: Deploy Async        
remote: Updating branch 'master'.        
remote: ...        
remote: Updating submodules.        
remote: Preparing deployment for commit id '630fc6557b'.        
remote: Oryx-Build: Running kudu sync...        
remote: Kudu sync from: '/home/site/repository' to: '/home/site/wwwroot'        
remote: Copying file: 'requirements.txt'        
[...]
remote: Oryx Version      : 0.2.20191004.5, Commit: 95ca7f51b147da7b085922507f46106c664ae2a3        
remote: Build Operation ID: |spk7pv0hdiQ=.c8b03ef6_        
remote: Repository Commit : 630fc6557bbd1d3ac6030b5e490ddc8a8716c0b8        
remote: 
remote: Using intermediate directory '/tmp/8d7520f736f0b89'.        
remote: 
remote: Copying files to the intermediate directory...        
remote: .............................................................................................................................        
remote: Done in 130 sec(s).        
remote: 
remote: Source directory     : /tmp/8d7520f736f0b89        
remote: Destination directory: /home/site/wwwroot        
remote: 
remote: Python Version: /opt/python/3.7.4/bin/python3        
remote: Python Virtual Environment: antenv        
remote: Creating virtual environment ...        
remote: Activating virtual environment ...        
remote: 
remote: Upgrading pip...        
remote: Collecting pip        
remote:   Using cached https://files.pythonhosted.org/packages/4a/08/6ca123073af4ebc4c5488a5bc8a010ac57aa39ce4d3c8a931ad504de4185/pip-19.3-py2.py3-none-any.whl        
remote: Installing collected packages: pip        
remote:   Found existing installation: pip 19.0.3        
remote:     Uninstalling pip-19.0.3:        
remote:       Successfully uninstalled pip-19.0.3        
remote: Successfully installed pip-19.3        
remote: Done in 4 sec(s).        
remote: Running pip install...        
remote: [08:06:46+0000] Collecting adal==1.2.1        
remote: [08:06:46+0000]   Downloading https://files.pythonhosted.org/packages/00/72/53dce9e4f5d6c1aa57b8d408cb34dff1969ecbf10ab7e678f32c5e0e2397/adal-1.2.1-py2.py3-none-any.whl (52kB)        
[...]
remote: [08:08:01+0000] Successfully installed [...]
remote: Done running pip install.        
remote: 
remote: Compressing existing 'antenv' folder...        
remote: ........        
remote: Done in 13 sec(s).        
  • when running /home/site/wwwroot/antenv/bin/pip freeze, I would expect to see new package from the requirements.txt to be installed yet they are not anymore installed (1 week ago it was OK) => I need to ssh and run /home/site/wwwroot/antenv/bin/pip install -r ... myself to have them installed (otherwise my django app that needs these packages fails miserably...)

  • redeploy an app by changing the requirements.txt and check if the package has been really installed in the virtual env

node_modules.tar.gz is not uncompressed

Bug Report

  • I experience problem 25.09.2019 15:41 CET

  • Problem is at Azure Web Apps in Application Environment. North Europe location.

  • I deploy a Node.js application as a zip archive.
    After deploy node_modules.tar.gz stays uncompressed.
    Application does not work.
    In order to start application I need manually login into container and run
    npm install command
    SCM_DO_BUILD_DURING_DEPLOYMENT is set to true

  • node_modules must be installed as a part of deployment process.

  • Problem can be reproduced with zip deployment through Azure CLI
    https://docs.microsoft.com/en-us/azure/app-service/deploy-zip
    Just create a smiple Node.js app, archive it into zip and run
    az webapp deployment source config-zip --resource-group myResourceGroup --name <app_name> --src .zip

  • Here is the build log output:

2019-09-25T13:14:59.532Z - Updating submodules.
2019-09-25T13:14:59.575Z - Preparing deployment for commit id 'cc45509de3'.
2019-09-25T13:14:59.877Z - Oryx-Build: Running kudu sync...
2019-09-25T13:14:59.881Z - Command: kudusync -v 50 -f /tmp/zipdeploy/extracted -t /home/site/wwwroot -n /home/site/deployments/cc45509de3e64563b16d2ef501bce471/manifest -p /home/site/deployments/6c2c6f4dae2f4d0ab810848f707bb40e/manifest -i ".git;.hg;.deployment;.deploy.sh"
2019-09-25T13:15:00.540Z - Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
2019-09-25T13:15:00.931Z - Copying file: 'build.txt'
2019-09-25T13:15:00.978Z - Copying file: 'jest.config.js'
2019-09-25T13:15:00.989Z - Copying file: 'package-lock.json'
2019-09-25T13:15:01.008Z - Copying file: 'package.json'
2019-09-25T13:15:01.082Z - Copying file: 'tsconfig.json'
2019-09-25T13:15:02.004Z - Omitting next output lines...
2019-09-25T13:15:02.355Z - Running oryx build...
2019-09-25T13:15:02.359Z - Command: oryx build /home/site/wwwroot -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8d741ba5e34313d -p compress_node_modules=tar-gz
2019-09-25T13:15:04.166Z - Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
2019-09-25T13:15:04.184Z - You can report issues at https://github.com/Microsoft/Oryx/issues
2019-09-25T13:15:04.208Z - Oryx Version      : 0.2.20190820.2, Commit: 450179ca187b5b9080175bb25f5b22466c63614b
2019-09-25T13:15:04.217Z - Build Operation ID: |qIdgR6YdUoo=.b3576ad1_
2019-09-25T13:15:04.223Z - Repository Commit : cc45509de3e64563b16d2ef501bce471
2019-09-25T13:15:05.948Z - Warning: An outdated version of node was detected (10.14.2). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx
2019-09-25T13:15:06.027Z - Using intermediate directory '/tmp/8d741ba5e34313d'.
2019-09-25T13:15:06.040Z - Copying files to the intermediate directory...
2019-09-25T13:15:14.807Z - Done in 8 sec(s).
2019-09-25T13:15:14.846Z - Source directory     : /tmp/8d741ba5e34313d
2019-09-25T13:15:14.861Z - Destination directory: /home/site/wwwroot
2019-09-25T13:15:14.898Z - Running 'npm install'...
2019-09-25T13:16:11.739Z - > [email protected] postinstall /tmp/8d741ba5e34313d/node_modules/nodemon
2019-09-25T13:16:11.759Z - > node bin/postinstall || exit 0
2019-09-25T13:16:12.022Z - �[32mLove nodemon? You can now support the project via the open collective:�[22m�[39m
2019-09-25T13:16:12.033Z -  > �[96m�[1mhttps://opencollective.com/nodemon/donate�[0m
2019-09-25T13:16:15.015Z - npm WARN [email protected] No description
2019-09-25T13:16:15.086Z - added 882 packages from 708 contributors and audited 20474 packages in 57.243s
2019-09-25T13:16:15.102Z - npm WARN [email protected] No repository field.
2019-09-25T13:16:15.112Z - found 422 vulnerabilities (62 low, 14 moderate, 345 high, 1 critical)
2019-09-25T13:16:15.130Z - npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
2019-09-25T13:16:15.142Z -   run `npm audit fix` to fix them, or `npm audit` for details
2019-09-25T13:16:15.155Z - npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2019-09-25T13:16:15.177Z - Running 'npm run build'...
2019-09-25T13:16:16.396Z - > [email protected] build /tmp/8d741ba5e34313d
2019-09-25T13:16:16.409Z - > tsc
2019-09-25T13:16:25.643Z - Zipping existing node_modules folder ...
2019-09-25T13:16:34.400Z - Done in 9 sec(s).
2019-09-25T13:16:34.446Z - Copying files to destination directory '/home/site/wwwroot'...
2019-09-25T13:16:35.307Z - Done in 1 sec(s).
2019-09-25T13:16:35.324Z - Removing existing manifest file
2019-09-25T13:16:35.342Z - Creating a manifest file...
2019-09-25T13:16:35.383Z - Manifest file created.
2019-09-25T13:16:35.399Z - Done in 89 sec(s).
2019-09-25T13:16:37.567Z - Running post deployment command(s)...
2019-09-25T13:16:37.645Z - Deployment successful.
2019-09-25T13:16:39.960Z - App container will begin restart within 10 seconds.

Oryx base image prevents installation of OS tools that use python, can break apt

Bug Report

Currently it looks like the base Oryx Docker image moves or removes the default Python installation that comes with Ubuntu. This causes two problems:

  1. Installing a package that adds a command like apt-add-repository breaks apt-get entirely since it relies on Python in this location.
  2. A number of tools expect the OS python location to be present.

These two points make it difficult to install additional tools and runtimes in the container.

Repros:

  1. Open a terminal and run

    docker run -it --rm mcr.microsoft.com/oryx/build bash

  2. Now from inside the container, run:

    apt-get update && apt-get install lsb-release

  3. Run lsb_release (with an _ this time). You will see:

    bash: /usr/bin/lsb_release: /usr/bin/python3: bad interpreter: No such file or directory

  4. Now, break apt-get entirely by running:

    apt-get install software-properties-common

  5. Run apt-get install nano to see it failing.

The problem is you'll see packages like these commonly listed in installation instructions for installing tools in external repository sources using Debian's package manager including the Azure CLI (lsb-release).

There are workarounds to avoid these commands if you know what you are doing, but it makes it difficult to use the image for development.

Symbolic links could be used, but it would be better to leave the python install from the OS where it was initially placed if possible to avoid these issues.

//cc: @derekbekoe

When an aspnet core application fails to start a core dump is generated, but i can't find it

We have a running aspnet core 2.2 application in azure web apps from many months.
Last week we found this problem, the web application looks like running from the azure console, but if we browse to it's url we see the default azure webapp application.
If we stop and start the application again everything works again for a few days.
I would like to know why the system runs the default application on a crash instead of restarting it ?
Why suddenly (we did not update the web app) the Microsoft.Diagnostics.Tracing.EventPipeEventSource throws null reference exception ?

The log is below, i would like to diagnose the problem with the core dump, but i can't find where it is :

2019-09-19T05:02:14.002632974Z Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
2019-09-19T05:02:14.002639674Z at Microsoft.Diagnostics.Tracing.EventPipeEventSource.Dispose(Boolean disposing)
2019-09-19T05:02:14.002643875Z at Microsoft.Diagnostics.Tracing.TraceEventDispatcher.Finalize()
2019-09-19T05:02:14.382141146Z /opt/startup/startup.sh: line 11: 27 Aborted (core dumped) dotnet /home/site/wwwroot/OnTms.Amadori.Consegne.Web.dll
2019-09-19T05:02:14.385321481Z WARNING: Startup command execution failed with exit code 134
2019-09-19T05:02:14.385821287Z Running the default application instead...
2019-09-19T05:02:14.882893751Z Hosting environment: Development
2019-09-19T05:02:14.887639803Z Content root path: /defaulthome/hostingstart/
2019-09-19T05:02:14.888119909Z Now listening on: http://[::]:8080
2019-09-19T05:02:14.888530113Z Application started. Press Ctrl+C to shut down.

Thanks
Valerio

Node.js: App Insights is not injected with "Node LTS" framework

Bug Report

  • At what date and time did you most recently experience the problem?
    7/17/2019

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

  • If your repo is publicly available please share its URL:
    Any app will do, I tested with a basic hello world app.
    https://github.com/Azure-Samples/nodejs-docs-hello-world

  • What happened?
    App Insights is not automatically injected when setting APPINSIGHTS_INSTRUMENTATIONKEY application setting via App Services Portal UI and runtime stack is selected as "Node LTS". Selecting a numbered version, "Node 10.14", "Node 8.12", etc will inject it properly.

  • What did you expect or want to happen?
    App Insight should be injected if Node LTS is selected

  • How can we reproduce it?

  1. Create new App Service Web App with runtime stack Node LTS, region West Central US
  2. Set app config setting env var APPINSIGHTS_INSTRUMENTATIONKEY to be any non empty string
  3. git clone https://github.com/Azure-Samples/nodejs-docs-hello-world
  4. Deploy app

See #79

Flatten layout of dotnet versions to allow dotnet to pick versions.

I was looking at how the different versions are installed in the Oryx build image and it looks like this:

/opt/dotnet/sdks/1.1/dotnet
/opt/dotnet/sdks/1.1/sdks
/opt/dotnet/sdks/1.1/sdks/1.1.x
/opt/dotnet/sdks/1.1/2.1/dotnet
/opt/dotnet/sdks/1.1/sdks
/opt/dotnet/sdks/1.1/sdks/2.1.x

Is there a particular reason that there are two levels of versions? The dotnet executable is a multiplexer itself and it will look in the sdks folder underneath it and pick the latest version to use. However because all these different version first level versions have their own dotnet that dotnet is not aware of any of the other versions on the machine. So far example, if I run dotnet –list-runtimes it only outputs 2.1 instead of showing all the other installed runtimes.

Is it possible to switch to something like:

/opt/dotnet/dotnet
/opt/dotnet/sdks
/opt/dotnet/sdks/?

@kichalla

Add support for libgomp.so in linux image for Python

System Package Request

I'm building models in Python and some of them use xgboost, as in this example of a Flask app:

import xgboost as xgb
import pandas as pd
from flask import Flask
from flask import request, jsonify
import numpy as np
import pickle as p
#
app = Flask(name)
modelfile = 'prodmodelxgboost.pkl'
model = p.load(open(modelfile, 'rb'))
#
@app.route('/api/', methods=['POST'])
   def makecalc():
   data = request.get_json()
   data = pd.DataFrame.from_dict(data, orient = &#39;index&#39;).transpose()
   data = np.reshape(data, (1, -1))
   prediction = np.array2string(model.predict(data))
   return jsonify(prediction)

Model is trained using xgboost, and that is needed at runtime

Oryx language runtime and version "Python v3.7".

Name of the package in the latest stable Debian release?
There does not appear to be a Debian release, however the problem appears actually to be with a lower level library libgomp.so (see below)

In Python, the xgboost version is 0.90, but any recent should be OK

To further explain the situation, if the following is requirements.txt for the above code:

click==6.7
Flask==1.0.2
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
Werkzeug==0.14.1
pandas==0.25.1
numpy==1.16.5
pickleshare==0.7.5
xgboost==0.90

then the following errors occur on deploy during the build on Azure Web Apps Linux:

2020-01-14T22:17:00.663067008Z xgboost.core.XGBoostError: XGBoost Library (libxgboost.so) could not be loaded.
2020-01-14T22:17:00.663070609Z Likely causes:
2020-01-14T22:17:00.663074109Z * OpenMP runtime is not installed (vcomp140.dll or libgomp-1.dll for Windows, libgomp.so for UNIX-like OSes)
2020-01-14T22:17:00.663077709Z * You are running 32-bit Python on a 64-bit OS

Thus, the problem appears to be missing libgomp.so

Thanks for any support!

'project' setting in .deployment file ignored

I use a Azure Linux Web App configured to deploy from a GitHub repository.
My repository contains a .deployment file with the following content:

[config]
project = htdocs

However, when I deploy using Oryx (as now is the default) the .deployment file, or at least the 'project' setting, seems to be ignored, since /home/site/wwwroot/ contains the htdocs directory (not its content).

If I set ENABLE_ORYX_BUILD to false, using the legacy Kudu build instead, everything works as expected. So this appears to be a problem with Oryx.

The issue is similar to #56. However, I am positive that my .deployment file has LF line endings. I even checked within the App Service using the SSH interface:

> file /home/site/repository/.deployment
/home/site/repository/.deployment: ASCII text

I tested this today (2019-11-11).

Failing node modules through azure devops CICD

Hello,

About a month ago, i was able to deploy through Azure Devops to a Linux WebApp
In build pipeline, i build a package and then i release that package.
In the package i include node_modules compressed as node_modules.tar.gz
I set the following value in Application Settings:

compressedNodeModulesFile : node_modules.tar.gz

In this way, in the deployment process, Oryx decompress that file into /node_modules and it worked great.

However, now.. has stopped working.

Doing a bit of research, also i've tried to define another parameter in application settings without success:

compress_node_modules : tar-gz

In the log oryx is not trying to discover if "node_modules" is compressed.

A month ago, the log was something like:

echo "Checking if node_modules was compressed..."
case $compressedNodeModulesFile in
*".zip")
echo "Found zip-based node_modules."
extractionCommand="unzip -q $compressedNodeModulesFile -d /node_modules"
;;
*".tar.gz")
echo "Found tar.gz based node_modules."
extractionCommand="tar -xzf $compressedNodeModulesFile -C

Right now... doesnt do the same (logs does not show the same message either)

Regards

Multiple node_modules Installed But Not Copied to Website Production Environment

There should be multiple node_modules in my project when the npm install command completed.

But not all the node_modules directory correctly copied to the production website directory.

Repro Steps:

This is my example project.

https://github.com/capraynor/kudu-bug-multiple-node-modules-not-copied-correctly

When I deployed this project to azure web app, I cannot see /home/site/wwwroot/another-directory/node_modules using ssh in advanced tools.

But I can see /tmp/the-hash/another-directory/node_modules using Bash in advanced tools

I really have no idea on this. Could you help us to figure this out? Thanks!

I'm using the following technologies:

  • Azure app service Local Git
  • Node.js 10.15
  • Azure Linux App Service

Looking forward for your reply!

support cryptography Python package

System Package Request

This was originally reported at microsoft/vscode-azureappservice#902

  • Why do you need this package? For example, are you using a language-level package which depends on this system package?

Would like to use the Python cryptography package. This requires libffi-dev and openssl-dev. It seems this may need some additional steps to work on Alpine, see these instructions.

  • Which Oryx language runtime and version are you using? For example, "Node.js v10.14" or "Python v3.7".

Python v3.7.

libffi-dev
openssl-dev

  • Do you need a specific version? If so, which and why?

See here for the versions of OpenSSL supported by the cryptography package.

Cannot use native node.js modules in Linux App Services

Bug Report

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

During deployment

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

You can repro this in the App Service SSH blade and installing any native node module. I've used bcrypt in my example, but any other native node.js module will have the same result.
I'm using a Linux App Service instance with a runtime of Node 10.14

mkdir test && cd test
npm init
npm install bcrypt
  • What happened?

Complains about python not being available.

a74961f3ac98:~/test# npm install bcrypt

> [email protected] install /root/test/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.6/bcrypt_lib-v3.0.6-node-v64-linux-x64-musl.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, musl) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Linux 4.4.0-128-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/root/test/node_modules/bcrypt/lib/binding
/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/root/test/node_modules/bcrypt/lib/binding" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v6
4"
gyp ERR! cwd /root/test/node_modules/bcrypt
gyp ERR! node -v v10.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/root/test/node_mo
dules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/root/test/node_modules/bcrypt/lib/binding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_l
abel=node-v64' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/test/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Linux 4.4.0-128-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/root/test/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /root/test/node_modules/bcrypt
node-pre-gyp ERR! node -v v10.14.1
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/root/test/node_modules/bcrypt/lib/binding/bcrypt
_lib.node --module_name=bcrypt_lib --module_path=/root/test/node_modules/bcrypt/lib/binding --napi_version=3 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v64' (1)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-04-25T18_48_06_167Z-debug.log

rsync issues with deployment

Hi,

We encountered today an issue with the deployment of a new version of our Django.
When deploying on an App Service via git, we got following error:

remote: rsync: failed to set times on "/home/site/wwwroot/antenv/lib64": Operation not permitted (1)

Each time we re-deploy the same issue persist.

remote: Deploy Async        
remote: Updating branch 'master'.        
remote: Updating submodules.        
remote: Preparing deployment for commit id '05e2ced2f5'.        
remote: Repository path is /home/site/repository        
remote: Running oryx build...        
remote: Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx        
remote: You can report issues at https://github.com/Microsoft/Oryx/issues        
remote: 
remote: Oryx Version      : 0.2.20191105.2, Commit: 67e159d71419415435cb5d10c05a0f0758ee8809, ReleaseTagName: 20191105.2        
remote: Build Operation ID: |9grRtIzpvr8=.64c3971e_        
remote: Repository Commit : 05e2ced2f51e57cf0b6372a8a5de3bc4c4baf995        
remote: 
remote: 
remote: Source directory     : /home/site/repository        
remote: Destination directory: /home/site/wwwroot        
remote: 
remote: Python Version: /opt/python/3.7.5/bin/python3        
remote: Python Virtual Environment: antenv        
remote: Creating virtual environment ...        
remote: Activating virtual environment ...        
remote: 
remote: Upgrading pip...        
remote: Requirement already up-to-date: pip in ./antenv/lib/python3.7/site-packages (19.3.1)        
remote: Done in 5 sec(s).        
remote: Running pip install...        
remote: [12:53:00+0000] Requirement already satisfied: adal==1.2.1 in ./antenv/lib/python3.7/site-packages (from -r requirements.txt (line 1)) (1.2.1)        
remote: [12:53:00+0000] Requirement already satisfied: applicationinsights==0.11.7 in ./antenv/lib/python3.7/site-packages (from -r requirements.txt (line 2)) (0.11.7)        
...
ruamel.yaml>=0.15.34->drf-yasg==1.16.1->-r requirements.txt (line 35)) (0.2.0)        
remote: Done running pip install.        
remote: 
remote: Copying files to destination directory '/home/site/wwwroot'...        
remote: rsync: failed to set times on "/home/site/wwwroot/antenv/lib64": Operation not permitted (1)        
remote: rsync: rename "/home/site/wwwroot/antenv/lib/python3.7/site-packages/._brotli.cpython-37m-x86_64-linux-gnu.so.pf53bJ" -> "antenv/lib/python3.7/site-packages/_brotli.cpython-37m-x86_64-linux-gnu.so": No such file or directory (2)        
remote: rsync: rename "/home/site/wwwroot/antenv/lib/python3.7/site-packages/._cffi_backend.cpython-37m-x86_64-linux-gnu.so.mWM9Cl" -> "antenv/lib/python3.7/site-packages/_cffi_backend.cpython-37m-x86_64-linux-gnu.so": No such file or directory (2)        
remote: rsync: rename "/home/site/wwwroot/antenv/lib/python3.7/site-packages/._ruamel_yaml.cpython-37m-x86_64-linux-gnu.so.dGqgcY" -> "antenv/lib/python3.7/site-packages/_ruamel_yaml.cpython-37m-x86_64-linux-gnu.so": No such file or directory (2)        
remote: rsync: rename "/home/site/wwwroot/antenv/lib/python3.7/site-packages/.libs_cffi_backend/.libffi-d78936b1.so.6.0.4.sAAfXA" -> "antenv/lib/python3.7/site-packages/.libs_cffi_backend/libffi-d78936b1.so.6.0.4": No such file or directory (2)        
remote: rsync: rename "/home/site/wwwroot/antenv/lib/python3.7/site-packages/Cryptodome/Cipher/._Salsa20.cpython-37m-x86_64-linux-gnu.so.KelzTd" -> "antenv/lib/python3.7/site-packages/Cryptodome/Cipher/_Salsa20.cpython-37m-x86_64-linux-gnu.so": No such file or directory (2)       

Any clue what causes these errors?

Kind regards,
Bram

Building fails because of missing node_modules

Building fails because of missing node_modules

I'm setting up a CI/CD pipeline with Azure Devops. When the Nuxt Universal (Node) application gets build by my pipeline everything goes well. However when Oryx builds the application it's missing modules.

I wasn't expecting it to build again as I've already build it and added the zip for deployment. I'm quite new with Azure Devops however so correct me if I'm wrong.

Here's some screenshots of my Azure devops build/release pipeline.

2019-09-11T18:09:49.1204732Z ##[section]Starting: Deploy Azure App Service
2019-09-11T18:09:49.1336280Z ==============================================================================
2019-09-11T18:09:49.1336365Z Task         : Azure App Service deploy
2019-09-11T18:09:49.1336441Z Description  : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2019-09-11T18:09:49.1336496Z Version      : 4.157.0
2019-09-11T18:09:49.1336556Z Author       : Microsoft Corporation
2019-09-11T18:09:49.1336611Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment
2019-09-11T18:09:49.1336695Z ==============================================================================
2019-09-11T18:09:49.8740356Z Got service connection details for Azure App Service:'browsy-landingpage'
2019-09-11T18:09:50.6489318Z Package deployment using ZIP Deploy initiated.
2019-09-11T18:19:45.1726225Z Updating submodules.
2019-09-11T18:19:45.1727554Z Preparing deployment for commit id 'fc0cb5fdce'.
2019-09-11T18:19:45.1728565Z Oryx-Build: Running kudu sync...
2019-09-11T18:19:45.4588879Z Command: kudusync -v 50 -f /tmp/zipdeploy/extracted -t /home/site/wwwroot -n /home/site/deployments/fc0cb5fdce89454385873bdebd7b7b46/manifest -p /home/site/deployments/481568147692981/manifest -i ".git;.hg;.deployment;.deploy.sh"
2019-09-11T18:19:45.4589183Z Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'
2019-09-11T18:19:45.4589428Z Copying file: '.babelrc'
2019-09-11T18:19:45.4589531Z Ignoring: .deployment
2019-09-11T18:19:45.4589771Z Copying file: '.eslintrc.js'
2019-09-11T18:19:45.4590931Z Copying file: '.gitignore'
2019-09-11T18:19:45.4591005Z Copying file: '.prettierrc'
2019-09-11T18:19:45.4591058Z Copying file: 'README.md'
2019-09-11T18:19:45.4591218Z Copying file: 'jest.config.js'
2019-09-11T18:19:45.4591276Z Copying file: 'jsconfig.json'
2019-09-11T18:19:45.4591376Z Copying file: 'nuxt.config.ts'
2019-09-11T18:19:45.4591432Z Copying file: 'package-lock.json'
2019-09-11T18:19:45.4591869Z Copying file: 'package.json'
2019-09-11T18:19:45.4591932Z Copying file: 'tailwind.config.js'
2019-09-11T18:19:45.4592038Z Copying file: 'tsconfig.json'
2019-09-11T18:19:45.4592100Z Copying file: 'web.config'
2019-09-11T18:19:45.4592156Z Ignoring: .git
2019-09-11T18:19:45.4592461Z Copying file: '.nuxt/App.js'
2019-09-11T18:19:45.4592523Z Copying file: '.nuxt/axios.js'
2019-09-11T18:19:45.4592636Z Copying file: '.nuxt/client.js'
2019-09-11T18:19:45.4592700Z Copying file: '.nuxt/empty.js'
2019-09-11T18:19:45.4592814Z Copying file: '.nuxt/google-analytics.js'
2019-09-11T18:19:45.4592884Z Copying file: '.nuxt/index.js'
2019-09-11T18:19:45.4592995Z Copying file: '.nuxt/loading.html'
2019-09-11T18:19:45.4593062Z Copying file: '.nuxt/middleware.js'
2019-09-11T18:19:45.4593425Z Copying file: '.nuxt/router.js'
2019-09-11T18:19:45.4593556Z Copying file: '.nuxt/router.scrollBehavior.js'
2019-09-11T18:19:45.4593626Z Copying file: '.nuxt/server.js'
2019-09-11T18:19:45.4593755Z Copying file: '.nuxt/templates.plugin.0b0c469e.js'
2019-09-11T18:19:45.4593824Z Copying file: '.nuxt/utils.js'
2019-09-11T18:19:45.4596562Z Copying file: '.nuxt/vue-scrollto.js'
2019-09-11T18:19:45.4596648Z Copying file: '.nuxt/components/nuxt-build-indicator.vue'
2019-09-11T18:19:45.4596774Z Copying file: '.nuxt/components/nuxt-child.js'
2019-09-11T18:19:45.4596844Z Copying file: '.nuxt/components/nuxt-error.vue'
2019-09-11T18:19:45.4596966Z Copying file: '.nuxt/components/nuxt-link.client.js'
2019-09-11T18:19:45.4597040Z Copying file: '.nuxt/components/nuxt-link.server.js'
2019-09-11T18:19:45.4597306Z Copying file: '.nuxt/components/nuxt-loading.vue'
2019-09-11T18:19:45.4598373Z Copying file: '.nuxt/components/nuxt.js'
2019-09-11T18:19:45.4598645Z Copying file: '.nuxt/dist/client/19990754445b7faf5eb2.css'
2019-09-11T18:19:45.4599032Z Copying file: '.nuxt/dist/client/227962d7eb678c20a051.css'
2019-09-11T18:19:45.4599188Z Copying file: '.nuxt/dist/client/2fdd9b61ddd36b762ff9.js'
2019-09-11T18:19:45.4601404Z Copying file: '.nuxt/dist/client/3945d0c3702d4e12caa3.css'
2019-09-11T18:19:45.4601700Z Copying file: '.nuxt/dist/client/4759091df355223d981b.js'
2019-09-11T18:19:45.4602309Z Copying file: '.nuxt/dist/client/49f432b27785c659e811.js'
2019-09-11T18:19:45.4602529Z Copying file: '.nuxt/dist/client/67de79466fb650132f63.js'
2019-09-11T18:19:45.4602700Z Copying file: '.nuxt/dist/client/6c10445563bd529fc718.js'
2019-09-11T18:19:45.4602914Z Copying file: '.nuxt/dist/client/7790a9102e5d2e10267f.css'
2019-09-11T18:19:45.4603084Z Copying file: '.nuxt/dist/client/8893ad564ba1f8e11859.js'
2019-09-11T18:19:45.4603303Z Copying file: '.nuxt/dist/client/8b8fdf780113008e74f2.js'
2019-09-11T18:19:45.4603472Z Copying file: '.nuxt/dist/client/LICENSES'
2019-09-11T18:19:45.4603708Z Copying file: '.nuxt/dist/client/a3427b2af617f7dc4ebc.css'
2019-09-11T18:19:45.4603873Z Omitting next output lines...
2019-09-11T18:19:45.4604083Z Processed 563 files...
2019-09-11T18:19:45.4604240Z Processed 1258 files...
2019-09-11T18:19:45.4604458Z Processed 1990 files...
2019-09-11T18:19:45.4604613Z Processed 2648 files...
2019-09-11T18:19:45.4604815Z Processed 3268 files...
2019-09-11T18:19:45.4604971Z Processed 3920 files...
2019-09-11T18:19:45.4605119Z Processed 4470 files...
2019-09-11T18:19:45.4605689Z Processed 5091 files...
2019-09-11T18:19:45.4605913Z Processed 5743 files...
2019-09-11T18:19:45.4606325Z Processed 6043 files...
2019-09-11T18:19:45.4606481Z Processed 6373 files...
2019-09-11T18:19:45.4606694Z Processed 7084 files...
2019-09-11T18:19:45.4606848Z Processed 7776 files...
2019-09-11T18:19:45.4607061Z Processed 8230 files...
2019-09-11T18:19:45.4607215Z Processed 8970 files...
2019-09-11T18:19:45.4607465Z Processed 9687 files...
2019-09-11T18:19:45.4607634Z Running oryx build...
2019-09-11T18:19:45.7612904Z Command: oryx build /home/site/wwwroot -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8d736e37fd94d05 -p compress_node_modules=tar-gz
2019-09-11T18:19:45.7613646Z Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
2019-09-11T18:19:45.7614063Z You can report issues at https://github.com/Microsoft/Oryx/issues
2019-09-11T18:19:45.7614543Z 
2019-09-11T18:19:45.7615709Z Oryx Version      : 0.2.20190730.1, Commit: 4ef0d5854df39c57605e59bb6d255215cc85468a
2019-09-11T18:19:45.7616145Z Build Operation ID: |BhNs02jorew=.da57f928_
2019-09-11T18:19:45.7616563Z Repository Commit : fc0cb5fdce89454385873bdebd7b7b46
2019-09-11T18:19:45.7616996Z 
2019-09-11T18:19:45.7617377Z Warning: An outdated version of node was detected (10.14.2). Consider updating.\nVersions supported by Oryx: https://github.com/microsoft/Oryx
2019-09-11T18:19:45.7617816Z 
2019-09-11T18:19:45.7618179Z Using intermediate directory '/tmp/8d736e37fd94d05'.
2019-09-11T18:19:45.7619042Z 
2019-09-11T18:19:45.7619437Z Copying files to the intermediate directory...
2019-09-11T18:19:45.7619753Z Done in 4 sec(s).
2019-09-11T18:19:45.7620096Z 
2019-09-11T18:19:45.7620424Z Source directory     : /tmp/8d736e37fd94d05
2019-09-11T18:19:45.7620797Z Destination directory: /home/site/wwwroot
2019-09-11T18:19:45.7621095Z 
2019-09-11T18:19:45.7621376Z 
2019-09-11T18:19:45.7622101Z Running 'npm install'...
2019-09-11T18:19:45.7622410Z 
2019-09-11T18:19:45.7622708Z 
2019-09-11T18:19:45.7623103Z > [email protected] postinstall /tmp/8d736e37fd94d05/node_modules/core-js
2019-09-11T18:19:45.7623452Z > node scripts/postinstall || echo "ignore"
2019-09-11T18:19:45.7623908Z 
2019-09-11T18:19:45.7624273Z ‌Thank you for using core-js (‌ https:&#x2F;&#x2F;github.com&#x2F;zloirock&#x2F;core-js ‌) for polyfilling JavaScript standard library!‌
2019-09-11T18:19:45.7624598Z 
2019-09-11T18:19:45.7626930Z ‌The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: ‌
2019-09-11T18:19:45.7627362Z ‌&gt;‌ https:&#x2F;&#x2F;opencollective.com&#x2F;core-js ‌
2019-09-11T18:19:45.7627810Z ‌&gt;‌ https:&#x2F;&#x2F;www.patreon.com&#x2F;zloirock ‌
2019-09-11T18:19:45.7629055Z 
2019-09-11T18:19:45.7629639Z ‌Also, the author of core-js (‌ https:&#x2F;&#x2F;github.com&#x2F;zloirock ‌) is looking for a good job -)‌
2019-09-11T18:19:45.7629941Z 
2019-09-11T18:19:45.7630221Z 
2019-09-11T18:19:45.7630603Z > [email protected] postinstall /tmp/8d736e37fd94d05/node_modules/nuxt
2019-09-11T18:19:45.7630925Z > opencollective || exit 0
2019-09-11T18:19:45.7631272Z 
2019-09-11T18:19:45.7631553Z 
2019-09-11T18:19:45.7632058Z > [email protected] postinstall /tmp/8d736e37fd94d05
2019-09-11T18:19:45.7632464Z > npm run build
2019-09-11T18:19:45.7632765Z 
2019-09-11T18:19:45.7633124Z 
2019-09-11T18:19:45.7633453Z > [email protected] build /tmp/8d736e37fd94d05
2019-09-11T18:19:45.7633875Z > npm run build:prod
2019-09-11T18:19:45.7634191Z 
2019-09-11T18:19:45.7634506Z 
2019-09-11T18:19:45.7635056Z > [email protected] build:prod /tmp/8d736e37fd94d05
2019-09-11T18:19:45.7636048Z > nuxt-ts build
2019-09-11T18:19:45.7636373Z 
2019-09-11T18:19:45.7636764Z 
2019-09-11T18:19:45.7637129Z  ERROR  Cannot find module 'typescript'
2019-09-11T18:19:45.7637559Z 
2019-09-11T18:19:45.7637924Z   at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
2019-09-11T18:19:45.7638355Z   at Function.resolve (internal/modules/cjs/helpers.js:32:19)
2019-09-11T18:19:45.7638719Z   at register (node_modules/ts-node/dist/index.js:137:30)
2019-09-11T18:19:45.7639404Z   at registerTSNode (node_modules/@nuxt/typescript-runtime/lib/register.js:5:3)
2019-09-11T18:19:45.7639754Z   at main (node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js:10:3)
2019-09-11T18:19:45.7640143Z   at Object.<anonymous> (node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js:16:3)
2019-09-11T18:19:45.7640483Z   at Module._compile (internal/modules/cjs/loader.js:689:30)
2019-09-11T18:19:45.7658589Z   at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
2019-09-11T18:19:45.7659723Z   at Module.load (internal/modules/cjs/loader.js:599:32)
2019-09-11T18:19:45.7660505Z   at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
2019-09-11T18:19:45.7660852Z 
2019-09-11T18:19:45.7661179Z npm ERR! code ELIFECYCLE
2019-09-11T18:19:45.7661877Z npm ERR! errno 1
2019-09-11T18:19:45.7662828Z npm ERR! [email protected] build:prod: `nuxt-ts build`
2019-09-11T18:19:45.7663195Z npm ERR! Exit status 1
2019-09-11T18:19:45.7663602Z npm ERR! 
2019-09-11T18:19:45.7663956Z npm ERR! Failed at the [email protected] build:prod script.
2019-09-11T18:19:45.7664396Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-09-11T18:19:45.7664729Z 
2019-09-11T18:19:45.7666116Z npm ERR! A complete log of this run can be found in:
2019-09-11T18:19:45.7666551Z npm ERR!     /home/.npm/_logs/2019-09-11T18_19_22_640Z-debug.log
2019-09-11T18:19:45.7667820Z npm ERR! code ELIFECYCLE
2019-09-11T18:19:45.7668286Z npm ERR! errno 1
2019-09-11T18:19:45.7668704Z npm ERR! [email protected] build: `npm run build:prod`
2019-09-11T18:19:45.7669063Z npm ERR! Exit status 1
2019-09-11T18:19:45.7669624Z npm ERR! 
2019-09-11T18:19:45.7669971Z npm ERR! Failed at the [email protected] build script.
2019-09-11T18:19:45.7670381Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-09-11T18:19:45.7670707Z 
2019-09-11T18:19:45.7671043Z npm ERR! A complete log of this run can be found in:
2019-09-11T18:19:45.7671660Z npm ERR!     /home/.npm/_logs/2019-09-11T18_19_22_862Z-debug.log
2019-09-11T18:19:45.7672014Z npm ERR! code ELIFECYCLE
2019-09-11T18:19:45.7672421Z npm ERR! errno 1
2019-09-11T18:19:45.7672775Z npm ERR! [email protected] postinstall: `npm run build`
2019-09-11T18:19:45.7673336Z npm ERR! Exit status 1
2019-09-11T18:19:45.7673666Z npm ERR! 
2019-09-11T18:19:45.7674082Z npm ERR! Failed at the [email protected] postinstall script.
2019-09-11T18:19:45.7674445Z npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2019-09-11T18:19:45.7675023Z 
2019-09-11T18:19:45.7675367Z npm ERR! A complete log of this run can be found in:
2019-09-11T18:19:45.7676212Z npm ERR!     /home/.npm/_logs/2019-09-11T18_19_23_157Z-debug.log
2019-09-11T18:19:45.7677671Z ERROR  Cannot find module 'typescript'\n\n  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)\n  at Function.resolve (internal/modules/cjs/helpers.js:32:19)\n  at register (node_modules/ts-node/dist/index.js:137:30)\n  at registerTSNode (node_modules/@nuxt/typescript-runtime/lib/register.js:5:3)\n  at main (node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js:10:3)\n  at Object.<anonymous> (node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js:16:3)\n  at Module._compile (internal/modules/cjs/loader.js:689:30)\n  at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)\n  at Module.load (internal/modules/cjs/loader.js:599:32)\n  at tryModuleLoad (internal/modules/cjs/loader.js:538:12)\n\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! [email protected] build:prod: `nuxt-ts build`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the [email protected] build:prod script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/.npm/_logs/2019-09-11T18_19_22_640Z-debug.log\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! [email protected] build: `npm run build:prod`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the [email protected] build script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/.npm/_logs/2019-09-11T18_19_22_862Z-debug.log\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! [email protected] postinstall: `npm run build`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the [email protected] postinstall script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/.npm/_logs/2019-09-11T18_19_23_157Z-debug.log\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/wwwroot -o /home/site/wwwroot --platform nodejs --platform-version 10.14 -i /tmp/8d736e37fd94d05 -p compress_node_modules=tar-gz
2019-09-11T18:19:45.7678822Z App container will begin restart within 10 seconds.
2019-09-11T18:19:45.7755467Z ##[error]Failed to deploy web package to App Service.
2019-09-11T18:19:45.7767775Z ##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details.
2019-09-11T18:19:46.9304647Z Successfully updated deployment History at https://browsy-landingpage.scm.azurewebsites.net/api/deployments/571568225986018
2019-09-11T18:19:47.1628798Z App Service Application URL: http://browsy-landingpage.azurewebsites.net
2019-09-11T18:19:47.1868969Z ##[section]Finishing: Deploy Azure App Service

Deployment center build fails

I have configured Deployment center with Bitbucket repository, Whenever I checkin the build triggers and it successfully deploys, but on the Dashboard/UI, I see its failed.

I'm deploying Nodejs application to App service. Selected Node stack environment.

Issue:
Successful builds are shown as failed build.

Expected:
Fix the status

Azure Function App deployment fails during Oryx command

I'm having trouble deploying my Python Azure Function App via Azure Pipelines (using zip deployment). The deployment randomly succeeds or fails. It seems to me that it fails during the oryx command, having issues closing/processing some .zip files. Could you elaborate?

Command: oryx build /tmp/zipdeploy/extracted -o /tmp/build/expressbuild --platform python --platform-version 3.7 -i /tmp/8d79f270e2c2091 -p packagedir=.python_packages/lib/site-packages
Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version      : 0.2.20191105.2, Commit: 67e159d71419415435cb5d10c05a0f0758ee8809, ReleaseTagName: 20191105.2
Build Operation ID: |SmTp/twBPe8=.3463368_
Repository Commit : f3d560cea1724de28100da8ac55acc8a

Using intermediate directory '/tmp/8d79f270e2c2091'.

Copying files to the intermediate directory...
Done in 39 sec(s).

Source directory     : /tmp/8d79f270e2c2091
Destination directory: /tmp/build/expressbuild

Python Version: /opt/python/3.7.5/bin/python3

Running pip install...
[10:38:03+0000] Collecting sqlalchemy
[10:38:03+0000]   Downloading https://files.pythonhosted.org/packages/17/7f/35879c73859368ad19a952b69ee780aa97fc30350dabd45fb948d6a4e3ea/SQLAlchemy-1.3.12.tar.gz (6.0MB)
[10:38:05+0000] Collecting azure
[10:38:05+0000]   Downloading https://files.pythonhosted.org/packages/5a/5e/f94bd8091ab0ccc68ee902e188d4e8cd3b38dc77155a1c187cbf4767d0e4/azure-4.0.0-py2.py3-none-any.whl
[10:38:05+0000] Collecting azure-storage
[10:38:05+0000]   Downloading https://files.pythonhosted.org/packages/76/26/482c033f8f3a48d16cf75aad91c3e1256856719f4117fabb4696d33aa5da/azure_storage-0.36.0-py2.py3-none-any.whl (190kB)
[10:38:06+0000] Collecting azure-identity
[10:38:06+0000]   Downloading https://files.pythonhosted.org/packages/c4/7a/9372cd51fc3408ede0fab950ef9a6518cad34ef36e199982bb1ddfa18512/azure_identity-1.2.0-py2.py3-none-any.whl (58kB)
[10:38:06+0000] Collecting azure-functions
[10:38:06+0000]   Downloading https://files.pythonhosted.org/packages/39/3e/cb8efe899160b771cbc186bc2de3023d604a509eef28ceff44c1fc77460e/azure_functions-1.0.7-py3-none-any.whl (108kB)
[10:38:07+0000] Collecting pillow
[10:38:07+0000]   Downloading https://files.pythonhosted.org/packages/f5/79/b2d5695d1a931474fa68b68ec93bdf08ba9acbc4d6b3b628eb6aac81d11c/Pillow-7.0.0-cp37-cp37m-manylinux1_x86_64.whl (2.1MB)
[10:38:10+0000] Collecting psycopg2-binary
[10:38:10+0000]   Downloading https://files.pythonhosted.org/packages/37/69/c964165696fddf611f518b31c20774cdb635a49d6a0bd5bc3a1deec549b3/psycopg2_binary-2.8.4-cp37-cp37m-manylinux1_x86_64.whl (2.9MB)
[10:38:10+0000] Collecting requests
[10:38:10+0000]   Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
[10:38:10+0000] Collecting elasticsearch
[10:38:11+0000]   Downloading https://files.pythonhosted.org/packages/10/60/0c79dde3e81beffeed422599d9ac65419289095186d37a3201739d52a57d/elasticsearch-7.5.1-py2.py3-none-any.whl (86kB)
[10:38:11+0000] Collecting azure-graphrbac~=0.40.0
[10:38:11+0000]   Downloading https://files.pythonhosted.org/packages/89/0a/29f7e2914033e2536026b8f0d7f8deb1edda68c9a93ce4757b2b1e39568b/azure_graphrbac-0.40.0-py2.py3-none-any.whl (63kB)
[10:38:11+0000] Collecting azure-cosmosdb-table~=1.0
[10:38:11+0000]   Downloading https://files.pythonhosted.org/packages/f0/e4/15a59108883cc47460b1475aeac935e2d975b5def42f2c0a8b8fd48b3304/azure_cosmosdb_table-1.0.6-py2.py3-none-any.whl (125kB)
[10:38:11+0000] Collecting azure-mgmt~=4.0
[10:38:11+0000]   Downloading https://files.pythonhosted.org/packages/19/8e/6fa401c437579127e726487582a9861fef09022c4ab50901bb499a8e4fc1/azure_mgmt-4.0.0-py2.py3-none-any.whl
[10:38:11+0000] Collecting azure-keyvault~=1.0
[10:38:11+0000]   Downloading https://files.pythonhosted.org/packages/80/37/e80f577570b32648c4b88c8c48a46501a4868ae4c8d905774fd02c2b01fc/azure_keyvault-1.1.0-py2.py3-none-any.whl (352kB)
[10:38:12+0000] Collecting azure-servicefabric~=6.3.0.0
[10:38:12+0000]   Downloading https://files.pythonhosted.org/packages/2c/d9/3e33ad19eb57988dff3aac06bab241736f86dc692a38c5ff6bb6fb959243/azure_servicefabric-6.3.0.0-py2.py3-none-any.whl (1.1MB)
[10:38:13+0000] Collecting azure-storage-blob~=1.3
[10:38:13+0000]   Downloading https://files.pythonhosted.org/packages/25/f4/a307ed89014e9abb5c5cfc8ca7f8f797d12f619f17a6059a6fd4b153b5d0/azure_storage_blob-1.5.0-py2.py3-none-any.whl (75kB)
[10:38:13+0000] Collecting azure-storage-file~=1.3
[10:38:13+0000]   Downloading https://files.pythonhosted.org/packages/c9/33/6c611563412ffc409b2413ac50e3a063133ea235b86c137759774c77f3ad/azure_storage_file-1.4.0-py2.py3-none-any.whl
[10:38:13+0000] Collecting azure-loganalytics~=0.1.0
[10:38:13+0000]   Downloading https://files.pythonhosted.org/packages/54/e2/1d30270441a50efce1d52eb426710fc98269eb8bdac44ee966bbd07846da/azure_loganalytics-0.1.0-py2.py3-none-any.whl
[10:38:13+0000] Collecting azure-servicemanagement-legacy~=0.20.6
[10:38:13+0000]   Downloading https://files.pythonhosted.org/packages/a3/2b/0813d459df7ec04bb8c6a250882ee88b672a5f8d16a237978c89436a053e/azure_servicemanagement_legacy-0.20.6-py2.py3-none-any.whl (78kB)
[10:38:13+0000] Collecting azure-batch~=4.1
[10:38:13+0000]   Downloading https://files.pythonhosted.org/packages/b1/fa/1053b5dcd88e5de8e8cd70a4d7189ffad037542963ea86b518deb612c498/azure_batch-4.1.3-py2.py3-none-any.whl (314kB)
[10:38:13+0000] Collecting azure-storage-queue~=1.3
[10:38:14+0000]   Downloading https://files.pythonhosted.org/packages/72/94/4db044f1c155b40c5ebc037bfd9d1c24562845692c06798fbe869fe160e6/azure_storage_queue-1.4.0-py2.py3-none-any.whl
[10:38:14+0000] Collecting azure-eventgrid~=1.1
[10:38:14+0000]   Downloading https://files.pythonhosted.org/packages/01/e4/2a3319f04c69f0113a05884664769d462dcec55031c6d154a2c4176cfb79/azure_eventgrid-1.3.0-py2.py3-none-any.whl (167kB)
[10:38:14+0000] Collecting azure-datalake-store~=0.0.18
[10:38:14+0000]   Downloading https://files.pythonhosted.org/packages/27/9a/e7140775b3f8f011ef5d001c12a3519310094375671950105519e30bb12b/azure_datalake_store-0.0.48-py2.py3-none-any.whl (53kB)
[10:38:14+0000] Collecting azure-applicationinsights~=0.1.0
[10:38:14+0000]   Downloading https://files.pythonhosted.org/packages/3b/f7/3af9ce8a9a597998629436889cf5d69d1a0c96713e795fd372e4af785635/azure_applicationinsights-0.1.0-py2.py3-none-any.whl (104kB)
[10:38:14+0000] Collecting azure-servicebus~=0.21.1
[10:38:14+0000]   Downloading https://files.pythonhosted.org/packages/b8/de/47c0df32b57512ac9640ba239c7eeca22cb908bd8b645235729ec4f37196/azure_servicebus-0.21.1-py2.py3-none-any.whl
[10:38:14+0000] Collecting azure-common>=1.1.5
[10:38:14+0000]   Downloading https://files.pythonhosted.org/packages/3f/4b/8881f8446853dfe3d404468689edcff33c0e2bf62ac2ddf31d08d739fadc/azure_common-1.1.24-py2.py3-none-any.whl
[10:38:15+0000] Collecting cryptography
[10:38:15+0000]   Downloading https://files.pythonhosted.org/packages/ca/9a/7cece52c46546e214e10811b36b2da52ce1ea7fa203203a629b8dfadad53/cryptography-2.8-cp34-abi3-manylinux2010_x86_64.whl (2.3MB)
[10:38:15+0000] Collecting python-dateutil
[10:38:15+0000]   Downloading https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl (227kB)
[10:38:15+0000] Collecting azure-nspkg>=2.0.0
[10:38:15+0000]   Downloading https://files.pythonhosted.org/packages/c4/0c/c562be95a9a2ed52454f598571cf300b1114d0db2aa27f5b8ed3bb9cd0c0/azure_nspkg-3.0.2-py3-none-any.whl
[10:38:15+0000] Collecting azure-core<2.0.0,>=1.0.0
[10:38:15+0000]   Downloading https://files.pythonhosted.org/packages/ce/a9/83145b00f09f043610e2e1dd6486cf32876d137455723486348dc9abc074/azure_core-1.2.1-py2.py3-none-any.whl (104kB)
[10:38:16+0000] Collecting six>=1.6
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl
[10:38:16+0000] Collecting msal-extensions~=0.1.3
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/21/9b/8bc67822e98573fe0460e30ad0202ab9e0638a42878041c65a6fe857babe/msal_extensions-0.1.3-py2.py3-none-any.whl
[10:38:16+0000] Collecting msal<2.0.0,>=1.0.0
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/a9/7c/bc473b3fe76d466362e5b84b4b165b18a427604a9582a9bca61c1545d872/msal-1.0.0-py2.py3-none-any.whl (43kB)
[10:38:16+0000] Collecting chardet<3.1.0,>=3.0.2
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
[10:38:16+0000] Collecting certifi>=2017.4.17
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
[10:38:16+0000] Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
[10:38:16+0000] Collecting idna<2.9,>=2.5
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
[10:38:16+0000] Collecting msrestazure<2.0.0,>=0.4.20
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/68/75/5cb56ca8cbc6c5fe476e4878c73f57a331edcf55e5d3fcb4a7377d7d659d/msrestazure-0.6.2-py2.py3-none-any.whl (40kB)
[10:38:16+0000] Collecting azure-cosmosdb-nspkg>=2.0.0
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/58/0d/1329b47e5386b0acf4e42ada2284851eff60ef3337a87e5b2dfedabbfcb1/azure_cosmosdb_nspkg-2.0.2-py2.py3-none-any.whl
[10:38:16+0000] Collecting azure-mgmt-cosmosdb~=0.4.1
[10:38:16+0000]   Downloading https://files.pythonhosted.org/packages/17/ed/d97a04c8c26e2432f2cf000b711daeb053e1cfbdb046bd5d070c941b4fcb/azure_mgmt_cosmosdb-0.4.1-py2.py3-none-any.whl (100kB)
[10:38:17+0000] Collecting azure-mgmt-managementgroups~=0.1.0
[10:38:17+0000]   Downloading https://files.pythonhosted.org/packages/f2/50/591adac2a6cd8d77cccd38bdf5d177ad6a2e95b9217daa9a60b5d86de5cd/azure_mgmt_managementgroups-0.1.0-py2.py3-none-any.whl (59kB)
[10:38:17+0000] Collecting azure-mgmt-marketplaceordering~=0.1.0
[10:38:17+0000]   Downloading https://files.pythonhosted.org/packages/a8/cb/13502fdbaf520d08fb280eb31ecfe5d926b9cf92259c22280bbde96b307d/azure_mgmt_marketplaceordering-0.1.0-py2.py3-none-any.whl
[10:38:17+0000] Collecting azure-mgmt-msi~=0.2.0
[10:38:17+0000]   Downloading https://files.pythonhosted.org/packages/ae/95/b451721e38ca0feddce03ee3ce86158e208d0150253bd371207a8df4e9c5/azure_mgmt_msi-0.2.0-py2.py3-none-any.whl
[10:38:17+0000] Collecting azure-mgmt-signalr~=0.1.0
[10:38:17+0000]   Downloading https://files.pythonhosted.org/packages/10/32/379137548a4c6e4dfd15da6b1c476f2b1af52e8d7fe243fdac9ea2064427/azure_mgmt_signalr-0.1.1-py2.py3-none-any.whl (49kB)
[10:38:17+0000] Collecting azure-mgmt-batch~=5.0
[10:38:17+0000]   Downloading https://files.pythonhosted.org/packages/97/81/a9eb3fd2ab070159105b4cfe9640c24410ac8195286729d62bfdf871de94/azure_mgmt_batch-5.0.1-py2.py3-none-any.whl (87kB)
[10:38:17+0000] Collecting azure-mgmt-servicefabric~=0.2.0
[10:38:18+0000]   Downloading https://files.pythonhosted.org/packages/6e/06/fafe8b5d881cfa68927e61557c8419dcfacb93e07f4ab17cc60959707a53/azure_mgmt_servicefabric-0.2.0-py2.py3-none-any.whl (142kB)
[10:38:20+0000] Collecting azure-mgmt-batchai~=2.0
[10:38:20+0000]   Downloading https://files.pythonhosted.org/packages/d9/a5/ab796c2a490155c14f9ac4240724ca5c56723315d4dc753030712e6f2e80/azure_mgmt_batchai-2.0.0-py2.py3-none-any.whl (174kB)
[10:38:20+0000] Collecting azure-mgmt-consumption~=2.0
[10:38:20+0000]   Downloading https://files.pythonhosted.org/packages/11/f4/2db9557494dfb17ff3edeae5726981143a7baace17df3712b189e343bd8c/azure_mgmt_consumption-2.0.0-py2.py3-none-any.whl (46kB)
[10:38:20+0000] Collecting azure-mgmt-trafficmanager~=0.50.0
[10:38:20+0000]   Downloading https://files.pythonhosted.org/packages/ed/4f/c322d72dc92dde543471bc23f9ac0eb6b9d0dc2441bb5ce938250040e307/azure_mgmt_trafficmanager-0.50.0-py2.py3-none-any.whl (52kB)
[10:38:20+0000] Collecting azure-mgmt-billing~=0.2.0
[10:38:20+0000]   Downloading https://files.pythonhosted.org/packages/0f/24/5106287ea0f6562d965afb055e3c6c0da058f7844a70464e67bab56c6c4b/azure_mgmt_billing-0.2.0-py2.py3-none-any.whl
[10:38:20+0000] Collecting azure-mgmt-datafactory~=0.6.0
[10:38:21+0000]   Downloading https://files.pythonhosted.org/packages/cf/01/32a6ad5ad348d965f7c106d819a1f6dc613f6aa98a720ffc529ef468016b/azure_mgmt_datafactory-0.6.0-py2.py3-none-any.whl (418kB)
[10:38:21+0000] Collecting azure-mgmt-advisor~=1.0
[10:38:21+0000]   Downloading https://files.pythonhosted.org/packages/cb/f3/a86ba3e0784d12c8fe5cbf1f24e1b9255575a2f0892e08c46cddd0795dfd/azure_mgmt_advisor-1.0.1-py2.py3-none-any.whl
[10:38:21+0000] Collecting azure-mgmt-authorization~=0.50.0
[10:38:21+0000]   Downloading https://files.pythonhosted.org/packages/6f/17/55b974603c16be89c7a7c16bac57b7bce48527bf1bebc3f116f7215176e6/azure_mgmt_authorization-0.50.0-py2.py3-none-any.whl (81kB)
[10:38:21+0000] Collecting azure-mgmt-cognitiveservices~=3.0
[10:38:21+0000]   Downloading https://files.pythonhosted.org/packages/8d/c8/222ea2f533c6b8f8656f3091101b4c3aa32c162d2a609d07d1ae00172515/azure_mgmt_cognitiveservices-3.0.0-py2.py3-none-any.whl (58kB)
[10:38:21+0000] Collecting azure-mgmt-datalake-store~=0.5.0
[10:38:21+0000]   Downloading https://files.pythonhosted.org/packages/ff/ac/5685cd06dc8b245bb6b894815764a14bd62245ba4579b45148682f510fdd/azure_mgmt_datalake_store-0.5.0-py2.py3-none-any.whl (88kB)
[10:38:22+0000] Collecting azure-mgmt-cdn~=3.0
[10:38:22+0000]   Downloading https://files.pythonhosted.org/packages/97/bf/c41e8985b4ffaaad2baaded1fb7b113433ae2d30d65c1a8c226e72284b72/azure_mgmt_cdn-3.1.0-py2.py3-none-any.whl (119kB)
[10:38:22+0000] Collecting azure-mgmt-eventgrid~=1.0
[10:38:22+0000]   Downloading https://files.pythonhosted.org/packages/54/5b/e91e616021ae9be0019c9c19cffb92b97d787246ca51cfcc0b0a0c6da77a/azure_mgmt_eventgrid-1.0.0-py2.py3-none-any.whl (51kB)
[10:38:22+0000] Collecting azure-mgmt-loganalytics~=0.2.0
[10:38:22+0000]   Downloading https://files.pythonhosted.org/packages/70/40/c9b77bf82916e963aa701fb396673f7ddc4cdab95524b6d2edf927b05630/azure_mgmt_loganalytics-0.2.0-py2.py3-none-any.whl (89kB)
[10:38:22+0000] Collecting azure-mgmt-logic~=3.0
[10:38:22+0000]   Downloading https://files.pythonhosted.org/packages/88/98/693c515e97043520f5cebf1ecae7bf198df100f5f9870b53d4be3bcaa5ce/azure_mgmt_logic-3.0.0-py2.py3-none-any.whl (303kB)
[10:38:22+0000] Collecting azure-mgmt-managementpartner~=0.1.0
[10:38:22+0000]   Downloading https://files.pythonhosted.org/packages/9a/91/2bccd2bdca4158a7b6169538b25e22e0b4f8ff835754888aab45ffbd0448/azure_mgmt_managementpartner-0.1.1-py2.py3-none-any.whl
[10:38:22+0000] Collecting azure-mgmt-maps~=0.1.0
[10:38:23+0000]   Downloading https://files.pythonhosted.org/packages/e4/04/c64326729e842f3eab1fd527f7582e269e4b0e5b9324a4562edaf0371953/azure_mgmt_maps-0.1.0-py2.py3-none-any.whl
[10:38:23+0000] Collecting azure-mgmt-datalake-analytics~=0.6.0
[10:38:23+0000]   Downloading https://files.pythonhosted.org/packages/73/e7/5d909ef5812fc31f2871f3510ef43af93157ba51be03b6f798afba7a29d8/azure_mgmt_datalake_analytics-0.6.0-py2.py3-none-any.whl (288kB)
[10:38:23+0000] Collecting azure-mgmt-scheduler~=2.0
[10:38:23+0000]   Downloading https://files.pythonhosted.org/packages/e8/55/f3490698ff622244438e667e0321808e84389e69c5fb77a1d6db869d9bb7/azure_mgmt_scheduler-2.0.0-py2.py3-none-any.whl (67kB)
[10:38:23+0000] Collecting azure-mgmt-recoveryservicesbackup~=0.3.0
[10:38:23+0000]   Downloading https://files.pythonhosted.org/packages/c5/af/13b10d76bc0ff9188c9e5cd9f2726a5745029b76125938491f9abac5399d/azure_mgmt_recoveryservicesbackup-0.3.0-py2.py3-none-any.whl (568kB)
[10:38:24+0000] Collecting azure-mgmt-web~=0.35.0
[10:38:24+0000]   Downloading https://files.pythonhosted.org/packages/21/04/3f2622720664c972d927fd9e58c0066e998739b7891649207765be674126/azure_mgmt_web-0.35.0-py2.py3-none-any.whl (358kB)
[10:38:24+0000] Collecting azure-mgmt-containerinstance~=1.0
[10:38:24+0000]   Downloading https://files.pythonhosted.org/packages/fd/d1/d770050f20ad81b80f7eb41f89e1a5d841cf74bf41c7e1ff137c46f28a1e/azure_mgmt_containerinstance-1.5.0-py2.py3-none-any.whl (96kB)
[10:38:24+0000] Collecting azure-mgmt-compute~=4.0
[10:38:24+0000]   Downloading https://files.pythonhosted.org/packages/0e/4d/7ac30585c567a8b9fe8294e0e956c6ef48665522ddf8f8c44bf38b700798/azure_mgmt_compute-4.6.2-py2.py3-none-any.whl (3.0MB)
[10:38:27+0000] Collecting azure-mgmt-commerce~=1.0
[10:38:27+0000]   Downloading https://files.pythonhosted.org/packages/7e/13/f421e77dd1fe3c9657a890f9c085f433fe422f54003ee03e631a8be5c4e7/azure_mgmt_commerce-1.0.1-py2.py3-none-any.whl
[10:38:27+0000] Collecting azure-mgmt-dns~=2.0
[10:38:27+0000]   Downloading https://files.pythonhosted.org/packages/c7/d7/0f986a64b06db93cf29b76f9a188f5778eb959624a00ed6aedc335ee58d2/azure_mgmt_dns-2.1.0-py2.py3-none-any.whl (134kB)
[10:38:27+0000] Collecting azure-mgmt-redis~=5.0
[10:38:27+0000]   Downloading https://files.pythonhosted.org/packages/90/a7/42342a984b2916972c5c5e24df94e3cd5e4377a8dc465a83415706d9be6f/azure_mgmt_redis-5.0.0-py2.py3-none-any.whl (43kB)
[10:38:27+0000] Collecting azure-mgmt-resource~=2.0
[10:38:27+0000]   Downloading https://files.pythonhosted.org/packages/1b/2d/9c3f2c9bf6e19f3efe4ddcaa946ea515d5229f4c0b387e224267e77fb73b/azure_mgmt_resource-2.2.0-py2.py3-none-any.whl (780kB)
[10:38:28+0000] Collecting azure-mgmt-devspaces~=0.1.0
[10:38:28+0000]   Downloading https://files.pythonhosted.org/packages/f4/d3/ff9c39578f24fb4bd158a882788c7795b177cf3f23ce7cf1d8b52066a64e/azure_mgmt_devspaces-0.1.0-py2.py3-none-any.whl
[10:38:28+0000] Collecting azure-mgmt-iothub~=0.5.0
[10:38:28+0000]   Downloading https://files.pythonhosted.org/packages/19/d6/b422df467b3d7f4e2975b590fbf6e12aaae0a497c7d080b4955a6a6d794a/azure_mgmt_iothub-0.5.0-py2.py3-none-any.whl (102kB)
[10:38:28+0000] Collecting azure-mgmt-servicebus~=0.5.1
[10:38:28+0000]   Downloading https://files.pythonhosted.org/packages/28/ad/9e90f8bab40a9682410e57ed08a799be113c5e470bec247b099038c6389e/azure_mgmt_servicebus-0.5.3-py2.py3-none-any.whl (112kB)
[10:38:28+0000] Collecting azure-mgmt-rdbms~=1.2
[10:38:28+0000]   Downloading https://files.pythonhosted.org/packages/d2/94/c850c8257d19b08eb6b03154d6fe21938801562b4082d27985f54ebe9de4/azure_mgmt_rdbms-1.9.0-py2.py3-none-any.whl (259kB)
[10:38:29+0000] Collecting azure-mgmt-iotcentral~=0.1.0
[10:38:29+0000]   Downloading https://files.pythonhosted.org/packages/58/4e/e2e5f2d545a46ada3705c85c45c12882a443d40f60e1a908c78058e15cf2/azure_mgmt_iotcentral-0.1.0-py2.py3-none-any.whl
[10:38:29+0000] Collecting azure-mgmt-monitor~=0.5.2
[10:38:29+0000]   Downloading https://files.pythonhosted.org/packages/6a/3b/a8b95ee25f1c209ad82ad06de39f4efbfb9dc8a8dc5da5a7a48d7897bf3e/azure_mgmt_monitor-0.5.2-py2.py3-none-any.whl (247kB)
[10:38:29+0000] Collecting azure-mgmt-sql~=0.9.1
[10:38:29+0000]   Downloading https://files.pythonhosted.org/packages/c5/bb/219c76af961e9e6d1f5055d70c3cc06889b91375727a04367149c3aad640/azure_mgmt_sql-0.9.1-py2.py3-none-any.whl (485kB)
[10:38:30+0000] Collecting azure-mgmt-containerservice~=4.2
[10:38:30+0000]   Downloading https://files.pythonhosted.org/packages/5b/2f/0eba2dbd5d3f66c076a66b0020ccfe9c7e78534ac132afaa104c138680c1/azure_mgmt_containerservice-4.4.0-py2.py3-none-any.whl (206kB)
[10:38:30+0000] Collecting azure-mgmt-network~=2.0
[10:38:30+0000]   Downloading https://files.pythonhosted.org/packages/61/95/d63833e95406626256893a2f3ef4e5029a168330e3a27817a9f5597c0e6f/azure_mgmt_network-2.7.0-py2.py3-none-any.whl (11.4MB)
[10:38:44+0000] Collecting azure-mgmt-storage~=2.0
[10:38:44+0000]   Downloading https://files.pythonhosted.org/packages/67/5b/15e6a8109af53e4c2228142ea816532036700757d035fc1b9cd0f6a63b02/azure_mgmt_storage-2.0.0-py2.py3-none-any.whl (558kB)
[10:38:44+0000] Collecting azure-mgmt-powerbiembedded~=2.0
[10:38:44+0000]   Downloading https://files.pythonhosted.org/packages/64/2b/5a69d118626a83055ce577fb6ba35c114e72f0273d0c4d943b909ee8d51e/azure_mgmt_powerbiembedded-2.0.0-py2.py3-none-any.whl
[10:38:44+0000] Collecting azure-mgmt-media~=1.0.0rc2
[10:38:44+0000]   Downloading https://files.pythonhosted.org/packages/65/2e/6d9649bd5645ac32a179adfea5707f640fc51a57e493c27f0ab575789e85/azure_mgmt_media-1.0.0-py2.py3-none-any.whl (335kB)
[10:38:45+0000] Collecting azure-mgmt-reservations~=0.2.1
[10:38:45+0000]   Downloading https://files.pythonhosted.org/packages/a9/2b/e0edb8dbe85e447005cde508b869e564f58270f631219f036d8ab71184f9/azure_mgmt_reservations-0.2.1-py2.py3-none-any.whl (50kB)
[10:38:45+0000] Collecting azure-mgmt-devtestlabs~=2.2
[10:38:45+0000]   Downloading https://files.pythonhosted.org/packages/2f/93/a64abaede2fc6a52476af8ceab9cedb368c49e948d9385cbe7cd4ce5ffff/azure_mgmt_devtestlabs-2.2.0-py2.py3-none-any.whl (194kB)
[10:38:45+0000] Collecting azure-mgmt-notificationhubs~=2.0
[10:38:45+0000]   Downloading https://files.pythonhosted.org/packages/55/c0/62a0495583dfc44830f711be52cb4a4e116c2f72c89a19b90d654bdafc4a/azure_mgmt_notificationhubs-2.1.0-py2.py3-none-any.whl (76kB)
[10:38:45+0000] Collecting azure-mgmt-applicationinsights~=0.1.1
[10:38:45+0000]   Downloading https://files.pythonhosted.org/packages/30/61/1d95a5ef3a9119a0d375d8670129375515de20e20409612e9671c99bd19f/azure_mgmt_applicationinsights-0.1.1-py2.py3-none-any.whl (42kB)
[10:38:45+0000] Collecting azure-mgmt-policyinsights~=0.1.0
[10:38:45+0000]   Downloading https://files.pythonhosted.org/packages/19/84/7021951ae69572a19af0ff9cca1d2abf3542d35af38796656ded1be08358/azure_mgmt_policyinsights-0.1.0-py2.py3-none-any.whl (44kB)
[10:38:46+0000] Collecting azure-mgmt-eventhub~=2.1
[10:38:46+0000]   Downloading https://files.pythonhosted.org/packages/5a/cb/3822bcfa815f894c86a27845ae4160c0169722598399234cd6f77bb82347/azure_mgmt_eventhub-2.6.0-py2.py3-none-any.whl (189kB)
[10:38:46+0000] Collecting azure-mgmt-subscription~=0.2.0
[10:38:46+0000]   Downloading https://files.pythonhosted.org/packages/27/72/f63f72d9c27659f96aae287f7ba67c9ba2877213c2c10d8b797e0dee5059/azure_mgmt_subscription-0.2.0-py2.py3-none-any.whl (40kB)
[10:38:46+0000] Collecting azure-mgmt-containerregistry~=2.1
[10:38:46+0000]   Downloading https://files.pythonhosted.org/packages/97/70/8c2d0509db466678eba16fa2b0a539499f3b351b1f2993126ad843d5be13/azure_mgmt_containerregistry-2.8.0-py2.py3-none-any.whl (718kB)
[10:38:47+0000] Collecting azure-mgmt-machinelearningcompute~=0.4.1
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/b4/9c/f8eb81b307df4465809b182f2fe44c288eeb41c0ab54f91b61ac554998a9/azure_mgmt_machinelearningcompute-0.4.1-py2.py3-none-any.whl
[10:38:47+0000] Collecting azure-mgmt-datamigration~=1.0
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/8b/4f/7b149487e77d94e701288e1d0b066a7d522bdfe8595e992b5d39dfb00f80/azure_mgmt_datamigration-1.0.0-py2.py3-none-any.whl (185kB)
[10:38:47+0000] Collecting azure-mgmt-relay~=0.1.0
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/00/f7/f5c72bd19829cfaf9f070ec294c901ad7f98835ba9560fdad652afb1071f/azure_mgmt_relay-0.1.0-py2.py3-none-any.whl
[10:38:47+0000] Collecting azure-mgmt-search~=2.0
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/c9/18/fa4e0d541332c0ba6ef16beaa9b55f831436949e7d0981d5677dff2ddfb5/azure_mgmt_search-2.1.0-py2.py3-none-any.whl (41kB)
[10:38:47+0000] Collecting azure-mgmt-iothubprovisioningservices~=0.2.0
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/84/ce/3500c731a5c5b31028e662aa41bc45f75301834a0c03adeacfe7ef7bd86e/azure_mgmt_iothubprovisioningservices-0.2.0-py2.py3-none-any.whl (60kB)
[10:38:47+0000] Collecting azure-mgmt-hanaonazure~=0.1.1
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/f3/1b/50d300ae02158ab092f923132050b56c148f1b784c7b594d3275d4449769/azure_mgmt_hanaonazure-0.1.1-py2.py3-none-any.whl
[10:38:47+0000] Collecting azure-mgmt-recoveryservices~=0.3.0
[10:38:47+0000]   Downloading https://files.pythonhosted.org/packages/fd/7f/80327a27e03473101afb136e872279ad1386adf1bac14a58a9f839cd8352/azure_mgmt_recoveryservices-0.3.0-py2.py3-none-any.whl (70kB)
[10:38:48+0000] Collecting azure-mgmt-keyvault~=1.0
[10:38:48+0000]   Downloading https://files.pythonhosted.org/packages/49/de/0d69aedae7c5f6428314640b65947203ab80409c12b5d4e66fb5b7a4182e/azure_mgmt_keyvault-1.1.0-py2.py3-none-any.whl (111kB)
[10:38:48+0000] Collecting msrest>=0.5.0
[10:38:48+0000]   Downloading https://files.pythonhosted.org/packages/27/b0/c34b3ea9b2ed74b800520fbefb312cdb7f05c20b8bd42e5e7662a5614f98/msrest-0.6.10-py2.py3-none-any.whl (82kB)
[10:38:48+0000] Collecting azure-storage-common~=1.4
[10:38:48+0000]   Downloading https://files.pythonhosted.org/packages/05/6c/b2285bf3687768dbf61b6bc085b0c1be2893b6e2757a9d023263764177f3/azure_storage_common-1.4.2-py2.py3-none-any.whl (47kB)
[10:38:48+0000] Collecting adal>=0.4.2
[10:38:48+0000]   Downloading https://files.pythonhosted.org/packages/4f/b5/3ea9ae3d1096b9ff31e8f1846c47d49f3129a12464ac0a73b602de458298/adal-1.2.2-py2.py3-none-any.whl (53kB)
[10:38:49+0000] Collecting cffi
[10:38:49+0000]   Downloading https://files.pythonhosted.org/packages/16/cd/1f4ddf6be8300713c676bb9f3a2d3b8eb8accc0a6a24f57d4f6c4cd59d34/cffi-1.13.2-cp37-cp37m-manylinux1_x86_64.whl (398kB)
[10:38:51+0000] Collecting portalocker~=1.0
[10:38:51+0000]   Downloading https://files.pythonhosted.org/packages/91/db/7bc703c0760df726839e0699b7f78a4d8217fdc9c7fcb1b51b39c5a22a4e/portalocker-1.5.2-py2.py3-none-any.whl
[10:38:51+0000] Collecting PyJWT[crypto]<2,>=1.0.0
[10:38:51+0000]   Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
[10:38:51+0000] Collecting azure-mgmt-nspkg>=2.0.0
[10:38:51+0000]   Downloading https://files.pythonhosted.org/packages/b3/c2/af4b47845f27dc7d206ed4908b9e580f8bc94a4b2f3956a0d87c40719d90/azure_mgmt_nspkg-3.0.2-py3-none-any.whl
[10:38:51+0000] Collecting azure-mgmt-datalake-nspkg>=2.0.0
[10:38:51+0000]   Downloading https://files.pythonhosted.org/packages/48/3d/c65a520d93448923a96784582a0deafaae096cb37b444ae5d63b57f0562d/azure_mgmt_datalake_nspkg-3.0.1-py3-none-any.whl
[10:38:51+0000] Collecting isodate>=0.6.0
[10:38:51+0000]   Downloading https://files.pythonhosted.org/packages/9b/9f/b36f7774ff5ea8e428fdcfc4bb332c39ee5b9362ddd3d40d9516a55221b2/isodate-0.6.0-py2.py3-none-any.whl (45kB)
[10:38:51+0000] Collecting requests-oauthlib>=0.5.0
[10:38:51+0000]   Downloading https://files.pythonhosted.org/packages/a3/12/b92740d845ab62ea4edf04d2f4164d82532b5a0b03836d4d4e71c6f3d379/requests_oauthlib-1.3.0-py2.py3-none-any.whl
[10:38:52+0000] Collecting pycparser
[10:38:52+0000]   Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
[10:38:52+0000] Collecting oauthlib>=3.0.0
[10:38:52+0000]   Downloading https://files.pythonhosted.org/packages/05/57/ce2e7a8fa7c0afb54a0581b14a65b56e62b5759dbc98e80627142b8a3704/oauthlib-3.1.0-py2.py3-none-any.whl (147kB)
[10:38:52+0000] Building wheels for collected packages: sqlalchemy, pycparser
[10:38:52+0000]   Building wheel for sqlalchemy (setup.py): started
[10:38:55+0000]   Building wheel for sqlalchemy (setup.py): finished with status 'done'
[10:38:55+0000]   Created wheel for sqlalchemy: filename=SQLAlchemy-1.3.12-cp37-cp37m-linux_x86_64.whl size=1218346 sha256=9e4693a13c682839d8db451f3f1f796ddcc1c0bbee6142119bd501caf4b1c5ab
[10:38:55+0000]   Stored in directory: /usr/local/share/pip-cache/wheels/ee/33/44/0788a6e806866ae2e246d5cd841d07498a46bcb3f3c42ea5a4
[10:38:56+0000]   Building wheel for pycparser (setup.py): started
[10:38:56+0000]   Building wheel for pycparser (setup.py): finished with status 'done'
[10:38:56+0000]   Created wheel for pycparser: filename=pycparser-2.19-py2.py3-none-any.whl size=111029 sha256=0112cc2df1731ef32f2a1e42b57c80aa6b55d739585650368cfc7b40e14df236
[10:38:56+0000]   Stored in directory: /usr/local/share/pip-cache/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
[10:38:56+0000] Successfully built sqlalchemy pycparser
[10:38:57+0000] Installing collected packages: sqlalchemy, azure-common, azure-nspkg, six, isodate, chardet, certifi, urllib3, idna, requests, oauthlib, requests-oauthlib, msrest, pycparser, cffi, cryptography, PyJWT, python-dateutil, adal, msrestazure, azure-graphrbac, azure-cosmosdb-nspkg, azure-cosmosdb-table, azure-mgmt-nspkg, azure-mgmt-cosmosdb, azure-mgmt-managementgroups, azure-mgmt-marketplaceordering, azure-mgmt-msi, azure-mgmt-signalr, azure-mgmt-batch, azure-mgmt-servicefabric, azure-mgmt-batchai, azure-mgmt-consumption, azure-mgmt-trafficmanager, azure-mgmt-billing, azure-mgmt-datafactory, azure-mgmt-advisor, azure-mgmt-authorization, azure-mgmt-cognitiveservices, azure-mgmt-datalake-nspkg, azure-mgmt-datalake-store, azure-mgmt-cdn, azure-mgmt-eventgrid, azure-mgmt-loganalytics, azure-mgmt-logic, azure-mgmt-managementpartner, azure-mgmt-maps, azure-mgmt-datalake-analytics, azure-mgmt-scheduler, azure-mgmt-recoveryservicesbackup, azure-mgmt-web, azure-mgmt-containerinstance, azure-mgmt-compute, azure-mgmt-commerce, azure-mgmt-dns, azure-mgmt-redis, azure-mgmt-resource, azure-mgmt-devspaces, azure-mgmt-iothub, azure-mgmt-servicebus, azure-mgmt-rdbms, azure-mgmt-iotcentral, azure-mgmt-monitor, azure-mgmt-sql, azure-mgmt-containerservice, azure-mgmt-network, azure-mgmt-storage, azure-mgmt-powerbiembedded, azure-mgmt-media, azure-mgmt-reservations, azure-mgmt-devtestlabs, azure-mgmt-notificationhubs, azure-mgmt-applicationinsights, azure-mgmt-policyinsights, azure-mgmt-eventhub, azure-mgmt-subscription, azure-mgmt-containerregistry, azure-mgmt-machinelearningcompute, azure-mgmt-datamigration, azure-mgmt-relay, azure-mgmt-search, azure-mgmt-iothubprovisioningservices, azure-mgmt-hanaonazure, azure-mgmt-recoveryservices, azure-mgmt-keyvault, azure-mgmt, azure-keyvault, azure-servicefabric, azure-storage-common, azure-storage-blob, azure-storage-file, azure-loganalytics, azure-servicemanagement-legacy, azure-batch, azure-storage-queue, azure-eventgrid, azure-datalake-store, azure-applicationinsights, azure-servicebus, azure, azure-storage, azure-core, portalocker, msal, msal-extensions, azure-identity, azure-functions, pillow, psycopg2-binary, elasticsearch
[10:41:00+0000] Successfully installed PyJWT-1.7.1 adal-1.2.2 azure-4.0.0 azure-applicationinsights-0.1.0 azure-batch-4.1.3 azure-common-1.1.24 azure-core-1.2.1 azure-cosmosdb-nspkg-2.0.2 azure-cosmosdb-table-1.0.6 azure-datalake-store-0.0.48 azure-eventgrid-1.3.0 azure-functions-1.0.7 azure-graphrbac-0.40.0 azure-identity-1.2.0 azure-keyvault-1.1.0 azure-loganalytics-0.1.0 azure-mgmt-4.0.0 azure-mgmt-advisor-1.0.1 azure-mgmt-applicationinsights-0.1.1 azure-mgmt-authorization-0.50.0 azure-mgmt-batch-5.0.1 azure-mgmt-batchai-2.0.0 azure-mgmt-billing-0.2.0 azure-mgmt-cdn-3.1.0 azure-mgmt-cognitiveservices-3.0.0 azure-mgmt-commerce-1.0.1 azure-mgmt-compute-4.6.2 azure-mgmt-consumption-2.0.0 azure-mgmt-containerinstance-1.5.0 azure-mgmt-containerregistry-2.8.0 azure-mgmt-containerservice-4.4.0 azure-mgmt-cosmosdb-0.4.1 azure-mgmt-datafactory-0.6.0 azure-mgmt-datalake-analytics-0.6.0 azure-mgmt-datalake-nspkg-3.0.1 azure-mgmt-datalake-store-0.5.0 azure-mgmt-datamigration-1.0.0 azure-mgmt-devspaces-0.1.0 azure-mgmt-devtestlabs-2.2.0 azure-mgmt-dns-2.1.0 azure-mgmt-eventgrid-1.0.0 azure-mgmt-eventhub-2.6.0 azure-mgmt-hanaonazure-0.1.1 azure-mgmt-iotcentral-0.1.0 azure-mgmt-iothub-0.5.0 azure-mgmt-iothubprovisioningservices-0.2.0 azure-mgmt-keyvault-1.1.0 azure-mgmt-loganalytics-0.2.0 azure-mgmt-logic-3.0.0 azure-mgmt-machinelearningcompute-0.4.1 azure-mgmt-managementgroups-0.1.0 azure-mgmt-managementpartner-0.1.1 azure-mgmt-maps-0.1.0 azure-mgmt-marketplaceordering-0.1.0 azure-mgmt-media-1.0.0 azure-mgmt-monitor-0.5.2 azure-mgmt-msi-0.2.0 azure-mgmt-network-2.7.0 azure-mgmt-notificationhubs-2.1.0 azure-mgmt-nspkg-3.0.2 azure-mgmt-policyinsights-0.1.0 azure-mgmt-powerbiembedded-2.0.0 azure-mgmt-rdbms-1.9.0 azure-mgmt-recoveryservices-0.3.0 azure-mgmt-recoveryservicesbackup-0.3.0 azure-mgmt-redis-5.0.0 azure-mgmt-relay-0.1.0 azure-mgmt-reservations-0.2.1 azure-mgmt-resource-2.2.0 azure-mgmt-scheduler-2.0.0 azure-mgmt-search-2.1.0 azure-mgmt-servicebus-0.5.3 azure-mgmt-servicefabric-0.2.0 azure-mgmt-signalr-0.1.1 azure-mgmt-sql-0.9.1 azure-mgmt-storage-2.0.0 azure-mgmt-subscription-0.2.0 azure-mgmt-trafficmanager-0.50.0 azure-mgmt-web-0.35.0 azure-nspkg-3.0.2 azure-servicebus-0.21.1 azure-servicefabric-6.3.0.0 azure-servicemanagement-legacy-0.20.6 azure-storage-0.36.0 azure-storage-blob-1.5.0 azure-storage-common-1.4.2 azure-storage-file-1.4.0 azure-storage-queue-1.4.0 certifi-2019.11.28 cffi-1.13.2 chardet-3.0.4 cryptography-2.8 elasticsearch-7.5.1 idna-2.8 isodate-0.6.0 msal-1.0.0 msal-extensions-0.1.3 msrest-0.6.10 msrestazure-0.6.2 oauthlib-3.1.0 pillow-7.0.0 portalocker-1.5.2 psycopg2-binary-2.8.4 pycparser-2.19 python-dateutil-2.8.1 requests-2.22.0 requests-oauthlib-1.3.0 six-1.14.0 sqlalchemy-1.3.12 urllib3-1.25.8
[10:41:00+0000] Cleaning up...
WARNING: You are using pip version 19.3.1; however, version 20.0.1 is available.
Done in 186 sec(s).
You should consider upgrading via the 'pip install --upgrade pip' command.
Done running pip install.

Copying files to destination directory '/tmp/build/expressbuild'...
Done in 39 sec(s).

Removing existing manifest file
Creating a manifest file...
Manifest file created.

Done in 264 sec(s).
Writing the artifacts to a Zip file
cp: failed to close '/home/data/SitePackages/20200122104148.zip': Input/output error
cp: failed to close '/home/data/SitePackages/20200122104148.zip': Input/output error\n/opt/Kudu/Scripts/starter.sh cp /tmp/build/expressbuild/20200122104148.zip /home/data/SitePackages/20200122104148.zip
##[error]Failed to deploy web package to App Service.
##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to App Service.
##[error]To debug further please check Kudu stack trace URL : ...
...
##[debug]Deployment failed
##[section]Finishing: Azure Functions

npm run build failing with permission error

Bug Report

Command: oryx build /home/site/wwwroot -o /home/site/wwwroot -l nodejs --language-version 10.10 -i /tmp/8d719d2efb0f68d -p compress_node_modules=tar-gz
Build orchestrated by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues

Oryx Version       : 0.2.20190521.9, Commit: c2ee5d8bcba3b398c8390fbe2939d888dbf94352
Build Operation ID : |O168x+goWrs=.985aad5f_
Repository Commit  : c3ccac738855209b77c8f20701c0099ea3a51af8

Using intermediate directory '/tmp/8d719d2efb0f68d'.

Copying files to the intermediate directory...
Done in 1 sec(s).

Source directory     : /tmp/8d719d2efb0f68d
Destination directory: /home/site/wwwroot


Running 'npm install'...


> [email protected] postinstall /tmp/8d719d2efb0f68d/node_modules/core-js
> node scripts/postinstall || echo "ignore"

�[96mThank you for using core-js (�[94m https://github.com/zloirock/core-js �[96m) for polyfilling JavaScript standard library!�[0m

�[96mThe project needs your help! Please consider supporting of core-js on Open Collective or Patreon: �[0m
�[96m>�[94m https://opencollective.com/core-js �[0m
�[96m>�[94m https://www.patreon.com/zloirock �[0m

�[96mAlso, the author of core-js (�[94m https://github.com/zloirock �[96m) is looking for a good job -)�[0m

npm WARN [email protected] license should be a valid SPDX license expression
added 254 packages from 367 contributors and audited 890311 packages in 23.605s

found 0 vulnerabilities


Running 'npm run build'...


> [email protected] build /tmp/8d719d2efb0f68d
> npm run build-sass && npm run build-ts && npm run lint && npm run copy-static-assets


> [email protected] build-sass /tmp/8d719d2efb0f68d
sh: 1: node-sass: Permission denied
> node-sass src/public/css/main.scss dist/public/css/main.css
npm ERR! file sh

npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] build-sass: `node-sass src/public/css/main.scss dist/public/css/main.css`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] build-sass script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/.npm/_logs/2019-08-05T18_30_39_001Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `npm run build-sass && npm run build-ts && npm run lint && npm run copy-static-assets`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/.npm/_logs/2019-08-05T18_30_39_130Z-debug.log
npm WARN [email protected] license should be a valid SPDX license expression\n\nsh: 1: node-sass: Permission denied\nnpm ERR! file sh\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno ENOENT\nnpm ERR! syscall spawn\nnpm ERR! [email protected] build-sass: `node-sass src/public/css/main.scss dist/public/css/main.css`\nnpm ERR! spawn ENOENT\nnpm ERR! \nnpm ERR! Failed at the [email protected] build-sass script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/.npm/_logs/2019-08-05T18_30_39_001Z-debug.log\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno 1\nnpm ERR! [email protected] build: `npm run build-sass && npm run build-ts && npm run lint && npm run copy-static-assets`\nnpm ERR! Exit status 1\nnpm ERR! \nnpm ERR! Failed at the [email protected] build script.\nnpm ERR! This is probably not a problem with npm. There is likely additional logging output above.\n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /home/.npm/_logs/2019-08-05T18_30_39_130Z-debug.log\n/opt/Kudu/Scripts/starter.sh oryx build /home/site/wwwroot -o /home/site/wwwroot -l nodejs --language-version 10.10 -i /tmp/8d719d2efb0f68d -p compress_node_modules=tar-gz

yarn: Cannot add package body-parser

Bug Report

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

During deployment

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

I'm using a Linux App Service instance with a runtime of Node LTS

mkdir test && cd test
npm init
yarn add body-parser

npm install body-parser works fine, so I can use npm as a workaround

  • What happened?

$ yarn add body-parser

yarn add v1.12.3
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
error An unexpected error occurred: "EBADF: bad file descriptor, copyfile '/usr/local/share/.cache/yarn/v4/npm-body-parser-1.19.0-96b2709e57c9c4e09a6fd66a8fd979844f69f08a/node_modules/body-parser/
HISTORY.md' -> '/home/demo/node_modules/body-parser/HISTORY.md'".
info If you think this is a bug, please open a bug report with the information provided in "/home/demo/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Add support for kudu .deployment file

Today with Kudu you can drop a .deployment file into the root of your repository and kudu will use this as a hint for where your deployment target sits in the repository.

It appears that this feature is not available with Oryx (or if it is it is ignored).

|
.deployment
|
+- admin-web (python flask)

.deployment file contents

[config]
project = admin-web

The result isn't as expected: the entire repository ends up in the target Python Web App (on Linux) and the Flask app isn't "built" (no requirements.txt processing) and the web app doesn't load because it is not in the root and not detected.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.