question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues running dash in gunicorn

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
chriddypcommented, Jul 21, 2017

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!

0reactions
qraxisscommented, Sep 11, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found