Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

57%
+2 −1
Q&A "A server is already running" error in rails

There's a easiest way to solve the problem that is you have to remove the file /home/istiak/ruby/qpixel/tmp/pids/server.pid. Then, you can run your server again. rm /home/istiak/ruby/qpixel/tmp/pi...

posted 3y ago by deleted user  ·  edited 3y ago by deleted user

Answer
#3: Post edited by (deleted user) · 2021-07-14T09:34:30Z (over 3 years ago)
  • There's a easiest way to solve the problem that is you have to remove the file `/home/istiak/ruby/qpixel/tmp/pids/server.pid`. Then, you can run your server again.
  • ```bash
  • rm /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Otherwise, you can kill the process also. Before killing the process you have find number of the process
  • ```bash
  • more /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Then, put that number on following command (instead of 2786)
  • ```bash
  • kill -9 PID (eg,2786)
  • ```
  • If above code doesn't work than, try following ones.
  • ```
  • kill -9 $(lsof -i tcp:3000 -t)
  • ```
  • There's a easiest way to solve the problem that is you have to remove the file `/home/istiak/ruby/qpixel/tmp/pids/server.pid`. Then, you can run your server again.
  • ```bash
  • rm /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Otherwise, you can kill the process also. Before killing the process you have find number of the process
  • ```bash
  • more /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Then, put that number on following command (instead of 2786)
  • ```bash
  • kill -9 PID (eg,2786)
  • ```
  • You can try following code instead of above command (both are equivalent)
  • ```bash
  • kill -9 $(more /home/istiak/ruby/qpixel/tmp/pids/server.pid)
  • ```
  • If above code doesn't work than, try following ones.
  • ```
  • kill -9 $(lsof -i tcp:3000 -t)
  • ```
#2: Post edited by (deleted user) · 2021-07-14T09:32:43Z (over 3 years ago)
  • There's a easiest way to solve the problem that is you have to remove the file `/home/istiak/ruby/qpixel/tmp/pids/server.pid`. Then, you can run your server again.
  • ```bash
  • rm /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Otherwise, you can kill the process also.
  • ```bash
  • kill -9 PID (eg,2786)
  • ```
  • If above code doesn't work than, try following ones.
  • ```
  • kill -9 $(lsof -i tcp:3000 -t)
  • ```
  • There's a easiest way to solve the problem that is you have to remove the file `/home/istiak/ruby/qpixel/tmp/pids/server.pid`. Then, you can run your server again.
  • ```bash
  • rm /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Otherwise, you can kill the process also. Before killing the process you have find number of the process
  • ```bash
  • more /home/istiak/ruby/qpixel/tmp/pids/server.pid
  • ```
  • Then, put that number on following command (instead of 2786)
  • ```bash
  • kill -9 PID (eg,2786)
  • ```
  • If above code doesn't work than, try following ones.
  • ```
  • kill -9 $(lsof -i tcp:3000 -t)
  • ```
#1: Initial revision by (deleted user) · 2021-07-13T15:29:24Z (over 3 years ago)
There's a easiest way to solve the problem that is you have to remove the file `/home/istiak/ruby/qpixel/tmp/pids/server.pid`. Then, you can run your server again. 

```bash
rm /home/istiak/ruby/qpixel/tmp/pids/server.pid
```

Otherwise, you can kill the process also. 

```bash
kill -9 PID (eg,2786)
```

If above code doesn't work than, try following ones.
```
kill -9 $(lsof -i tcp:3000 -t)
```