Repository navigation
Description
Describe the bug
When using the webpage or desktop clients multiple timeouts occur, resulting in long (30s?) wait times for several requests.
The logs report timeout related errors like "Error publishing message to topic: nats: timeout" for the service "proxy" or "context deadline exceeded" for the service "postprocessing" and "search".
Steps to reproduce
I'm afraid this is not "reliable erroneous behavior". Below is my experience.
- Start up opencloud with
docker compose up - Use web app, sync local client.
- The server starts to fail to respond.
Expected behavior
When I open my opencloud through the webinterface I would expect an immediate prompt for login and afterwards to be shown the user interface. When using the local client to sync my files i expect immediate sync of files.
Actual behavior
Sometimes it works fast, but after a few minutes the response times for web and client skyrocket to between 30 and 60s. Sometimes there is a 502 gateway error from caddy and later I can see that the opencloud container had to restart.
Note that I do not see high CPU or RAM usage, nor DISK R/W on the VM.
Setup
I have the below setup since ~2 weeks, the issues started occuring a few days ago. Before that it worked fine and opencloud currently manages ~400GB of data.
I run opencloud through the recommended docker compose setup. It sits behind a caddy proxy.
The files are stored on an nfs-share which is run on the same hardware, but in a different VM (Proxmox). The share has been working fine until recently and is mounted with the following line: 10.0.0.2:/opencloud /mnt nfs defaults,rw,_netdev,vers=4.2,noac 0 0.
Relevant/changed entries from my .env file:
COMPOSE_FILE=docker-compose.yml:external-proxy/opencloud.yml:radicale/radicale.yml
OC_DOCKER_IMAGE=opencloudeu/opencloud-rolling
OC_CONFIG_DIR=/mnt/config
OC_DATA_DIR=/mnt/data
I have added the following volume to the docker-compose.yml, to have the nats files be local. According to the nats logs at startup it is fine.
- /home/debian/nats:/var/lib/opencloud/nats
Below is an excerpt of the logfiles, they show many errors and warnings related to timeouts.
opencloud-1 | 2026-03-04T08:43:28Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:28Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:43:30Z ERR could not publish user signin event. error="Error publishing message to topic: nats: timeout" line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/account_resolver.go:204 service=proxy
opencloud-1 | 2026-03-04T08:43:30Z ERR could not publish user signin event. error="Error publishing message to topic: nats: timeout" line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/account_resolver.go:204 service=proxy
opencloud-1 | 2026-03-04T08:43:30Z INF user idp:"internal" opaque_id:"a06a9380-adb0-41e8-a858-f75ca813af1e" type:USER_TYPE_SERVICE authenticated host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/authprovider/authprovider.go:146 pkg=rgrpc service=storage-system traceid=a6df49a861f6543ac299891025ccc8d3
opencloud-1 | 2026-03-04T08:43:30Z INF file download data-server=http://localhost:9216/data host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/storageprovider/storageprovider.go:296 pkg=rgrpc ref={"path":"./users/7cb461eb-71c2-4db9-9d2f-ce0e23b981a1/received.json","resource_id":{"opaque_id":"jsoncs3-share-manager-metadata","space_id":"jsoncs3-share-manager-metadata"}} service=storage-system traceid=a6df49a861f6543ac299891025ccc8d3
opencloud-1 | 2026-03-04T08:43:30Z ERR could not publish user signin event. error="Error publishing message to topic: nats: timeout" line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/account_resolver.go:204 service=proxy
opencloud-1 | 2026-03-04T08:43:30Z INF access-log bytes=317 duration=5197.916023 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/graph/v1.0/me proto=HTTP/1.1 remote-addr=100.101.120.69 request-id=8da6d7f5-794d-426b-8f4f-b4ed9252283b service=proxy status=200 traceid=54ec1e4ad87bc400713591d7c35511bc
opencloud-1 | 2026-03-04T08:43:32Z INF user idp:"https://opencloud.mydomain.de" opaque_id:"7cb461eb-71c2-4db9-9d2f-ce0e23b981a1" type:USER_TYPE_PRIMARY authenticated host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/authprovider/authprovider.go:146 pkg=rgrpc service=auth-machine traceid=9674ce7a4e6052e89dc450f887afad08
opencloud-1 | 2026-03-04T08:43:32Z INF user idp:"none" opaque_id:"d6d9b835-cb0c-4f27-8f03-6881a3c495aa" type:USER_TYPE_SERVICE authenticated host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/authprovider/authprovider.go:146 pkg=rgrpc service=auth-service traceid=b66c364fec4bda685ccce34b676790b6
opencloud-1 | 2026-03-04T08:43:32Z INF access-log bytes=72 duration=21.252094 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/ocs/v2.php/apps/notifications/api/v1/notifications proto=HTTP/1.1 remote-addr=100.101.120.69 request-id=a48296ac-6eee-4c2e-bd4a-0a3d23ce6be7 service=proxy status=200 traceid=9674ce7a4e6052e89dc450f887afad08
opencloud-1 | 2026-03-04T08:43:33Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:33Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:43:38Z ERR could not select service from the registry error="Failed to list keys in bucket: Failed to list objects: context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/proxy/pkg/router/router.go:154 service=eu.opencloud.web.web
opencloud-1 | 2026-03-04T08:43:38Z ERR error happened in MultiHostReverseProxy error="unsupported protocol scheme \"\"" fragment= line=github.com/opencloud-eu/opencloud/services/proxy/pkg/proxy/proxy.go:52 method=GET path=/ proto=HTTP/1.1 query= remoteAddr=100.74.139.126 request-id= service=proxy
opencloud-1 | 2026-03-04T08:43:38Z INF access-log bytes=0 duration=5002.420865 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/ proto=HTTP/1.1 remote-addr=100.74.139.126 request-id=d4287f289aaf/1DYgOVft7Z-000041 service=proxy status=502 traceid=f2f547fa965b352495b5af067851ae46
opencloud-1 | 2026-03-04T08:43:38Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:38Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:43:41Z ERR could not get drives: transport error error="rpc error: code = Canceled desc = context canceled" line=github.com/opencloud-eu/opencloud/services/graph/pkg/service/v0/drives.go:243 query={} request-id=009b1dfa-22a7-4c9f-b4f4-637d67c422a5 service=graph unrestricted=false url=https://opencloud.mydomain.de/dav/spaces
opencloud-1 | 2026-03-04T08:43:41Z ERR error happened in MultiHostReverseProxy error="context canceled" fragment= line=github.com/opencloud-eu/opencloud/services/proxy/pkg/proxy/proxy.go:52 method=GET path=/graph/v1.0/me/drives proto=HTTP/1.1 query= remoteAddr=100.74.139.126 request-id=009b1dfa-22a7-4c9f-b4f4-637d67c422a5 service=proxy
opencloud-1 | 2026-03-04T08:43:41Z INF access-log bytes=0 duration=30003.987326 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/graph/v1.0/me/drives proto=HTTP/1.1 remote-addr=100.74.139.126 request-id=009b1dfa-22a7-4c9f-b4f4-637d67c422a5 service=proxy status=502 traceid=5a312c559a04587c1106dfb2942cc523
opencloud-1 | 2026-03-04T08:43:41Z ERR failed to list storage spaces error="rpc error: code = Canceled desc = context canceled" filters=[{"Term":{"User":{"idp":"https://opencloud.mydomain.de","opaque_id":"7cb461eb-71c2-4db9-9d2f-ce0e23b981a1"}},"type":6}] host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/storageprovider/storageprovider.go:579 pkg=rgrpc service=ocm status={"code":15,"message":"error listing spaces","trace":"5a312c559a04587c1106dfb2942cc523"} traceid=5a312c559a04587c1106dfb2942cc523
opencloud-1 | 2026-03-04T08:43:41Z ERR gateway: error calling ListReceivedOCMShares: rpc error: code = Canceled desc = context canceled code=Canceled end="04/Mar/2026:08:43:41 +0000" from=tcp://127.0.0.1:47500 host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/interceptors/log/log.go:69 pkg=rgrpc service=gateway start="04/Mar/2026:08:43:16 +0000" time_ns=24766146540 traceid=5a312c559a04587c1106dfb2942cc523 uri=/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares user-agent=grpc-go/1.78.0
opencloud-1 | 2026-03-04T08:43:43Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:43Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:43:48Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:48Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:43:51Z ERR could not select service from the registry error="Failed to list keys in bucket: Failed to list objects: context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/proxy/pkg/router/router.go:154 service=eu.opencloud.web.web
opencloud-1 | 2026-03-04T08:43:51Z ERR error happened in MultiHostReverseProxy error="unsupported protocol scheme \"\"" fragment= line=github.com/opencloud-eu/opencloud/services/proxy/pkg/proxy/proxy.go:52 method=GET path=/ proto=HTTP/1.1 query= remoteAddr=100.74.139.126 request-id= service=proxy
opencloud-1 | 2026-03-04T08:43:51Z INF access-log bytes=0 duration=5001.55551 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/ proto=HTTP/1.1 remote-addr=100.74.139.126 request-id=d4287f289aaf/1DYgOVft7Z-000042 service=proxy status=502 traceid=0902d3514dd2c2a3d37c71d1d1cc6160
opencloud-1 | 2026-03-04T08:43:53Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:53Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:43:55Z ERR error happened in MultiHostReverseProxy error="context canceled" fragment= line=github.com/opencloud-eu/opencloud/services/proxy/pkg/proxy/proxy.go:52 method=GET path=/graph/v1.0/me/drives proto=HTTP/1.1 query= remoteAddr=100.101.120.69 request-id=b88ba416-139d-421b-a6c5-566d86fa557c service=proxy
opencloud-1 | 2026-03-04T08:43:55Z ERR could not get drives: transport error error="rpc error: code = Canceled desc = context canceled" line=github.com/opencloud-eu/opencloud/services/graph/pkg/service/v0/drives.go:243 query={} request-id=b88ba416-139d-421b-a6c5-566d86fa557c service=graph unrestricted=false url=https://opencloud.mydomain.de/dav/spaces
opencloud-1 | 2026-03-04T08:43:55Z INF access-log bytes=0 duration=30018.177472 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/graph/v1.0/me/drives proto=HTTP/1.1 remote-addr=100.101.120.69 request-id=b88ba416-139d-421b-a6c5-566d86fa557c service=proxy status=502 traceid=c1a843faea8fa19464f6f758db4d29b6
opencloud-1 | 2026-03-04T08:43:55Z ERR sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest: rpc error: code = Canceled desc = context canceled code=Canceled end="04/Mar/2026:08:43:55 +0000" from=tcp://127.0.0.1:33674 host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/interceptors/log/log.go:69 pkg=rgrpc service=storage-shares start="04/Mar/2026:08:43:30 +0000" time_ns=24807858659 traceid=c1a843faea8fa19464f6f758db4d29b6 uri=/cs3.storage.provider.v1beta1.SpacesAPI/ListStorageSpaces user-agent=grpc-go/1.78.0
opencloud-1 | 2026-03-04T08:43:55Z ERR error happened in MultiHostReverseProxy error="context canceled" fragment= line=github.com/opencloud-eu/opencloud/services/proxy/pkg/proxy/proxy.go:52 method=GET path=/graph/v1.0/me/drives proto=HTTP/1.1 query= remoteAddr=100.101.120.69 request-id=306c8a8c-290b-4f16-a70d-f9b63775d0e9 service=proxy
opencloud-1 | 2026-03-04T08:43:55Z ERR could not get drives: transport error error="rpc error: code = Canceled desc = context canceled" line=github.com/opencloud-eu/opencloud/services/graph/pkg/service/v0/drives.go:243 query={} request-id=306c8a8c-290b-4f16-a70d-f9b63775d0e9 service=graph unrestricted=false url=https://opencloud.mydomain.de/dav/spaces
opencloud-1 | 2026-03-04T08:43:55Z INF access-log bytes=0 duration=30059.827867 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/graph/v1.0/me/drives proto=HTTP/1.1 remote-addr=100.101.120.69 request-id=306c8a8c-290b-4f16-a70d-f9b63775d0e9 service=proxy status=502 traceid=a46c68ebab25b408b0b9e28d615df86e
opencloud-1 | 2026-03-04T08:43:55Z ERR failed to list storage spaces error="rpc error: code = Canceled desc = context canceled" filters=[{"Term":{"User":{"idp":"https://opencloud.mydomain.de","opaque_id":"7cb461eb-71c2-4db9-9d2f-ce0e23b981a1"}},"type":6}] host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/storageprovider/storageprovider.go:579 pkg=rgrpc service=ocm status={"code":15,"message":"error listing spaces","trace":"a46c68ebab25b408b0b9e28d615df86e"} traceid=a46c68ebab25b408b0b9e28d615df86e
opencloud-1 | 2026-03-04T08:43:55Z ERR gateway: error calling ListReceivedOCMShares: rpc error: code = Canceled desc = context canceled code=Canceled end="04/Mar/2026:08:43:55 +0000" from=tcp://127.0.0.1:47500 host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/interceptors/log/log.go:69 pkg=rgrpc service=gateway start="04/Mar/2026:08:43:30 +0000" time_ns=24849202273 traceid=a46c68ebab25b408b0b9e28d615df86e uri=/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares user-agent=grpc-go/1.78.0
opencloud-1 | 2026-03-04T08:43:58Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:43:58Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
opencloud-1 | 2026-03-04T08:44:03Z INF skipping auth check for: /status.php host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:195 pkg=rhttp service=frontend traceid=525702882291b0dff08f6cf8b1ce4f22
opencloud-1 | 2026-03-04T08:44:03Z WRN core access token not set host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:248 pkg=rhttp service=frontend traceid=525702882291b0dff08f6cf8b1ce4f22
opencloud-1 | 2026-03-04T08:44:03Z INF access-log bytes=272 duration=1.464424 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/status.php proto=HTTP/1.1 remote-addr=100.101.120.69 request-id=d4597c13-f392-41af-a7ee-2c7678a02406 service=proxy status=200 traceid=fcce96080a334262c436806392ab041a
opencloud-1 | 2026-03-04T08:44:03Z INF user idp:"https://opencloud.mydomain.de" opaque_id:"7cb461eb-71c2-4db9-9d2f-ce0e23b981a1" type:USER_TYPE_PRIMARY authenticated host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/authprovider/authprovider.go:146 pkg=rgrpc service=auth-machine traceid=1e00fca87f7e4d6ee01f64e499870d5c
opencloud-1 | 2026-03-04T08:44:03Z INF access-log bytes=317 duration=18.117337 line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34 method=GET path=/graph/v1.0/me proto=HTTP/1.1 remote-addr=100.101.120.69 request-id=3bc8ba34-8103-44cc-a27f-89de3e7018b6 service=proxy status=200 traceid=1e00fca87f7e4d6ee01f64e499870d5c
opencloud-1 | 2026-03-04T08:44:03Z INF user idp:"internal" opaque_id:"a06a9380-adb0-41e8-a858-f75ca813af1e" type:USER_TYPE_SERVICE authenticated host.name=d4287f289aaf line=github.com/opencloud-eu/reva/[email protected]/internal/grpc/services/authprovider/authprovider.go:146 pkg=rgrpc service=storage-system traceid=fc4ec199169b3a5bebf6f18eb97f04b1
opencloud-1 | 2026-03-04T08:44:03Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:439 service=postprocessing
opencloud-1 | 2026-03-04T08:44:03Z ERR failed to get consumer error="context deadline exceeded" line=github.com/opencloud-eu/opencloud/services/search/pkg/service/event/service.go:216 service=search
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
micbar commentedon Mar 4, 2026
This looks like broken infrastructure.
We are not experiencing errors like that.
Maybe related to the NFS.
We need more info. Do you see failing syscalls?
PhForty commentedon Mar 4, 2026
I run the same setup (same nfs-share, but different folder) for a local immich setup as well. There are ~100GB of photos and it works without issues. I have run the commands there as well. journalctl shows no issues but strace shows a few futex timeouts as well, although much fewer.
journalctl shows a few issues, but the timestamps are not related to the logs from opencloud.
The results of /usr/sbin/nfsstat show only very few retransmissions. I interpret that as a stable connection.
Running strace on the opencloud process shows a lot of these. I assume that points to a lock.
Those locks are also shown in the wait channel.
cat /proc/locksshows to files associated with 14444.micbar commentedon Mar 4, 2026
@aduffeck @dragonchaser I fear that NFS is the problem here. Can you help?
micbar commentedon Mar 4, 2026
@PhForty You cannot compare opencloud with immich. We are using the storage as a database and to store nats caches, so we are having a high ioPS load.
PhForty commentedon Mar 4, 2026
Thank you for the clarification. That was the reason I moved nats to
/home/debian/nats, in the hopes that it would reduce latency.From the documentation I understand that NFS is considered supported? Given my setup of two VMs on the same hardware, this should be ideal with regards to latency and throughput.
micbar commentedon Mar 4, 2026
Oh! This is currently not possible. Starting two openclouds in parallel can cause all kinds of bad things happening. Did you do that?
micbar commentedon Mar 4, 2026
Explanation:
are services which can only run in a single thread.
To scale opencloud, you need to externalize and share NATS, IDM, SEARCH and other services.
We are doing that in kubernetes, even with autoscaling.
PhForty commentedon Mar 4, 2026
I'm sry that was ambiguous. One VM is opencloud, the second VM hosts the nfs-share.
PhForty commentedon Mar 4, 2026
I have something to add about the crashes. The following is the docker logs right before the crash. There are several thousand lines of go errors, I cannot show them all.
micbar commentedon Mar 6, 2026
@aduffeck @fschade ?
aduffeck commentedon Mar 10, 2026
Hrm, I see issues in two seemingly unrelated spots in the last logs:
and
Since nats is local VM storage and the idm boltdb lives on the NFS share I'm not entirely sure what the root cause could be. Can you check the kernel logs for anything related to i/o errors? Maybe it contains the true reason for those issues.
Otherwise you could try to keep all data local except
/var/lib/opencloud/storageand see if that helps.rhafer commentedon Jun 25, 2026
No answer since 3 month. So I am closing this issue. @PhForty Feel free to re-open when you're able to provide the requested information.