Skip to content

[container crash] fatal error: unable to publish event #2232

Closed

Description

@shinebayar-g

Describe the bug

OpenCloud container was crashed with this error message.

Steps to reproduce

  1. run the server
  2. upload files via desktop app

Expected behavior

Shouldn't crash

Actual behavior

Container crashed. Here's the last few lines before crash.

{"level":"warn","service":"frontend","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"4fc7a26d2b33c9d69f9ccc0e6e5d9dcb","time":"2026-01-28T19:47:45Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:248","message":"core access token not set"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"d128a753d4f54948bb6c70adc39e437f","time":"2026-01-28T19:47:45Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:195","message":"skipping auth check for: /data/tus/84ccaca7-c935-47eb-b398-d18f6f9b0c88"}
{"level":"warn","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"d128a753d4f54948bb6c70adc39e437f","time":"2026-01-28T19:47:45Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:248","message":"core access token not set"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","datatx":"tus","method":"PATCH","path":"/84ccaca7-c935-47eb-b398-d18f6f9b0c88","requestId":"445ff0e1-a132-4812-8569-2ccdfb4e88ab","line":"github.com/tus/tusd/[email protected]/pkg/handler/unrouted_handler.go:193","time":"2026-01-28T19:47:45Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/rhttp/datatx/manager/tus/tus.go:282","message":"RequestIncoming"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","datatx":"tus","method":"PATCH","path":"/84ccaca7-c935-47eb-b398-d18f6f9b0c88","requestId":"445ff0e1-a132-4812-8569-2ccdfb4e88ab","id":"84ccaca7-c935-47eb-b398-d18f6f9b0c88","line":"github.com/tus/tusd/[email protected]/pkg/handler/unrouted_handler.go:894","maxSize":10000000,"offset":310000000,"time":"2026-01-28T19:47:45Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/rhttp/datatx/manager/tus/tus.go:282","message":"ChunkWriteStart"}
{"level":"error","spaceid":"feace5fb-eeb4-4cf5-b1c3-80dbb636e201","nodeid":"66274eab-0d74-4430-839f-e7fb2bfac370","error":"Error publishing message to topic: nats: timeout","time":"2026-01-28T19:47:46Z","message":"Failed to publish UploadReady event"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","datatx":"tus","method":"PATCH","path":"/9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","requestId":"7e50d27f-506b-4935-9062-2e075ec9fe96","id":"9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","line":"github.com/tus/tusd/[email protected]/pkg/handler/unrouted_handler.go:955","bytesWritten":10000000,"time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/rhttp/datatx/manager/tus/tus.go:282","message":"ChunkWriteComplete"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","datatx":"tus","method":"PATCH","path":"/9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","requestId":"7e50d27f-506b-4935-9062-2e075ec9fe96","id":"9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","line":"github.com/tus/tusd/[email protected]/pkg/handler/unrouted_handler.go:1290","status":204,"body":"","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/rhttp/datatx/manager/tus/tus.go:282","message":"ResponseOutgoing"}
{"level":"info","service":"proxy","proto":"HTTP/1.1","request-id":"7e50d27f-506b-4935-9062-2e075ec9fe96","traceid":"b5833e9375323c2bc64e815374e9d7ed","remote-addr":"REDACTED","method":"PATCH","status":204,"path":"/data/JWT_REDACTED","duration":10087.499026,"bytes":0,"time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/accesslog.go:34","message":"access-log"}
{"level":"info","service":"frontend","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"4370ded68f489a2c6fd291457a94b5f0","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:195","message":"skipping auth check for: /data/JWT_REDACTED"}
{"level":"warn","service":"frontend","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"4370ded68f489a2c6fd291457a94b5f0","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:248","message":"core access token not set"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"e7fdedf3531cd11d3fd0b08f50a59f17","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:195","message":"skipping auth check for: /data/tus/9fb198af-6d2e-4c09-9b35-ba5d1fc125d8"}
{"level":"warn","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","traceid":"e7fdedf3531cd11d3fd0b08f50a59f17","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/internal/http/interceptors/auth/auth.go:248","message":"core access token not set"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","datatx":"tus","method":"PATCH","path":"/9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","requestId":"f5864424-fa28-4d65-923a-e66850ec6647","line":"github.com/tus/tusd/[email protected]/pkg/handler/unrouted_handler.go:193","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/rhttp/datatx/manager/tus/tus.go:282","message":"RequestIncoming"}
{"level":"info","service":"storage-users","host.name":"43a84f3b9915","pkg":"rhttp","datatx":"tus","method":"PATCH","path":"/9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","requestId":"f5864424-fa28-4d65-923a-e66850ec6647","id":"9fb198af-6d2e-4c09-9b35-ba5d1fc125d8","line":"github.com/tus/tusd/[email protected]/pkg/handler/unrouted_handler.go:894","maxSize":10000000,"offset":300000000,"time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/rhttp/datatx/manager/tus/tus.go:282","message":"ChunkWriteStart"}
{"level":"error","service":"postprocessing","error":"Error publishing message to topic: nats: timeout","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:299","message":"unable to publish event"}
{"level":"fatal","service":"postprocessing","error":"fatal error: unable to publish event","time":"2026-01-28T19:47:47Z","line":"github.com/opencloud-eu/opencloud/services/postprocessing/pkg/service/service.go:138","message":"fatal error - exiting"}
2026/01/28 19:47:49 Could not create config: config file already exists, use --force-overwrite to overwrite or --diff to show diff
{"level":"info","service":"nats","time":"2026-01-28T19:47:50Z","line":"github.com/opencloud-eu/opencloud/services/nats/pkg/logging/nats.go:21","message":"Starting nats-server"}
{"level":"info","service":"nats","time":"2026-01-28T19:47:50Z","line":"github.com/opencloud-eu/opencloud/services/nats/pkg/logging/nats.go:21","message":"  Version:  2.12.3"}

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

OpenCloud 5.0.1

Activity

  1. dragonchaser commented on Jan 29, 2026

    @dragonchaser
    Member

    How are you starting the container? Compose or Plain?
    Is opencloud staying healthy after the restart or is it running into a restart loop?

  2. shinebayar-g commented on Jan 29, 2026

    @shinebayar-g
    Author

    Using Docker compose following the doc https://docs.opencloud.eu/docs/admin/getting-started/container/docker-compose/docker-compose-base

    I haven't enabled anything else except OpenCloud itself. Container recovered successfully and stayed healthy.

  3. added theissue type on Feb 2, 2026
  4. dragonchaser commented on Feb 23, 2026

    @dragonchaser
    Member
  5. shinebayar-g commented on Feb 23, 2026

    @shinebayar-g
    Author

    Not in this case. OpenCloud instance has correct permissions and is not shared with any external applications.

  6. dragonchaser commented on Feb 23, 2026

    @dragonchaser
    Member

    Is this issue still persistant with 5.1.0?

  7. shinebayar-g commented on Feb 23, 2026

    @shinebayar-g
    Author

    Not sure. Will report if happens. This issue occurred only once so far.. No idea what's the trigger.

  8. dragonchaser commented on Feb 24, 2026

    @dragonchaser
    Member

    @shinebayar-g ok, I will close this here now, if it reoccures, please repopen.

  9. moved this from Qualification to Done in OpenCloud Team Boardon Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions