Skip to content

storage-users reported paths as not found in cache despite server data being intact causing desktop client to delete local files #2765

Closed
opencloud-eu/reva
#635

Description

@kylekrajnyak

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_REMOVE with OCC::SyncFileItem::Down and OCC::SyncFileItem::Success for all affected paths at 10:36Z.

Setup

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-users KV 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

Activity

  1. moved this from Qualification to Prio 1 in OpenCloud Team Boardon May 15, 2026
  2. tbsbdr commented on May 15, 2026

    @tbsbdr
    Member

    thanks a lot for reporting this issue! @dragotin any idea how to reproduce this or did we see this in the wild before?

  3. self-assigned this
    on May 15, 2026
  4. added 4 commits that reference this issue on May 18, 2026
    b897604
    5804f29
    dea6136
    ac16abd
  5. kylekrajnyak commented on Jun 6, 2026

    @kylekrajnyak
    Author

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions