Ask A Question

Notifications

You’re not receiving notifications from this thread.

Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

Chris Oliver asked in General

Thank you for this.

Reply

Thanks so much for share this post

Reply

Hi! I would like know if someone has face this error during ruby installation:

BUILD FAILED (Ubuntu 20.04 using ruby-build 20230512)
Inspect or clean up the working tree at /tmp/ruby-build.20230519034003.98334.Zg9WWu
Results logged to /tmp/ruby-build.20230519034003.98334.log

Last 10 log lines:
95% [959/999] shape.c
96% [960/999] signal.c
96% [961/999] siphash.c
96% [962/999] sparc.c
96% [963/999] sprintf.c
96% [964/999] st.c
96% [965/999] strftime.c
96% [966/999] string.c
Killed
make: *** [uncommon.mk:598: rdoc] Error 137

I tried with Ubuntu 22.04 and with different ruby versions but I failed.
Do you have any clue to solve this issue? would be awesome!

Reply

if you are using digital ocean, you should probably increase the you RAM to 1GB minimum

Reply

Thanks for the guide!

For anyone having issues with Passenger, I've managed to fix it by installing the correct version for Ubuntu 22.04 (Jammy), while the guide seems to be using the version for 20.04 (Focal). Here's what solved for me:

# Install our PGP key and add HTTPS support for APT
sudo apt-get install -y dirmngr gnupg apt-transport-https ca-certificates curl

curl https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/phusion.gpg >/dev/null

# Add our APT repository
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger jammy main > /etc/apt/sources.list.d/passenger.list'
sudo apt-get update

# Install Passenger
sudo apt-get install -y passenger

The complete instructions can be found here: https://www.phusionpassenger.com/docs/tutorials/deploy_to_production/

Reply

With rails 7.1.3, node 20, and bundler 2.5.5 I get the following error on production whereas it runs perfectly on development

Could not spawn process for application. The application encountered the following error: You have already activated base64 0.1.1, but your Gemfile requires base64 0.2.0. Since base64 is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports base64 as a default gem. (Gem::LoadError)

Reply

i got "this site can't be reached"

when i check using sudo systemctl status nginx:
active (running) since Tue 2024-04-16 11:08:56 UTC; 27min ago

deploy@srv508193:~$ sudo ufw status
Status: active
To Action From


Nginx HTTP ALLOW Anywhere
Nginx HTTPS ALLOW Anywhere
Nginx Full ALLOW Anywhere
Nginx HTTP (v6) ALLOW Anywhere (v6)
Nginx HTTPS (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)

/etc/nginx/sites-available/twittor_academy code:
server {
listen 80;
listen [::]:80;

server_name _;
root /home/deploy/twittor_academy/current/public;

passenger_enabled on;
passenger_app_env production;
passenger_preload_bundler on;
passenger_ruby /root/.rbenv/shims/ruby;

location /cable {
passenger_app_group_name twittor_academy_websocket;
passenger_force_max_concurrent_requests_per_process 0;
}

# Allow uploads up to 10MB in size
client_max_body_size 10m;

location ~ /(assets|packs) {
expires max;
gzip_static on;
}
}

/etc/nginx/sites-enabled/twittor_academy code:
server {
listen 80;
listen [::]:80;

server_name _;
root /home/deploy/twittor_academy/current/public;

passenger_enabled on;
passenger_app_env production;
passenger_preload_bundler on;
passenger_ruby /root/.rbenv/shims/ruby;

location /cable {
passenger_app_group_name twittor_academy_websocket;
passenger_force_max_concurrent_requests_per_process 0;
}

# Allow uploads up to 10MB in size
client_max_body_size 10m;

location ~ /(assets|packs) {
expires max;
gzip_static on;
}
}

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.