Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR self-tests fail in docker stage: mbuffer (no such package) #589

Closed
jimklimov opened this issue Oct 21, 2022 · 4 comments
Closed

PR self-tests fail in docker stage: mbuffer (no such package) #589

jimklimov opened this issue Oct 21, 2022 · 4 comments
Labels

Comments

@jimklimov
Copy link
Contributor

e.g. https://github.com/oetiker/znapzend/actions/runs/3297260330/jobs/5437862941

...
(33/33) Installing zfs (0.8.3-r1)
Executing busybox-1.31.1-r11.trigger
Executing ca-certificates-20191127-r2.trigger
OK: 67 MiB in 47 packages
fetch http://dl-3.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-3.alpinelinux.org/alpine/edge/community/: UNTRUSTED signature
fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
  mbuffer (no such package):
    required by: world[mbuffer]
The command '/bin/sh -c apk add --no-cache zfs curl bash autoconf automake nano perl=${PERL_VERSION} openssh &&   apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ mbuffer &&   ln -s /dev/stdout /var/log/syslog &&   ln -s /usr/bin/perl /usr/local/bin/perl' returned a non-zero code: 1
Error: Process completed with exit code 1.
@jimklimov jimklimov changed the title PR self-tests fail in docker stage PR self-tests fail in docker stage: mbuffer (no such package) Oct 21, 2022
@jimklimov
Copy link
Contributor Author

Empirically, this seems to only run for the first build in a PR. If I later iterate and add commits, only the 3 perl version tests run and result is green :)

@jimklimov
Copy link
Contributor Author

So far failed to fix but can reproduce: with Alpine 3.11 it seems the trusted keys have expired vs. "community" repo (with mbuffer). Whether I use newer alpine 3.16 for newer key trust, or ignore security issues, it fails to install mbuffer because:

...
#6 4.130 OK: 70 MiB in 50 packages
#6 4.187 /lib/libcrypto.so.1.1
#6 4.296 /lib/libcrypto.so.3
#6 4.296 /usr/lib/libcrypto.so.1.1
#6 4.296 /usr/lib/libcrypto.so.3
#6 4.300 fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
#6 4.690 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz
#6 4.915 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz
#6 5.195 ERROR: unable to select packages:
#6 5.243   so:libcrypto.so.3 (no such package):
#6 5.243     required by: mbuffer-20220418-r1[so:libcrypto.so.3]
------
executor failed running [/bin/sh -c \
apk add --no-cache zfs curl bash autoconf automake nano perl=${PERL_VERSION} openssh libcrypto3 \
&&   apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ libcrypto3 \
&&   find / -name 'libcrypto*.so*' \
&&   apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ mbuffer \
&&   ln -s /dev/stdout /var/log/syslog '
&&   ln -s /usr/bin/perl /usr/local/bin/perl
]: exit code: 2

(list of files on top of log is from added debug find)

So the lib is there, dependency is not resolved, and many googlable issues over the years regarding those keywords :\

@jimklimov
Copy link
Contributor Author

Seems like best reliable way forward is to install Alpine from main distro, and build/install custom mbuffer :\

@stale
Copy link

stale bot commented Dec 21, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 21, 2022
@stale stale bot closed this as completed Dec 29, 2022
oetiker added a commit that referenced this issue Mar 13, 2024
…635)

* Dockerfile: fail fast if mbuffer is not compatible/fetchable [#589]

* Dockerfile: comment that Alpine version bumps may require Perl bumps

* Update expect.txt

---------

Co-authored-by: Tobias Oetiker <tobi@oetiker.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant