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

Ubuntu 22.04 - Failed to update dependencies: No usable version of libssl was found #42

Closed
sabbour opened this issue Sep 6, 2022 · 6 comments
Labels
bug Something isn't working DotNet6+

Comments

@sabbour
Copy link
Collaborator

sabbour commented Sep 6, 2022

Describe the bug
Unable to proceed with installing dependencies for the Bridge to Kubernetes extension for Visual Studio Code, hence I'm blocked from configuring the extension to connect to my Kubernetes cluster. Seems to be related to https://forum.unity.com/threads/workaround-for-libssl-issue-on-ubuntu-22-04.1271405/

Mention the platform you are using
Visual Studio Code extension running on WSL2 and Ubuntu 22.04.

To Reproduce
Steps to reproduce the behavior:

  1. Install the extension on Visual Studio Code
  2. Follow the tutorial to create a namespace for the app and deploy it,
  3. Run npm install
  4. Open the Command Palette and run Bridge to Kubernetes: Configure
  5. There is a missing dependency on "libssl". Running "Retry Dependency Update" doesn't fix the problem.

Expected behavior
Proceed to select the Kubernetes service to redirect.

Screenshots

This action requires dependencies that are not available yet. Please look at the "Kubernetes" item in the status bar for more information.
Failed to update dependencies: No usable version of libssl was found

Additional context
See this issue: microsoft/mindaro#327
Ubuntu 22.04 (via WSL): has OpenSSL 3 installed by default

openssl version -v
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

Looks like Bridge to Kubernetes is build using .NET Standard 2.1 which only supports older versions of OpenSSL. .NET 5 requires OpenSSL 1.x. Newer distro versions such as Ubuntu 22.04 use OpenSSL 3 and not OpenSSL 1.x (see https://github.com/dotnet/core/blob/main/release-notes/5.0/5.0-supported-os.md)

So, Bridge will need to be rebuilt using .NET 6+ to support a newer distro that only offers OpenSSL 3, or another workaround to install OpenSSL 1.x will need to be provided (see dotnet/core#4749 (comment))

@sabbour
Copy link
Collaborator Author

sabbour commented Sep 6, 2022

cc: @elenavillamil @hsubramanianaks

@sabbour sabbour changed the title Failed to update dependencies: No usable version of libssl was found Ubuntu 22.04 - Failed to update dependencies: No usable version of libssl was found Sep 6, 2022
@sabbour
Copy link
Collaborator Author

sabbour commented Sep 6, 2022

Installing OpenSSL 1.1.1 via the commands below and then restarting WSL via wsl --shutdown from a Windows PowerShell acts as a workaround:

wget https://www.openssl.org/source/openssl-1.1.1c.tar.gz
tar -xzvf openssl-1.1.1c.tar.gz
cd openssl-1.1.1c
./config
make
sudo make install
export LD_LIBRARY_PATH="/usr/local/lib"

@sabbour sabbour added the bug Something isn't working label Sep 7, 2022
@JohnGalt1717
Copy link

I'm getting this on Ubuntu 22.04. Replacing OpenSSL isn't a real viable solution because it has issues with security and other stuff depends on the newer version. Is there a version of Bridge to K8s that works with 3.0.2?

@elenavillamil
Copy link
Contributor

This will be fully address once dotnet6 release goes out this month.

@hsubramanianaks
Copy link
Collaborator

Dotnet 6 is deployed to production, @sabbour can you test once and close this issue ?

@sabbour
Copy link
Collaborator Author

sabbour commented Jan 20, 2023

Yes, I just tested it and it works. Closing. 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 DotNet6+
Projects
Development

No branches or pull requests

4 participants