[RUBY] About the problem that the server can not be started with rails s

The problem you want to solve

I want to start a local server, but the following notation appears.

A server is already running. Check /Users/username/projects/chat-app/tmp/pids/server.pid.


Ruby 2.6.5 Rails 6.0 macOS Catalina

Identifying problems

The description of the controller was incorrect and a Syntax error occurred. ↓ I reloaded after changing the description, but the loading was very slow, so after interruption, reloading again ↓ A large number of characters appeared on the browser screen and the terminal operation became ineffective, so the terminal was forcibly terminated. ↓ After starting the terminal again, even if I use rails s, it does not start and the above output is made and the server does not start


When you start the server

A server is already running. Check /Users/username/projects/chat-app/tmp/pids/server.pid.

It seems that the server file is temporarily created in the location output to the terminal I couldn't start the new server because the files remained here.

Delete the file by executing the command to specify the number described in the file in the terminal and delete it.

% kill -9 The number described in the remaining file

The server starts safely with rails s


Even if unexpected behavior suddenly occurs, try not to force termination as much as possible This time, I was afraid of the mysterious character list other than the error and it was forcibly terminated.

Recommended Posts

About the problem that the server can not be started with rails s
When the server does not start with rails s
[Rails] "pry-rails" that can be used when saving with the create method
767 JSON :: ParserError occurs and the problem that the local server cannot be started
About the matter that hidden_field can be used insanely
Solved the problem that the test could not be executed from the command line with spring-boot-starter-test
Four-in-a-row with gravity that can be played on the console
[Rails] The problem that pry-byebug does not stop through breakpoints
[Rails] Solving the problem that session timeout does not work
[Rails] About the problem that the video thumbnail automatically created by FFmpeg is not displayed [AWS S3 + EC2 + CarrierWave + Fog]
How to solve the problem that you can not pull image from docker hub with Minikube
Rails server cannot be started in Cloud9
How to interact with a server that does not crash the app
Set the access load that can be changed graphically with JMeter (Part 2)
Set the access load that can be changed graphically with JMeter (Part 1)
[Rails] About the error that the image is not displayed in the production environment
Ruby array methods that can be used with Rails (other than each)
About the case that ("b" .. "aa") could not be used in Ruby Range
[ERROR message display] A simplified version that can be used at any time with the rails partial template.
Organize methods that can be used with StringUtils
[Ruby] Methods that can be used with strings
[Heroku] Associate AWS S3 with the deployed Rails app
Solve the N + 1 problem with Ruby on Rails: acts-as-taggable-on
Addicted to the webpacker that comes standard with Rails 6
The story that the forced update could not be implemented
About rails application server
[Rails 6] RuntimeError with $ rails s
Ruby on Rails 5 quick learning practice guide that can be used in the field Summary
The story that the request parameter from the iPhone application could not be obtained successfully with the Servlet
Solved the problem that apt-get update could not be executed on Ubuntu (Virtual Box) on Windows.
The world of Azure IoT that can be played on the DE10-Nano board: Ajuchika with FPGA !!?
Learning Ruby with AtCoder Beginners Selection [Some Sums] Increase the methods that can be used
Why can I use the rails command installed with gem? ??
Summary of css selectors that can be used with Nookogiri
Only the top level Stream can be parallelized with Java Stream.
Create a page control that can be used with RecyclerView
Windows10 "rails s" cannot be started. Unable to access localhost: 3000
The case that @Autowired could not be used in JUnit5
Firebase-Realtime Database on Android that can be used with copy
Introduction to Rakefile that can be done in about 10 minutes
[Note] About the Fizz_Buzz problem (How Ruby on Rails works)
[rails] Problems that cannot be registered / logged in with devise
How to solve the problem that the website image is not displayed after deploying to heroku on Rails 5
Avoid the problem that session cannot be acquired when canary release when upgrading from Rails 4.2.x to 5.0.x
About the solution to the problem that the log of logback is not output when the web application is stopped
about the where method (rails)
Reference memo / In-memory LDAP server that can be embedded in Java
Solved the problem that the scroll event did not fire in JQuery
File form status check sheet that can be deleted with thumbnails
Note that Insert could not be done with Spring Data JDBC
SwiftUI View that can be used in combination with other frameworks
[MySQL] The database server built with docker may not support Japanese ...
About the range and scope where Day16 variables can be used
The story of stopping because the rails test could not be done
Summary of JDK that can be installed with Homebrew (as of November 2019)
Introduction to Java that can be understood even with Krillin (Part 1)
A story that addresses the problem that REMOTE_ADDR cannot be acquired in a cluster built with Docker Swarm + Traefik (1.7).
I thought about an extension that can select the color of placeHolder in one shot with UITextFiled
An active hash that can be treated as data even if it is not in the database
About the matter that tends to be confused with ARG of Dockerfile which is a multi-stage build
I implemented the multiple image upload function in Rails so that multiple images can be slid for the post