Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot Start thin server Ruby Gem
    primarykey
    data
    text
    <p>I am trying to setup redmine on my server which is Redhat 6.2 I intend it to run with Nginx using thin ruby gem. I was following <a href="http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Nginx_to_run_Redmine" rel="nofollow">http://www.redmine.org/projects/redmine/wiki/HowTo_configure_Nginx_to_run_Redmine</a> I did following things</p> <p><code>gem install thin</code></p> <p><code>thin install</code></p> <p>this gives me init script under <code>/etc/rc.d/thin</code> The YML file config is as follows:</p> <pre><code>--- chdir: /app/redmine-root/ environment: development address: 0.0.0.0 port: 5000 timeout: 30 log: log/thin.log pid: tmp/pids/thin.pid max_conns: 1024 max_persistent_conns: 100 require: [] wait: 30 servers: 4 daemonize: true </code></pre> <p>Now when I do <code>/etc/rc.d/thin start</code> it shows </p> <pre><code>Starting server on 0.0.0.0:5000 ... Starting server on 0.0.0.0:5001 ... Starting server on 0.0.0.0:5002 ... Starting server on 0.0.0.0:5003 ... </code></pre> <p>but when I see pids under <code>/app/redmine-root/tmp/pids</code> there are no Pids.</p> <p>therefore, I can't see any service running. This is issue number 1</p> <p>Second thing I'd like to ask that, in Nginx conf as suggested by the above link the upstream block is like as follows:</p> <pre><code>upstream thin_cluster { server unix:/tmp/thin.0.sock; server unix:/tmp/thin.1.sock; server unix:/tmp/thin.2.sock; server unix:/tmp/thin.3.sock; } </code></pre> <p>But the pid file is in <code>/app/redmine-root/tmp/pids</code> should this work?</p> <p>Third, At the time of Install I marked the env as <code>production</code></p> <pre><code>RAILS_ENV=production rake db:migrate </code></pre> <p>But whenever I do <code>thin config -C /etc/thin/redmine.yml</code> it changes to development.</p> <p>Please note that I have RVM also. And the user &amp; owner of /app/redmine-root/ is <code>apache</code>. My nginx runs with apache and I am trying to run thin also as apache.</p> <p>I have no background in Ruby. Any help is much appreciated.</p> <p><strong>EDIT</strong></p> <p>After suggestions, I found this in log.</p> <pre><code>/usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/backends/tcp_server.rb:16:in `connect': cannot load such file -- thin/connection (LoadError) from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/backends/base.rb:55:in `block in start' from /usr/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `call' from /usr/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine' from /usr/local/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run' from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/backends/base.rb:63:in `start' from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/server.rb:159:in `start' from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/controllers/controller.rb:86:in `start' from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command' from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!' from /usr/local/lib/ruby/gems/2.0.0/gems/thin-1.5.1/bin/thin:6:in `&lt;top (required)&gt;' from /usr/local/bin/thin:23:in `load' from /usr/local/bin/thin:23:in `&lt;main&gt;' </code></pre> <p>is it because, I am trying to configure on UNIX socket or its something else??</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload