#159 new
And

Thin on Debian Etch

Reported by And | June 6th, 2012 @ 08:29 PM | in Future

Hi.

I am not ruby programmer, so maybe can't provide required information at first time.

My config (environment):

/etc/thin1.8/redmine.yml
pid: /var/run/thin.pid
timeout: 30
log: /var/log/nginx/thin.log
address: 127.0.0.1
port: 82
max_conns: 1024
require: []

environment: production
max_persistent_conns: 16
no-epoll: true
servers: 1
daemonize: true
#socket: /tmp/redmine.sock
chdir: /var/www/redmine/
user: redmine
group: redmine
root@host:/var/www/redmine# thin -C /etc/thin/redmine.yml start
Starting server on 127.0.0.1:82 ...
>> Deleting stale PID file /var/run/thin.82.pid

and again:

root@host:/var/www/redmine# thin -C /etc/thin/redmine.yml start
Starting server on 127.0.0.1:82 ...
>> Deleting stale PID file /var/run/thin.82.pid

hmm...
Try to stop daemon:

root@host:/var/www/redmine# thin stop
Can't stop process, no PID found in tmp/pids/thin.pid
root@host:/var/www/redmine#

Is process runned?

root@host:/var/www/redmine# thin -C /etc/thin/redmine.yml start
Starting server on 127.0.0.1:82 ...
>> Deleting stale PID file /var/run/thin.82.pid
root@host:/var/www/redmine# ps a | grep thin
16662 pts/0    S+     0:00 grep thin

Look like process started, but:

root@host:/var/www/redmine# telnet 127.0.0.1 82
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

But, if I try to set variables from console as parameters:

root@host:/var/www/redmine# thin -p 82 -c /var/www/redmine -e production -u redmine -d start
root@host:/var/www/redmine# htop root@host:/var/www/redmine# telnet 127.0.0.1 82 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'.

As you can see - connection possible.

What is the problem?


Also, after use group parameter:

root@host:/var/www/redmine# thin -p 82 -c /var/www/redmine -e production -u redmine -g redmine start
>> Changing process privilege to redmine:redmine
>> Using rack adapter
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:82, CTRL+C to stop
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in start_tcp_server': no acceptor (RuntimeError)
        from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:instart_server'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/tcp_server.rb:16:in connect'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:53:instart'
        from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in call'
        from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine'
        from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:instart'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in start'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:instart'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in send'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:inrun_command'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in run!'
        from /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/bin/thin:6
        from /usr/bin/thin:23:inload'
        from /usr/bin/thin:23

Thanks!

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages