KAS startup panic
I am using official Docker image gitlab/gitlab-ee:17.9.0-ee.0 (no modifications to the image, Docker version 27.5.1) for self-hosted GitLab and I am observing the following repeated panic in the logs:
==> /var/log/gitlab/gitlab-kas/current <==
2025-02-23_09:38:51.18191 {"time":"2025-02-23T09:38:51.181813434Z","level":"INFO","msg":"Running KAS","kas":"gitlab-kas/v17.9.0/v17.9.0"}
2025-02-23_09:38:51.18339 {"time":"2025-02-23T09:38:51.183339661Z","level":"INFO","msg":"Using own private API multi URL","url":"grpc:/localhost/|8155"}
2025-02-23_09:38:51.18393 {"time":"2025-02-23T09:38:51.183887284Z","level":"INFO","msg":"KAS shutdown done, exiting"}
2025-02-23_09:38:51.18617 panic: multi URL: no addresses and no host. This is a programming error. Please open an issue at https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/issues
2025-02-23_09:38:51.18618
2025-02-23_09:38:51.18618 goroutine 1 [running]:
2025-02-23_09:38:51.18618 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/tool/nettool.NewMultiURL({0x1ea52ea, 0x4}, {0x0, 0x0}, {0x0, 0x0}, 0x1fdb, {0x33b25c0, 0x0, 0x0})
2025-02-23_09:38:51.18619 /var/cache/omnibus/src/gitlab-kas/internal/tool/nettool/multi_url.go:29 +0x19e
2025-02-23_09:38:51.18621 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/internal/module/agentk2kas_tunnel/router.NewRedisTracker({0x2195b20, 0xc001e99040}, {0x7f94a8a5a818, 0xc00056d810}, {0xc00227f2c0, 0x1a}, {{0x1ea52ea, 0x4}, {0x0, 0x0}, ...}, ...)
2025-02-23_09:38:51.18625 /var/cache/omnibus/src/gitlab-kas/internal/module/agentk2kas_tunnel/router/tracker.go:86 +0x3ba
2025-02-23_09:38:51.18626 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd/kas/kasapp.newAgentServer(0xc00061b4e0, 0xc000aa6bb0, 0xc0005d6070, {0x2175680, 0xc000da1c20}, {0x2195b20, 0xc001e99040}, 0xc00056d480, 0xc000441090, {0x7f94a8a5a818, ...}, ...)
2025-02-23_09:38:51.18629 /var/cache/omnibus/src/gitlab-kas/cmd/kas/kasapp/agent_server.go:67 +0x152
2025-02-23_09:38:51.18630 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd/kas/kasapp.(*options).run(0xc00047c000, {0x2182d78, 0xc00047c040})
2025-02-23_09:38:51.18632 /var/cache/omnibus/src/gitlab-kas/cmd/kas/kasapp/command.go:252 +0xb66
2025-02-23_09:38:51.18633 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd/kas/kasapp.NewCommand.func1(0xc00036a000?, {0xc000482280?, 0x7?, 0x1ea535a?})
2025-02-23_09:38:51.18634 /var/cache/omnibus/src/gitlab-kas/cmd/kas/kasapp/command.go:868 +0x85
2025-02-23_09:38:51.18637 github.com/spf13/cobra.(*Command).execute(0xc0002bc308, {0xc000052190, 0x2, 0x2})
2025-02-23_09:38:51.18639 /root/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:989 +0xa91
2025-02-23_09:38:51.18640 github.com/spf13/cobra.(*Command).ExecuteC(0xc0002bc308)
2025-02-23_09:38:51.18641 /root/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1117 +0x3ff
2025-02-23_09:38:51.18641 github.com/spf13/cobra.(*Command).Execute(...)
2025-02-23_09:38:51.18641 /root/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041
2025-02-23_09:38:51.18642 github.com/spf13/cobra.(*Command).ExecuteContext(...)
2025-02-23_09:38:51.18642 /root/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1034
2025-02-23_09:38:51.18644 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.run(0xc0002bc308)
2025-02-23_09:38:51.18644 /var/cache/omnibus/src/gitlab-kas/cmd/utils.go:27 +0xd1
2025-02-23_09:38:51.18644 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17/cmd.Run(0xc0002bc308)
2025-02-23_09:38:51.18645 /var/cache/omnibus/src/gitlab-kas/cmd/utils.go:17 +0xc5
2025-02-23_09:38:51.18646 main.main()
2025-02-23_09:38:51.18647 /var/cache/omnibus/src/gitlab-kas/cmd/kas/main.go:9 +0x18
I am not using KAS, there is no configuration regarding it. Putting gitlab_kas['enable'] = false into GITLAB_OMNIBUS_CONFIG fixes the issue.
Edited by Oldřich Jedlička