OSError: [Errno 98] Error while accessing the app url

Hi ,
I have successfully deployed one small app to streamlit and got below message.

2022-10-26 06:13:29.099 WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (0.0.0.0)
 * Running on http://127.0.0.1:5000
 * Running on http://10.12.24.61:5000

when trying to access http://127.0.0.1:5000 its showing This site can’t be reached error also when i tried to access the app  ***url https://ashis-palai-insurance-prediction-app-ykqpzu.streamlitapp.com/***  its throwing below error in the command line 

 * Serving Flask app 'app'
 * Debug mode: on
Address already in use
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
2022-10-26 06:25:57.367 Uncaught app exception
Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/werkzeug/serving.py", line 911, in prepare_socket
    s.bind(server_address)
OSError: [Errno 98] Address already in use

Please help 
My github repo is 
https://github.com/Ashis-Palai/insurance_prediction

Hi @Ashis_Palai, welcome to the Streamlit Community! :wave:

Streamlit’s Community Cloud platform supports deploying Streamlit apps, not Flask apps. You will be unable to deploy Flask apps. You can solve the problem by deploying a Streamlit app instead or deploying the Flask app on a compatible 3rd party cloud application platform such as Heroku.

Snehan :balloon:

@snehankekre Thank you so much, sorry i am new … so silly of me , I will write the code using Streamlit again will deploy.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.