Python Forum
[split] Flask OSError: [Errno 98] Address already in use
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Flask OSError: [Errno 98] Address already in use
#1
we have tried running flask app from a NAS shared file system on 2 different servers.
Server-1 had reboot so due to this the flask app was stopped automatically in server-1 and in server-2 flask app is up and running.

when we brough up flask app in server-1 getting failed with below "Address already in use" error even though in server-1 port(5000)
is not getting used by any other process.

Please suggest the solution and will be much appreciated.
it has something to do with the fact that this directory is "shared" by the 2 servers and they are writing to it at the same time.

ERROR:
File "flaskenv/lib64/python3.6/site-packages/werkzeug/serving.py", line 1030, in run_simples.bind(server_address)
OSError: [Errno 98] Address already in use
flaskenv/lib64/python3.6/site-packages/flask_sqlalchemy/__init__.py:873:
FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future.
Set it to True or False to suppress this warning.'SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and'
Yoriz write Nov-11-2021, 11:41 AM:
Please start a new thread in future to ask a question.
I have moved this into its own thread for you this time.
Reply


Messages In This Thread
[split] Flask OSError: [Errno 98] Address already in use - by venkateshbalagiri - Nov-11-2021, 12:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] flask 500 internal server error DarthTensor 3 4,033 Nov-11-2021, 06:10 AM
Last Post: DarthTensor

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020