Flask-MonitoringDashboard icon indicating copy to clipboard operation
Flask-MonitoringDashboard copied to clipboard

How can I use Flask-MonitoringDashboard with uwsgi?

Open eosfomogame opened this issue 4 years ago • 3 comments

How can I use Flask-MonitoringDashboard with uwsgi? It works in local, but when i try to use on uwsgi, I will receive an error:

*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 46666, cores: 1)
--- no python application found, check your startup logs for errors ---

eosfomogame avatar Mar 31 '20 18:03 eosfomogame

seems that you're not configuring uwsgi correctly? does your app work w/o the FMD and stops working after you add FMD?

mircealungu avatar Mar 31 '20 21:03 mircealungu

Thanks for you help @mircealungu, exactly my app works without FMD. I'm a not an expert of uwsgi, I'm using this: https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04 Is there something wrong with configuration that doesn't allow me to use FMD?

EDIT: Solved: added 2 threads for any process

eosfomogame avatar Mar 31 '20 22:03 eosfomogame

I can't tell you unless i see the code. Is the code on GitHub maybe? I can have a look. or otherwise can you share the python file containing the code where you attach the dashboard to the application?

mircealungu avatar Apr 01 '20 09:04 mircealungu