error: [Errno 98] Address already in use error: [Errno 98] Address already in use flask flask

error: [Errno 98] Address already in use


Looks like you're calling run:flaskapp instead of app:flaskapp and run.py is trying to open another instance.

16:35:44 web.1  |   File "/home/adminuser/Desktop/Github/SoftwareEng/barcodeServer/SoftwareEng/run.py", line 3, in <module>

First, always encapsulate the run:

if __name__ == '__main__':    flaskapp.run(debug=True)

And update your procfile to call the app.__init__.py instead:

web: gunicorn app:flaskapp --log-file=-

PS: I don't know what procfile or foreman are -- heroku things?