kubernetes-client / gen

Common generator scripts for all client libraries
Apache License 2.0
148 stars 146 forks source link

Error installing dotnet-sdk-5.0 #203

Closed fombico closed 3 years ago

fombico commented 3 years ago

Hello, I am trying to run java-crd-cmd.sh on the repo, and I see it fails installing dotnet-sdk-5.0:

KUBERNETES_CRD_GROUP_PREFIX: {REMOVED}
OPENAPI_MODEL_LENGTH: 2
PACKAGE_NAME:  {REMOVED}
GENERATE_APIS: true
CLIENT_VERSION: 5.0-SNAPSHOT
OUTPUT_DIR: /tmp/gen-output
HIDE_GENERATION_TIMESTAMP: true
LIBRARY: okhttp-gson

rendering settings file to /tmp/settings
reading input openapi specs
--- Building docker image kubernetes-java-client-gen-with-openapi-generator:v1...
[+] Building 1.5s (17/24)
 => [internal] load build definition from Dockerfile                                                                                                                                                           0.0s
 => => transferring dockerfile: 2.67kB                                                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                                                              0.0s
 => => transferring context: 2B                                                                                                                                                                                0.0s
 => [internal] load metadata for docker.io/library/maven:3.5-jdk-8-slim                                                                                                                                        0.3s
 => [internal] load build context                                                                                                                                                                              0.0s
 => => transferring context: 90.63kB                                                                                                                                                                           0.0s
 => [ 1/20] FROM docker.io/library/maven:3.5-jdk-8-slim@sha256:ec1edb56d6803521e65f83769063bfe34e4e5264b7e13e90f2c38823ea37503c                                                                                0.0s
 => CACHED [ 2/20] RUN apt-get update && apt-get -qq -y install libunwind8 libicu57 libssl1.0 liblttng-ust0 libcurl3 libuuid1 libkrb5-3 zlib1g                                                                 0.0s
 => CACHED [ 3/20] RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -                                                                                                                                 0.0s
 => CACHED [ 4/20] RUN apt-get update && apt-get -y install     nodejs     libunwind8-dev     && rm -rf /var/lib/apt/lists/*                                                                                   0.0s
 => CACHED [ 5/20] RUN apt-get update && apt-get -y install git python-pip && pip install urllib3==1.24.2                                                                                                      0.0s
 => CACHED [ 6/20] RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg                                                                                              0.0s
 => CACHED [ 7/20] RUN mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/                                                                                                                                            0.0s
 => CACHED [ 8/20] RUN curl https://packages.microsoft.com/config/debian/9/prod.list > prod.list                                                                                                               0.0s
 => CACHED [ 9/20] RUN mv prod.list /etc/apt/sources.list.d/microsoft-prod.list                                                                                                                                0.0s
 => CACHED [10/20] RUN chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg                                                                                                                                0.0s
 => CACHED [11/20] RUN chown root:root /etc/apt/sources.list.d/microsoft-prod.list                                                                                                                             0.0s
 => CACHED [12/20] RUN apt-get update                                                                                                                                                                          0.0s
 => ERROR [13/20] RUN apt-get install -yy -q dotnet-sdk-5.0                                                                                                                                                    1.0s
------
 > [13/20] RUN apt-get install -yy -q dotnet-sdk-5.0:
#16 0.224 Reading package lists...
#16 0.769 Building dependency tree...
#16 0.903 Reading state information...
#16 0.984 The following additional packages will be installed:
#16 0.984   aspnetcore-runtime-5.0 aspnetcore-targeting-pack-5.0 dotnet-apphost-pack-5.0
#16 0.984   dotnet-host dotnet-hostfxr-5.0 dotnet-runtime-5.0 dotnet-runtime-deps-5.0
#16 0.985   dotnet-targeting-pack-5.0 netstandard-targeting-pack-2.1
#16 1.004 The following NEW packages will be installed:
#16 1.004   aspnetcore-runtime-5.0 aspnetcore-targeting-pack-5.0 dotnet-apphost-pack-5.0
#16 1.004   dotnet-host dotnet-hostfxr-5.0 dotnet-runtime-5.0 dotnet-runtime-deps-5.0
#16 1.005   dotnet-sdk-5.0 dotnet-targeting-pack-5.0 netstandard-targeting-pack-2.1
#16 1.007 0 upgraded, 10 newly installed, 0 to remove and 47 not upgraded.
#16 1.007 Need to get 95.5 MB of archives.
#16 1.007 After this operation, 396 MB of additional disk space will be used.
#16 1.007 WARNING: The following packages cannot be authenticated!
#16 1.007   dotnet-runtime-deps-5.0 dotnet-host dotnet-hostfxr-5.0 dotnet-runtime-5.0
#16 1.007   aspnetcore-runtime-5.0 dotnet-targeting-pack-5.0
#16 1.007   aspnetcore-targeting-pack-5.0 dotnet-apphost-pack-5.0
#16 1.007   netstandard-targeting-pack-2.1 dotnet-sdk-5.0
#16 1.013 E: There were unauthenticated packages and -y was used without --allow-unauthenticated
------
executor failed running [/bin/sh -c apt-get install -yy -q dotnet-sdk-5.0]: exit code: 100

When I checkout the repo at 6694faf24cea3884e9c51fb316fc206a53dfcec5, it is working.

However, when I checkout the repo at 59b81c6360ce1a453594d6e6570f7d70ff9bfb86, I get the same error. So I think the cause is due to merging #201 - link new csharp generator

brendandburns commented 3 years ago

I will try to replicate this.

cc @tg123

tg123 commented 3 years ago

could please docker system prune and try again

fombico commented 3 years ago

That worked, thanks for the quick response. Closing issue.