user2803555
user2803555

Reputation: 169

Error running rails server, server already running

When I try to run rails server on the cmd I get an error saying:

A server is already running. Check C:/Users/owner/blog/tmp/pids/server.pid.
Exiting

Windows performed an update recently, and it was working fine before, I don't know if it has anything to do with that. Server.pid says 4808. When I check localhost:3000 It's certainly not running.

Upvotes: 2

Views: 1548

Answers (1)

Mandeep
Mandeep

Reputation: 9173

Error is self explainatory a server is already running for your app. When you start your server rails creates server.pid file in your app and when you close your server this file is updated automatically. In your case you didn't close your server properly or by somehow this file isn't updated and hence your error. Deleting your tmp/pids/server.pid file in your app will fix this issue for you

Upvotes: 3

Related Questions