Forums

FLASK RUN = OSError: [Errno 98] Address already in use

(flogger) 11:55 ~/opt/flogger $ flask run

Hi to all. I'm trying to run flask. I succesfully migrate db and upgrade it, but when i type the line above I receive a Traceback saying that the port is already in use. I'm sorry but I'm new to this kind of stuff, and I don't know how to move because I'm just following a tutorial. I know there are some topics with this title but I don't understand them.

Also, when i type flask run --port 6000 (or another number) it works. But Imeet some errors going on building my app and I guess it could be related to this "trick" which I don't even understand.

Thank you!

You don't need to run Flask from a console in order to start your website on PythonAnywhere -- instead, you should set it up as a website on the "Web" page. This help page has some useful hints and tips.