The App Service for the configuration (myapp-config) app fails to deploy and when I check the logs in the deployment centre it appears to be an issue related to an invalid argument.
I have repeated this step 3 times, the initial deployment, via the template, and twice subsequently via the Sync option in the Deployment Center for the App Service.
11:41:04 AM
Updating submodules.
11:41:04 AM
Preparing deployment for commit id '2f458f482b'.
11:41:04 AM
Running custom deployment command...
11:41:04 AM
Running deployment command...
Show Logs...
11:59:30 AM
Deployment Failed.
Command: deploy.cmd
Handling ASP.NET Core Web Application deployment.
Restore completed in 299.84 ms for C:\home\site\repository\Source\RemoteSupport.Common\Microsoft.Teams.Apps.RemoteSupport.Common.csproj.
Restore completed in 595.22 ms for C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj.
Restore completed in 220.5 ms for C:\home\site\repository\Source\RemoteSupport\Microsoft.Teams.Apps.RemoteSupport.csproj.
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 271.37 ms for C:\home\site\repository\Source\RemoteSupport.Common\Microsoft.Teams.Apps.RemoteSupport.Common.csproj.
Restore completed in 403.51 ms for C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj.
Microsoft.Teams.Apps.RemoteSupport.Common -> C:\home\site\repository\Source\RemoteSupport.Common\bin\Release\netstandard2.0\Microsoft.Teams.Apps.RemoteSupport.Common.dll
Microsoft.Teams.Apps.RemoteSupport.Configuration -> C:\home\site\repository\Source\RemoteSupport.Configuration\bin\Release\netcoreapp2.1\Microsoft.Teams.Apps.RemoteSupport.Configuration.dll
Restoring dependencies using 'npm'. This may take several minutes...
up to date in 62.144s
npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.13.12 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
136 packages are looking for funding
run npm fund for details
Building the client app using 'npm'. This may take several minutes...
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! incidentreporter@1.0.0 build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the incidentreporter@1.0.0 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! C:\local\AppData\npm-cache_logs\2024-09-06T10_59_29_793Z-debug.log
C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj(91,5): error MSB3073: The command "npm run build" exited with code 1.
Failed exitCode=1, command=dotnet publish "C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj" --output "C:\local\Temp\8dcce606883f2f4" --configuration Release
An error has occurred during web site deployment.
\r\nC:\Program Files (x86)\SiteExtensions\Kudu\102.100729.001\bin\Scripts\starter.cmd deploy.cmd
The App Service for the configuration (myapp-config) app fails to deploy and when I check the logs in the deployment centre it appears to be an issue related to an invalid argument.
EINVAL: invalid argument, rename 'C:\home\site\repository\Source\RemoteSupport.Configuration\ClientApp\node_modules.cache\terser-webpack-plugin\tmp\03957d7d' -> 'C:\home\site\repository\Source\RemoteSupport.Configuration\ClientApp\node_modules.cache\terser-webpack-plugin\content-v2\sha512\7d\3b\3dd5351088e4c1b582d9c24173ff5dd5302e0f9501307a3cb746180f82b96dd8d505bf5f7b86470c77b4924dba05631659b47472df3a14a4ba7570e66bfe'
I have repeated this step 3 times, the initial deployment, via the template, and twice subsequently via the Sync option in the Deployment Center for the App Service.
The full log output follows:
Log Details Commit ID: 2f458f482ba1a301ba993f0ac4b75ff1dd48b5bb
11:41:04 AM Updating submodules. 11:41:04 AM Preparing deployment for commit id '2f458f482b'. 11:41:04 AM Running custom deployment command... 11:41:04 AM Running deployment command... Show Logs... 11:59:30 AM Deployment Failed. Command: deploy.cmd Handling ASP.NET Core Web Application deployment. Restore completed in 299.84 ms for C:\home\site\repository\Source\RemoteSupport.Common\Microsoft.Teams.Apps.RemoteSupport.Common.csproj. Restore completed in 595.22 ms for C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj. Restore completed in 220.5 ms for C:\home\site\repository\Source\RemoteSupport\Microsoft.Teams.Apps.RemoteSupport.csproj. Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core Copyright (C) Microsoft Corporation. All rights reserved.
Restore completed in 271.37 ms for C:\home\site\repository\Source\RemoteSupport.Common\Microsoft.Teams.Apps.RemoteSupport.Common.csproj. Restore completed in 403.51 ms for C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj. Microsoft.Teams.Apps.RemoteSupport.Common -> C:\home\site\repository\Source\RemoteSupport.Common\bin\Release\netstandard2.0\Microsoft.Teams.Apps.RemoteSupport.Common.dll Microsoft.Teams.Apps.RemoteSupport.Configuration -> C:\home\site\repository\Source\RemoteSupport.Configuration\bin\Release\netcoreapp2.1\Microsoft.Teams.Apps.RemoteSupport.Configuration.dll Restoring dependencies using 'npm'. This may take several minutes... up to date in 62.144s npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.13.12 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\watchpack-chokidar2\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules\webpack-dev-server\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
136 packages are looking for funding run
npm fund
for detailsBuilding the client app using 'npm'. This may take several minutes...
The following changes are being made to your tsconfig.json file:
compilerOptions.jsx must be react (to support the new JSX transform in React 17)
Creating an optimized production build... Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db
Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating Failed to compile.
EINVAL: invalid argument, rename 'C:\home\site\repository\Source\RemoteSupport.Configuration\ClientApp\node_modules.cache\terser-webpack-plugin\tmp\03957d7d' -> 'C:\home\site\repository\Source\RemoteSupport.Configuration\ClientApp\node_modules.cache\terser-webpack-plugin\content-v2\sha512\7d\3b\3dd5351088e4c1b582d9c24173ff5dd5302e0f9501307a3cb746180f82b96dd8d505bf5f7b86470c77b4924dba05631659b47472df3a14a4ba7570e66bfe'
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! incidentreporter@1.0.0 build:
react-scripts build
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the incidentreporter@1.0.0 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! C:\local\AppData\npm-cache_logs\2024-09-06T10_59_29_793Z-debug.log C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj(91,5): error MSB3073: The command "npm run build" exited with code 1. Failed exitCode=1, command=dotnet publish "C:\home\site\repository\Source\RemoteSupport.Configuration\Microsoft.Teams.Apps.RemoteSupport.Configuration.csproj" --output "C:\local\Temp\8dcce606883f2f4" --configuration Release An error has occurred during web site deployment. \r\nC:\Program Files (x86)\SiteExtensions\Kudu\102.100729.001\bin\Scripts\starter.cmd deploy.cmd