Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8808035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:31:06+00:00 2026-06-14T02:31:06+00:00

After I did bundle update both on my local machine and server, I am

  • 0

After I did bundle update both on my local machine and server, I am not able to deploy anymore. The error I get is kind of permissions, as I guess, but I can’t get what’s happening:

cap deploy
  * 2012-10-30 02:48:45 executing `deploy'
  * 2012-10-30 02:48:45 executing `deploy:update'
 ** transaction: start
  * 2012-10-30 02:48:45 executing `deploy:update_code'
    executing locally: "git ls-remote ssh://ubuntu@robotinthecloak.com/~/git/strana_cvetov.git HEAD"
ubuntu@robotinthecloak.com's password: 
    command finished in 7500ms
  * executing "git clone -q --depth 1 ssh://ubuntu@robotinthecloak.com/~/git/strana_cvetov.git ~/rails_apps/strana_cvetov/releases/20121029224852 && cd ~/rails_apps/strana_cvetov/releases/20121029224852 && git checkout -q -b deploy 672780789da61c81640fe7fbd2728064d0f89db3 && (echo 672780789da61c81640fe7fbd2728064d0f89db3 > ~/rails_apps/strana_cvetov/releases/20121029224852/REVISION)"
    servers: ["robotinthecloak.com"]
Password: 
    [robotinthecloak.com] executing command
 ** [robotinthecloak.com :: out] ubuntu@robotinthecloak.com's password:
Password: 
 ** [robotinthecloak.com :: out]
    command finished in 2265ms
  * 2012-10-30 02:48:56 executing `deploy:finalize_update'
    triggering before callbacks for `deploy:finalize_update'
  * 2012-10-30 02:48:56 executing `deploy:assets:symlink'
  * executing "rm -rf ~/rails_apps/strana_cvetov/releases/20121029224852/public/assets &&\\\n        mkdir -p ~/rails_apps/strana_cvetov/releases/20121029224852/public &&\\\n        mkdir -p ~/rails_apps/strana_cvetov/shared/assets &&\\\n        ln -s ~/rails_apps/strana_cvetov/shared/assets ~/rails_apps/strana_cvetov/releases/20121029224852/public/assets"
servers: ["robotinthecloak.com"]
[robotinthecloak.com] executing command
command finished in 162ms
  * executing "chmod -R -- g+w \\~/rails_apps/strana_cvetov/releases/20121029224852 && rm -rf -- \\~/rails_apps/strana_cvetov/releases/20121029224852/public/system && mkdir -p -- \\~/rails_apps/strana_cvetov/releases/20121029224852/public/ && ln -s -- ~/rails_apps/strana_cvetov/shared/system \\~/rails_apps/strana_cvetov/releases/20121029224852/public/system && rm -rf -- \\~/rails_apps/strana_cvetov/releases/20121029224852/log && ln -s -- ~/rails_apps/strana_cvetov/shared/log \\~/rails_apps/strana_cvetov/releases/20121029224852/log && rm -rf -- \\~/rails_apps/strana_cvetov/releases/20121029224852/tmp/pids && mkdir -p -- \\~/rails_apps/strana_cvetov/releases/20121029224852/tmp/ && ln -s -- ~/rails_apps/strana_cvetov/shared/pids \\~/rails_apps/strana_cvetov/releases/20121029224852/tmp/pids"
    servers: ["robotinthecloak.com"]
    [robotinthecloak.com] executing command
 ** [out :: robotinthecloak.com] chmod:
 ** [out :: robotinthecloak.com] cannot access `~/rails_apps/strana_cvetov/releases/20121029224852'
 ** [out :: robotinthecloak.com] : No such file or directory
 ** [out :: robotinthecloak.com] 
    command finished in 205ms
*** [deploy:update_code] rolling back
  * executing "rm -rf ~/rails_apps/strana_cvetov/releases/20121029224852; true"
    servers: ["robotinthecloak.com"]
    [robotinthecloak.com] executing command
    command finished in 167ms
failed: "sh -c 'chmod -R -- g+w \\~/rails_apps/strana_cvetov/releases/20121029224852 && rm -rf -- \\~/rails_apps/strana_cvetov/releases/20121029224852/public/system && mkdir -p -- \\~/rails_apps/strana_cvetov/releases/20121029224852/public/ && ln -s -- ~/rails_apps/strana_cvetov/shared/system \\~/rails_apps/strana_cvetov/releases/20121029224852/public/system && rm -rf -- \\~/rails_apps/strana_cvetov/releases/20121029224852/log && ln -s -- ~/rails_apps/strana_cvetov/shared/log \\~/rails_apps/strana_cvetov/releases/20121029224852/log && rm -rf -- \\~/rails_apps/strana_cvetov/releases/20121029224852/tmp/pids && mkdir -p -- \\~/rails_apps/strana_cvetov/releases/20121029224852/tmp/ && ln -s -- ~/rails_apps/strana_cvetov/shared/pids \\~/rails_apps/strana_cvetov/releases/20121029224852/tmp/pids'" on robotinthecloak.com

My deploy.rb looks like this:

# The name of the app
set :application, "strana_cvetov"

# The address of the remote host
set :location, "robotinthecloak.com"

# setup some Capistrano roles
role :app, location
role :web, location
role :db,  location, :primary => true

# The directory on the server that will be deployed to
set :deploy_to, "~/rails_apps/#{application}"
# The type of Source Code Management system
set :scm, :git
# The location of the LOCAL repository relative to the current app
set :repository,  "ssh://ubuntu@#{location}/~/git/#{application}.git"
# The way in which files will be transferred from repository to remote host
set :deploy_via, :copy

set :use_sudo,            false
#tell git to clone only the latest revision and not the whole repository
set :git_shallow_clone,   1
set :keep_releases,       5

#options necessary to make Ubuntu’s SSH happy
ssh_options[:paranoid]    = false
default_run_options[:pty] = true

set :rails_env, :production

# Set up SSH so it can connect to the EC2 node - assumes your SSH key is in ~/.ssh/id_rsa
set :user, "ubuntu"

# Passenger
namespace :deploy do
  task :start do ; end
  task :stop do ; end
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  end

  namespace :assets do
    task :precompile, :roles => :web, :except => { :no_release => true } do
      run "cd #{current_path} && #{bundle exec rake} RAILS_ENV=#{rails_env} RAILS_GROUPS=assets assets:precompile --trace"
    end
  end
end

after "deploy:create_symlink", "deploy:resymlink", "deploy:update_crontab"

When I run deploy:check it says You appear to have all necessary dependencies installed.

I searched the web, this site, tried all solutions I could find, but nothing worked.

Other projects on that server do not deploy too with the same error, but a couple of days ago everithing worked just fine, and I touched nothing there. What’s going on?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:31:07+00:00Added an answer on June 14, 2026 at 2:31 am

    Use the full path on the deploy to, ‘~’ can be deceiving

    set :deploy_to, "/home/username/rails_apps/#{application}"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After searching a lot i did not get any answers and finally i had
Update: Ok, after getting past the fact that I did not have MSDTC set
I did push origin master and after that I have an error: $ git
I did two sample applications in ios.Both applications i have done using storyboard.Then after
I'm using modx-2.2.0-pl2 (revo). Did a clean install without any error, but after login
After a bundle update, I want to rollback some gem versions to a specific
After I deploy an app to Heroku, I run migration scripts and get this
After looking thru lots of pages (mostly contradict) I'm not able to write a
Did you notice that UINavigationBar is not set anymore when creating a UITableView, even
Getting this error after updating OmniAuth gem to 1.1: Started GET /users/auth/facebook for 127.0.0.1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.