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

Porter command fails with incomplete read of message header: context deadline exceeded #3744

Closed
marrobi opened this issue Oct 16, 2023 · 1 comment · Fixed by #3745
Closed
Assignees
Labels
bug Something isn't working

Comments

@marrobi
Copy link
Member

marrobi commented Oct 16, 2023

Occasionally a porter command will fail with:

logging root    81      2023-10-16 12:51:24,402 WARNING [stderr] rpc error: code = DeadlineExceeded desc = invalid index specified: ([]mongo.IndexModel) (len=1 cap=1) {
 (mongo.IndexModel) {
  Keys: (primitive.D) (len=2 cap=2) {
   (primitive.E) {
    Key: (string) (len=9) "namespace",
    Value: (int64) 1
   },
   (primitive.E) {
    Key: (string) (len=4) "name",
    Value: (int64) 1
   }
  },
  Options: (*options.IndexOptions)(0xc0001e3800)({
   Background: (*bool)(<nil>),
   ExpireAfterSeconds: (*int32)(<nil>),
   Name: (*string)(0xc000061b20)((len=18) "namespace_1_name_1"),
   Sparse: (*bool)(<nil>),
   StorageEngine: (interface {}) <nil>,
   Unique: (*bool)(0xc00082ac58)(true),
   Version: (*int32)(<nil>),
   DefaultLanguage: (*string)(<nil>),
   LanguageOverride: (*string)(<nil>),
   TextVersion: (*int32)(<nil>),
   Weights: (interface {}) <nil>,
   SphereVersion: (*int32)(<nil>),
   Bits: (*int32)(<nil>),
   Max: (*float64)(<nil>),
   Min: (*float64)(<nil>),
   BucketSize: (*int32)(<nil>),
   PartialFilterExpression: (interface {}) <nil>,
   Collation: (*options.Collation)(<nil>),
   WildcardProjection: (interface {}) <nil>,
   Hidden: (*bool)(<nil>)
  })
 }
}
: connection(cosmos-mongo-xxxxx-westeurope.mongo.cosmos.azure.com:10255[-6]) incomplete read of message header: context deadline exceeded
rpc error: code = DeadlineExceeded desc = invalid index specified: ([]mongo.IndexModel) (len=1 cap=1) {

This has been seen retrieving outputs, and the status message fails as:

Service bus message is not formatted correctly: 1812c32e-b97e-4440-a4c1-dc868dfbadf5 Exception message: '1 validation error for ParsingModel[DeploymentStatusUpdateMessage] __root__ -> outputs value is not a valid list (type=type_error.list)'

{"operationId": "35405209-2031-48c4-9f99-17ab2e847f52", "stepId": "8fb74d96-8a80-4f60-8260-23eb37b82e1c", "id": "1812c32e-b97e-4440-a4c1-dc868dfbadf5", "status": "updated", "message": "1812c32e-b97e-4440-a4c1-dc868dfbadf5: upgrade action completed successfully.", "outputs": ""}
@marrobi marrobi added the bug Something isn't working label Oct 16, 2023
@marrobi
Copy link
Member Author

marrobi commented Oct 16, 2023

As a first step, will update porter to v1.0.15 as it has mongodb driver updates and amend the error handling so that a valid, but empty outputs are returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant