Douglas Tan
2006-Mar-01 02:51 UTC
[Rails] SwitchTower deployment has errors with different :db server
When I define :db to be a different server than either :web or :app, and run "rake deploy". Switchtower will abort with an Net::SSH::AuthenticationFailed error. The version of Switchtower I''m using is 1.0.0 and the deploy task is the default supplied with Switchtowe. However, I dont have any problem when :db is changed to the same as :web and :app. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/74b01178/attachment.html
Jamis Buck
2006-Mar-01 04:25 UTC
[Rails] SwitchTower deployment has errors with different :db server
On Feb 28, 2006, at 7:51 PM, Douglas Tan wrote:> When I define :db to be a different server than either :web > or :app, and run "rake deploy". Switchtower will abort with an > Net::SSH::AuthenticationFailed error. The version of Switchtower > I''m using is 1.0.0 and the deploy task is the default supplied with > Switchtowe. > > However, I dont have any problem when :db is changed to the same > as :web and :app.It sounds like the user/password combo you are using for the web and app servers is not valid for the db server. Are you sure you can log into the db server with the same credentials as those you use on the web and app server? - Jamis
Douglas Tan
2006-Mar-01 05:45 UTC
[Rails] SwitchTower deployment has errors with different :db server
the login credentials are different for the web server and the db server. I was under the assumption that Switchtower uses the login details from database.yml for this? On 3/1/06, Jamis Buck <jamis@37signals.com> wrote:> > On Feb 28, 2006, at 7:51 PM, Douglas Tan wrote: > > > When I define :db to be a different server than either :web > > or :app, and run "rake deploy". Switchtower will abort with an > > Net::SSH::AuthenticationFailed error. The version of Switchtower > > I''m using is 1.0.0 and the deploy task is the default supplied with > > Switchtowe. > > > > However, I dont have any problem when :db is changed to the same > > as :web and :app. > > It sounds like the user/password combo you are using for the web and > app servers is not valid for the db server. Are you sure you can log > into the db server with the same credentials as those you use on the > web and app server? > > - Jamis > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/f8c45abf/attachment.html
Jamis Buck
2006-Mar-01 06:04 UTC
[Rails] SwitchTower deployment has errors with different :db server
On Feb 28, 2006, at 10:45 PM, Douglas Tan wrote:> the login credentials are different for the web server and the db > server. I was under the assumption that Switchtower uses the login > details from database.yml for this?No, the database.yml does not (necessarily) describe the login credentials for the server itself--it only gives you access to the database--and so cannot be used as a reliable source for the login info. SwitchTower treats all of your servers equally, and requires that they all have the same login. There is not currently a way to work around that restriction (that I''m aware of). - Jamis> > > On 3/1/06, Jamis Buck <jamis@37signals.com> wrote: On Feb 28, 2006, > at 7:51 PM, Douglas Tan wrote: > > > When I define :db to be a different server than either :web > > or :app, and run "rake deploy". Switchtower will abort with an > > Net::SSH::AuthenticationFailed error. The version of Switchtower > > I''m using is 1.0.0 and the deploy task is the default supplied with > > Switchtowe. > > > > However, I dont have any problem when :db is changed to the same > > as :web and :app. > > It sounds like the user/password combo you are using for the web and > app servers is not valid for the db server. Are you sure you can log > into the db server with the same credentials as those you use on the > web and app server? > > - Jamis > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Douglas Tan
2006-Mar-01 06:06 UTC
[Rails] SwitchTower deployment has errors with different :db server
okay, thanks for the clarification, Jamis. On 3/1/06, Jamis Buck <jamis@37signals.com> wrote:> > On Feb 28, 2006, at 10:45 PM, Douglas Tan wrote: > > > the login credentials are different for the web server and the db > > server. I was under the assumption that Switchtower uses the login > > details from database.yml for this? > > No, the database.yml does not (necessarily) describe the login > credentials for the server itself--it only gives you access to the > database--and so cannot be used as a reliable source for the login > info. SwitchTower treats all of your servers equally, and requires > that they all have the same login. There is not currently a way to > work around that restriction (that I''m aware of). > > - Jamis > > > > > > > On 3/1/06, Jamis Buck <jamis@37signals.com> wrote: On Feb 28, 2006, > > at 7:51 PM, Douglas Tan wrote: > > > > > When I define :db to be a different server than either :web > > > or :app, and run "rake deploy". Switchtower will abort with an > > > Net::SSH::AuthenticationFailed error. The version of Switchtower > > > I''m using is 1.0.0 and the deploy task is the default supplied with > > > Switchtowe. > > > > > > However, I dont have any problem when :db is changed to the same > > > as :web and :app. > > > > It sounds like the user/password combo you are using for the web and > > app servers is not valid for the db server. Are you sure you can log > > into the db server with the same credentials as those you use on the > > web and app server? > > > > - Jamis > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060301/08a01d2e/attachment-0001.html