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

Support Ubuntu 22.04 #204

Closed
javierm opened this issue Jul 26, 2022 · 6 comments · Fixed by #228
Closed

Support Ubuntu 22.04 #204

javierm opened this issue Jul 26, 2022 · 6 comments · Fixed by #228

Comments

@javierm
Copy link
Member

javierm commented Jul 26, 2022

Ubuntu 22.04 was released a few months ago. Currently, we only support Ubuntu 18.04 and Ubuntu 20.04.

@Senen
Copy link
Member

Senen commented Aug 16, 2022

I investigated this issue and tried running the installer against a 22.04 virtual machine. Here are the issues I found:

@Senen
Copy link
Member

Senen commented Mar 10, 2023

Since rvm/rvm PR5308 was merged, the OpenSSL dependency is no longer a problem as now RVM provides a downloadable binary for Ruby 2.7.6 and newer versions on x86/64 and aarch64 architectures.

Here is the binary for x86_64 for the 2.7.7 version (current ruby version):
https://github.com/rvm/rvm/pull/5308/files#diff-451ae618e3abee7ee8e932222741a6c0f95e46c5aa9f625898a2a14136b9c047R1180

Here is a link to the build that makes me realize about the MongoDB issue.

@Senen
Copy link
Member

Senen commented Mar 10, 2023

Results using Vagrant with the latest available Ubuntu Jammy image:

deploy@ubuntu-jammy:~$ rvm install ruby-2.7.6
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/22.04/x86_64/ruby-2.7.6.tar.bz2
Checking requirements for ubuntu.
Requirements installation successful.
ruby-2.7.6 - #configure
ruby-2.7.6 - #download
ruby-2.7.6 - #validate archive
ruby-2.7.6 - #extract
ruby-2.7.6 - #validate binary
Libraries missing for ruby-2.7.6: libcrypto.so.1.1,libssl.so.1.1. Refer to your system manual for installing libraries
Mounting remote ruby failed with status 10, trying to compile.
Checking requirements for ubuntu.
Requirements installation successful.
Installing Ruby from source to: /home/deploy/.rvm/rubies/ruby-2.7.6, this may take a while depending on your cpu(s)...
ruby-2.7.6 - #downloading ruby-2.7.6, this may take a while depending on your connection...
ruby-2.7.6 - #extracting ruby-2.7.6 to /home/deploy/.rvm/src/ruby-2.7.6.....
ruby-2.7.6 - #configuring........................................................................
ruby-2.7.6 - #post-configuration..
ruby-2.7.6 - #compiling.........................................................................................
ruby-2.7.6 - #installing..............
Error running '__rvm_make install',
please read /home/deploy/.rvm/log/1678455532_ruby-2.7.6/install.log
There has been an error while running make install. Halting the installation.

Even with the precompiled version, we still need the openssl1package.

For the current CONSUL Ruby version (2.7.7) we must install the missing openssl1 libraries manually. Another option is to upgrade CONSUL to Ruby 3 and hopefully forget about this 🤞🏼 .

@javierm
Copy link
Member Author

javierm commented Mar 10, 2023

Another option is to upgrade CONSUL to Ruby 3 and hopefully forget about this 🤞🏼 .

The RVM issue mentioned the same problem with Ruby 3.0 🤔, so I guess we'd have to upgrade to Ruby 3.1, which unfortunately will take some time 😅.

@javierm javierm added this to Pending (no particular order) in Consul Democracy via automation Sep 15, 2023
@javierm javierm moved this from Pending (no particular order) to Doing in Consul Democracy Sep 15, 2023
@javierm
Copy link
Member Author

javierm commented Oct 17, 2023

After the changes in pull request #221, the current status is that the installer fails on Ubuntu 22.04 in the "specs" step; testing a URL results in a 502 error.

Debugging shows Puma is running and its socket has 777 permissions. However, in the nginx logs, we get:

2023/10/17 23:50:32 [crit] 6032#6032: *1 stat() "/home/deploy/consul/current/public//index.html" failed (13: Permission denied), client: ::1, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
2023/10/17 23:50:32 [crit] 6032#6032: *1 stat() "/home/deploy/consul/current/public/" failed (13: Permission denied), client: ::1, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
2023/10/17 23:50:32 [crit] 6032#6032: *1 connect() to unix:/home/deploy/consul/shared/tmp/sockets/puma.sock failed (13: Permission denied) while connecting to upstream, client: ::1, server: localhost, request: "GET / HTTP/1.1", upstream: "http:https://unix:/home/deploy/consul/shared/tmp/sockets/puma.sock:/", host: "localhost"

@javierm javierm removed this from Doing in Consul Democracy Oct 24, 2023
@javierm javierm linked a pull request Oct 24, 2023 that will close this issue
@javierm
Copy link
Member Author

javierm commented Jun 17, 2024

Closed via #228, which was merged in the master branch as part of pull request #221.

@javierm javierm closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants