{"record":{"id":"e531b3d62d6ba70c","repo":"opentofu/opentofu","slug":"state-data-in-oss-does-not-have-the-expected-conte","errorCode":null,"errorMessage":"state data in OSS does not have the expected content.\n\nThis may be caused by unusually long delays in OSS processing a previous state\nupdate.  Please wait for a minute or two and try again. If this problem\npersists, and neither OSS nor TableStore are experiencing an outage, you may need\nto manually verify the remote state and update the Digest value stored in the\nTableStore table to the following value: %x","messagePattern":"state data in OSS does not have the expected content\\.\n\nThis may be caused by unusually long delays in OSS processing a previous state\nupdate\\.  Please wait for a minute or two and try again\\. If this problem\npersists, and neither OSS nor TableStore are experiencing an outage, you may need\nto manually verify the remote state and update the Digest value stored in the\nTableStore table to the following value: %x","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/backend/remote-state/oss/client.go","lineNumber":94,"sourceCode":"\t\t}\n\n\t\t// verify that this state is what we expect\n\t\tif expected, err := c.getMD5(); err != nil {\n\t\t\tlog.Printf(\"[WARN] failed to fetch state md5: %s\", err)\n\t\t} else if len(expected) > 0 && !bytes.Equal(expected, digest) {\n\t\t\tlog.Printf(\"[WARN] state md5 mismatch: expected '%x', got '%x'\", expected, digest)\n\n\t\t\tif testChecksumHook != nil {\n\t\t\t\ttestChecksumHook()\n\t\t\t}\n\n\t\t\tif time.Now().Before(deadline) {\n\t\t\t\ttime.Sleep(consistencyRetryPollInterval)\n\t\t\t\tlog.Println(\"[INFO] retrying OSS RemoteClient.Get...\")\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\treturn nil, fmt.Errorf(errBadChecksumFmt, digest)\n\t\t}\n\n\t\tbreak\n\t}\n\treturn payload, nil\n}\n\nfunc (c *RemoteClient) Put(_ context.Context, data []byte) error {\n\tbucket, err := c.ossClient.Bucket(c.bucketName)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error getting bucket: %w\", err)\n\t}\n\n\tbody := bytes.NewReader(data)\n\n\tvar options []oss.Option\n\tif c.acl != \"\" {\n\t\toptions = append(options, oss.ACL(oss.ACLType(c.acl)))","sourceCodeStart":76,"sourceCodeEnd":112,"githubUrl":"https://github.com/opentofu/opentofu/blob/3561785c48c1ce615e7c50261bd351f26053efa2/internal/backend/remote-state/oss/client.go#L76-L112","documentation":"Error \"state data in OSS does not have the expected content.\n\nThis may be caused by unusually long delays in OSS processing a previous state\nupdate.  Please wait for a minute or two and try again. If this problem\npersists, and neither OSS nor TableStore are experiencing an outage, you may need\nto manually verify the remote state and update the Digest value stored in the\nTableStore table to the following value: %x\" thrown in opentofu/opentofu.","triggerScenarios":"Thrown at internal/backend/remote-state/oss/client.go:94 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3561785c48c1ce615e7c50261bd351f26053efa2","analyzedAt":"2026-08-15T23:27:16.226Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}