0 votes
1 view
in AWS by (19.2k 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.6k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...