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 use 19-ea due to SunCertPathBuilderException #323

Closed
2 tasks done
karussell opened this issue Apr 27, 2022 · 7 comments
Closed
2 tasks done

Cannot use 19-ea due to SunCertPathBuilderException #323

karussell opened this issue Apr 27, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@karussell
Copy link

Description:

We tried 19-ea but it failed with some SunCertPathBuilderException when fetching packages from maven:

Failed to read artifact descriptor for org.codehaus.plexus:plexus-utils:jar:3.0: Could not transfer artifact org.codehaus.plexus:plexus-utils:pom:3.0 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/3.0/plexus-utils-3.0.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

See discussion: #230 (comment)

I've also tried to set maven to 3.6.3 and disabled caching without success.

Task version:

v2 (I think?)

Platform:

  • Ubuntu

Runner type:

  • Hosted

Repro steps:

See config: https://github.com/graphhopper/graphhopper/blob/jdk_release_fix/.github/workflows/push-packages.yml#L18-L35
See log https://github.com/graphhopper/graphhopper/runs/6172054216?check_suite_focus=true

Expected behavior:

Run the build without error like in case of the stable JDKs like 18

@karussell karussell added bug Something isn't working needs triage labels Apr 27, 2022
@dmitry-shibanov
Copy link
Contributor

Hello @karussell. Thank you for your report. We'll investigate the issue.

@dmitry-shibanov
Copy link
Contributor

Sorry I pressed the wrong button

@dmitry-shibanov
Copy link
Contributor

Hello @karussell. Unfortunately, I have not found the root cause of the issue for now. As a temporary workaround I can suggest to use this code:

      - run: |
          download_url="https://download.java.net/java/early_access/jdk19/20/GPL/openjdk-19-ea+20_linux-x64_bin.tar.gz"
          wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
      - uses: actions/setup-java@v3
        with:
          distribution: 'jdkfile'
          jdkFile: ${{ runner.temp }}/java_package.tar.gz
          java-version: '19.0.0'
          architecture: x64

@dmitry-shibanov
Copy link
Contributor

Hello @karussell. Sorry for the late response. I've tested for the latest 19-ea version and it works as expected. For now I'm going to close the issue.

@karussell
Copy link
Author

karussell commented Apr 3, 2023

It looks like I once again cannot use 21-ea graphhopper/graphhopper#2789
This time the error seems to be a different one: "Could not find satisfied version for SemVer '21'. "

Is the "-ea" suffix an uncommon usage of this action and should we try a different approach? Or is it just too early after the release of JDK 20?

@IvanZosimov
Copy link
Contributor

Hi, @karussell 👋 It's just too early, for instance, "20-ea" syntax is working.

@karussell
Copy link
Author

Ah, ok. Thanks :) !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants