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

Metadata API odd errors during the long pulling #1887

Closed
steals opened this issue Jan 19, 2023 · 12 comments
Closed

Metadata API odd errors during the long pulling #1887

steals opened this issue Jan 19, 2023 · 12 comments
Labels
bug Issue or pull request that identifies or fixes a bug

Comments

@steals
Copy link

steals commented Jan 19, 2023

Summary

This issue is the continuation of #1835

During our daily deployment, we have a lot of failures because in the middle of the pulling results Metadata API hangs with some odd errors, like:
ERROR running force:source:deploy:report: Metadata API request failed: request to https://.....sandbox.my.salesforce.com/services/Soap/m/56.0 failed, reason: Client network socket disconnected before secure TLS connection was established
or
ERROR running force:source:deploy:report: Metadata API request failed: Unexpected internal servlet state
or
ERROR running force:source:deploy:report: Metadata API request failed: Unable to complete the creation of the query cursor at this time, please retry your query later.

Is it possible to add these errors to the list of ignored errors so the sfdx cli doesn't stop pulling for the results?

System Information

sfdx-cli/7.182.1 linux-x64 node-v18.12.1

running on Ubuntu 20.04 docker image

@steals steals added the investigating We're actively investigating this issue label Jan 19, 2023
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@WillieRuemmele
Copy link
Member

I haven't seen those errors before, we can add them to the retry-able list

@WillieRuemmele WillieRuemmele added bug Issue or pull request that identifies or fixes a bug and removed investigating We're actively investigating this issue labels Jan 19, 2023
@git2gus
Copy link

git2gus bot commented Jan 19, 2023

This issue has been linked to a new work item: W-12408010

@steals
Copy link
Author

steals commented Feb 8, 2023

@WillieRuemmele any ETA when this issue can be resolved?

@mshanemc
Copy link
Contributor

@steals this'll be in RC on Thursday Feb16 and the main channel the following week (Feb23).

@gfarb
Copy link

gfarb commented Feb 16, 2023

Commenting to subscribe but wanted to call out at GitHub we have been running into these errors a lot recently, primarily:

  • Metadata API request failed: Unexpected internal servlet state
  • Metadata API request failed: Failed while fetching query cursor data for this QueryLocator

It causes our GitHub Actions to fail and despite the fact that the deployment continues, we need to re-run our CI/CD jobs which results in time and resources wasted

@hudec117
Copy link

@mshanemc that PR doesn't seem to address this error message?

Metadata API request failed: Failed while fetching query cursor data for this QueryLocator

This is the main one we're seeing at the moment.

@steals
Copy link
Author

steals commented Feb 22, 2023

Also noticed this new error today. I guess we need to create a new GitHub ticket for that.

@mshanemc
Copy link
Contributor

that last one will go out in tomorrow's RC.

@shetzel
Copy link
Contributor

shetzel commented Feb 22, 2023

Here is some additional information about the server side errors you're seeing during polling for deploy status:

Failed while fetching query cursor data for this QueryLocator - There is a known bug tracked by the appropriate internal team. W-12563567. Feel free to open support cases and mention that to bump the priority for that team.

Unexpected internal servlet state - This looks like a known issue: https://issues.salesforce.com/issue/a028c00000gAzYKAA0/intermittent-unexpected-internal-servlet-state-during-soap-and-bulk-api-requests

Happy to add them to the list of "retry-errors". Letting support know about them will also help prevent them from happening at all.

Thanks!

@hudec117
Copy link

hudec117 commented Mar 6, 2023

We're using sfdx-cli/7.190.2 linux-x64 node-v18.14.1 in our CI/CD pipelines and we're still seeing the Metadata API request failed: Failed while fetching query cursor data for this QueryLocator error that ends the SFDX process and fails the build.

Was this fix included in 7.190.2 or in the upcoming 7.191.1?

@cristiand391
Copy link
Member

cristiand391 commented Mar 30, 2023

@hudec117 sorry for the late reply, v7.190.2 should definitely include this fix. Can you open a new GH issue with the commands you are running? Thanks!
https://github.com/forcedotcom/cli/issues/new/choose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug
Projects
None yet
Development

No branches or pull requests

7 participants