goroutine 576 [running]:
internal/runtime/maps.fatal({0x55da94145d90?, 0x55da91576e85?})
runtime/panic.go:1181 +0x18
internal/runtime/maps.(*Iter).Next(0x3208b045cc01?)
internal/runtime/maps/table.go:819 +0x86
github.com/go-chi/chi/v5.(*node).setEndpoint(0x3208afb72e60, 0x3ff, {0x55da97f31140, 0x3208b01ff120}, {0x3208b09b044e, 0x2})
github.com/go-chi/chi/v5@v5.2.5/tree.go:359 +0x449
github.com/go-chi/chi/v5.(*node).InsertRoute(0x3208b1e3d3c0?, 0x3ff, {0x3208b09b044e, 0x2}, {0x55da97f31140, 0x3208b01ff120})
github.com/go-chi/chi/v5@v5.2.5/tree.go:174 +0x3c5
github.com/go-chi/chi/v5.(*Mux).handle(0x3208b1ab8120, 0x3ff, {0x3208b09b044e, 0x2}, {0x55da97f31140, 0x3208b01ff120})
github.com/go-chi/chi/v5@v5.2.5/mux.go:436 +0x269
github.com/go-chi/chi/v5.(*Mux).Mount(0x3208b1ab8120, {0x55da953afa20, 0x1}, {0x55da97f36a60, 0x3208b1ab81e0})
github.com/go-chi/chi/v5@v5.2.5/mux.go:335 +0x385
github.com/go-chi/chi/v5.(*Mux).Route(0x3208b1ab8120, {0x55da953afa20, 0x1}, 0x3208b045d570)
github.com/go-chi/chi/v5@v5.2.5/mux.go:278 +0xff
github.com/opencloud-eu/opencloud/services/settings/pkg/server/http.Server({0x3208b045dbb8, 0x7, 0x0?})
github.com/opencloud-eu/opencloud/services/settings/pkg/server/http/server.go:78 +0x13cd
github.com/opencloud-eu/opencloud/services/settings/pkg/command.Server.func2(0x3208b043c608, {0x55da93fd50fd?, 0x4?, 0x55da93fd4f95?})
github.com/opencloud-eu/opencloud/services/settings/pkg/command/server.go:61 +0x83f
github.com/spf13/cobra.(*Command).execute(0x3208b043c608, {0x55da985dc560, 0x0, 0x0})
github.com/spf13/cobra@v1.10.2/command.go:1015 +0xb14
github.com/spf13/cobra.(*Command).ExecuteC(0x3208b043c308)
github.com/spf13/cobra@v1.10.2/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.10.2/command.go:1071
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/cobra@v1.10.2/command.go:1064
github.com/opencloud-eu/opencloud/services/settings/pkg/command.Execute(0x3208b196dd48)
github.com/opencloud-eu/opencloud/services/settings/pkg/command/root.go:35 +0x128
github.com/opencloud-eu/opencloud/opencloud/pkg/runtime/service.NewService.func19({0x55da97f5b290?, 0x3208affd5810?}, 0x0?)
github.com/opencloud-eu/opencloud/opencloud/pkg/runtime/service/service.go:224 +0x7c
github.com/opencloud-eu/opencloud/opencloud/pkg/runtime/service.NewService.NewService.func1.NewSutureServiceBuilder.func63.1({0x55da97f5b290?, 0x3208affd5810?})
github.com/opencloud-eu/opencloud/opencloud/pkg/runtime/service/sutureservice.go:21 +0x25
github.com/opencloud-eu/opencloud/opencloud/pkg/runtime/service.SutureService.Serve(...)
github.com/opencloud-eu/opencloud/opencloud/pkg/runtime/service/sutureservice.go:30
github.com/thejerf/suture/v4.(*Supervisor).runService.func2()
github.com/thejerf/suture/v4@v4.0.6/supervisor.go:570 +0xd4
created by github.com/thejerf/suture/v4.(*Supervisor).runService in goroutine 98
github.com/thejerf/suture/v4@v4.0.6/supervisor.go:544 +0x189
Describe the bug
The container crashed at 6:10am which was my sleeping time, and I am not sure about the cause. I pasted the error logs to 2 different AIs, and both of them suggested the following:
The
settingsservice crashes during HTTP server initialization. The stack trace shows the failure ininternal/runtime/maps.fatalandinternal/runtime/maps.(*Iter).Next, then ingithub.com/go-chi/chi/v5.(*node).setEndpoint,(*node).InsertRoute,(*Mux).handle,(*Mux).Mount, and(*Mux).Route, before reachinggithub.com/opencloud-eu/opencloud/services/settings/pkg/server/http.Serverat server.go:78.Observed behavior
The service terminates with a fatal panic instead of starting normally. The crash happened around 6:10am my timezone.
Expected behavior
The HTTP server should initialize successfully and continue running.
Stack trace excerpt
Details
Notes
I do not have exact reproduction steps. It crashed during my sleeping time. Also, I have been experiencing multiple crashes, which frozen my whole unRAID, making it unresponsive, and ultimately forced me to do a force restart of the server. This is the first time the container crashes itself without crashing my whole unRAID server.
Setup
I use unRAID 7.2.4, and setup OpenCloud as one of the Docker containers.
Start-up command:
Details
Start Up Logs:
Details