[Errno 48] Address already in use

Correcting the error OSError: [Errno 48] Address already in use

Error

* Serving Flask app “server” (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
Traceback (most recent call last):
File “server.py”, line 37, in
app.run (debug = True)
File “python3.7 / site-packages / flask / app.py”, line 990, in run
run_simple (host, port, self, ** options)
File “venv / lib / python3.7 / site-packages / werkzeug / serving.py”, line 1030, in run_simple
s.bind (server_address)
OSError: [Errno 48] Address already in use

Process finished with exit code 1

Decision

one

Let’s see the running processes:

There will be one or more lines like this:

501 3728 3667 0 one: 26PM ttys000 0:00.00 grep python

Let’s beat the process or processes:

2

If it doesn’t help, then like this:

There will be a line:

Python 88453 User 3u IPv4 0xfc9e2848sfdcs3 0t0 TCP localhost: commplex-main (LISTEN)

We kill the process:

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *