Firefox 19 and unable to obtain stable firefox connection in 60 seconds

Problem
You have just upgraded your Firefox to the latest release (currently 19) and when running your javascript cucumber tests you get the following error:

 unable to obtain stable firefox connection in 60 seconds

Solution
Add the latest selenium-webdriver to your Gemfile and run bundle update:

gem "selenium-webdriver", "~> 2.30.0", :group => :test

bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)

Problem

When trying to connect with ssh to a linux (debian- ubuntu) server you get the following error:

bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)

Solution

The reason is that the server is missing the en_US locale that your client is trying to use to connect to the server.
Login to the server and by using sudo (or su) run the following to install the missing en_US locale and make sure that you leave default to ‘None’ as described here:

dpkg-reconfigure locales