Não é possível a sessão de check-out porque ocorreu um erro de desova

2

Estou tentando fazer meu aplicativo Rails funcionar no meu VPS. Eu implantei meu projeto, criei o banco de dados e o migrei. Mas quando eu visito a página recebo uma mensagem:

We're sorry, but something went wrong.
We've been notified about this issue and we'll take a look at it shortly.

Meu log de erros nginx mostra isso:

App 12380 stdout:
App 12380 stderr: *** ERROR ***: Cannot execute /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: No such file or directory (2)
[ 2014-11-03 11:44:12.9549 12050/7fd1a0bb8700 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /home/deploy/wisemonkeys/current: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger.
  Error ID: 20eb13ee
  Error details saved to: /tmp/passenger-error-dyuK5v.html
  Message from application: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read <a href="https://github.com/phusion/passenger/wiki/Debugging-application-startup-problems">this article</a> for more information about this problem.<br>
<h2>Raw process output:</h2>
<pre>
*** ERROR ***: Cannot execute /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: No such file or directory (2)
</pre>

[ 2014-11-03 11:44:12.9630 12050/7fd19e833700 agents/HelperAgent/RequestHandler.h:2306 ]: [Client 20] Cannot checkout session because a spawning error occurred. The identifier of the error is 20eb13ee. Please see earlier logs for details about the error.

Eu tentei ler link mas é muito técnico para mim este ponto.

    
por Peter Boomsma 03.11.2014 / 17:48

1 resposta

2

Encontrou o problema. Eu não estou usando o RVM /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: no meu /etc/nginx/nginx.conf eu tive

passenger_ruby /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby;

Mas eu precisava ter:

passenger_ruby /home/deploy/.rbenv/shims/ruby;
    
por 03.11.2014 / 19:12