AdoptOpenJDK/openjdk-docker

JDK 16 tumbleweed images are failing to build due to installation failure of `curl`

bharathappali opened this issue · 5 comments

Dockerfile : https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/16/jdk/tumbleweed/Dockerfile.hotspot.releases.full

Failure Log:

Step 3/7 : RUN zypper install --no-recommends -y timezone openssl curl ca-certificates fontconfig gzip tar     && zypper update -y; zypper clean --all
 ---> Running in 01c0135f4f7e
Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [.error]
Repository 'openSUSE-Tumbleweed-Oss' is invalid.
[repo-oss|http://download.opensuse.org/ports/armv7hl/tumbleweed/repo/oss/] Valid metadata not found at specified URL
History:
 - [|] Error trying to read from 'http://download.opensuse.org/ports/armv7hl/tumbleweed/repo/oss/'
 - Timeout exceeded when accessing 'http://download.opensuse.org/ports/armv7hl/tumbleweed/repo/oss/content'.

Please check if the URIs defined for this repository are pointing to a valid repository.
Warning: Skipping repository 'openSUSE-Tumbleweed-Oss' because of the above error.
Retrieving repository 'openSUSE-Tumbleweed-Update' metadata [.error]
Repository 'openSUSE-Tumbleweed-Update' is invalid.
[repo-update|http://download.opensuse.org/ports/armv7hl/update/tumbleweed/] Valid metadata not found at specified URL
History:
 - [|] Error trying to read from 'http://download.opensuse.org/ports/armv7hl/update/tumbleweed/'
 - Timeout exceeded when accessing 'http://download.opensuse.org/ports/armv7hl/update/tumbleweed/content'.

Please check if the URIs defined for this repository are pointing to a valid repository.
Some of the repositories have not been refreshed because of an error.
Warning: Skipping repository 'openSUSE-Tumbleweed-Update' because of the above error.
Loading repository data...
Reading installed packages...
No provider of 'curl' found.
No provider of 'fontconfig' found.
No provider of 'gzip' found.'ca-certificates' is already installed.
Package 'ca-certificates' is not available in your repositories. Cannot reinstall, upgrade, or downgrade.
'curl' not found in package names. Trying capabilities.
'fontconfig' not found in package names. Trying capabilities.
'gzip' not found in package names. Trying capabilities.

No provider of 'openssl' found.
No provider of 'tar' found.
No provider of 'timezone' found.
'openssl' not found in package names. Trying capabilities.
'tar' not found in package names. Trying capabilities.
'timezone' not found in package names. Trying capabilities.
All repositories have been cleaned up.

http://download.opensuse.org/ports/armv7hl/tumbleweed/repo/oss/armv7hl/ is missing curl package, as the docker image build process expects curl to be installed we need to check if we can install curl by any other way as there is no provider in the repository that zypper is trying to install from

It looks like the curl package is available, sorry updated incorrectly earlier. Will check why it's not able to get it from there.

Tried to install curl via zypper and sometimes it's showing me the error:

Step 3/7 : RUN zypper install --no-recommends -y timezone openssl curl ca-certificates fontconfig gzip tar     && zypper update -y; zypper clean --all
 ---> Running in bc1e0eaf22cb
Retrieving repository 'openSUSE-Tumbleweed-Oss' metadata [.The futex facility returned an unexpected error code.
All repositories have been cleaned up.
Removing intermediate container bc1e0eaf22cb

I expect it's a problem from tumbleweed side or at zypper end. Jus to make sure I have raised an issue at zypper repository openSUSE/zypper#387

@bharathappali is it happening locally on your side ? Or on adoptium jenkins builds ?

sxa commented

The tumbleweed builds have been failing on the adopt CI systems. @bharathappali Can you keep this issue updated with currnet progress please? I believe you have determined that we have different issues on three of the architectures now?

Or on adoptium jenkins builds ?

@grzesuav as @sxa mentioned it's happening on adopt jenkins build

Can you keep this issue updated with current progress, please?

Sure @sxa

I believe you have determined that we have different issues on three of the architectures now?

Yes, On ARM the failure is due to curl installation problem. Packages are not getting installed as zypper couldn't installed them for some tumbleweed internal issue Ref: openSUSE/zypper#387

On s390x OpenJ9 images are failing on tumbleweed due to permissions to run catalina.sh. other images are getting created successfully

On PPC64LE OpenJ9 images are failling on tumbleweed due to some error in generating SCC I'm currently debugging that issue