Skip to content

Odd incus exec regression with VMs in Debian packaging #2513

@gibmat

Description

@gibmat

Is there an existing issue for this?

  • There is no existing issue for this bug

Is this happening on an up to date version of Incus?

  • This is happening on a supported version of Incus

Incus system details

Seen in both Incus 6.0.5 and 6.17.

Reported upstream as bug [#1114918](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1114918).

Instance details

No response

Instance log

No response

Current behavior

No response

Expected behavior

No response

Steps to reproduce

Commit 4e828ca seems to have introduced some sort of regression that breaks running incus exec against a VM. When doing so the message "Error: websocket: bad handshake" is returned. If trying with a container, it works just fine.

Making this more interesting, if the incus-agent binary that's running within the VM is compiled "normally" via

CGO_LDFLAGS_ALLOW="-Wl,-z,now" CGO_ENABLED=0 go build -trimpath -tags=agent,netgo ./cmd/incus-agent/

it works, but when compiled using the dependencies as packaged by Debian it breaks

CGO_LDFLAGS_ALLOW="-Wl,-z,now" CGO_ENABLED=0 GOPATH=/usr/share/gocode/:/home/gibmat/ GOTOOLCHAIN=local GO111MODULE=off go build -trimpath -tags=agent,netgo ./cmd/incus-agent/

The first obvious check was if any libraries that Incus depends on are terribly out of date in Debian, and nothing really jumped out at me. The commit I bisected down to actually removes the use of gorilla/mux in favor of built-in libraries.

I'm not sure what else to try poking at to figure out why this is breaking for Debian's packaging. If it was a "real" regression (for lack of a better word), I'd expect the Zabbly packaging to also be experiencing this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    IncompleteWaiting on more information from reporter

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions