Issues running dash in gunicorn
See original GitHub issueI have no problems with running dash with shipped flask server (except occasional bugs where I have to restart server since it hangs for some reason).
Therefore I replaced default flask development server with gunicorn, a production wsgi web server.
My app is more or less:
...
app = dash.Dash()
server = app.server
...
if __name__ == '__main__':
app.run_server(debug=False, host="0.0.0.0")
and I run gunicorn in typical way:
gunicorn -w -b 0.0.0.0:8050 module_name.server
However upon contacting this URL; I get only statically rendered component, that is only initial states. Every interactivity is dead and site is unfunctional for me. I see no error reported in gunicorn.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (5 by maintainers)
Top Results From Across the Web
Problem running Dash App with gunicorn
Hi,. I tried to run my dash app with gunicorn, I found that all the js, css and media files under assets directory...
Read more >Not able to deploy dash application on Gunicorn
I want to deploy a dash application on Gunicorn. But I am not able to do so. I see no errors appearing on...
Read more >Dash Enterprise Single Server
To avoid any issues that may arise as a result of running multiple applications on the same server, we strongly recommend using a...
Read more >Deploy Dash on Server by Gunicorn - Fizzy
Dash is an open-sourced Python Dashboard package from plot.ly. It's pretty easy to use and has a lot of components to build beautiful...
Read more >Deploying Python Applications with Gunicorn
This limits how many processes you can run in a single dyno. With a typical Django application memory footprint, you can expect to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I have written a deployment guide for Dash here: https://plot.ly/dash/deployment. It includes an example with Heroku and Gunicorn. I hope that it helps!
Hello, i’m created realtime crypto chart flask&dash app. My problem with gunicorn&dash combination. If i start flask “flask run”. I’m not getting refresh errors. But if i start “gunicorn wsgi:app” i got refreshin errors. Let me explain the refresh error: dash callback (or whatever i don’t know where is reason issue) send my chart fig and send None, but if i run app without gunicorn callback dont send None. Please help me.