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

Request to Disable IPv6 in Ubuntu Images to Enable JDK Installations #2482

Open
xingzhang-pku opened this issue Oct 10, 2024 · 5 comments
Open
Labels
kind/feature-request New feature or request

Comments

@xingzhang-pku
Copy link

Act version

act version 0.0.0-SNAPSHOT-a30d171

Feature description

Issue Description

We are encountering an issue where our continuous integration (CI) process fails during JDK installation via IPv6 connections. Specifically, attempts to access the JDK bundles from Azul's API through IPv6 consistently fail, while IPv4 connections are successful.

Affected Images

The issue affects the following Docker images used in our GitHub Actions workflows:

  • catthehacker/ubuntu:act-latest-20240822
  • catthehacker/ubuntu:act-22.04-20240822
  • catthehacker/ubuntu:act-20.04-20240822

Expected Behavior

We propose to disable IPv6 in the aforementioned Docker images to ensure reliable access to necessary external resources like JDK downloads during CI processes. This change would help not only our workflows but also other users who might face similar networking issues.

Steps to Reproduce

  1. Run a CI job using any of the above images.
  2. Attempt to install JDK from the following URL via IPv6: https://api.azul.com/zulu/download/community/v1.0/bundles/?os=linux&ext=tar.gz&bundle_type=jdk&javafx=false&arch=x86&hw_bitness=64

Additional Information

Disabling IPv6 would be a temporary solution until a more robust handling of IPv4 and IPv6 compatibility issues can be implemented. This adjustment would facilitate a smoother development and testing process for teams relying on these Docker images.

Thank you for considering this enhancement to support better CI configuration and stability.

@xingzhang-pku xingzhang-pku added the kind/feature-request New feature or request label Oct 10, 2024
@xingzhang-pku
Copy link
Author

xingzhang-pku commented Oct 10, 2024

@ChristopherHX Could you please review the above issue? Your assistance would be greatly appreciated. Thank you!

@sebastien-perpignane
Copy link
Contributor

sebastien-perpignane commented Oct 11, 2024

Hi,

How do you know it is related to IP v6 ? What kind of error do you get ?

Are you using setup-java to install the azul jdk ? or wget ? some other command ?

@xingzhang-pku
Copy link
Author

Thanks for your reply. I give the more detailed information below.

act command

act -j 'build_and_test' --rm -s GITHUB_TOKEN --use-new-action-cache --tool-cache-volume act-cache-adaa-polsl_RuleKit-bdcddd -P ubuntu-20.04=catthehacker/ubuntu:act-20.04-20240822 -P ubuntu-22.04=catthehacker/ubuntu:act-22.04-20240822 -P ubuntu-latest=catthehacker/ubuntu:act-latest-20240822

workflow

name: GitHub Actions CI

on:
 push:
    branches:
      - master
    paths-ignore:
      - '**.md'    
 pull_request:
    branches:
      - develop
      - master
    paths-ignore:
      - '**.md'    
 workflow_dispatch:

jobs:
  python_script:
    name: Checking Java project version
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.7]

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Checking Java project version
      continue-on-error: true
      run: |
        python ./.github/workflows/scripts/check_java_version.py
        
  build_and_test:
    name: Checking gradle build and running tests
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Build and test with Gradle
        run: ./adaa.analytics.rules/gradlew build

CI log

[GitHub Actions CI/Checking gradle build and running tests] 🚀  Start image=catthehacker/ubuntu:act-latest-20240822
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker pull image=catthehacker/ubuntu:act-latest-20240822 platform= username= forcePull=true
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker create image=catthehacker/ubuntu:act-latest-20240822 platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker run image=catthehacker/ubuntu:act-latest-20240822 platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[GitHub Actions CI/Checking gradle build and running tests] ⭐ Run Main actions/checkout@v2
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker cp src=/Data2/v-zhangxing/cache/adaa-polsl_RuleKit/. dst=/Data2/v-zhangxing/cache/adaa-polsl_RuleKit
[GitHub Actions CI/Checking gradle build and running tests]   ✅  Success - Main actions/checkout@v2
[GitHub Actions CI/Checking gradle build and running tests] ⭐ Run Main Set up JDK 1.8
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.20.4/x64/bin/node /var/run/act/actions/actions-setup-java@v1/dist/setup/index.js] user= workdir=
[GitHub Actions CI/Checking gradle build and running tests]   💬  ::debug::isExplicit: 
[GitHub Actions CI/Checking gradle build and running tests]   💬  ::debug::explicit? false
[GitHub Actions CI/Checking gradle build and running tests]   💬  ::debug::evaluating 0 versions
[GitHub Actions CI/Checking gradle build and running tests]   💬  ::debug::match not found
[GitHub Actions CI/Checking gradle build and running tests]   💬  ::debug::Downloading JDK from Azul
[GitHub Actions CI/Checking gradle build and running tests]   ❓  ::error::connect ENETUNREACH 2606:4700:4400::6812:23d4:443
[GitHub Actions CI/Checking gradle build and running tests]   ❌  Failure - Main Set up JDK 1.8
[GitHub Actions CI/Checking gradle build and running tests] exitcode '1': failure
[GitHub Actions CI/Checking gradle build and running tests] ⭐ Run Post Set up JDK 1.8
[GitHub Actions CI/Checking gradle build and running tests]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.20.4/x64/bin/node /var/run/act/actions/actions-setup-java@v1/dist/cleanup/index.js] user= workdir=
[GitHub Actions CI/Checking gradle build and running tests]   ✅  Success - Post Set up JDK 1.8
[GitHub Actions CI/Checking gradle build and running tests] Cleaning up container for job Checking gradle build and running tests
[GitHub Actions CI/Checking gradle build and running tests] 🏁  Job failed

==== STDERR ====
time="2024-10-11T15:46:54Z" level=info msg="Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock'"
Error: Job 'Checking gradle build and running tests' failed

@ChristopherHX
Copy link
Contributor

My backlog for act is full for the next months

I don't get this message inside this action..
::error::connect ENETUNREACH 2606:4700:4400::6812:23d4:443

My internet service provider can connect to that ipv6 outside of docker, inside docker e.g. curl instantly skips it via Immediate connect fail for 2606:4700:4400::6812:23d4: Network unreachable and uses ipv4 shown in curl running in a simple alpine container.

curl verbose log / act log working
docker run -it alpine:latest
/ # apk add curl
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
(1/10) Installing ca-certificates (20240705-r0)
(2/10) Installing brotli-libs (1.1.0-r2)
(3/10) Installing c-ares (1.33.1-r0)
(4/10) Installing libunistring (1.2-r0)
(5/10) Installing libidn2 (2.3.7-r0)
(6/10) Installing nghttp2-libs (1.62.1-r0)
(7/10) Installing libpsl (0.21.5-r1)
(8/10) Installing zstd-libs (1.5.6-r0)
(9/10) Installing libcurl (8.10.1-r0)
(10/10) Installing curl (8.10.1-r0)
Executing busybox-1.36.1-r29.trigger
Executing ca-certificates-20240705-r0.trigger
OK: 13 MiB in 24 packages
/ # curl -v "https://api.azul.com/zulu/download/community/v1.0/bundles/?os=linux&ext=tar.gz&bundle_type=jdk&javafx=false&arch=x86&hw_bitness=64" --output /tmp/msg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Host api.azul.com:443 was resolved.
* IPv6: 2606:4700:4400::6812:23d4, 2606:4700:4400::ac40:982c
* IPv4: 172.64.152.44, 104.18.35.212
*   Trying [2606:4700:4400::6812:23d4]:443...
* Immediate connect fail for 2606:4700:4400::6812:23d4: Network unreachable
*   Trying [2606:4700:4400::ac40:982c]:443...
* Immediate connect fail for 2606:4700:4400::ac40:982c: Network unreachable
*   Trying 172.64.152.44:443...
* ALPN: curl offers h2,http/1.1
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [19 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [2519 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [79 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / id-ecPublicKey
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=azul.com
*  start date: Sep 25 01:16:04 2024 GMT
*  expire date: Dec 24 01:16:03 2024 GMT
*  subjectAltName: host "api.azul.com" matched cert's "*.azul.com"
*  issuer: C=US; O=Google Trust Services; CN=WE1
*  SSL certificate verify ok.
*   Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256
*   Certificate level 1: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
*   Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
} [5 bytes data]
* Connected to api.azul.com (172.64.152.44) port 443
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://api.azul.com/zulu/download/community/v1.0/bundles/?os=linux&ext=tar.gz&bundle_type=jdk&javafx=false&arch=x86&hw_bitness=64
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: api.azul.com]
* [HTTP/2] [1] [:path: /zulu/download/community/v1.0/bundles/?os=linux&ext=tar.gz&bundle_type=jdk&javafx=false&arch=x86&hw_bitness=64]
* [HTTP/2] [1] [user-agent: curl/8.10.1]
* [HTTP/2] [1] [accept: */*]
} [5 bytes data]
> GET /zulu/download/community/v1.0/bundles/?os=linux&ext=tar.gz&bundle_type=jdk&javafx=false&arch=x86&hw_bitness=64 HTTP/2
> Host: api.azul.com
> User-Agent: curl/8.10.1
> Accept: */*
> 
* Request completely sent off
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [238 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [238 bytes data]
< HTTP/2 200 
< date: Sat, 12 Oct 2024 07:46:58 GMT
< content-type: application/json
< content-length: 79656
< cf-cache-status: HIT
< age: 71
< last-modified: Sat, 12 Oct 2024 07:45:47 GMT
< accept-ranges: bytes
< server: cloudflare
< cf-ray: 8d157aaacc8f1e59-FRA
< alt-svc: h3=":443"; ma=86400
< 
} [5 bytes data]

act-log same device

/act -W w.yml -P ubuntu-latest=catthehacker/ubuntu:act-22.04-20240822
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock' 
WARN[0000] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist 
ERRO[0000] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository  error="repository does not exist"
WARN[0000] unable to get git ref: repository does not exist 
ERRO[0000] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository  error="repository does not exist"
WARN[0000] unable to get git revision: repository does not exist 
[w.yml/_] 🚀  Start image=catthehacker/ubuntu:act-22.04-20240822
[w.yml/_]   🐳  docker pull image=catthehacker/ubuntu:act-22.04-20240822 platform= username= forcePull=true
[w.yml/_]   🐳  docker create image=catthehacker/ubuntu:act-22.04-20240822 platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[w.yml/_]   🐳  docker run image=catthehacker/ubuntu:act-22.04-20240822 platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[w.yml/_]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_]   ☁  git clone 'https://github.com/actions/setup-java' # ref=v4
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] ⭐ Run Main actions/checkout@v4
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_]   🐳  docker cp src=/home/christopher/Downloads/act_Linux_x86_64/. dst=/home/christopher/Downloads/act_Linux_x86_64
[w.yml/_]   ✅  Success - Main actions/checkout@v4
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] ⭐ Run Main actions/setup-java@v4
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_]   🐳  docker cp src=/home/christopher/.cache/act/actions-setup-java@v4/ dst=/var/run/act/actions/actions-setup-java@v4/
[w.yml/_]   🐳  docker exec cmd=[/opt/acttoolcache/node/18.20.4/x64/bin/node /var/run/act/actions/actions-setup-java@v4/dist/setup/index.js] user= workdir=
[w.yml/_]   ❓  ::group::Installed distributions
[w.yml/_]   💬  ::debug::isExplicit: 21.0.4-7
[w.yml/_]   💬  ::debug::explicit? true
| Trying to resolve the latest version from remote
[w.yml/_]   💬  ::debug::Gathering available versions from 'https://api.azul.com/zulu/download/community/v1.0/bundles/?os=linux&ext=tar.gz&bundle_type=jdk&javafx=false&arch=x86&hw_bitness=64&release_status=ga'
| Resolved latest version as 8.0.422+5
| Trying to download...
| Downloading Java 8.0.422+5 (Zulu) from https://cdn.azul.com/zulu/bin/zulu8.80.0.17-ca-jdk8.0.422-linux_x64.tar.gz ...
[w.yml/_]   💬  ::debug::Downloading https://cdn.azul.com/zulu/bin/zulu8.80.0.17-ca-jdk8.0.422-linux_x64.tar.gz
[w.yml/_]   💬  ::debug::Destination /tmp/5c2654ba-991f-46bf-a794-48193cdac762
[w.yml/_]   💬  ::debug::download complete
| Extracting Java archive...
[w.yml/_]   💬  ::debug::Checking tar --version
[w.yml/_]   💬  ::debug::tar (GNU tar) 1.34%0ACopyright (C) 2021 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /tmp/92e2095d-027c-4eda-b93b-ce721cd5ffa9 -f /tmp/5c2654ba-991f-46bf-a794-48193cdac762
[w.yml/_]   💬  ::debug::Caching tool Java_Zulu_jdk 8.0.422-5 x64
[w.yml/_]   💬  ::debug::source dir: /tmp/92e2095d-027c-4eda-b93b-ce721cd5ffa9/zulu8.80.0.17-ca-jdk8.0.422-linux_x64
[w.yml/_]   💬  ::debug::destination /opt/hostedtoolcache/Java_Zulu_jdk/8.0.422-5/x64
[w.yml/_]   💬  ::debug::finished caching tool
| Java 8.0.422+5 was downloaded
| Setting Java 8.0.422+5 as the default
| Creating toolchains.xml for JDK version 8 from zulu
| Writing to /root/.m2/toolchains.xml
| 
| Java configuration:
|   Distribution: zulu
|   Version: 8.0.422+5
|   Path: /opt/hostedtoolcache/Java_Zulu_jdk/8.0.422-5/x64
| 
[w.yml/_]   ❓  ::endgroup::
[w.yml/_]   ❓ add-matcher /run/act/actions/actions-setup-java@v4/.github/java.json
| Creating settings.xml with server-id: github
| Writing to /root/.m2/settings.xml
[w.yml/_]   ✅  Success - Main actions/setup-java@v4
[w.yml/_]   ⚙  ::set-env:: JAVA_HOME=/opt/hostedtoolcache/Java_Zulu_jdk/8.0.422-5/x64
[w.yml/_]   ⚙  ::set-env:: JAVA_HOME_8_X64=/opt/hostedtoolcache/Java_Zulu_jdk/8.0.422-5/x64
[w.yml/_]   ⚙  ::set-output:: path=/opt/hostedtoolcache/Java_Zulu_jdk/8.0.422-5/x64
[w.yml/_]   ⚙  ::set-output:: version=8.0.422+5
[w.yml/_]   ⚙  ::set-output:: distribution=Zulu
[w.yml/_]   ⚙  ::add-path:: /opt/hostedtoolcache/Java_Zulu_jdk/8.0.422-5/x64/bin
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] ⭐ Run Main java HelloWorldApp.java
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_] unable to get git repo (githubInstance: github.com; remoteName: origin, repoPath: /home/christopher/Downloads/act_Linux_x86_64): repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git ref: repository does not exist
[w.yml/_] path/home/christopher/Downloads/act_Linux_x86_64not located inside a git repository
[w.yml/_] unable to get git revision: repository does not exist
[w.yml/_]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
| Error: Could not find or load main class HelloWorldApp.java
[w.yml/_]   ❌  Failure - Main java HelloWorldApp.java
[w.yml/_] exitcode '1': failure

actions/setup-java@v1

You should really upgrade this action.....

This is my successful test

on: push
jobs:
  _:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: actions/setup-java@v4
      with:
        distribution: 'zulu' # See 'Supported distributions' for available options
        java-version: '8'
    - run: java HelloWorldApp.java

@xingzhang-pku
Copy link
Author

xingzhang-pku commented Oct 14, 2024

Thank you for your response and your time. I believe the issue might be on my end. @ChristopherHX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants