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
Description
Rather then a bug, this is warning, that with the new version of Teams Toolkit and Avast Anitivirus,
the file StaticSitesClient.exe is quarantined during deploying static app to Azure environment.
This behavior occurred with the new version of Teams Toolkit deployed in October 2024.
The error log:
_[Error] - Failed to Execute lifecycle deploy due to failed action: {"name":"deploy to Azure Static Web Apps","uses":"cli/runNpxCommand"}. ScriptExecutionError:Unable to execute script action. Script: npx @azure/static-web-apps-cli deploy ./build -d <REDACTED:secret> --env production. Error: `- Downloading https:***
node:events:492
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, open 'C:***
Emitted 'error' event on WriteStream instance at:
at WriteStream.onerror (node:internal/streams/readable:785:14)
at WriteStream.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4048,
code: 'EPERM',
syscall: 'open',
path: 'C:***
}
Node.js v18.17.1`. Env output: {}_
Fix
Remove from the quarantine and add exception.
VS Code Extension Information (please complete the following information):
OS: Windows 10
VSCode: 1.95.1
Teams toolkit: v5.10.0
The text was updated successfully, but these errors were encountered:
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.
Hi @Mesicni, to resolve the issue with StaticSitesClient.exe being quarantined by Avast Antivirus, could you:
Restore StaticSitesClient.exe from the quarantine in Avast Antivirus.
Add an exception for StaticSitesClient.exe in Avast Antivirus to prevent it from being quarantined again.
By the way, if you have set the app_location to the root path of your repository, this might be causing the issue. If that's the case, could you please change the app_location from "." to "/src" (or another subdirectory)? Thanks!
Hi @cjk7989 . That is what I did, it is in the Fix section of my initial message.
I have posted this mainly for the other users, they might experience same problem.
The app is nested in my user folder, but it is good idea to check the permissions there too.
Description
Rather then a bug, this is warning, that with the new version of Teams Toolkit and Avast Anitivirus,
the file StaticSitesClient.exe is quarantined during deploying static app to Azure environment.
This behavior occurred with the new version of Teams Toolkit deployed in October 2024.
The error log:
_[Error] - Failed to Execute lifecycle deploy due to failed action: {"name":"deploy to Azure Static Web Apps","uses":"cli/runNpxCommand"}. ScriptExecutionError:Unable to execute script action. Script:
npx @azure/static-web-apps-cli deploy ./build -d <REDACTED:secret> --env production
. Error: `- Downloading https:***node:events:492
throw er; // Unhandled 'error' event
^
Error: EPERM: operation not permitted, open 'C:***
Emitted 'error' event on WriteStream instance at:
at WriteStream.onerror (node:internal/streams/readable:785:14)
at WriteStream.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -4048,
code: 'EPERM',
syscall: 'open',
path: 'C:***
}
Node.js v18.17.1`. Env output: {}_
Fix
Remove from the quarantine and add exception.
VS Code Extension Information (please complete the following information):
The text was updated successfully, but these errors were encountered: