garden icon indicating copy to clipboard operation
garden copied to clipboard

Garden 0.12.43 fetch-tools fails on Alpine 3.15.0

Open jamesmeneghello opened this issue 3 years ago • 3 comments

Bug

Current Behavior

/garden/static # GARDEN_DISABLE_ANALYTICS=true GARDEN_DISABLE_VERSION_CHECK=true garden util fetch-tools --all --garden-image-build --logger-type=basic
Error relocating /garden/better_sqlite3.node: _ZSt28__throw_bad_array_new_lengthv: symbol not found

Reproducible example

docker run --rm -it alpine:3.15.0 ash

apk add bash curl docker-cli git openssl rsync ca-certificates tar gzip openssh-client libstdc++
mkdir /garden
cd /garden
export GARDEN_VERSION=0.12.43
curl -L -o garden.tar.gz https://github.com/garden-io/garden/releases/download/$GARDEN_VERSION/garden-$GARDEN_VERSION-alpine-amd64.tar.gz
tar -zxvf garden.tar.gz
mv alpine-amd64/* .
chmod +x garden
ln -s /garden/garden /usr/bin/garden
chmod +x /usr/bin/garden
cd /garden/static
GARDEN_DISABLE_ANALYTICS=true GARDEN_DISABLE_VERSION_CHECK=true garden util fetch-tools --all --garden-image-build --logger-type=basic

Workaround

Works fine for Garden 0.12.42

Your environment

  • OS: Alpine 3.15.0 amd64

garden version: 0.12.43

jamesmeneghello avatar Jul 21 '22 00:07 jamesmeneghello

Fix (specifically for this image):

apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/main libstdc++
rm /usr/lib/libstdc++.so.6 && ln -s /usr/lib/libstdc++.so.6.0.29 /usr/lib/libstdc++.so.6

jamesmeneghello avatar Jul 21 '22 00:07 jamesmeneghello

Thanks for reporting this @jamesmeneghello! We'll try to address this issue in the next patch release.

vvagaytsev avatar Jul 21 '22 09:07 vvagaytsev

@jamesmeneghello it looks like the wrong version of stdlibc++ is getting installed -- 6.0.28, while it should be 6.0.29.

Have you tried to use the --no-cache flag in the apk add bash curl docker-cli git openssl rsync ca-certificates tar gzip openssh-client libstdc++ command from the reproducible example? Could you try that to check if it helps? We use that flag to build a Garden image for Alpine, see alpine.Dockerfile.

By the way, does the same issue happen with this Garden build?

vvagaytsev avatar Jul 25 '22 08:07 vvagaytsev

This issue has been automatically marked as stale because it hasn't had any activity in 90 days. It will be closed in 14 days if no further activity occurs (e.g. changing labels, comments, commits, etc.). Please feel free to tag a maintainer and ask them to remove the label if you think it doesn't apply. Thank you for submitting this issue and helping make Garden a better product!

stale[bot] avatar Oct 29 '22 23:10 stale[bot]

Reopening this for now, feel free to close it if this has ben resolved in the meantime.

thsig avatar Nov 13 '22 17:11 thsig