hatchet-v1-archived icon indicating copy to clipboard operation
hatchet-v1-archived copied to clipboard

hatchet not working on alma8

Open thatsk opened this issue 1 year ago • 6 comments

hatchet --help
hatchet: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by hatchet)
hatchet: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by hatchet)

thatsk avatar May 17 '23 12:05 thatsk

 rpm -qa | grep libc
glibc-2.28-211.el8.x86_64

thatsk avatar May 17 '23 12:05 thatsk

https://repo.almalinux.org/almalinux/8.7/BaseOS/x86_64/os/Packages/

thatsk avatar May 17 '23 12:05 thatsk

Hey @thatsk, thanks for the report. Looks like a similar issue to https://github.com/golang/go/issues/58550.

Are you able to build the Hatchet binaries from source? Via:

go build -ldflags="-w -s -X 'main.Version=v0.1.0-alpha.1'" -a -o ./amd64/hatchet-server ./cmd/hatchet-server
go build -ldflags="-w -s -X 'github.com/hatchet-dev/hatchet/cmd/hatchet-admin/cli.Version=v0.1.0-alpha.1''" -a -o ./amd64/hatchet-admin ./cmd/hatchet-admin
go build -ldflags="-w -s -X 'github.com/hatchet-dev/hatchet/cmd/hatchet-cli/cli.Version=v0.1.0-alpha.1''" -a -o ./amd64/hatchet ./cmd/hatchet-cli

abelanger5 avatar May 31 '23 22:05 abelanger5

@abelanger5 think we have an extra ' for building hatchet-admin and hatchet-cli, right after the alpha.1 part. This worked on my lab server:

go build -ldflags="-w -s -X 'main.Version=v0.1.0-alpha.1'" -a -o ./amd64/hatchet-server ./cmd/hatchet-server

go build -ldflags="-w -s -X 'github.com/hatchet-dev/hatchet/cmd/hatchet-admin/cli.Version=v0.1.0-alpha.1'" -a -o ./amd64/hatchet-admin ./cmd/hatchet-admin

go build -ldflags="-w -s -X 'github.com/hatchet-dev/hatchet/cmd/hatchet-cli/cli.Version=v0.1.0-alpha.1'" -a -o ./amd64/hatchet ./cmd/hatchet-cli

Faced the same issue with the installer version of hatchet, but looks the compiled versions are working fine.

rudimk avatar Jun 10 '23 12:06 rudimk

any issues we have found and why do we need to use compiled version ?

thatsk avatar Jun 12 '23 11:06 thatsk

Hey @thatsk, thanks for the report. Looks like a similar issue to golang/go#58550.

Are you able to build the Hatchet binaries from source? Via:

go build -ldflags="-w -s -X 'main.Version=v0.1.0-alpha.1'" -a -o ./amd64/hatchet-server ./cmd/hatchet-server
go build -ldflags="-w -s -X 'github.com/hatchet-dev/hatchet/cmd/hatchet-admin/cli.Version=v0.1.0-alpha.1''" -a -o ./amd64/hatchet-admin ./cmd/hatchet-admin
go build -ldflags="-w -s -X 'github.com/hatchet-dev/hatchet/cmd/hatchet-cli/cli.Version=v0.1.0-alpha.1''" -a -o ./amd64/hatchet ./cmd/hatchet-cli

The issue seems like what's described by @abelanger5 there in the linked issue - while I do have glibc in my lab, it wasn't being picked up. Compilation's pretty easy so I reckon one can always compile the binaries themselves after pulling in the latest changes.

rudimk avatar Jun 12 '23 11:06 rudimk