owncloud / owncloud/ocis

Flaky changing quota requests - fails with 500 error

Open
#10,603 22 comments 1 reaction 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

Builds:
- https://drone.owncloud.com/owncloud/ocis/41199/38/6
- https://drone.owncloud.com/owncloud/ocis/41198/22/5
- https://drone.owncloud.com/owncloud/ocis/41180/54/5
- https://drone.owncloud.com/owncloud/ocis/41185/38/6

```feature
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1" # SpacesContext::userHasChangedTheQuotaOfTheSpaceTo()
Expected response status code should be 200
Failed asserting that 500 matches expected 200.
```
```bash
==> REQUEST
PATCH /graph/v1.0/drives/28087b3e-b3a7-44a4-850f-082544e6f8b1$ca3ed4f6-c7ae-4ada-a482-95c459958ac3
X-Request-ID: coreApiShareOperationsToShares2/uploadToShare.feature:238-231
==> REQ BODY
{"quota":{"total":1}}

<== RESPONSE
500 Internal Server Error
X-Xss-Protection: 1; mode=block
<== RES BODY
{"error":{"code":"generalException","innererror":{"date":"2024-11-19T05:15:58Z","request-id":"coreApiShareOperationsToShares2/uploadToShare.feature:238-231"},"message":"grpc error"}}
```

Scenarios:
```
apiSpacesShares/shareOperations.feature:340
coreApiShareOperationsToShares2/uploadToShare.feature:218
coreApiShareOperationsToShares2/uploadToShare.feature:249
```

ocis log:
```yaml
{"level":"error","service":"storage-users","pkg":"rgrpc","traceid":"2ce5a123ee3e21770ab2587d496aee71","error":"open /root/.ocis/storage/users/spaces/5a/3f0b56-cd9e-4575-ab9d-ec57268b6e6c/nodes/5a/3f/0b/56/-cd9e-4575-ab9d-ec57268b6e6c.mlock: no such file or directory","req":{"storage_space":{"id":{"opaque_id":"1e0ee64a-e36c-4a09-9138-0004fb359bce$5a3f0b56-cd9e-4575-ab9d-ec57268b6e6c"},"root":{"storage_id":"1e0ee64a-e36c-4a09-9138-0004fb359bce","opaque_id":"5a3f0b56-cd9e-4575-ab9d-ec57268b6e6c","space_id":"5a3f0b56-cd9e-4575-ab9d-ec57268b6e6c"},"quota":{"quota_max_bytes":1}}},"time":"2024-11-19T11:03:10Z","message":"failed to update storage space"}
{"level":"error","service":"storage-users","pkg":"rgrpc","traceid":"2ce5a123ee3e21770ab2587d496aee71","user-agent":"grpc-go/1.68.0","from":"tcp://127.0.0.1:46852","uri":"/cs3.storage.provider.v1beta1.SpacesAPI/UpdateStorageSpace","start":"19/Nov/2024:11:03:10 +0000","end":"19/Nov/2024:11:03:10 +0000","time_ns":1141739,"code":"Unknown","time":"2024-11-19T11:03:10Z","message":"open /root/.ocis/storage/users/spaces/5a/3f0b56-cd9e-4575-ab9d-ec57268b6e6c/nodes/5a/3f/0b/56/-cd9e-4575-ab9d-ec57268b6e6c.mlock: no such file or directory"}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.