If you are getting a permission denied have you double checked your working 
directory on the server to make sure your deploy user has full perms?  Also in 
capistrano are you using deploy as sudo or just a non-elevated user?

Perms is where I would start looking just to eliminate that possibility.  I 
will do some searching and see what else I can come up with.

-James

> On Nov 19, 2015, at 9:31 AM, Colin Law <[email protected]> wrote:
> 
> I hope someone can help with a capistrano problem.
> I have been using Capistrano to deploy a rails 3.2 app for a little
> while with no problems.  Having upgraded the app to rails 4.2.5,
> however, I have a problem when I try to deploy it using
> cap production deploy
> All runs well until it tries to run a command:
> 
> cd /site/releases/20151119150821 && /usr/bin/env cp
> /site/releases/20151119150821/public/assets/manifest-72e5c145db1ffed834c05d9e2e69721e.json
> /site/releases/20151119150821/public/assets/manifest.yml
> /site/releases/20151119150821/assets_manifest_backup
> 
> The problem is that there appears to be a newline after .json so the result 
> is:
> 
> DEBUG [c1a8b7a9]     cp:
> DEBUG [c1a8b7a9]     missing destination file operand after
> '/site/releases/20151119150821/public/assets/manifest-72e5c145db1ffed834c05d9e2e69721e.json'
> DEBUG [c1a8b7a9]
> DEBUG [c1a8b7a9]     Try 'cp --help' for more information.
> DEBUG [c1a8b7a9]     bash: line 1:
> /site/releases/20151119150821/public/assets/manifest.yml: Permission
> denied
> 
> I have not enough experience with capistrano to have any idea where to
> even start looking for the problem so any help will be much
> appreciated.
> 
> Google has been of little help to me in this.
> 
> rails 4.2.5, capistrano 3.4.0
> 
> Colin
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuy9R_DHQSxhTBh3FKEDdv8rq3xHdCeTTPof8Su_9kapQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/BDFCC9D3-C24E-4A01-8E3C-434C95DFEAC5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to