Skip to content

Opencloud server crashes when syncing share with many smaller files in the upload queue (nats timeout) #3271

Description

@SlayerOwl

Describe the bug

I have three shares: personal, work and shares.
Personal - This share syncs without any issues but it only had a few files waiting to sync.
Shares - Is empty, so no issues.
Work - This share contains over 2000 files (50-1000 kB each) and over 100 files (100-200 MB each) on my laptop, waiting to be uploaded to the server.

When I attempt to sync the Work share from my laptop, the Opencloud server crashes.

Steps to reproduce

  1. Open the Opencloud client on my laptop.
  2. Initiate sync of the Work share.

The crash occurs every time I attempt this.

Expected behavior

The sync should complete successfully.

Actual behavior

  • Shortly after starting the sync, the Opencloud server crashes.
  • Other running Docker containers and VMs continue to function.
  • The Unraid web UI eventually becomes unreachable, and commands like diagnostics and powerdown -r fail.
  • I can still connect to the Unraid server via SSH.

After running docker logs -f opencloud-opencloud-1 and starting the sync, these are the last lines in the log:

{"level":"info","service":"auth-service","host.name":"af500f5ccf51","pkg":"rgrpc","traceid":"226607b69651bb3ad3887790ce652666","time":"2026-08-07T13:42:19Z","line":"github.com/opencloud-eu/reva/v2@v2.46.6/internal/grpc/services/authprovider/authprovider.go:146","message":"user idp:\"none\"  opaque_id:\"206f2a19-05ea-4e1c-ba9a-6f5eb7f86286\"  type:USER_TYPE_SERVICE authenticated"}
{"level":"info","service":"storage-system","host.name":"af500f5ccf51","pkg":"rgrpc","traceid":"4b826d444a1392802d2fc5e60f09f2df","time":"2026-08-07T13:42:19Z","line":"github.com/opencloud-eu/reva/v2@v2.46.6/internal/grpc/services/authprovider/authprovider.go:146","message":"user idp:\"internal\"  opaque_id:\"565fd44d-b9f1-4da8-82ad-99769988d57d\"  type:USER_TYPE_SERVICE authenticated"}
{"level":"info","service":"storage-system","host.name":"af500f5ccf51","pkg":"rgrpc","traceid":"4b826d444a1392802d2fc5e60f09f2df","data-server":"http://localhost:9216/data","ref":{"resource_id":{"opaque_id":"jsoncs3-share-manager-metadata","space_id":"jsoncs3-share-manager-metadata"},"path":"./users/9a77ab84-114f-4d50-ad09-e37672bd45b1/received.json"},"time":"2026-08-07T13:42:19Z","line":"github.com/opencloud-eu/reva/v2@v2.46.6/internal/grpc/services/storageprovider/storageprovider.go:296","message":"file download"}
{"level":"error","service":"eventhistory","error":"Failed to store data in bucket 'GE2DAYJUGZRTKLJWMI4WKLJUMQ2GCLLBGI2TCLLEGJSDCMLDGIZTGZJZMI======': nats: timeout","eventid":"140a46c5-6b9e-4d4a-a251-d2d11c233e9b","time":"2026-08-07T13:42:24Z","line":"github.com/opencloud-eu/opencloud/services/eventhistory/pkg/service/service.go:71","message":"could not store event"}
{"level":"error","service":"postprocessing","uploadID":"e629e4e4-1820-4aca-8b83-17958ebf9b8e","error":"Failed to store data in bucket 'MU3DEOLFGRSTILJRHAZDALJUMFRWCLJYMI4DGLJRG44TKODFMJTDSYRYMU======': nats: timeout","time":"2026-08-07T13:42:24Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:290","message":"cannot store upload"}
{"level":"error","service":"postprocessing","error":"event error: cannot store upload","time":"2026-08-07T13:42:24Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:138","message":"continuing"}
{"level":"error","service":"postprocessing","error":"Error publishing message to topic: nats: timeout","time":"2026-08-07T13:42:24Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:297","message":"unable to publish event"}
{"level":"fatal","service":"postprocessing","error":"fatal error: unable to publish event","time":"2026-08-07T13:42:24Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:136","message":"fatal error - exiting"}

I have attached the last 47 lines of the log: opencloud-docker-log.txt

The only other occurrence of "error":"fatal error: unable to publish event I found is in issue #2232.

Setup

  • Opencloud with docker compose with Traefik and Collabora.
  • The setup follows the default setup with traefik, with one customization: I added a macvlan network to assign Opencloud its own IP address.
  • Docker image: opencloudeu/opencloud-rolling:7.2.0

Server
Unraid 7.3.2
Compose Manger Plus plugin

Laptop
Framework 13, Fedora 44, Appimage client

Details

OpenCloud 3.0.3.2073 72fe8f
Libraries Qt 6.9.2, OpenSSL 3.5.4 30 Sep 2025
Using virtual files plugin: off
OS: fedora-7.1.4-204,fc44.x86_64 (build arch: x86_64, CPU arch: x86_64)
QPA: wayland

Additional context

The issue still occurs with all other Docker containers down and VMs powered off.

Opencloud ran fine for a few weeks before this issue started. Around the same time as the issue started, I

Updated Unraid from 7.3.1 to 7.3.2
Added another drive to the Unraid array (not used by Opencloud)
Swapped out the old router to a Ubiquiti Cloud Gateway Ultra

I also have a support thread started at the Unraid forum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions