'rails server' starts thin twice, shuts both down. Cucumber still works


My rails application fails to start up in development mode. It appears to work in both production and test mode. Here is what I get when I run 'rails server':

Thin web server (v1.5.1 codename Straight Razor) Maximum connections set to 1024 Listening on, CTRL+C to stop Booting Thin Rails 3.2.11 application starting in development on Call with -d to detach Ctrl-C to shutdown server Thin web server (v1.5.1 codename Straight Razor) Maximum connections set to 1024 Listening on, CTRL+C to stop Exiting

One clue I've found is that thin seems to start before every call to rails. For example, here is what happens when I call rails console:

Thin web server (v1.5.1 codename Straight Razor) Maximum connections set to 1024 Listening on, CTRL+C to stop Loading development environment (Rails 3.2.11)

This error has shown up on two different computers. The first (macbook) I simply cloned the github repository into a new folder and started it up from there, fixing things (how? Not sure). The second computer (iMac) did not respond to this.

I'm using ruby 1.9.3, rails 3.2, and thin 1.5.1.

More mysteriously, removing thin from my gemfile does nothing to fix the error. Rails still uses thin to start. I cannot find a direct reference to thin in the rest of my project.

Please excuse my relative ignorance of the internals of both rails and web servers. Any ideas on what might be causing this?

PS I am aware of <a href="https://stackoverflow.com/questions/10604664/rails-3-2-and-thin" rel="nofollow">this SO question</a> and the solution there did not work for me.


I found out why. I was running the gem 'fake_braintree' in both development and test. It is meant to be run only in test. When it is run, it starts up a thin server which conflicts with the thin server I am wanting to run.


  • how to send control + L and control + C to another application?
  • Ordering list with jQuery drag and drop
  • How to Count the Number of a Specific Character in a Cell with Excel VBA
  • Why is signal.SIGTERM not dealt with properly in my main thread?
  • Any debug tool in opera (like firebug in firefox)?
  • How to use a controller in an other file in Angularjs
  • How to find move constructors in codebase using grep or an IDE?
  • Why don't we register broadcast receiver for BOOT_COMPLETED events
  • Why is my $q deferred not resolving in Angular unit test?
  • Spring Web Security locks Neo4j embedded database
  • JavaScript/jQuery dropdownlist change event with closure not working
  • What going wrong in using PropertiesConfiguration?
  • JQuery UI selectable plugin - Multiple mouse drag selection and unselect option
  • Intellisense for C++ in VS2010
  • Clickable Webcontrol, ASP.NET
  • Can't CTRL+Drag NSButton to custom NSView header
  • Notepad++ - delete all lines with certain text
  • Is it possible to disable esc/F11 key during full screen mode of webpage, programmatically?
  • Left fixed columns with table colspan
  • How to convert row to column in notepad++
  • How do `pass` and `listen` work in WriterT?
  • How to format code on aptana 3?
  • c++ search a vector for element first seen position
  • PHPStorm Namespace support not working for Symfony2 projects
  • Is there any purpose for h2-h6 headings in HTML5?
  • Installing PHP 7 on digitalocean
  • Problems installing Yesod for Haskell
  • How to revert to previous XCode version?
  • Mysterious problem with floating point in LISP - time axis generation
  • How to know when stdin is empty if it contains EOF?
  • iOS: Detect app start via notification press
  • Java: can you cast Class into a specific interface?
  • formatting the colorbar ticklabels with SymLogNorm normalization in matplotlib
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • Turn off referential integrity in Derby? is it possible?
  • How does Linux kernel interrupt the application?
  • JaxB to read class hierarchy
  • Busy indicator not showing up in wpf window [duplicate]
  • Why do underscore prefixed variables exist?