Rails Deployment using Capistrano error: Could not extract RVM sources

259 Views Asked by At

Rails : 5 Capistrano Gem: capistrano (3.11.0) , rvm1-capistrano3 (1.4.0) rvm: rvm 1.29.7

config/deploy/staging.rb ->

server 'xxxx', user: 'main_user', password: 'xxx', roles: [:app,:web]
set :deploy_to, '/var/www/staging.myserver.com'
set :branch, 'my_branch'

I am trying to deploy my Ruby/Rails code using Capistrano but I get following error->

bundle exec cap staging deploy 

DEBUG  Command: /usr/bin/env /var/www/staging.myserver.com/rvm1scripts/install-rvm.sh
 DEBUG      Downloading https://github.com/rvm/rvm/archive/1.29.7.tar.gz
 DEBUG      Downloading https://github.com/rvm/rvm/releases/download/1.29.7/1.29.7.tar.gz.asc
 DEBUG      gpg: Signature made xxxx using RSA key ID xxxxx
gpg: Good signature from xxx
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: xxxx
 DEBUG      GPG verified '/usr/local/rvm/archives/rvm-1.29.7.tgz'
 DEBUG      gtar: .github: Cannot utime: Operation not permitted     
gtar: config: Cannot utime: Operation not permitted
Could not extract RVM sources.

Is it just 'main_user' privilege issue? I am assured that the user has all the needed rights. How can I resolve this?

Update**-> 1: A lot of forums online suggested downgrading RVM and I tried that too. Downgraded from RVM 1.29.7 to 1.29.3 but still the same problem

2: ls -l /usr/local/rvm/bin/rvm -rwxrwxr-x 1 root rvm 1534 Feb 4 14:34 /usr/local/rvm/bin/rvm

cat /etc/group |grep -i rvm rvm:x:1017:main_user

0

There are 0 best solutions below