Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avast Antivirus and quarantined StaticSitesClient.exe (Error: EPERM) #12674

Open
Mesicni opened this issue Nov 6, 2024 · 3 comments
Open

Avast Antivirus and quarantined StaticSitesClient.exe (Error: EPERM) #12674

Mesicni opened this issue Nov 6, 2024 · 3 comments
Assignees
Labels
TA:Compute Team Area: Compute

Comments

@Mesicni
Copy link

Mesicni commented Nov 6, 2024

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
Copy link
Contributor

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Nov 6, 2024
@adashen adashen added investigating TA:Compute Team Area: Compute labels Nov 7, 2024
@cjk7989
Copy link

cjk7989 commented Nov 11, 2024

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!

@Mesicni
Copy link
Author

Mesicni commented Nov 11, 2024

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.

Thank you.

@Siglud Siglud removed investigating needs attention This issue needs the attention of a contributor. labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TA:Compute Team Area: Compute
Projects
None yet
Development

No branches or pull requests

4 participants