Error: "502 Bad Gateway" when installing VMware Cloud Director Encryption Management
search cancel

Error: "502 Bad Gateway" when installing VMware Cloud Director Encryption Management

book

Article ID: 433755

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • VMware Cloud Director Encryption Management fails on the API "'https://cloud.example.com/cloudapi/1.0.0/entities/types/vmware/solutions_add_on_task" with the error below when running the command ./vcdemctl addon install:

    DEBUG   Loading addon manifests
    DEBUG   Found existing version of Encryption Management version=1.2.0
    INFO       Upgrading Encryption Management               installed=1.2.0 target=1.2.1-24749584
    DEBUG   Copying files to installation directory
    DEBUG   Loading server configuration file
    INFO       Configuring connectivity to Cloud Director
    INFO       Removing existing addon manifest
    ERROR   cloud director endpoint https://cloud.example.com:443/cloudapi/1.0.0/entities/types/vmware/solutions_add_on_task?page=1&pageSize=128&sortAsc=name failed: <html><body> <h1>502 Bad Gateway</h1>
    The server returned an invalid or incomplete response.
    </body></html>
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/client/vcd.(*Client).request(/opt/src/client/vcd/client.go:252)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/client/vcd.(*Request).do(/opt/src/client/vcd/client_request.go:213)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/client/vcd.(*Request).Get(/opt/src/client/vcd/client_request.go:175)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/client/vcd.(*EntityRequest[...]).queryPage(/opt/src/client/vcd/client_entity.go:524)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/client/vcd.(*EntityRequest[...]).QueryAl1(/opt/src/client/vcd/client_entity.go:205)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/client/vcd.GetRunt imeEntities[...](/opt/src/client/vcd/rde_entity.go:153)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/cmd/byokctl/addon.(*Manager).removeEntitiesOfType(/opt/src/cmd/byokctl/addon/rde.go:160)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/cmd/byokctl/addon.(*Manager).purgeAddons(/opt/src/cmd/byokct1/addon/addon.go:259)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/cmd/byokctl/addon.(*Manager).bootstrapAddonManifest(/opt/src/cmd/byokct1/addon/addon.go:90)
            at github-vcf.<domain_name>/vcf/vcd-addon-byok/byok/cmd/byokctl/addon.(*Manager).Realize(/opt/src/cmd/byokct1/addon/manager.go:95)
            at main.NewAddonInstallCommand.func1(/opt/src/cmd/byokct1/addon.go:40)
            at main.(*CommandBuilder).Build.func3(/opt/src/cmd/byokctl/cmd.go:196)
            at github.com/urfave/cli/v2.(*Command).Run(/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:276)
            at github.com/urfave/cli/v2.(*Command).Run(/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:269)
            at github.com/urfave/cli/v2.(*Command).Run(/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:269)
            at github.com/urfave/cli/v2.(*App).RunContext(/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:333)
            at github.com/urfave/cli/v2.(*App).Run(/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:307)
            at main.main(/opt/src/cmd/byokctl/main.go:25)
            at runtime.main(/usr/local/go/src/runtime/proc.go:272)
            at runtime.goexit(/usr/local/go/src/runt ime/asm_amd64.s:1700): 502 Bad Gateway(502)

  • By running the API 'GET https://cloud.example.com/cloudapi/1.0.0/entities/types/vmware/solutions_add_on_task' from API explorer, a high number of results is returned.

Environment

VMware Cloud Director Encryption Management 1.2.1
VMware Cloud Director 10.6.x

Cause

Small size configured on the VMware Cloud Director load Balancer for the "http header size".

Resolution

Review the documentation VMware Cloud Director Cell Load Balancing Configuration and accordingly adjust the LB "http header size" configuration.