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

libssl.so.1.1: cannot open shared object file: No such file or directory #585

Closed
cyrus01337 opened this issue Jul 22, 2022 · 12 comments
Closed
Labels
scope: cli Relevant to the Rojo CLI type: support Support for how Rojo works.

Comments

@cyrus01337
Copy link

cyrus01337 commented Jul 22, 2022

When running Rojo v7.2.1 from the Visual Studio Code extension, I receive the following on Kubuntu 22.04:

/home/cyrus/.config/Code/User/globalStorage/evaera.vscode-rojo/rojo-v7.2.1: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

A number of options appear when searching for libssl through apt (shown below), is there any specific library/package of choice that's recommended for Rojo?
image

@boatbomber boatbomber added type: bug Something happens that shouldn't happen scope: cli Relevant to the Rojo CLI type: support Support for how Rojo works. and removed type: bug Something happens that shouldn't happen labels Jul 25, 2022
@cyrus01337
Copy link
Author

Update/Note: installing libssl3/libssl-dev/both does not resolve this.

@LPGhatguy
Copy link
Contributor

Hello, thanks for the report!

I think I see the issue here. Rojo 7.2.1 is looking for OpenSSL 1.1, which comes installed on Ubuntu 18.04 LTS machines where we build releases. However, your system (and package manager) seem to come with OpenSSL 3.0, which doesn't seem to get loaded.

We downgraded our CI machines in #561 on June 26th. 7.2.0 was the first release to go live with this change.

If you downgrade to Rojo 7.1.1, does this still happen? I'm not sure if older versions link against a newer OpenSSL or not.

@LPGhatguy
Copy link
Contributor

As an alternative workaround, you might be able to install OpenSSL 1.1 on your system: https://askubuntu.com/a/1407024

@Kampfkarren
Copy link
Member

Long term Rojo should be using rustls. From some searching around in Cargo.lock, it looks like its only reqwest, which uses OpenSSL by default. This could be fixed by turning off default features and flipping on rustls-tls.

@cyrus01337
Copy link
Author

I attempted to downgrade the version of Rojo that the extension uses via the target version setting to no avail:
image

There was also an attempt at installing OpenSSL v1.1 with the resource sent which failed with the given errors.

Are there any other options?

@LPGhatguy
Copy link
Contributor

It looks like the way to link OpenSSL statically changed at some point, from setting an environment variable to the optional feature native-tls-vendored on reqwest. I think this might be a better approach than trying to jump ship to rustls just yet.

Once the builds are up, you should try out this release: https://github.com/rojo-rbx/rojo/releases/tag/v7.2.1-static-openssl

It should work on systems that have a mismatched OpenSSL version or even no OpenSSL at all.

@LPGhatguy
Copy link
Contributor

Nevermind. It looks like downgrading the build machines means that Foreman (and proabably Wally) no longer runs on them, a knock-on effect of #561.

@cyrus01337
Copy link
Author

cyrus01337 commented Aug 15, 2022

@LPGhatguy When waiting for the builds, are you referring to all builds or strictly Windows?

@Boegie19
Copy link
Contributor

@cyrus01337 Seems like the release action broke made a pull request to fix it if you want to do it before that you would have to build from source or use a fork.

@LPGhatguy
Copy link
Contributor

I bumped the minimum version of Ubuntu from 18.04 to 20.04 and restarted builds for the static OpenSSL build. It looks like the Linux build succeeded this time around:

https://github.com/rojo-rbx/rojo/releases/tag/v7.2.1-static-openssl

@cyrus01337
Copy link
Author

Have had some woes with Grapejuice working so testing this has taken some time. Apologies in advance, will get results out soon as.

@cyrus01337
Copy link
Author

cyrus01337 commented Sep 18, 2022

It has been a month, the version works as expected. :)

The latest version also did not fix this issue in case this ever comes up.

@cyrus01337 cyrus01337 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: cli Relevant to the Rojo CLI type: support Support for how Rojo works.
Projects
None yet
Development

No branches or pull requests

5 participants