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 8368455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:23:38+00:00 2026-06-09T13:23:38+00:00

I am doing a cap deploy:cold with the following config/deploy.rb 1 require ‘bundler/capistrano’ 2

  • 0

I am doing a cap deploy:cold

with the following config/deploy.rb

1 require 'bundler/capistrano'
  2 
  3 set :application, "massiveapp"
  4 
  5 set :scm, :git
  6 
  7 set :repository, "git://github.com/deployingrails/massiveapp.git"
  8 
  9 server "localhost", :web, :app, :db, :primary => true
 10 
 11 ssh_options[:port] = 2222
 12 ssh_options[:keys] = "~/.vagrant.d/insecure_private_key"
 13 
 14 set :user, "vagrant"
 15 set :group, "vagrant"
 16 set :deploy_to, "/var/massiveapp"
 17 set :use_sudo, false
 18 
 19 set :deploy_via, :copy
 20 set :copy_strategy, :export
 21 
 22 namespace :deploy do
 23   task :start do ; end
 24   task :stop do ; end
 25   desc "Restart the application"
 26   task :restart, :roles => :app, :except => { :no_release => true } do
 27     run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
 28   end
 29   desc "Copy the database.yml file into the latest release"
 30   task :copy_in_database_yml do
 31     run "cp #{shared_path}/config/database.yml #{latest_release}/config/"
 32   end
 33 end
 34 #before "deploy:copy_in_database_yml"
 35 before "deploy:assets:precompile", "deploy:copy_in_database_yml"

It all goes fine up to the following at which point it fails.

* executing "cd /var/massiveapp/releases/20120808053801 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
    servers: ["localhost"]
    [localhost] executing command
*** [err :: localhost] rake aborted!
*** [err :: localhost] (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 1
*** [err :: localhost] 
*** [err :: localhost] Tasks: TOP => environment
*** [err :: localhost] (See full trace by running task with --trace)
    command finished in 1196ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/massiveapp/releases/20120808053801; true"
    servers: ["localhost"]
    [localhost] executing command
    command finished in 39ms

I am just learning capistrano and just don’t know how to debug this to solve it.

Any help would be much appreciated.

rails 3.2.7 ruby 1.9.3 capistrano 2.12

  • 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-09T13:23:39+00:00Added an answer on June 9, 2026 at 1:23 pm

    Problem was caused by a tab character in the database.yml file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Doing my first SL4 MVVM RIA based application and i ran into the following
Hello I get this error when I do cap deploy:cold. * executing cd /var/www/myapp.no/releases/20100905130830;
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Doing some jquery animation. I have certain divs set up with an attribute of
In my drawing application, I am doing painting with on canvas with this code:
My custom capistrano task app:sample fails with the following error message: mnylen ilmo-on-rails $
Doing some SOAP calls to a 3rd party application. They provide this soap header
I'm totally lost with the working of capistrano and bundler together. I've just started
When trying to execute the command cap deploy from a Windows machine, I'm getting
Doing the getting started of Sinatra. I get this error: ./sinatra.rb:5: undefined method `get'

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.