[RUBY] What to do about "A server is already running ..." that happened without turning off the rails server in the terminal

When I was playing with the local Visual Studio Code terminal, it was forcibly terminated due to a PC malfunction.

After that, when I started the Rails server again,

A server is already running.

Came out.

A normal shutdown when the server is running is OK with "ctrl + C", but in this case there was no response when I ran this command.

There are two ways to deal with this.

  1. Execute kill -9 $ (lsof -i tcp: 3000 -t)
  2. Restart your PC

I chose 1. and was able to leave the server connection blank for the time being.

Supplement (problem that localhost: 3000 cannot be accessed)

When I connected the server again thinking "Ah, I'm relieved for the time being",

yuichi kanban % rails s => Booting Puma => Rails 5.2.4.3 application starting in development => Run rails server -h for more startup options Puma starting in single mode...

However, when I searched for localhost: 3000 in the browser, it was not loaded.

In this case, it's similar to the workaround above, but once I closed Visual Studio Code and woke it up again, I got Yay! You're on Rails!

If it gets stuck, restarting it will often solve the problem, so give it a try. (suitable)

Recommended Posts

What to do about "A server is already running ..." that happened without turning off the rails server in the terminal
Androd: What to do about "The Realm is already in a write transaction in"
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do if Cloud9 is full in the Rails tutorial
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if the Rails server can't start
[Rails] I want to reset everything because the data in the local environment is strange! What to do before that
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
[Rails] What to do when the view collapses when a message is displayed with the errors method
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
[Rails] What to do if data is not registered in DB
Remedy for "A server is already running." Error when running rails s
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do about the "cannot be read or is not a valid ZIP file" error
What to do if the prefix c is not bound in JSP
[Rails] About the error that the image is not displayed in the production environment
What to do if the image posted by refile disappears after setting a 404 error page in Rails
[Rails / Docker] What to do if access is denied by the browser (localhost: 3000) after adding a gem
What is CHECKSTYLE: OFF found in the Java source? Checkstyle to know from
Ubuntu 18 is the OS that adds a NIC to a server instance in Sakura's cloud and assigns a local IP.
What to do when you want to delete a migration file that is "NO FILE"
Quickly solve A server is already running (rails s process does not break)
What to do when rails db: seed does not reflect in the database
What to do if the rails server doesn't run out on AWS cloud9
What to do if the server tomcat dies
How to check Rails commands in the terminal
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
A server is already running. Check / [WORKDIR] /tmp/pids/server.pid. Solution
[Rails] What to do if you accidentally install bundle in the production environment in your local environment
What to do if you get a "302" error in your controller unit test code in Rails
What you need to do to open a file from the menu in the document-Based App macOS app
What to do when Rails on Docker does not reflect controller changes in the browser
[Rails] How to temporarily save the request URL of a user who is not logged in and return to that URL after logging in
Determine that the value is a multiple of 〇 in Ruby
What to do if you can't use the rails command
[Programming beginner] What to do when rails s becomes an error in the local development environment
What to do if you get a "Mysql2 :: Error: Operand should contain 1 column (s)" error in Rails
What to do when you want to know the source position where the method is defined in binding.pry
What to do if the app is not created with the latest Rails version installed when rails new
What to do when javax.el.ELException: Not a Valid Method Expression: appears when the JSF screen is displayed
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do when the changes in the Servlet are not reflected
What to do if the Eclipse Maven dependency Jar is wrong
What is the difference between a web server and an application server?
How to identify the path that is easy to make a mistake
What happened to the typical changes in Apache Wicket 8 after all?
What to do if you forget the root password in CentOS7
How to write the view when Vue is introduced in Rails?
[Rails] How to solve the problem that the default image is overwritten when editing without uploading the image [Active Storage]
About the matter that tends to be confused with ARG of Dockerfile which is a multi-stage build
What to do if you can't bundle update and bundle install after installing Ruby 3.0.0 in the Rails tutorial
I'm worried about producing with JAVA and XML, so make a note of what I'm trying to do without forgetting (display in for statement)
A story about running a program that copies files in Java from a bat file to make the work done every day a little more efficient