Skip to content

data is lost after reconnecting nats #2793

@ScharfViktor

Description

@ScharfViktor

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce

  1. start nats docker run -p 4222:4222 nats -js
  2. start opencloud STORAGE_USERS_ID_CACHE_STORE_NODES=localhost:4222 OC_LOG_LEVEL=info PROXY_ENABLE_BASIC_AUTH=true OC_INSECURE=true IDM_ADMIN_PASSWORD=admin opencloud/bin/opencloud server
  3. create data(personal and project spaces)
  4. connect to desktop client
  5. stop nats (wait ~3min)
  6. upload file to spaces using client finder -> make force sync now
    getting something like
Image 7. start nats again - check data

Expected behavior

data is exist

Actual behavior

data is gone

for example folder tests in personal space:

Image

I found tests in trash but cannot restore it

Image
{"level":"error","service":"frontend","host.name":"Mac.fritz.box","pkg":"rhttp","traceid":"2126ee28c8688600d43e794f98ef3f78","request-id":"7aa522c8-31c5-43d8-9c0a-6f91dbaad070","status":{"code":15,"message":"stat:nats: connection closed","trace":"3c76075ef5ec664950462b6459a69ca6"},"code":500,"time":"2026-05-19T16:41:49+02:00","line":"/Users/v.scharf/Work/opencloud/opencloud/vendor/github.com/opencloud-eu/reva/v2/internal/http/services/owncloud/ocdav/errors/error.go:178","message":"Internal Server Error"}
{"level":"error","service":"frontend","host.name":"Mac.fritz.box","pkg":"rhttp","traceid":"2126ee28c8688600d43e794f98ef3f78","host":"127.0.0.1","method":"MOVE","uri":"/remote.php/dav/spaces/trash-bin/72ad2808-680c-45b1-b517-aa29ec9052b5%24619b8ccf-7aa0-46db-8691-1557e90bb6d5/f7d8ac7e-2988-46cd-91f0-c6d70bc9f76a","url":"/72ad2808-680c-45b1-b517-aa29ec9052b5$619b8ccf-7aa0-46db-8691-1557e90bb6d5/f7d8ac7e-2988-46cd-91f0-c6d70bc9f76a","proto":"HTTP/1.1","status":500,"size":0,"start":"19/May/2026:16:41:49 +0200","end":"19/May/2026:16:41:49 +0200","time_ns":985542,"time":"2026-05-19T16:41:49+02:00","line":"/Users/v.scharf/Work/opencloud/opencloud/vendor/github.com/opencloud-eu/reva/v2/internal/http/interceptors/log/log.go:112","message":"http"}
{"level":"info","service":"proxy","proto":"HTTP/2.0","request-id":"7aa522c8-31c5-43d8-9c0a-6f91dbaad070","traceid":"3c76075ef5ec664950462b6459a69ca6","remote-addr":"[::1]:59811","method":"MOVE","status":500,"path":"/remote.php/dav/spaces/trash-bin/72ad2808-680c-45b1-b517-aa29ec9052b5$619b8ccf-7aa0-46db-8691-1557e90bb6d5/f7d8ac7e-2988-46cd-91f0-c6d70bc9f76a","duration":5.148333,"bytes":0,"time":"2026-05-19T16:41:49+02:00","line":"/Users/v.scharf/Work/opencloud/opencloud/services/proxy/pkg/middleware/accesslog.go:34","message":"access-log"}
{"level":"info","service":"auth-machine","host.name":"Mac.fritz.box","pkg":"rgrpc","traceid":"3d00931225147e7f403bdb33977a33b8","time":"2026-05-19T16:42:10+02:00","line":"/Users/v.scharf/Work/opencloud/opencloud/vendor/github.com/opencloud-eu/reva/v2/internal/grpc/services/authprovider/authprovider.go:146","message":"user idp:\"https://localhost:9200\" opaque_id:\"5dc52712-cdaf-4cf7-abda-26f0fa7f8229\" type:USER_TYPE_PRIMARY authenticated"}

full log: <H-Lnzr0tGd1 https://cloud.rc.opencloud.rocks/s/KluKXnGkgdtXFyJ

Setup

branch - #2787
opencloud binary
nats in docker

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Prio 1

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions