[GH-ISSUE #1683] Failure - Main set up JDK 11 #832

Closed
opened 2026-03-01 21:46:46 +03:00 by kerem · 1 comment
Owner

Originally created by @tobyworks on GitHub (Mar 16, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1683

Bug report info

act version:            0.2.43
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
	/var/run/docker.sock
	/Users/tobybonhof/.docker/run/docker.sock
Config files:
	/Users/tobybonhof/.actrc:
		-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
		-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.20.1
	Module path:           command-line-arguments
	Main version:
	Main path:
	Main checksum:
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.43
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               arm64
		GOOS:                 darwin
Docker Engine:
	Engine version:        20.10.11
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:
	OS arch:               aarch64
	OS kernel:             5.10.76-linuxkit
	OS CPU:                5
	OS memory:             1988 MB
	Security options:
		name=seccomp,profile=default
		name=cgroupns

Command used with act

act workflow_call -j act  --container-architecture linux/amd64

Describe issue

job fails setting up java

No response

Workflow content

name: Trigger Act
on: workflow_dispatch
jobs:
    install_java:
      steps: 
        - name: set up JDK 11
          uses: actions/setup-java@v2
          with:
            java-version: '11'
            distribution: 'adopt'
            cache: 'gradle'

Relevant log output

[install/Amalia Environment/install]   💬  ::debug::Found 72 files to hash.
[install/Amalia Environment/install]   💬  ::debug::primary key is setup-java-Linux-gradle-ecdbd8c8fb3ac542ad222d155601b373c21b72f675ec392841dee48f1340ceea
[install/Amalia Environment/install]   💾  ::save-state name=cache-primary-key::setup-java-Linux-gradle-ecdbd8c8fb3ac542ad222d155601b373c21b72f675ec392841dee48f1340ceea
[install/Amalia Environment/install]   💬  ::debug::Resolved Keys:
[install/Amalia Environment/install]   💬  ::debug::["setup-java-Linux-gradle-ecdbd8c8fb3ac542ad222d155601b373c21b72f675ec392841dee48f1340ceea","setup-java-Linux-gradle"]
[install/Amalia Environment/install]   💬  ::debug::Checking zstd --version
[install/Amalia Environment/install]   💬  ::debug::*** zstd command line interface 64-bits v1.4.8, by Yann Collet ***
[install/Amalia Environment/install]   💬  ::debug::getCacheEntry - Attempt 1 of 2 failed with error: Cache Service Url not found, unable to restore cache.
[install/Amalia Environment/install]   💬  ::debug::getCacheEntry - Attempt 2 of 2 failed with error: Cache Service Url not found, unable to restore cache.
[install/Amalia Environment/install]   ❗  ::error::getCacheEntry failed: Cache Service Url not found, unable to restore cache.
[install/Amalia Environment/install]   ❌  Failure - Main set up JDK 11
[install/Amalia Environment/install]   ⚙  ::set-env:: JAVA_HOME=/opt/hostedtoolcache/Java_Adopt_jdk/11.0.18-10/x64
[install/Amalia Environment/install]   ⚙  ::add-path:: /opt/hostedtoolcache/Java_Adopt_jdk/11.0.18-10/x64/bin

Additional information

No response

Originally created by @tobyworks on GitHub (Mar 16, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1683 ### Bug report info ```plain text act version: 0.2.43 GOOS: darwin GOARCH: arm64 NumCPU: 10 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock /Users/tobybonhof/.docker/run/docker.sock Config files: /Users/tobybonhof/.actrc: -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest -P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04 Build info: Go version: go1.20.1 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.43 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: arm64 GOOS: darwin Docker Engine: Engine version: 20.10.11 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: aarch64 OS kernel: 5.10.76-linuxkit OS CPU: 5 OS memory: 1988 MB Security options: name=seccomp,profile=default name=cgroupns ``` ### Command used with act ```sh act workflow_call -j act --container-architecture linux/amd64 ``` ### Describe issue job fails setting up java ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Trigger Act on: workflow_dispatch jobs: install_java: steps: - name: set up JDK 11 uses: actions/setup-java@v2 with: java-version: '11' distribution: 'adopt' cache: 'gradle' ``` ### Relevant log output ```sh [install/Amalia Environment/install] 💬 ::debug::Found 72 files to hash. [install/Amalia Environment/install] 💬 ::debug::primary key is setup-java-Linux-gradle-ecdbd8c8fb3ac542ad222d155601b373c21b72f675ec392841dee48f1340ceea [install/Amalia Environment/install] 💾 ::save-state name=cache-primary-key::setup-java-Linux-gradle-ecdbd8c8fb3ac542ad222d155601b373c21b72f675ec392841dee48f1340ceea [install/Amalia Environment/install] 💬 ::debug::Resolved Keys: [install/Amalia Environment/install] 💬 ::debug::["setup-java-Linux-gradle-ecdbd8c8fb3ac542ad222d155601b373c21b72f675ec392841dee48f1340ceea","setup-java-Linux-gradle"] [install/Amalia Environment/install] 💬 ::debug::Checking zstd --version [install/Amalia Environment/install] 💬 ::debug::*** zstd command line interface 64-bits v1.4.8, by Yann Collet *** [install/Amalia Environment/install] 💬 ::debug::getCacheEntry - Attempt 1 of 2 failed with error: Cache Service Url not found, unable to restore cache. [install/Amalia Environment/install] 💬 ::debug::getCacheEntry - Attempt 2 of 2 failed with error: Cache Service Url not found, unable to restore cache. [install/Amalia Environment/install] ❗ ::error::getCacheEntry failed: Cache Service Url not found, unable to restore cache. [install/Amalia Environment/install] ❌ Failure - Main set up JDK 11 [install/Amalia Environment/install] ⚙ ::set-env:: JAVA_HOME=/opt/hostedtoolcache/Java_Adopt_jdk/11.0.18-10/x64 [install/Amalia Environment/install] ⚙ ::add-path:: /opt/hostedtoolcache/Java_Adopt_jdk/11.0.18-10/x64/bin ``` ### Additional information _No response_
kerem 2026-03-01 21:46:46 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@tobyworks commented on GitHub (Mar 16, 2023):

https://github.com/sp-ricard-valverde/github-act-cache-server

<!-- gh-comment-id:1472279770 --> @tobyworks commented on GitHub (Mar 16, 2023): https://github.com/sp-ricard-valverde/github-act-cache-server
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#832
No description provided.