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:in
start_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:in
start'
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:in
run_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:in
start'
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:in
start'
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:in
run_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:in
load'
from /usr/bin/thin:23
Thanks!
Comments and changes to this ticket
-
macournoyer July 6th, 2012 @ 02:54 PM
Sorry for the delay.
There might be another service already running on port 82.
To find out:
$ lsof -i :82
This will give your the PID of the process listening, you can check the
process info w/:$ ps -p <PID>
-
macournoyer July 10th, 2012 @ 08:28 AM
According to your config file your log is in: /var/log/nginx/thin.log.
Check for errors in that file. -
John November 24th, 2023 @ 08:35 AM
Actually, people in the world love to play online casinos. The only casino I can recommend is Awintura casino casino because people trust it. There you can find the biggest number of various games from table games to slot games. https://casinoavintura.com/
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป