-
Notifications
You must be signed in to change notification settings - Fork 170
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
Nightly failure while replacing file with zero-byte file #9573
Comments
Most likely related API test failures:
|
Pattern observed: Tests related to uploading zero-byte file fail |
ocis log: {
"level": "error",
"spaceid": "622a3b63-98a0-44b4-893f-69d44cf7dc33",
"nodeid": "90df2eed-c368-4ce0-bc6e-ee0bf43c5b92",
"error": "failed to upload file to blobstore: Decomposedfs: oCIS blobstore: Can not open source file to upload: open /var/lib/ocis/storage/users/uploads/6036af4f-388c-49aa-a40c-5251d3dbe63a: no such file or directory",
"time": "2024-07-18T07:00:22Z",
"message": "could not finalize upload"
}
{
"level": "error",
"event": "PostprocessingFinished",
"uploadid": "30e2da95-f7c3-4b8a-8579-ba4823ed00eb",
"error": "upload not found",
"time": "2024-07-18T07:00:28Z",
"message": "Failed to get upload"
}
{
"level": "error",
"pid": 1,
"error": "failed to upload file to blobstore: Decomposedfs: oCIS blobstore: Can not open source file to upload: open /var/lib/ocis/storage/users/uploads/c10d8576-0bf3-4ef2-875c-5a0453fb8a97: no such file or directory",
"time": "2024-07-18T07:00:35Z",
"caller": "github.com/cs3org/reva/[email protected]/internal/grpc/services/storageprovider/storageprovider.go:416",
"message": "failed to upload"
}
{
"level": "error",
"service": "storage-users",
"pkg": "rgrpc",
"traceid": "5f88ce50846e6ef8e28e1dd3642bf392",
"error": "failed to upload file to blobstore: Decomposedfs: oCIS blobstore: Can not open source file to upload: open /var/lib/ocis/storage/users/uploads/c10d8576-0bf3-4ef2-875c-5a0453fb8a97: no such file or directory",
"status": {
"code": 15,
"message": "error getting upload id: failed to upload file to blobstore: Decomposedfs: oCIS blobstore: Can not open source file to upload: open /var/lib/ocis/storage/users/uploads/c10d8576-0bf3-4ef2-875c-5a0453fb8a97: no such file or directory",
"trace": "5f88ce50846e6ef8e28e1dd3642bf392"
},
"time": "2024-07-18T07:00:35Z",
"message": "failed to initiate upload"
}
{
"level": "error",
"service": "ocdav",
"name": "com.owncloud.web.ocdav",
"traceid": "5f88ce50846e6ef8e28e1dd3642bf392",
"request-id": "1a6f85253a39/WsFJGOztKZ-008222",
"path": "/users/88855926-eb79-4144-b125-d2e9c794f860/Shares/textfile.txt",
"status": {
"code": 15,
"message": "error getting upload id: failed to upload file to blobstore: Decomposedfs: oCIS blobstore: Can not open source file to upload: open /var/lib/ocis/storage/users/uploads/c10d8576-0bf3-4ef2-875c-5a0453fb8a97: no such file or directory",
"trace": "5f88ce50846e6ef8e28e1dd3642bf392"
},
"code": 500,
"time": "2024-07-18T07:00:35Z",
"message": "Internal Server Error"
} What could go wrong while uploading the zero-byte file? |
I think there is a problem when uploading 0 byte files as new version of an existing file. I can reproduce an error message like: {
"level": "error",
"event": "PostprocessingFinished",
"uploadid": "3a262178-9d92-4b1c-8d73-04318119d8b2",
"error": "upload not found",
"time": "2024-07-22T11:54:41+02:00",
"message": "Failed to get upload"
} However the upload succeeds and I see none of the other logs mentioned. |
Should be fixed with above PR. Please reopen if this issue persists after the PR was merged |
Describe the bug
Nightly failure on scenario related to replacing a file with zero-byte file.
The test seems to be flaky, and there was an issue reported here: #8003 regarding replacing a file, which returned
500
status code.Build: https://drone.owncloud.com/owncloud/ocis/36918/19/5
ocis log:
The text was updated successfully, but these errors were encountered: