Ask A Question

Notifications

You’re not receiving notifications from this thread.

Capistrano Rbenv Bundle Failed

Agung Setiawan asked in Servers β€’

Hi,

I'm following this tutorial on deploying rails app
https://gorails.com/deploy/ubuntu/16.04

About to reach the last step but it failed when performing bundle install as screenshot below

Any clue what did I do wrong?
Thank you

Reply

It says "Killed" on the last line which means your server ran out of memory while installing gems. You can just try redeploying and that should help, but you'll keep having this problem until you upgrade to have a bit more RAM.

Reply

Haaa thanks!
I used $5 droplet before lol
I changed to $10 droplet it is okay

Another problem though
I created tmp/restart.txt but passenger didn't restart so It still showed nginx default page
I have added capistrano-passenger as well

update :
It seems passenger doesn't get loaded at all

$ passenger-status
ERROR: Phusion Passenger doesn't seem to be running. If you are sure that it is running, then the causes of this problem could be:

  1. You customized the instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument. If so, please set the environment variable PASSENGER_INSTANCE_REGISTRY_DIR to that directory and run passenger-status again.
  2. The instance directory has been removed by an operating system background service. Please set a different instance registry directory using Apache's PassengerInstanceRegistryDir option, Nginx's passenger_instance_registry_dir option, or Phusion Passenger Standalone's --instance-registry-dir command line argument.
Reply

Your nginx config is probably not pointing to the right directory or something for the Rails app or you just needed to restart nginx after you changed the config.

Reply

Found the problem
I make backup file for /etc/nginx/sites-enabled/default named default.example. Turned out it was loaded so my configuration in default seems like getting overrided.

Thank you for your help Chris πŸ˜πŸ‘πŸ»

Reply

Great work detective! :D

Reply

Here's my work
Not yet setup the host name

http://188.166.230.116/

I'm creating screencast about Ruby and Rails and Vim on my native language in hope people will know about Ruby and Rails since in my country, Indonesia, PHP and Laravel are the majority hahaha

Reply

This is fantastic, keep hustling on it! :D Having more native screencasts is going to help so much!

Reply

Thank you Chris
I released it today, it's now http://idrails.com

Can I use your comment above as some kind of comment / testi like in https://gorails.com/testimonials haha, would be great if you don't mind.

Reply

Go right ahead. :D

Reply

@Chris Oliver hope this finds you. I followed ubuntu 14.04, set up and I have done it several times in the past with no issue and only this time I faced the same issue.

I have checked if my Ngnix is pointing to correct path and even done some solutions mentioned on the nett, such as https://www.pistolfly.com/weblog/en/2016/01/passenger-config-and-passenger-status-result-in-an-error-on-centos7.html & https://stackoverflow.com/questions/46058728/passenger-doesnt-seem-to-be-running-capistrano-rails-apache-ubuntu, but nothing works, hope you can help me out find how to solve this issue.

Thanks

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.