Questions tagged [thin]

Thin is an EventMachine-based web server written in Ruby for running Rack-based web apps.

Thin is a Ruby web server that glues together 3 of the best Ruby libraries in web history:

the Mongrel parser, the root of Mongrel speed and security Event Machine, a network I/O library with extremely high scalability, performance and stability Rack, a minimal interface between webservers and Ruby frameworks Which makes it, with all humility, the most secure, stable, fast and extensible Ruby web server bundled in an easy to use gem for your own pleasure.

695 questions
5
votes
1 answer

Thin doesn't respond to SIGINT or SIGTERM

bundle exec thin start -p 3111 gives the following output: Using rack adapter Thin web server (v1.2.11 codename Bat-Shit Crazy) Maximum connections set to 1024 Listening on 0.0.0.0:3111, CTRL+C to stop ^C Ctrl-C doesn't do…
Michiel de Mare
  • 41,982
  • 29
  • 103
  • 134
5
votes
1 answer

"libgcc_s.so.1 must be installed for pthread_cancel to work" when starting thin on Debian

I am using thin as development web server with Rails on Debian 7. Since I've updated Rails to 4.2.7.1 I cannot launch thin anymore and I'm getting this error message : Using rack adapter libgcc_s.so.1 must be installed for pthread_cancel to…
clemlatz
  • 7,543
  • 4
  • 37
  • 51
5
votes
4 answers

Rails - bundler error when using thin

I started using bundler and have some problems getting it working. I have the following gemfile: source "http://rubygems.org" gem "rack", "~>1.1" gem 'pg','>= 0.8.0' gem 'rails','2.3.8' gem 'authlogic','2.1.3' gem 'ajaxful_rating','2.2.3' gem…
user296489
  • 83
  • 1
  • 5
5
votes
1 answer

Permission denied in Rails app (Redmine) running with Thin

I'm trying to run Redmine with Thin and nginx as reverse proxy. My /etc/thin2.1/redmine.yml: --- pid: /var/run/thin/redmine.pid group: redmine wait: 30 timeout: 30 log: /var/log/thin/redmine.log max_conns: 1024 require: [] environment:…
Erik Hofer
  • 2,296
  • 2
  • 18
  • 39
5
votes
0 answers

Getting async http requests to work on rails 3beta4/ruby 1.9.2-rc2/thin/eventmachine

I've been trying to get basic async HTTP calls to work in my app. I've tried using some code in my app from the Rails 3 async stack demo: http://github.com/igrigorik/async-rails, but I'm getting "can't yield from root fiber" and I have no idea…
user397424
  • 133
  • 1
  • 6
5
votes
1 answer

Chrome asks to "Select a Certificate" for SSL on my Rails app using thin

I have a Rails app that is configured to only use SSL. I also have free SSL certificates from StartSSL. I use thin as my web server with this command: thin start -p 80 & thin start -p 443 --ssl --ssl-key-file ./.ssl/sslkey.key --ssl-cert-file…
drewblaisdell
  • 609
  • 5
  • 16
5
votes
1 answer

Binding a Rails server to port 80 on Linux without running it as root

I'm trying to find a way to bind my production Rails server to port 80 without having to run the entire server with root privileges. My question is basically the same as "Is there a way for non-root processes to bind to "privileged" ports (<1024) on…
Ajedi32
  • 45,670
  • 22
  • 127
  • 172
5
votes
1 answer

Why does my rdebug session say "*** No sourcefile available"

I'm not sure what the pattern of behaviour is but some programs - notably simple rack.ru based ones running in thin - can't easily be debugged. When a breakpoint is tripped, no source is available Note this isn't the same as this other S.O.…
Chris McCauley
  • 25,824
  • 8
  • 48
  • 65
5
votes
1 answer

Why thin behind nginx?

Deploying my first web app. I have been using thin, it's simple and easy. All I need is a config file. But a lot of people use nginx and place a couple thin instance behind that. Why? Why not just use thin alone? And why use nginx rather than…
0xSina
  • 20,973
  • 34
  • 136
  • 253
5
votes
2 answers

Ruby on Rails loopback requests cause deadlock?

Solution I am switching to unicorn in development mode. One worker process for each level of recursion is needed to prevent the deadlock situation, so I am running with 2 worker processes. Problem I am working on the Thin server in my development…
accounted4
  • 1,685
  • 1
  • 11
  • 13
5
votes
1 answer

Running Rails Server in a UNIX socket

Is it possible to run rails server in a UNIX socket? I ask because rails server gives such a beautiful output, and it's really easy to distinguish SQL queries from HTTP requests, etc. But, I'm using Nginx, so I'd like to connect the application…
tubbo
  • 598
  • 10
  • 21
5
votes
3 answers

Why is my rails development environment not reloading on changes to code?

Each time I make changes to code I have to restart the server or it won't change the output. I have tried using thin and webrick. My development.rb file says "config.cache_classes = false". I am using RubyMine. Sometimes my view updates, but the…
webmagnets
  • 2,266
  • 3
  • 33
  • 60
5
votes
3 answers

Rails: How to handle Thread.current data under a single-threaded server like Thin/Unicorn?

As Thin/Unicorn are single threaded, how do you handle Thread.current/per-request storage? Just ran a simple test - set a key in one session, read it from another -- looks like it writes/reads from the same place all the time. Doesn't happen on…
elado
  • 8,510
  • 9
  • 51
  • 60
5
votes
6 answers

Issue in connecting Java thin driver in oracle 11G r2

public static Connection getConnection()throws SQLException,ClassNotFoundException { String username="scott"; String password="tiger"; String url="jdbc:oracle:thin:@localhost:1521"; Connection connection =…
Kali
  • 73
  • 1
  • 2
  • 10
5
votes
5 answers

How to get the EventMachine gem to compile on OSX Lion 10.8.2 with Xcode 4.5.1

I looked everywhere I can find but can't seem to find a solution to this. I'm using Xcode 4.5.1 on Lion 10.8.2, and am trying to run bundle for a Rails project and it keeps jamming up on this. I'm using the Thin gem for Heroku. …
jbolanos
  • 615
  • 3
  • 9
  • 20