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.

Issue with deploy dash > 1.1 on Shinyproxy 2.3.1

See original GitHub issue

Hi community,

I am trying to deploy a dash (latest build) app with Shinyproxy. It seems that the last successful dash/dash dependencies built than can work with Shinyproxy is:

dash 1.1.1 dash-bootstrap-components 0.7.1 dash-core-components 1.1.1 dash-html-components 1.0.0 dash-renderer 1.0.0 dash-table 4.1.0

I have tried a couple of fixes to launch it without luck, neither of which works with Dash > 1.1.0. I am adding the known solutions I’ve tried so far:

Method 1: app = dash.Dash(__name__, requests_pathname_prefix='/app_direct/dash-demo/')

Method 2:

app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP], 
suppress_callback_exceptions=True, 
prevent_initial_callbacks=True, 
requests_pathname_prefix='/app_direct/<appname>')
#app.config.update({
#         # remove the default of '/'
#         'routes_pathname_prefix': '',
#         # remove the default of '/'
#         'requests_pathname_prefix': ''
#    })

I did try to include __name__ and/or exclude external_stylesheets I also tried without success to move the request inside the config.update:

app.config.update({
         # remove the default of '/'
         'routes_pathname_prefix': '',
         # remove the default of '/'
         'requests_pathname_prefix': '/app_direct/<appname>/'
})

For reference, these solutions always result in none of this components loading:

polyfill@7.v1_6_0m1598451932.8.7.min.js react@16.v1_6_0m1598451932.13.0.min.js react-dom@16.v1_6_0m1598451932.13.0.min.js prop-types@15.v1_6_0m1598451932.7.2.min.js dash_bootstrap_components.v0_10_3m1598451933.min.js bundle.v4_9_0m1598451932.js dash_html_components.v1_0_3m1598451932.min.js dash_core_components.v1_10_2m1598451932.min.js dash_core_components-shared.v1_10_2m1598451932.js dash_renderer.v1_6_0m1598451932.min.js react-dom@16.v1_6_0m1598451932.13.0.min.js prop-types@15.v1_6_0m1598451932.7.2.min.js dash_bootstrap_components.v0_10_3m1598451933.min.js bundle.v4_9_0m1598451932.js dash_html_components.v1_0_3m1598451932.min.js dash_core_components.v1_10_2m1598451932.min.js dash_core_components-shared.v1_10_2m1598451932.js dash_renderer.v1_6_0m1598451932.min.js

I would appreciate any help with this issue.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jtpoiriercommented, Mar 1, 2021

I see now that this solution is exclusive to >1.1 and not a general solution for all version of dash.

I’ve now reproduced this fix with dash-demo and a second more complex application. Thanks so much for your assistance.

2reactions
jfrubiozcommented, Mar 1, 2021

UPDATE: Dash 1.17.0 and ShinyProxy 2.4.1 seem to have done the trick. Just needs:

server = flask.Flask(__name__)

app = dash.Dash(
    __name__, 
    external_stylesheets=[dbc.themes.BOOTSTRAP], 
    suppress_callback_exceptions=True,
    server = server,
    requests_pathname_prefix='/app_direct/<appname>/'
)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Failure to deploy dash > 1.1 on Shinyproxy
Hi community, I am trying to deploy a dash 1.14 (or newer) app with Shinyproxy (tried 2.0.1 and 2.3.1). It seems that the...
Read more >
Downloads | ShinyProxy
If an attacker can deploy a malicious application in ShinyProxy or an ... to app containers in order to allow compatibility with Dash...
Read more >
Dash 1.3 is not worked is ShinyProxy
I have tried to run Dash dashboart on ShinyProxy/ I use https://github.com/openanalytics/shinyproxy-dash-demo - and it worked.
Read more >
How to Deploy Plotly's Dash using Shinyproxy - Luke Singham
This blog post runs through the errors and eventual solution to deploying a Dash app on Shinyproxy. The Issue #. Dash apps, like...
Read more >
MilkyWay Proteomics Documentation - Read the Docs
1.1 Accessing the MilkyWay R/Shiny interface. By default, the MilkyWay R/Shiny ... For deployment of ShinyProxy, please follow the instructions provided.
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