lab icon indicating copy to clipboard operation
lab copied to clipboard

[gotify] requires GLIBC_2.28

Open SalocinHB opened this issue 3 years ago • 9 comments

… but CentOS 7 only provides up to GLIBC_2.17

SalocinHB avatar Nov 08 '22 14:11 SalocinHB

+1

since gotify server version 2.1.7

@SalocinHB will you be able to provide GLIBC_2.28 (or higher) on uberspace7?

franok avatar Nov 12 '22 17:11 franok

I had a the same issue, thankfully i could build it on the space itself, so i can now run gotify 2.2.0

eitch avatar Dec 21 '22 06:12 eitch

will you be able to provide GLIBC_2.28 (or higher) on uberspace7?

sadly no @franok because this deeply linked to the OS, there unfortunately wont be a higher GLIBC on U7, but of course in following products

noave avatar Dec 28 '22 11:12 noave

thankfully i could build it on the space itself, so i can now run gotify 2.2.0 can you provide a solution for this in the guide @eitch ?

noave avatar Dec 28 '22 11:12 noave

I basically followed the steps required here: https://gotify.net/docs/dev-setup

# ssh into box, then execute the following commands

# first install gotify:
mkdir ~/gotify && cd ~/gotify
wget https://github.com/gotify/server/releases/latest/download/gotify-linux-amd64.zip
unzip gotify-linux-amd64.zip
wget -O config.yml https://raw.githubusercontent.com/gotify/server/master/config.example.yml
vi ~/etc/services.d/gotify.ini

# now build gotify
git clone https://github.com/gotify/server.git
cd server
git checkout v2.2.2
make download-tools
go get -d
cd ui
yarn
yarn build
cd ..
go run hack/packr/packr.go
export LD_FLAGS="-w -s -X main.Version=$(git describe --tags | cut -c 2-) -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod";
# don't run as it requires docker: make build-linux-amd64
# just run:
go build -ldflags="$LD_FLAGS" -o gotify-server
# replace previous binary:
mv gotify-server ../gotify-linux-amd64

I've sent in a PR for the doc: https://github.com/Uberspace/lab/pull/1463

eitch avatar Dec 29 '22 19:12 eitch

I just tested an upgrade to 2.2.2, this worked for me, by just executing all the commands again, and restarting the gotify service.

eitch avatar Dec 29 '22 19:12 eitch

can the mentioned PR to update the guide be merged?

franok avatar Jan 27 '23 13:01 franok

Good question. I haven't heard back yet on my PR

eitch avatar Jan 27 '23 16:01 eitch