Implementação do aplicativo Rails com nginx e cluster mongrel no Ubuntu 10.04 LTS

1

Eu instalei o cluster mongrel e o módulo nginx para ele na minha máquina virtual. O ambiente de trabalho é

ruby 1.9.2
rails 3.0.6
rubygems 1.7.2
mongrel_cluster 1.0.5
mongrel 1.2

Quando eu inicio o cluster mestiço, ele me lança o seguinte erro. O aplicativo está off-line Por favor me sugira alguma solução. Eu tentei muitas soluções googled e nenhum deles resolveu o problema. Qualquer tipo de ajuda é apreciado.

*starting port 8011
NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109
.
NOTE: from_installed_gems(arg) is deprecated. From /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb:62:in 'block (2 levels) in deprecate'
NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_gems_in called from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:50
.
** !!! PID file tmp/pids/mongrel.8011.pid already exists.  Mongrel could be running already.  Check your log/mongrel.8011.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I'll attempt a start.*

EDITAR:

Obrigado @dioms e @Hmallett. Eu atualizei as gems e deletei os arquivos pid já existentes de tmp / pids e reiniciei o d cluster. Isso me deu um erro

NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109
.
NOTE: from_installed_gems(arg) is deprecated. From /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/deprecate.rb:62:in 'block (2 levels) in deprecate'
NOTE: Gem::SourceIndex.from_gems_in is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_gems_in called from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:50
.
starting port 8009
NOTE: Gem::SourceIndex.from_installed_gems is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::SourceIndex.from_installed_gems called from /usr/local/lib/ruby/gems/1.9.1/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:109

Por favor, sugira-me alguma solução para isso. Eu sou um novato nas instalações do servidor e não sei exatamente o que incluir no script de configuração.

    
por Nivi 19.04.2011 / 00:16

2 respostas

1

Parece que algumas de suas gemas estão obsoletas

Tente atualizá-los

gem update && gem update --system

    
por 19.04.2011 / 00:49
0

O tmp / pids / mongrel.8011.pid existe?

Tem certeza de que um mestiço ainda não está em execução e escutando na porta 8011?

Se sim, rm tmp / pids / mogrel.8011.pid e tente reiniciar.

O aviso de gem depreciado é apenas um aviso, as duas últimas linhas são a pista de por que ele não inicia.

Além disso, parece que você está rodando o Ruby 1.9.1, mas acho que o rails 3 precisa do 1.9.2 se você quiser usar o ruby 1.9.

    
por 19.04.2011 / 11:00