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

bug report: Deploy.UnhandledError #10075

Closed
Marsida2 opened this issue Oct 3, 2023 · 5 comments
Closed

bug report: Deploy.UnhandledError #10075

Marsida2 opened this issue Oct 3, 2023 · 5 comments
Assignees
Labels
needs more info Need user to provide more info TA:Compute Team Area: Compute

Comments

@Marsida2
Copy link

Marsida2 commented Oct 3, 2023

An unexpected error has occurred while performing the Deploy task. {"code":"ERR_OUT_OF_RANGE"}

stack:
UnhandledError: An unexpected error has occurred while performing the Deploy task. {"code":"ERR_OUT_OF_RANGE"}
at BaseComponentInnerError.toFxError (<REDACTED: user-file-path>:2:4208799)
at AzureZipDeployImpl.wrapErrorHandler (<REDACTED: user-file-path>:2:4038355)
at AzureZipDeployImpl.run (<REDACTED: user-file-path>:2:4036459)
at AzureAppServiceDeployDriver.execute (<REDACTED: user-file-path>:2:4007331)
at AzureAppServiceDeployDriver. (<REDACTED: user-file-path>:2:4082698)
at Lifecycle.executeImpl (<REDACTED: user-file-path>:2:3865602)
at Lifecycle.execute (<REDACTED: user-file-path>:2:3862947)
at Coordinator.deploy (<REDACTED: user-file-path>:2:3909866)
at Coordinator. (<REDACTED: user-file-path>:2:4316352)
at FxCoreV3Implement.deployArtifacts (<REDACTED: user-file-path>:2:4411445)
at FxCoreV3Implement.exports.EnvWriterMW (<REDACTED: user-file-path>:2:4319181)
at FxCoreV3Implement.exports.ContextInjectorMW (<REDACTED: user-file-path>:2:4466124)
at FxCoreV3Implement.exports.ConcurrentLockerMW (<REDACTED: user-file-path>:2:4465081)
at envLoaderMWImpl (<REDACTED: user-file-path>:2:4319128)
at FxCoreV3Implement. (<REDACTED: user-file-path>:2:4318039)
at FxCoreV3Implement.exports.ProjectMigratorMWV3 (<REDACTED: user-file-path>:2:4496854)
at FxCoreV3Implement.exports.ErrorHandlerMW (<REDACTED: user-file-path>:2:4466621)
at FxCoreV3Implement.dispatch (<REDACTED: user-file-path>:2:4409627)

@Siglud
Copy link
Member

Siglud commented Oct 12, 2023

It appears you have encountered an issue while creating the zip package. For more information, please refer to this issue.

To resolve it, try deleting the .deployment folder in your project's root directory and running deploy again.

If this problem persists, feel free to leave a comment with more details so I can debug it further.

@Siglud Siglud added needs more info Need user to provide more info and removed investigating labels Oct 12, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Oct 18, 2023
@Marsida2
Copy link
Author

it is still there, even if i delete .deployment folder and run deploy again

@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs more info Need user to provide more info label Oct 18, 2023
@Siglud
Copy link
Member

Siglud commented Oct 20, 2023

it is still there, even if i delete .deployment folder and run deploy again

@Marsida2 Could you add the dryRun flag to your deploy action and try again?

The Yaml may look like this. See more detail in here

  - uses: azureAppService/zipDeploy
    with:
      workingDirectory: ./src
      artifactFolder: .
      ignoreFile: ./.webappignore
      resourceId: ${{BOT_AZURE_APP_SERVICE_RESOURCE_ID}}
      dryRun: true # **Add this line to your Yaml file**

Then you can just remove the .deployment folder in your project root, and deploy again.

@Siglud Siglud added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Oct 20, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the no recent activity The issue labeled needs more info gets no reply from issue owner in time label Oct 30, 2023
@georgeherby
Copy link

georgeherby commented Dec 3, 2023

I too am getting this, no problem when I deployed last (a month or so ago), but now when I run deploy to azure from VS Code I get the same error as above

[2023-12-03T13:22:41.653Z] [Info] - Action cli/runNpmCommand in lifecycle deploy succeeded with output {}
[2023-12-03T13:22:41.653Z] [Info] - Executing action azureStorage/deploy in lifecycle deploy
[2023-12-03T13:22:43.117Z] [Info] - Action azureStorage/deploy in lifecycle deploy succeeded with output {}
[2023-12-03T13:22:43.117Z] [Info] - Executing action azureAppService/zipDeploy in lifecycle deploy
[2023-12-03T13:22:59.029Z] [Error] - Unknown error: RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 65535. Received 65803
[2023-12-03T13:22:59.034Z] [Info] - Failed to Execute lifecycle deploy due to failed action: azureAppService/zipDeploy. UnhandledError:An unexpected error has occurred while performing the Deploy task. {"code":"ERR_OUT_OF_RANGE"}. Env output: {}
[2023-12-03T13:22:59.035Z] [Info] - Execution summary:

Summary:
(×) Error: Lifecycle stage deploy failed.
  (√) Done: cli/runNpmCommand was executed successfully.
    (√) Done: Successful execution of the `npm install` command at `/Users/me/dev/company/app/app-teams/`.
  (√) Done: cli/runNpmCommand was executed successfully.
    (√) Done: Successful execution of the `npm run build --workspaces` command at `/Users/me/dev/company/app/app-teams/`.
  (√) Done: azureStorage/deploy was executed successfully.
    (√) Done: Successfully deployed `/Users/me/dev/company/app/app-teams/packages/tab/build` to Azure Storage.
  (×) Error: azureAppService/zipDeploy failed.
    (×) Error: An unexpected error has occurred while performing the Deploy task. {"code":"ERR_OUT_OF_RANGE"}

[2023-12-03T13:22:59.168Z] [Error] - code:Deploy.UnhandledError, message: An unexpected error has occurred while performing the Deploy task. {"code":"ERR_OUT_OF_RANGE"}
stack: UnhandledError: An unexpected error has occurred while performing the Deploy task. {"code":"ERR_OUT_OF_RANGE"}
    at BaseComponentInnerError.toFxError (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4208799)
    at AzureZipDeployImpl.wrapErrorHandler (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4038355)
    at AzureZipDeployImpl.run (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4036459)
    at AzureAppServiceDeployDriver.execute (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4007331)
    at AzureAppServiceDeployDriver.<anonymous> (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4082698)
    at Lifecycle.executeImpl (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:3865602)
    at Lifecycle.execute (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:3862947)
    at Coordinator.deploy (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:3909866)
    at Coordinator.<anonymous> (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4316352)
    at FxCoreV3Implement.deployArtifacts (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4411445)
    at FxCoreV3Implement.exports.EnvWriterMW (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4319181)
    at FxCoreV3Implement.exports.ContextInjectorMW (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4466124)
    at FxCoreV3Implement.exports.ConcurrentLockerMW (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4465081)
    at envLoaderMWImpl (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4319128)
    at FxCoreV3Implement.<anonymous> (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4318039)
    at FxCoreV3Implement.exports.ProjectMigratorMWV3 (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4496854)
    at FxCoreV3Implement.exports.ErrorHandlerMW (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4466621)
    at FxCoreV3Implement.dispatch (/Users/me/.vscode/extensions/teamsdevapp.ms-teams-vscode-extension-5.2.0/out/src/extension.js:2:4409627)

@microsoft-github-policy-service microsoft-github-policy-service bot removed the no recent activity The issue labeled needs more info gets no reply from issue owner in time label Dec 3, 2023
@georgeherby
Copy link

Scratch that i am an idiot. I deleted the wrong .deployment. The .deployment folder had deployment.zip an unzipped version (/deployment) that caused some collision, so I deleted the correct .deployment (in my case it was within the sub folder for the bot (I have another folder the static app)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Need user to provide more info TA:Compute Team Area: Compute
Projects
None yet
Development

No branches or pull requests

4 participants