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.

Using default action.yml results in error No usable version of the libssl was found

See original GitHub issue

Description: Im trying to use the default template suggested at https://docs.github.com/en/actions/guides/building-and-testing-net but am receiving an error when dotnet restore is run that no usable version of the libssl was found

Task version: Latest as per https://docs.github.com/en/actions/guides/building-and-testing-net

Platform:

  • [1] Ubuntu
  • macOS
  • Windows

Runner type:

  • [1] Hosted
  • Self-hosted

Repro steps:

  1. Create action.yml in .github/workflowsdirectory with content ` name: dotnet build and test

on: [push]

jobs: build:

runs-on: ubuntu-latest
strategy:
  matrix:
    dotnet-version: [ '2.2.103', '3.0', '3.1.x', '5.0.x']

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
  uses: actions/setup-dotnet@v1.7.2
  with:
    dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
  run: dotnet restore
- name: Build
  run: dotnet build --configuration Release --no-restore
- name: Test
  run: dotnet test --no-restore --verbosity normal

` 2. Push a commit to repro

Expected behavior: Action checks to complete successfully

Actual behavior: dotnet restore fails for first check(dotnet version 2.2.103) with error dotnet restore shell: /usr/bin/bash -e {0} env: DOTNET_ROOT: /home/runner/.dotnet No usable version of the libssl was found /home/runner/work/_temp/74f1720d-c0a1-436b-8f97-7b4d6b94cf73.sh: line 1: 1736 Aborted (core dumped) dotnet restore Error: Process completed with exit code 134.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
GGG-KILLERcommented, Mar 25, 2021

.NET Core 2.2 has been deprecated and is no longer supported. This might be the reason why.

EDIT: This seems to be an issue with the docs or the actions VMs and not the action itself, so I’m not sure if this is the right place to open this issue at.

0reactions
vsafonkincommented, Mar 26, 2021

@GGG-KILLER, thank you! Closed as resolved, needs to improve docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SOLVED: "No usable version of the libssl was found"
Today I'm gonna tell you why the " No usable version of the libssl was found " error happens and show you how...
Read more >
How to solve the "No usable version of the libssl ... - YouTube
In this video I'm gonna tell you why the " No usable version of the libssl was found " happens with .NET Core...
Read more >
Add executable to Ubuntu-latest PATH using GitHub workflow
I see that the Github Actions job can't find it, but it will be helpful to know a normal login by the same...
Read more >
7 Github Actions Tricks I Wish I Knew Before I Started
Here are 7 tricks with github actions that changed my life (or at least my ... These tricks helped me create a more...
Read more >
linux - `dotnet new command` in openSuse causes `No usable ...
NET Core 2.1 and later to pick up and work with either OpenSSL 1.1 or ... No usable version of the libssl was...
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