Skip to content

opencloud still doesn't shutdown cleanly #2746

@rhafer

Description

@rhafer

Describe the bug

Shutting down opencloud (using Ctrl+C) takes 15 seconds. And logs this:

{"level":"error","error":"unknown edition channel ''","time":"2026-05-12T13:56:14.110315471Z","caller":"/work/opencloud/pkg/version/version.go:55","message":"falling back to dev"}
^C{"level":"error","service":"opencloud","event":"opencloud: Failed service 'activitylog' (1.000000 failures of 5.000000), restarting: true, error: %!s(<nil>)","service":"activitylog","supervisor":"opencloud","restarting":true,"failures":1,"threshold":5,"error":null,"time":"2026-05-12T13:56:18Z","message":"service terminated"}
{"level":"error","service":"activitylog","error":"Stream did not exist and adding a stream failed: context deadline exceeded","transport":"http","time":"2026-05-12T13:56:33Z","message":"Failed to initialize server"}
Error: Stream did not exist and adding a stream failed: context deadline exceeded
Usage:
  activitylog server [flags]

Flags:
  -h, --help   help for server

Something is still borked with the graceful shutdown. And the 15 second shutdown cause some tests to run into their 60min timeout. (like mentioned here e.g.: opencloud-eu/qa#83)

Expected behavior

A quick and error less shutdown procedure.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions