-
Notifications
You must be signed in to change notification settings - Fork 255
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
Support OpenSSL 1.0 and 1.1 #161
Comments
Thanks so much for the report and for the discussions on Discord! We've verified that we can build a working Notion on Ubuntu from source. So the workaround for now is to build from source. Since then, I've talked with the maintainers of the Rust libraries that use OpenSSL and it appears the issue is that I built the Linux version on RHEL 6, which has OpenSSL 1.0, and OpenSSL 1.1 broke ABI compatibility with 1.0. So more modern distros can't load it. The two options we have here are to statically link OpenSSL with Notion or to expand our release matrix to support OpenSSL 1.0 for older Linuxes and OpenSSL 1.1 for newer Linuxes. The benefit of static linking is portability, but that means Notion can't get security fixes to OpenSSL unless Notion itself gets updated. So a truly secure distribution of a statically linked Notion would require some kind of automatic self-updating mechanism. We might want to do that eventually but at least for now I don't think we want to tackle that. For now, I think the best solution is to support two Linux builds, one with OpenSSL 1.0.x compatibility and one with OpenSSL 1.1.x compatibility. The installer script should be able to detect the version of OpenSSL supported on the current machine (using |
The readme for notion, and the getting started guide referenced don't explain building from source. How is one supposed to build from source for ubuntu at this time? |
Notion came across my news feed this passed weekend and I was really excited because it seems to perfectly solve a problem my team and I have, but this is a deal-breaker. Any thoughts on moving forward with this? |
@ltomes I just opened notion-cli/docs#1 to add instructions for building from source to the Contributing docs. @john-landgrave This issue was actually resolved recently in #270, we now have pre-built versions for both OpenSSL 1.0 and OpenSSL 1.1, and the installer will dynamically detect which version you need when it is run. Let us know if this helps your team! |
Thanks for adding that @charlespierce, I will give this another go. |
@charlespierce - my team seems to be having problems installing if they're on 16.04, but those of us on 18.04 are fine. |
@redders6600 Are the problems with the install process, or with running Notion after it has been installed on 16.04? If you have a chance, could you run |
@redders6600 I ended up building (Notion 0.2.0) from source for Ubuntu 16.04.5 LTS.
I will try an install now that |
The 0.2.1 installer does install without listing errors
But seems to have issues:
Let me know if you want me to try anything before I compile from source. |
@ltomes Thanks for posting that, it looks like there are incompatibilities between OpenSSL 1.0.1 and OpenSSL 1.0.2 . We'll likely have to create a new build and have the installer consider that case as well. |
@fullas was the user having problems - I'll ask him to post here! |
We actually did a deep dive on the OpenSSL issues and worked them out for the majority of Linux cases: There are 2 primary versions of the shared library file, associated with OpenSSL 1.0.X and OpenSSL 1.1.X. Additionally, RHEL / CentOS seem to use their own naming scheme and only support OpenSSL 1.0.X at the moment. We build Volta against all 3 and the installer is smart enough to detect which version needs to be installed, so these issues should be resolved for the major Linux distros. |
Woot. I'll try to rebuild sometime this week! |
I am experiencing this issue on Ubuntu 22.04. Here's what I'm seeing:
|
I just tested the |
@jeremyckahn I think that's actually a different issue #1150, which should be resolved by version 1.0.7. Can you share the output of |
@charlespierce Indeed, this seems to be a dupe of #1150. Thanks for pointing me in the right direction!
I will take this conversation over to #1150. |
After installation on ubuntu.
I receive this message and notion don't start.
error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory
Any idea why ?
The text was updated successfully, but these errors were encountered: