You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
your project built successfully on your dev machine but failed on Azure?
No
please write down your build tools and their versions (ie Msbuild 15.1.0.0)
We do not compile we run js
Project structures.
Can't share as it is a company project but can provide the summary below:
It is an Azure Function project with different NPM packages as dependencies. Below is host.json file:
The Azure Functions works fine the problem happens only when we deploy(using Azure DevOps) because it is not able to replace the build completely(may be it is using some kind of caching of old data).
Mention any other details that might be useful.
We use Azure DevOps's release pipeline to roll out new build. The build is created perfectly i.e it has all the code and all the updated npm packages. The problem comes when Kudu tries to replace the old build with the new one because it is unable to replace certain packages(which is recently updated) may be because of Efficient File Copyof ZipDeploy(we use kudu REST to deploy) it is unable to completely update the target.
Is there a way we could replace all the files? by setting some flag forcing Kudu to replace completely. Below are 3 cases through which we tried to resolve the issue:
CASE 1) We tried deleting the files of the npm package
We did npm install and zip folder in Azure DevOps.
We verified that the produced artifact is containing the latest version of npm package
Redeployed over REST API(Kudu)
We then checked the files through App Service Kudu portal. Result: Old file version is loaded although zip file does not contain it.
CASE 2) We then tried deleting the whole npm package
We did npm install and zip folder in Azure DevOps.
We verified that the produced artifact is containing the latest version of npm package
Redeployed over REST API(Kudu)
We then checked the files through App Service Kudu portal. Result: Again old file version is loaded.
CASE 3) We then tried deploying from local machine through REST API Result: New version of file is loaded.
Question: Is there a flag we could send while using REST to completely replace the file instead of efficiently trying to update the package ?
The text was updated successfully, but these errors were encountered:
vivek-555
changed the title
Zipdeploy over REST API does not update files
Zipdeploy over REST API does not update files[updated]
Dec 6, 2018
vivek-555
changed the title
Zipdeploy over REST API does not update files[updated]
Zipdeploy over REST API does not update files - caching problem
Dec 20, 2018
Repro steps.
your project built successfully on your dev machine but failed on Azure?
No
please write down your build tools and their versions (ie
Msbuild 15.1.0.0
)We do not compile we run js
Project structures.
Can't share as it is a company project but can provide the summary below:
It is an Azure Function project with different NPM packages as dependencies. Below is host.json file:
host.json
function.json
The log/error given by the failure.
No error is logged.
Debug your Azure website remotely.
The Azure Functions works fine the problem happens only when we deploy(using Azure DevOps) because it is not able to replace the build completely(may be it is using some kind of caching of old data).
Mention any other details that might be useful.
We use Azure DevOps's release pipeline to roll out new build. The build is created perfectly i.e it has all the code and all the updated
npm
packages. The problem comes when Kudu tries to replace the old build with the new one because it is unable to replace certain packages(which is recently updated) may be because ofEfficient File Copy
of ZipDeploy(we use kudu REST to deploy) it is unable to completely update the target.Is there a way we could replace all the files? by setting some flag forcing Kudu to replace completely. Below are 3 cases through which we tried to resolve the issue:
CASE 1) We tried deleting the files of the
npm
packagenpm install
and zip folder in Azure DevOps.npm package
Result: Old file version is loaded although zip file does not contain it.
CASE 2) We then tried deleting the whole
npm
packagenpm package
Result: Again old file version is loaded.
CASE 3) We then tried deploying from local machine through REST API
Result: New version of file is loaded.
Question: Is there a flag we could send while using REST to completely replace the file instead of efficiently trying to update the package ?
The text was updated successfully, but these errors were encountered: