Repository navigation
Closed
opencloud-eu/reva
#739Labels
Description
Describe the bug
related #1877
Steps to reproduce
- run opencloud
- run test several times
USE_BEARER_TOKEN=true TEST_SERVER_URL=https://cloud.opencloud.test make test-acceptance-api BEHAT_FEATURE=tests/acceptance/features/apiSharingNgShareInvitation/shareInvitations.feature:1625
Expected behavior
no error
Actual behavior
error log:
{"level":"error","service":"storage-users","host.name":"dccd0e3abc1c","pkg":"rgrpc","traceid":"b78450a7eb199466805d9c4d430958cd","error":"node.Xattr /var/lib/opencloud/storage/users/users/7c6d6720-271e-416d-ace3-bcc34320553a user.oc.name: no data available","id":"1272256e-37f8-4a85-b2aa-3652d261cf94","time":"2025-11-19T13:09:28Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/storage/pkg/decomposedfs/spaces.go:317","message":"could not read node"}
{"level":"error","service":"storage-users","host.name":"dccd0e3abc1c","pkg":"rgrpc","traceid":"b78450a7eb199466805d9c4d430958cd","error":"node.Xattr /var/lib/opencloud/storage/users/users/7c6d6720-271e-416d-ace3-bcc34320553a user.oc.name: no data available","status":{"code":15,"message":"error listing spaces","trace":"b78450a7eb199466805d9c4d430958cd"},"filters":[{"type":2,"Term":{"Id":{"opaque_id":"77b1193c-84f6-43ae-b14d-a9bfa479de1d$1272256e-37f8-4a85-b2aa-3652d261cf94!1272256e-37f8-4a85-b2aa-3652d261cf94"}}},{"type":4,"Term":{"SpaceType":"+grant"}}],"time":"2025-11-19T13:09:28Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/storageprovider/storageprovider.go:579","message":"failed to list storage spaces"}
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
Details
OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalueAdditional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
michaelstingl commentedon Jan 19, 2026
michaelstingl commentedon Jun 27, 2026
fix(decomposedfs): tolerate a space root with an unset name attribute
fix(decomposedfs): skip a space whose name attribute is unset
fix(decomposedfs): tolerate a space root with an unset name attribute
test(apiSpaces): a space admin can delete a space with no manager
test(apiSpaces): a space admin can delete a space with no manager (#3040
fix(decomposedfs): tolerate a space root with an unset name attribute
fix(decomposedfs): tolerate a space root with an unset name attribute
fix(decomposedfs): tolerate a space root with an unset name attribute
michaelstingl commentedon Jul 6, 2026
rhafer commentedon Jul 7, 2026
I am going to hide all the AI generated comments. They're completely bogus or at least not addressing the root cause of the issue.
Looking at the storage after such a message appeared there is some left over folder of a personal space (
/var/lib/opencloud/storage/users/users/7c6d6720-271e-416d-ace3-bcc34320553a) containing a mlock file for the space root (.oc-nodes/locks/<some-id>.mlock). The folder doesn't have any attributes set, so it's not only the missing name attribute. So adding code to tolerate space with a missing name attribute is just papering over a real problem. Such a space/folder shouldn't exist at all.The issue is reproducible e.g bulk creating, logging in and deleting a couple of users. (It does not appear on every delete though. Out of 100 users I got this issue 5 times).
[-]Race condition error when remove project space after removing users[/-][+]Race condition when removing users[/+]rhafer commentedon Jul 7, 2026
Some more root cause analysis:
hybridmetadata backend with happily create the basepath, metadata directory and lock file for the node <- this is the actual bug, locking a node (even the root node) on a non-exisiting space should failmichaelstingl commentedon Jul 7, 2026
You're right: it's the async race.
Reproduced on 7.2.1 (posix, built-in IdM):
storage/users/users/<id>/with no xattrs, only a.oc-nodes/locks/<id>.mlockListStorageSpacesthen logsno data available,could not read node,failed to list storage spaces(code 15)Matches your ~5/100. The hybrid backend materialises a node when it locks an already-deleted space root; that is the layer to fix. #713 only tolerates the nameless node on read, not the cause; closing it. Fine to hide the earlier comments.
🤖 drafted with Claude Code, reviewed before submitting.
rhafer commentedon Jul 8, 2026
I believe opencloud-eu/reva#722 is going to fix this.
rhafer commentedon Jul 14, 2026
Hm, with all the changes that happend in opencloud-eu/reva#722, it does not longer fix this issue :(
We need in an additional fix for the hybrid metadata backend.
fix(metadata/hybrid): Avoid resurrecting space root directory