diff --git a/internal/cmd/commands/server/server.go b/internal/cmd/commands/server/server.go index 36cd6df870..a088c89933 100644 --- a/internal/cmd/commands/server/server.go +++ b/internal/cmd/commands/server/server.go @@ -208,6 +208,12 @@ func (c *Command) Run(args []string) int { return base.CommandUserError } } + if c.Config.Controller != nil { + if c.Config.Worker.Name == c.Config.Controller.Name { + c.UI.Error("Controller and worker cannot be configured with the same name.") + return base.CommandUserError + } + } } if c.Config.DefaultMaxRequestDuration != 0 {