Deployment problem with "cp -p ..."

46 views
Skip to first unread message

Christian Hofer

unread,
Jan 16, 2015, 6:43:12 AM1/16/15
to capis...@googlegroups.com
Hi there,

when I run cap deploy it seems that all commands containing cp -p ... fail, e.g.:

...
*** [err :: www.xxx.at] cp -p public/assets/ckeditor/ckeditor-d90db54f1aa0746b00dcefd6842225be.js public/assets/ckeditor/ckeditor.js
*** [err :: www.xxx.at] cp -p public/assets/ckeditor/application-7b124a48b7a8fc90e7229bc09534aefb.css public/assets/ckeditor/application.css
*** [err :: www.xxx.at] cp -p public/assets/ckeditor/application-7b124a48b7a8fc90e7229bc09534aefb.css.gz public/assets/ckeditor/application.css.gz
    command finished in 501199ms
  * executing "ls -1 /var/www/www.xxx.at/shared/assets/manifest* | wc -l"


The deployment process runs through, but when I check out the apps website, it seems some assets are missing. As for instance the bootstrap twitter glyphs and the ckeditor seems also not to work.

What could be wrong here? Unfortunatley the server admin where I'm deploying at, does also not know what could it be.




Versions:
  • Ruby 2.1.5
  • Capistrano 2.15.5
  • Capistrano-ext 1.2.1
  • Rvm-capistrano 1.4.4
  • Rake 10.1.0
  • Rails 4.1.8

Lee Hambley

unread,
Jan 16, 2015, 7:03:49 AM1/16/15
to Capistrano

Almost certainly permissions problems?

Sent from my Nexus 5.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/f9aaf450-c8c0-4d16-844d-436dfc809537%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Hofer

unread,
Jan 16, 2015, 8:11:27 AM1/16/15
to capis...@googlegroups.com
Thank you Lee for your quick answer!

I also have ssh access to the server, when I go there, navigate to the project folder and for instance execute one of the failing cp -p ... command, it works.

However when I do a cap deploy from my local machine, it seems to fail, what permission could there be missing?
Maybe I can then give the server admin a hint, so that he can fix it.

Again, thank you!

Lee Hambley

unread,
Jan 16, 2015, 8:25:14 AM1/16/15
to Capistrano
There's a tonne of things that could be going wrong, principally, you need to be comparing not an interactive session, but rather when it's non-interactive, see http://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/ for more information.

You might also try upgrading your SSHKit version, some previous versions had issues with not printing output correctly, see https://github.com/capistrano/sshkit/issues/100, it's still unresolved (as all resolutions suck for some people, or other) this comment in particular shows a workaround, it might make your output overly noisy, and include duplicate lines, but perhaps that's better than not seeing something that you might really need https://github.com/capistrano/sshkit/issues/100#issuecomment-43578824

Hope that gives a bit more help.

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.

Christian Hofer

unread,
Jan 16, 2015, 10:03:25 AM1/16/15
to capis...@googlegroups.com
Thank you very much for your help!
I will read into it and give it a try.
Reply all
Reply to author
Forward
0 new messages