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

Cannot rebuild local dev container for nuget #7438

Closed
1 task done
TobiasLaving opened this issue Jun 15, 2023 · 3 comments · Fixed by #7442
Closed
1 task done

Cannot rebuild local dev container for nuget #7438

TobiasLaving opened this issue Jun 15, 2023 · 3 comments · Fixed by #7442
Labels
T: bug 🐞 Something isn't working

Comments

@TobiasLaving
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Package ecosystem

nuget

Package manager version

No response

Language version

No response

Manifest location and content before the Dependabot update

No response

dependabot.yml content

No response

Updated dependency

No response

What you expected to see, versus what you actually saw

Trying to rebuild the dev docker container result in a crash:

[tobias@tobias-expertbook dependabot-core]$ bin/docker-dev-shell nuget --rebuild
 > rebuild of dependabot/dependabot-core-development-nuget requested
=> building image from Dockerfile
[+] Building 0.7s (39/40)                                                                                                                          
 => [internal] load build definition from Dockerfile.updater-core                                                                             0.0s
 => => transferring dockerfile: 6.01kB                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                             0.0s
 => => transferring context: 393B                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/ruby:3.1.4                                                                                 0.4s
 => [internal] load metadata for docker.io/library/ubuntu:20.04                                                                               0.4s
 => importing cache manifest from ghcr.io/dependabot/dependabot-updater-core                                                                  0.0s
 => [internal] load build context                                                                                                             0.0s
 => => transferring context: 2.59kB                                                                                                           0.0s
 => FROM docker.io/library/ruby:3.1.4@sha256:3800493b343028cc8c49ff6206fe615c8a57b7e0a796b49f6609a62364726844                                 0.0s
 => [stage-0  1/33] FROM docker.io/library/ubuntu:20.04@sha256:db8bf6f4fb351aa7a26e27ba2686cf35a6a409f65603e59d4c203e58387dc6b3               0.0s
 => CACHED [stage-0  2/33] RUN apt-get update   && apt-get upgrade -y   && apt-get install -y --no-install-recommends     build-essential     0.0s
 => CACHED [stage-0  3/33] RUN if ! getent group "1000"; then groupadd --gid "1000" dependabot ;      else GROUP_NAME=$(getent group 1000 |   0.0s
 => CACHED [stage-0  4/33] WORKDIR /home/dependabot                                                                                           0.0s
 => CACHED [stage-0  5/33] RUN curl -sL https://github.com/dependabot/git-shim/releases/download/v1.4.0/git-v1.4.0-linux-amd64.tar.gz -o git  0.0s
 => CACHED [stage-0  6/33] COPY --chown=dependabot:dependabot .rubocop.yml .rubocop.yml                                                       0.0s
 => CACHED [stage-0  7/33] COPY --chown=dependabot:dependabot .ruby-version .ruby-version                                                     0.0s
 => CACHED [stage-0  8/33] COPY --chown=dependabot:dependabot omnibus omnibus                                                                 0.0s
 => CACHED [stage-0  9/33] COPY --chown=dependabot:dependabot updater/Gemfile updater/Gemfile.lock dependabot-updater/                        0.0s
 => CACHED [stage-0 10/33] COPY --chown=dependabot:dependabot common/Gemfile common/dependabot-common.gemspec common/                         0.0s
 => CACHED [stage-0 11/33] COPY --chown=dependabot:dependabot common/lib/dependabot.rb common/lib/dependabot.rb                               0.0s
 => CACHED [stage-0 12/33] COPY --chown=dependabot:dependabot bundler/Gemfile bundler/dependabot-bundler.gemspec bundler/                     0.0s
 => CACHED [stage-0 13/33] COPY --chown=dependabot:dependabot cargo/Gemfile cargo/dependabot-cargo.gemspec cargo/                             0.0s
 => CACHED [stage-0 14/33] COPY --chown=dependabot:dependabot composer/Gemfile composer/dependabot-composer.gemspec composer/                 0.0s
 => CACHED [stage-0 15/33] COPY --chown=dependabot:dependabot docker/Gemfile docker/dependabot-docker.gemspec docker/                         0.0s
 => CACHED [stage-0 16/33] COPY --chown=dependabot:dependabot elm/Gemfile elm/dependabot-elm.gemspec elm/                                     0.0s
 => CACHED [stage-0 17/33] COPY --chown=dependabot:dependabot git_submodules/Gemfile git_submodules/dependabot-git_submodules.gemspec git_su  0.0s
 => CACHED [stage-0 18/33] COPY --chown=dependabot:dependabot github_actions/Gemfile github_actions/dependabot-github_actions.gemspec github  0.0s
 => CACHED [stage-0 19/33] COPY --chown=dependabot:dependabot go_modules/Gemfile go_modules/dependabot-go_modules.gemspec go_modules/         0.0s
 => CACHED [stage-0 20/33] COPY --chown=dependabot:dependabot gradle/Gemfile gradle/dependabot-gradle.gemspec gradle/                         0.0s
 => CACHED [stage-0 21/33] COPY --chown=dependabot:dependabot hex/Gemfile hex/dependabot-hex.gemspec hex/                                     0.0s
 => CACHED [stage-0 22/33] COPY --chown=dependabot:dependabot maven/Gemfile maven/dependabot-maven.gemspec maven/                             0.0s
 => CACHED [stage-0 23/33] COPY --chown=dependabot:dependabot npm_and_yarn/Gemfile npm_and_yarn/dependabot-npm_and_yarn.gemspec npm_and_yarn  0.0s
 => CACHED [stage-0 24/33] COPY --chown=dependabot:dependabot nuget/Gemfile nuget/dependabot-nuget.gemspec nuget/                             0.0s
 => CACHED [stage-0 25/33] COPY --chown=dependabot:dependabot pub/Gemfile pub/dependabot-pub.gemspec pub/                                     0.0s
 => CACHED [stage-0 26/33] COPY --chown=dependabot:dependabot python/Gemfile python/dependabot-python.gemspec python/                         0.0s
 => CACHED [stage-0 27/33] COPY --chown=dependabot:dependabot terraform/Gemfile terraform/dependabot-terraform.gemspec terraform/             0.0s
 => CACHED [stage-0 28/33] RUN for ecosystem in git_submodules terraform github_actions hex elm docker nuget maven gradle cargo composer go_  0.0s
 => CACHED [stage-0 29/33] WORKDIR /home/dependabot/dependabot-updater                                                                        0.0s
 => CACHED [stage-0 30/33] COPY --from=ruby:3.1.4 --chown=dependabot:dependabot /usr/local /usr/local                                         0.0s
 => CACHED [stage-0 31/33] RUN curl -sL https://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz -o libyaml.tar.gz &&   mkdir -p /home/dependab  0.0s
 => ERROR [stage-0 32/33] RUN gem install bundler -v 2.4.13 --no-document &&  rm -rf /var/lib/gems/*/cache/* &&  bundle config set --global   0.2s
------
 > [stage-0 32/33] RUN gem install bundler -v 2.4.13 --no-document &&  rm -rf /var/lib/gems/*/cache/* &&  bundle config set --global build.psych --with-libyaml-source-dir=/home/dependabot/src/libyaml/yaml-0.2.5 &&  bundle config set --local path 'vendor' &&  bundle config set --local frozen 'true' &&  bundle config set --local without 'development' &&  bundle install &&  rm -rf ~/.bundle/cache:
#0 0.188 /usr/local/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/bin/ruby)
#0 0.188 /usr/local/bin/ruby: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /usr/local/lib/libruby.so.3.1)
#0 0.188 /usr/local/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /usr/local/lib/libruby.so.3.1)
#0 0.188 /usr/local/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /usr/local/lib/libruby.so.3.1)
#0 0.188 /usr/local/bin/ruby: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/lib/libruby.so.3.1)
------
Dockerfile.updater-core:108
--------------------
 107 |     
 108 | >>> RUN gem install bundler -v $BUNDLER_V2_VERSION --no-document && \
 109 | >>>  rm -rf /var/lib/gems/*/cache/* && \
 110 | >>>  bundle config set --global build.psych --with-libyaml-source-dir=$DEPENDABOT_HOME/src/libyaml/yaml-$LIBYAML_VERSION && \
 111 | >>>  bundle config set --local path 'vendor' && \
 112 | >>>  bundle config set --local frozen 'true' && \
 113 | >>>  bundle config set --local without 'development' && \
 114 | >>>  bundle install && \
 115 | >>>  rm -rf ~/.bundle/cache
 116 |     
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c gem install bundler -v $BUNDLER_V2_VERSION --no-document &&  rm -rf /var/lib/gems/*/cache/* &&  bundle config set --global build.psych --with-libyaml-source-dir=$DEPENDABOT_HOME/src/libyaml/yaml-$LIBYAML_VERSION &&  bundle config set --local path 'vendor' &&  bundle config set --local frozen 'true' &&  bundle config set --local without 'development' &&  bundle install &&  rm -rf ~/.bundle/cache" did not complete successfully: exit code: 1

Native package manager behavior

No response

Images of the diff or a link to the PR, issue, or logs

No response

Smallest manifest that reproduces the issue

No response

@sigurdm
Copy link
Contributor

sigurdm commented Jun 15, 2023

I experienced the same (building container for pub).

I did a bisect, and think this is related to: #7014, before that it doesn't seem to happen ... not sure why this first shows up now.

Maybe this comment is on to something: #7014 (review) ... seems like some dynamic linking is failing...

@Nishnha Nishnha moved this to Next in Dependabot Jun 15, 2023
@Nishnha
Copy link
Member

Nishnha commented Jun 15, 2023

Looks like this was caused by a new Debian release!

The Docker image we use was pinned to Debian Bullseye but now the ruby:3.1.4 tag points to Debian Bookworm

Screenshot 2023-06-15 at 1 44 26 PM

This patch should fix things: #7442

I'll leave this issue open until we get the fix merged into main.

@TobiasLaving
Copy link
Contributor Author

Lovely, thanks @Nishnha !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug 🐞 Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants