Repository navigation
Closed
opencloud-eu/reva
#635Labels
Description
Describe the bug
The server reported existing paths as not found, causing the desktop client to issue CSYNC_INSTRUCTION_REMOVE with direction Down and status Success for a large number of files and folders that exist intact on the server. The files were permanently deleted locally.
Steps to reproduce
Unknown. The issue occurred overnight without user interaction.
Expected behavior
Local files should not be deleted when the server data is intact.
Actual behavior
- At 06:00:01Z, The Docker container logged an internal service failure:
{"level":"error","service":"opencloud","event":"opencloud: Failed service 'service.SutureService{exec:(func(context.Context) error)(0x5f537418b6a0)}' (1.000000 failures of 5.000000), restarting: true, error: %!s(<nil>)","service":"service.SutureService{exec:(func(context.Context) error)(0x5f537418b6a0)}","supervisor":"opencloud","restarting":true,"failures":1,"threshold":5,"error":null,"time":"2026-05-14T06:00:01Z","message":"service terminated"}
- At 06:00:06Z:
{"level":"error","service":"activitylog","error":"Failed to store data in bucket 'ONSXE5TJMNSS24TFM5UXG5DSPFPWK5JON5YGK3TDNRXXKZBOO5SWELTBMN2GS5TJOR4WY33HIBQTOZRVMZSGEMJNMM3WMMBNGQ3DCMZNMI4TMZJNMUZWENZQGA4GKNLDGY4UANBOGAXDM===': nats: timeout","transport":"http","server":"activitylog","time":"2026-05-14T06:00:06Z","message":"Shutting down server"}
- Container restarted at 06:00:11Z.
- At 10:36:05Z:
{"level":"error","service":"search","error":"context deadline exceeded","time":"2026-05-14T10:36:05Z","message":"failed to get consumer"}
- At 10:36:07Z:
{"level":"error","service":"storage-users","error":"error: not found: path not found in cache:/var/lib/opencloud/storage/users/users/<uuid>/Documents","time":"2026-05-14T10:36:07Z","message":"failed to get ids for entry"}
{"level":"error","service":"storage-users","error":"error: not found: path not found in cache:/var/lib/opencloud/storage/users/users/<uuid>/Videos","time":"2026-05-14T10:36:07Z","message":"failed to get ids for entry"}
{"level":"error","service":"storage-users","error":"error: not found: path not found in cache:/var/lib/opencloud/storage/users/users/<uuid>/Pictures","time":"2026-05-14T10:36:07Z","message":"failed to get ids for entry"}
- The desktop client sync log (.OpenCloudSync.log) shows
CSyncEnums::CSYNC_INSTRUCTION_REMOVEwithOCC::SyncFileItem::DownandOCC::SyncFileItem::Successfor all affected paths at 10:36Z.
Setup
- Single Docker container
- Data directory is an NFS bind mount
- Desktop client: macOS 3.0.3.2073
- OpenCloud 4.0.6 which includes [stable-4.0] More graceful shutdown fixes #2692.
Additional context
- Whether the 06:00Z events are related to the 10:36Z errors is unknown.
- Using the nats CLI connected to the embedded NATS server (port 9233), the
KV_ids-storage-usersKV store was queried for the affected paths. The keys were confirmed absent from the live store. Server data was confirmed intact via the web UI and the server filesystem directly. - Referencing Double check nats is shut down gracefully in docker #2282 as potentially related
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
tbsbdr commentedon May 15, 2026
thanks a lot for reporting this issue! @dragotin any idea how to reproduce this or did we see this in the wild before?
Do not mask real cache errors with "not found" errors
Do not mask real cache errors with "not found" errors
Do not mask real cache errors with "not found" errors
Do not mask real cache errors with "not found" errors
kylekrajnyak commentedon Jun 6, 2026
Hello @tbsbdr — This issue has reoccurred again for me today on v4.0.7. It appears the fix from reva PR #635 was included in the reva v2.45.0 bump (opencloud #2787) which landed in the 7.1.0 rolling release, but was not backported to the stable-4.0 branch. Just wanted to check if you plan to backport this fix to the 4.0.x stable release as well? Thank you!