I'm getting this error when running this capistrano task (my own - cap deploy:show_pointers):

23 views
Skip to first unread message

Benjamin Moses Lieb

unread,
May 20, 2012, 11:07:35 PM5/20/12
to capis...@googlegroups.com

I'm getting this error when running this capistrano task (my own - cap deploy:show_pointers):

  * executing `deploy:show_pointers'
  * executing "cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers"
    servers: ["mydomain.net"]
    [mydomain.net] executing command
 ** [out :: mydomain.net] (in /home/mydomain/public_html/site_folders/rails/releases/20120521025150)
 ** [out :: mydomain.net] Could not find rake-0.9.2 in any of the sources
 ** [out :: mydomain.net] Try running `
bundle install`.
    command finished in 1584ms
failed: "sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers'" on mydomain.net

However when I run

sh -c 'cd /home/mydomain/public_html/site_folders/rails/current; rake app:show_pointers

manually from the same dir that capistrano logs into, it works. I have capistrano set to NOT USE sudo, so that shouldn't be the issue, but it sounds like it might be, since the above command fails with sudo. I think this is a user issue, or maybe an environment var issue. Or I'm not sure what.

Any suggestsions. This is a task that is already a rake task, but it will help me not to have to log into the server every time I run it (and about 10 more like it).

Appreciate any help on this.

Lee Hambley

unread,
May 21, 2012, 2:34:59 AM5/21/12
to capis...@googlegroups.com
Benjamin,

It's incredibly rude and sneaky to cross-post to multiple support channels without fully disclosing your cross posting (maybe some of us would have liked to earn the rep at SO, maybe some of us would prefer not to have our time wasted, etc)

The answer you received at SO is half-way right (http://stackoverflow.com/a/10679123/119669), but if it's not working for you that's quite something else.

I feel quite disinclined to help you because of the cross posting, good luck at SO.

- Lee Hambley
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* To unsubscribe from this group, send email to capistrano+...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

Donovan Bray

unread,
May 21, 2012, 10:50:37 AM5/21/12
to capis...@googlegroups.com
Use the full path to rake; your env is different when sshing. I think it's the .profile doesn't get sourced or it's the bashrc. In any case I've found it better to always use full paths to executables. 
--

Lee Hambley

unread,
May 21, 2012, 10:53:39 AM5/21/12
to capis...@googlegroups.com
Donovan,

I appreciate that you took the time to answer him, but I'd thank you not to reward cross-posters. 

I follow the capistrano tag on SO, and an RSS feed of the google search results, and Google notifications for the common search terms, and so much effort is wasted on duplicate effort from people cross-posting, it's quite frustrating.

Benjamin appears to be a freelancer, and especially when time literally is money, I can appreciate the desire for a speedy answer, but that is still no justification for cross-posting.

To be clear, finally, cross-posting with disclosure is fine, in my book; such as "the question worked better with decent code samples, so I posted it to SO, it's a little quiet over there, so I'm sharing a link here" would be absolutely fine.

- Lee

Donovan Bray

unread,
May 21, 2012, 11:01:32 AM5/21/12
to capis...@googlegroups.com
Lee np, I answered before I got to your post. I don't use so and had no idea. I lurk here and that's about it. 

Lee Hambley

unread,
May 21, 2012, 11:02:57 AM5/21/12
to capis...@googlegroups.com
Donovan, no problem, I don't want to act too dogmatic (plus I'm having a serious case of the Mondays) but it really does get my goat that people don't think about this kind of stuff when x-posting.

30 seconds to write an email that what, 800 people on the list (mostly all silent) have to deal with then.

Benjamin Moses Lieb

unread,
May 21, 2012, 8:55:41 PM5/21/12
to capis...@googlegroups.com
@lee 

I'm sorry to have offended you. I simply come here for a collaborative environment to problem solving. I really don't understand what you mean by being rude and sneaky. That was obviously not my intention. Next time I cross post here I'll try to remember to mention that I have done so. 

@dbray,

Thanks for the advice, I'm sure that's the issue. I've referenced you as having solved the enigma on SO. 

Lee Hambley

unread,
May 22, 2012, 3:50:25 AM5/22/12
to capis...@googlegroups.com
Benjamin,

It's just that if I know the question is at SO, I'll click the link, see if you accepted an answer, and I'll decide to ignore the mailing list post, or confirm that the SO answer was the sane one, when you don't disclose that it's cross-posted, potentially you're wasting the SO member community's time (you get the right answer here), or our time (you already got the right answer there)

I absolutely believe in using the power of SO to write a good question with code highlighting, explaining things in detail, and having a point of reference for your query, then nipping to a mailing list or IRC, or whatever - tell them the question comes with code samples, and logs/etc - and it's at SO…. I quite like that model, it means i can earn some SO rep and have something in return for all the time invested answering support queries :)

I don't want to chastise you too heavily, it's a slightly obscure point of view that I hold, but it encourages me to discontinue the Capistrano group, and close the GH issues tracker (not your fault, but 50% of all queries are "how does ssh work" / "my deployment doesn't work") -- community maintainership and support take up 80% of the time I can spend working on Capistrano, and if another community already had the chance to help people, it would free me to work on improvements.

- Lee
Reply all
Reply to author
Forward
0 new messages