Capistrano: Don't know how to build task 'deploy:new_release_path'

I am deploying for the first time to a Digital Ocean Ubuntu droplet. I have configured everything and followed all the steps and am now on the step where I issue the command: cap production...

warning: constant ::Fixnum is deprecated When generating new model

I've tried to find some solution for this, but I really couldn't find anything related with the errors that is appearing to me when I run the rails command: rails generate model Book title:string...

Bundler command not working, it says "undefined method []= for nil:NilClass"

I recently installed ruby 2.4.0 using rbenv. Then I installed bundler but every time I try to run bundle ("bundle install", "bundle help", basically any bundle command) I get the following...

Rails 5 rspec test failing for uploaded file stub

In my rspec for uploaded files I am stubbing a function like this: allow(ABCCLass::XYZProcessor).to receive(:prepare_processing).with(csv_statements).and_return(nil) and let(:csv_statements)...

Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION

I'm currently experiencing an issue with my new rails application, more specifically: Rails 5.2.0 Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17] rvm 1.29.4 (latest) by Michal Papis,...

cd into a specific directory changes PATH variable

When I change directory (cd) into one specific directory (which contains a rails application) it changes the PATH variable, removing many directories from PATH including /bin, /usr/bin, and...

Ruby: LoadError - library not found for class Digest::SHA1 -- digest/sha1

When running pod install it runs into a problem when installing yoga. Seems to be a problem with my ruby environment? $ pod install Analyzing dependencies Fetching podspec for `Folly` from...

Bundler Error - Cannot Find rake-13.0.1 even though it is installed

I have a Rails import job that run as a cron job setup through the whenever gem. It was running correctly until I recently updated the app. Now we are seeing the following Error in the logs when...

JAVA_HOME is not set. (RuntimeError) while installing rjb gem for ruby in WSL

I am trying to install the gem rjb and I have come across this error extconf.rb:53:in <main>': JAVA_HOME is not set. (RuntimeError). The following is the entire error log. $sudo gem install rjb...

rspec/rails can't seem to load up with Ruby 2.7.1

Alright, I can't seem to figure out why this is happening or how to fix it. I recently updated to Ruby 2.7.1, and when I run rspec on this rails app this is what happens: rspec...

Rails 6 - sidekiq doesn't dequeue on development

I've had this problem on development : Sidekiq enqueues the job, but never dequeues. On Production (Heroku), everything works fine. Here's a tiny part of the launching messages on my terminal...

rbenv install 2.7.1 fails on Mac OS Catalina using home-brew

I have been trying to install ruby for a few days now. I installed home-brew checked that [email protected] was installed. I ran brew install rbenv and congfigure my zsh as follows, local...

NoMethodError: undefined method `+' for nil:NilClass / 'additional_paths' [capistrano+webpacker]

I had to update my rails version from 5 to 6, before that everything was working just fine. the problem only happens with capistrano... when I run rake assets:precompile everything works as well...

Could not find rake-13.0.1 in any of the sources while Rails Capistrano deploy

Im trying to solve it whole day. I have Ruby on Rails project and trying to deploy it on VPS server. But got same error every time (sometimes with different gems names): Run `bundle install` to...

Rails 6, devise is doing nothing

rails newbie here using devise to create users for my rails 6 app. I followed the steps outlined here: https://github.com/heartcombo/devise but when I try to sign into my app, the log in button...

Rails 6 when executing teaspoon for javascript testcases getting Module#parent` has been renamed to `module_parent`

*Getting the below error when executing the testcases using teaspoon gem for javascript testcases. I am not sure why stylesheets folder is considered while executing the teaspoon. By this the...

SSH Authentication fails when running Capistrano cap production deploy

this is my first attempt to deploy a Rails app using Capistrano. I am following the tutorial at https://ogdenstudios.xyz/blog/how-do-i-deploy-a-rails-6-app-to-amazon-ec-2/ to deploy to an AWS EC2...

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory

I'm rendering write permissions to bundle or install gems on my rails app. It's not recommended but I have tried using sudo gemname install and it does not work for me either. Im unable to...

"Could not find concurrent-ruby-1.1.7 in any of the sources" when deploy rails with capistrano

I saw a lot of similar questions here, but nothing of provided advises has helped. Every time I run cap production deploy I got error: ... DEBUG [9b1f0199] Running RBENV_ROOT=$HOME/.rbenv...

Issue with nio4r (1.2.1) while bundle install

First i was having nokogiri issue but after updating Xcode that went away and now it gets stuck on nio4r and not passing it. Using Ruby 2.5.1p57 and Rails 5.0.0 and bundler version is 1.17.3....

An error occurred while installing rdiscount (2.2.0.1) and Bundler cannot continue on Mac OS and Ruby 2.7.1

Problem: I have tried to do a gem install rdiscount -v '2.2.0.1' and get an error. Solution: I have tried below command to get this to work gem install rdiscount:2.2.0.1 --...

rbenv ruby 2.7.2 installation fails: "BUILD FAILED"

I am getting this strange error while trying to install ruby 2.7.2 using rbenv. Does anybody know what the issue is? $ rbenv install 2.7.2 Installing ruby-2.7.2... BUILD FAILED (Ubuntu 20.04...

Installing nio4r via brew install throws an error on macOS catalina

I understand that this issue has a ton of answers on stack overflow (and other sites) but none of them seem to work for me. Here is where the issue arises. When I tried to run my server, this...

Rails 6 Capistrano deploy is failing even though application works fine when it is started manually

So this application works perfectly fine when I deploy it to Heroku I am trying to deploy this to a VM (a plain ubuntu droplet on digital ocean) Have set up Capistrano as expected. Am unable to...

Capostrano: cap aborted! Don't know how to build task 'start' (See the list of available tasks with `cap --tasks`)

there is a lot of issues found in the web with this problem, but I don't found one to resolve my issue and it is difficult understand all. This is my single problematic. I began rewrite an ruby on...

(erb):48:in `<main>': undefined method `[]' for nil:NilClass (NoMethodError)

I have no idea about the issue. I can start my application and want to update database.yml after that I cannot run the application on my machine (macOS Catalina 10.15.7) then I discard changes in...

Macbook Pro 2020 M1 - MacOS Big Sur - Homebrew not working

Macbook Pro 2020 M1 - Big Sur I have just updated gems (gem update) on ruby 2.6 (System ruby version default belong to OSX Big Sur, i think so) (My global ruby using rbenv is 2.7.2, i installed it...

Rails Error Can't Find freedesktop.org.xml

I've had some issues starting a new RAILS project, where I'm getting an error that there is a missing file /usr/local/share/mime/packages/freedesktop.org.xml. There was a connection with the...

Rails Capistrano production deploy runs a wrong command line which leads to an error 'invalid option --daemon'

I've been trying to fix this error, but I can't find a solution yet. I'm about to deploy a Rails application to production using nginx, puma, and capistrano, but I get an error when running this...

Build fails when deploying Rails application on Amazon Linux 2

I am migrating my existing Rails application from Amazon Linux AMI to Amazon Linux 2. I was able to upgrade my Rails linux environment to AL2 but the deployment is failing. The deployment...