Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

hatchet not working on alma8 #49

Open
thatsk opened this issue May 17, 2023 · 6 comments
Open

hatchet not working on alma8 #49

thatsk opened this issue May 17, 2023 · 6 comments

Comments

@thatsk
Copy link

thatsk commented May 17, 2023

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
Copy link
Author

thatsk commented May 17, 2023

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

@thatsk
Copy link
Author

thatsk commented May 17, 2023

@abelanger5
Copy link
Contributor

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

@rudimk
Copy link

rudimk commented Jun 10, 2023

@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.

@thatsk
Copy link
Author

thatsk commented Jun 12, 2023

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

@rudimk
Copy link

rudimk commented Jun 12, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants