"Errno::EADDRNOTAVAIL: Cannot assign requested address" when starting Jasmine



Since switching to 2.0, our Jasmine tests are failing with the error “Errno::EADDRNOTAVAIL: Cannot assign requested address”.

An example of the error can be seen at https://circleci.com/gh/julianguyen/ifme/1146

It is a Ruby on Rails app using Jasmine via a gem and the config.yml file includes:

- run:
          name: Run Jasmine
          command: |
            RAILS_ENV=test bundle exec rake jasmine:ci

The port is automatically randomised so any idea why it would always be unavailable?


This appeared to be an incompatibility with Jasmine 2.4.0 that was fixed by upgrading to 2.7.0. Not sure why moving to CircleCI 2.0 broke it.


We were encountering this too. I bumped us up to the latest Jasmine Gem but now the jasmine:ci command just hangs and never runs any tests. Did you encounter anything like this, and if so, how did you resolve it?


Sorry, not that issue, no.


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.