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

Add apk upgrade to Common.gitlab-ci.yml #781

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

plopesc
Copy link
Contributor

@plopesc plopesc commented Feb 18, 2025

In our Gitlab CI pipeline we are getting this error while node is being setup.

$ apk add --update nodejs npm
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
fetch https://dl-4.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
(1/5) Installing ada-libs (2.9.2-r1)
(2/5) Installing simdjson (3.10.1-r0)
(3/5) Installing simdutf (5.6.3-r0)
(4/5) Installing nodejs (22.13.1-r0)
(5/5) Installing npm (10.9.1-r0)
Executing busybox-1.37.0-r12.trigger
OK: 327 MiB in 200 packages
$ npm install -g yarn
Error relocating /usr/bin/node: sqlite3session_attach: symbol not found
Error relocating /usr/bin/node: sqlite3changeset_apply: symbol not found
Error relocating /usr/bin/node: sqlite3session_create: symbol not found
Error relocating /usr/bin/node: sqlite3session_changeset: symbol not found
Error relocating /usr/bin/node: sqlite3session_patchset: symbol not found
Error relocating /usr/bin/node: sqlite3session_delete: symbol not found

To mitigate it, we added the following step at the beginning of the process:
apk upgrade

Creating this PR to check if this could be considered to be integrated in the main drainpipe process.

@deviantintegral
Copy link
Member

fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.21/community/x86_64/APKINDEX.tar.gz
fetch https://dl-4.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz

Note v3.20 and v3.21. That seems broken! I think they all need to be the same version in the apk configuration file, or perhaps you can just remove the last line.

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

Successfully merging this pull request may close these issues.

2 participants