Looks like Greg replied to me, not the list. -- Pat
Begin forwarded message: > From: Greg DeVore <[email protected]> > Date: 9 March 2010 5:55:25 AM AEDT > To: Pat Allan <[email protected]> > Subject: Re: deploy strangeness > > Ryan- > > If you look at the error log you can see that access is being denied > because Capistrano is using the username and password of your local > system (root, no password). When you log into your box you are logged > in with the user and password for that system so your rake tasks run > fine. You need to update your deploy file to contain the user name and > password of your remote server, not your local one. Then your deploy > should run fine. > > Greg > > > On Mar 8, 1:52 am, Pat Allan <[email protected]> wrote: >> (Sorry, I screwed up - accidentally flagged this email as spam - obviously, >> I'm in need of some sleep at the moment. Reposting on behalf of rywalker, >> and have removed the auto-account ban. Sorry!) >> >> I have installed 1.3.16 as plugin, gem in not installed on development >> or server >> >> In this task: >> >> task :after_update_code, :roles => [:app] do >> symlink_sphinx_indexes >> thinking_sphinx.configure >> thinking_sphinx.start >> end >> >> when the thinking_sphinx.configure line runs, it fails... >> >> executing "cd /home/deploy/apps/gapattack/releases/20100308011613 && >> rake thinking_sphinx:configure RAILS_ENV=production" >> servers: ["av1.anotherventure.com"] >> [av1.anotherventure.com] executing command >> *** [err :: av1.anotherventure.com] rake aborted! >> *** [err :: av1.anotherventure.com] Access denied for user >> 'root'@'localhost' (using password: NO) >> *** [err :: av1.anotherventure.com] >> *** [err :: av1.anotherventure.com] (See full trace by running task >> with --trace) >> ** [out :: av1.anotherventure.com] (in /home/deploy/apps/gapattack/ >> releases/20100308011613) >> ** [out :: av1.anotherventure.com] Generating Configuration to /home/ >> deploy/apps/gapattack/releases/20100308011613/config/ >> production.sphinx.conf >> command finished >> *** [deploy:update_code] rolling back >> >> If I take out these 2 lines: >> >> thinking_sphinx.configure >> thinking_sphinx.start >> >> then after successfuly deploy I go to server & run these two lines: >> >> RAILS_ENV=production rake ts:config >> RAILS_ENV=production rake ts:start >> >> everything is fine... >> >> I don't know capistrano very well, so I'm guessing that the release >> must not be in the same state when I get the failure than it is when I >> run the rake tasks after the deploy. >> >> Any ideas? What additional info can I provide for troubleshooting? >> >> -Ryan -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
