Michael
Michael

Reputation: 31

Unable to create Ruby on Rails projects in Rubymine

RubyMine Gem Manager
RubyMine has detected that some of the gems required for 'testproject' are not installed
Install missing gems

So I click on "Install missing gems" I get the error:

Following gems were not installed:
xaws-s3x: No gem satisfying dependency found in remote gem repositories

Error running Development: testproject: Rails server launcher '/home/laptop/RubymineProjects/testproject/script/rails' wasn't found in project

WARN TCPServer Error: Address already in use - bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)

Sidenote:

I'm using Ubuntu and it all worked fine a couple of days ago when I was creating projects.

Upvotes: 1

Views: 2962

Answers (1)

karthiks
karthiks

Reputation: 7299

My understanding is that the server process, for whatever reason wasn't shut-down properly and so is still hanging on the port that it started on. You'll have to kill this, in order restart it again. Assuming that it is consuming the port 3000 (the default port), in Ubuntu you can find its process-id and kill it by the below command:

lsof -i tcp:3000 -Fp|tr -d p | xargs kill -9

Hope it helps!

Upvotes: 5

Related Questions