question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java-version is not specified on self-hosted but ok on github-runner

See original GitHub issue

Description: I use the following settings in my workflow:

...
jobs:
  job-name:
    runs-on: [self-hosted]
    container:
      image: ubuntu:20.04
...
      - uses: actions/setup-java@v2
        with:
          java-version: '8'
          distribution: 'zulu'
          java-package: jdk+fx
          cache: gradle
...

It works fine on GitHub-hosted runners but fails on clear Ubuntu 20.04/22.04 installation with error:

Error: Input required and not supplied: java-version

I’m ready to provide additional debug from worker logs but id doesn’t contain useful information. Advice please how get additional debugging information. Maybe there is an option to run action manually inside docker container

Task version: v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

  1. Install Ubuntu official distribution on Hyper-V virtual machine (check Docker as additional option to be installed)
  2. Install runner according to official article and run as a service.

Expected behavior: Java installed

Actual behavior: Workflow crashed

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
dsamecommented, Jul 26, 2022

Documentation contribution is here https://github.com/github/docs/pull/19309

@bissquit i’ll move the issue to the Waiting for rollout state because there’s nothing to do with it anymore and i will close it as soon as the documentation change will have been either approved or denied. But please feel free to create new issue or reopen this one in case if the problem not solved. Thanks for the cooperation.

0reactions
bissquitcommented, Oct 6, 2022

Looks great! Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create a Docker based Self Hosted GitHub runner Linux ...
Prepare Bash Scripts used in image creation. Now that we have Docker-Desktop as well as Docker-Compose installed and set to use Linux Containers ......
Read more >
java - Mvn is not recognized as a command on Github Actions ...
I set up a simple Github Actions workflow simply to check if my self-hosted Windows Virtual Machine is able to recognize the installed ......
Read more >
All About Github Runner on AWS Spot Instances | Incredibuild
This article describes how to set up a GitHub Actions self-hosted runner on an AWS spot instance. But first, let's talk about what...
Read more >
unrecognized named-value: 'env' - You.com | The search engine ...
I am using github runner to build app for Android, iOS and Web. We have multiple sharing code projects ... but The workflow...
Read more >
How to build Gradle projects with GitHub Actions - Tom Gregory
yes, I already mentioned this but it's worth repeating. ... in your CI process like downloading the right Java version for Gradle to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found