Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

During my rails(3.2.16v) deploy with Capistrano v3, I am getting the following error.

$cap development deploy --trace

DEBUG [014a40e4] Running /usr/bin/env [ -L /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ] on 50.13.220.55

DEBUG [014a40e4] Command: [ -L /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ]

DEBUG [014a40e4] Finished in 0.602 seconds with exit status 1 (failed).

DEBUG [9c5901ab] Running /usr/bin/env [ -d /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ] on 50.13.220.55

DEBUG [9c5901ab] Command: [ -d /home/ec2-user/capistrano-3/my_app/releases/20140117124107/public/assets ]

DEBUG [9c5901ab] Finished in 0.639 seconds with exit status 1 (failed).

//// this error is at the end of the trace

** Invoke deploy:assets:backup_manifest (first_time)

** Execute deploy:assets:backup_manifest

DEBUG [a08f4c02]    cp: 

DEBUG [a08f4c02]    cannot stat `/home/ec2-user/capistrano-3/my_app/releases/20140117064709/public/assets/manifest*'

DEBUG [a08f4c02]    : No such file or directory

DEBUG [a08f4c02]    

cap aborted!

cp stdout: Nothing written

cp stderr: Nothing written

Tasks: TOP => deploy:assets:backup_manifest

The deploy has failed with an error: #<SSHKit::Command::Failed: cp stdout: Nothing written

cp stderr: Nothing written

>

** Invoke deploy:failed (first_time)

** Execute deploy:failed

I don't have any assets folder in my local machine too. Can anybody help me??

1 Answer

0 votes
by (44.4k points)

There are two possible things which can solve this:

1. If the Gemfile has gem ‘capistrano-rails’, ‘~> 1.1’, then update it using this command:

bundle update capistrano-rails

2. Add this to the Gemfile

gem 'sprockets', '2.12.3'

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Jul 15, 2019 in AWS by yuvraj (19.1k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...