Skip to content

Shiny Express app hangs on Connect #1776

@gshotwell

Description

@gshotwell

I ran into a very strange bug, which might be either a Shiny or Connect bug. When I deploy the basid dashboard template to our Connect server using both Core and Express the Express app takes about 45 seconds to load which the Core app loads instantly. The stick session app succeeds.

The debug logs for the Express app are here:

2024/11/19 13:35:04.058637232 Loading code from "shiny.express.app:app_2e_py"
2024/11/19 13:35:57.904598071 App type is "App"
2024/11/19 13:35:57.904814920 Starting server...
2024/11/19 13:36:00.293839042 SEND: {"config": {"workerId": "", "sessionId": "cff48836f74b4850ffc208110d658068fb5a62f89b95ef0d22057c572023960c", "user": null}}
2024/11/19 13:36:00.299205532 RECV: {"method":"init","data":{"mass":6000,"species":["Adelie","Gentoo","Chinstrap"],".clientdata_output_length_depth_width":669,".clientdata_output_length_depth_height":642,".clientdata_output_length_depth_bg":"rgb(255, 255, 255)",".clientdata_output_length_depth_fg":"rgb(29, 31, 33)",".clientdata_output_length_depth_accent":"rgb(0, 123, 194)",".clientdata_output_length_depth_font":{"families":["Open Sans","-apple-system","system-ui","Segoe UI","Roboto","Helvetica Neue","Arial","sans-serif"],"size":"16px"},".clientdata_output_count_hidden":false,".clientdata_output_bill_length_hidden":false,".clientdata_output_bill_depth_hidden":false,".clientdata_output_length_depth_hidden":false,".clientdata_output_summary_statistics_hidden":false,".clientdata_pixelratio":2,".clientdata_url_protocol":"https:",".clientdata_url_hostname":"posit.internal.evenup.law",".clientdata_url_port":"",".clientdata_url_pathname":"/content/29ea09cf-e36d-4251-a2ba-9032aa7b5233/",".clientdata_url_search":"",".clientdata_url_hash_initial":"",".clientdata_url_hash":"",".clientdata_singletons":""}}
2024/11/19 13:36:00.315070742 SEND: {"busy": "busy"}
2024/11/19 13:36:36.390832810 Executing <Task pending name='Task-51' coro=<WSProtocol.run_asgi() running at /opt/rstudio-connect/mnt/app/python/env/lib/python3.12/site-packages/uvicorn/protocols/websockets/wsproto_impl.py:234> cb=[WSProtocol.on_task_complete()] created at /opt/rstudio-connect/mnt/app/python/env/lib/python3.12/site-packages/uvicorn/protocols/websockets/wsproto_impl.py:189> took 36.092 seconds
2024/11/19 13:36:36.391022890 SEND: {"recalculating": {"name": "count", "status": "recalculating"}}
2024/11/19 13:36:36.393045940 SEND: {"recalculating": {"name": "count", "status": "recalculated"}}
2024/11/19 13:36:36.393607470 SEND: {"recalculating": {"name": "bill_length", "status": "recalculating"}}
2024/11/19 13:36:36.394038190 SEND: {"recalculating": {"name": "bill_length", "status": "recalculated"}}
2024/11/19 13:36:36.394689820 SEND: {"recalculating": {"name": "bill_depth", "status": "recalculating"}}
2024/11/19 13:36:36.395221190 SEND: {"recalculating": {"name": "bill_depth", "status": "recalculated"}}
2024/11/19 13:36:36.395416050 SEND: {"recalculating": {"name": "length_depth", "status": "recalculating"}}
2024/11/19 13:36:36.695437563 SEND: {"recalculating": {"name": "length_depth", "status": "recalculated"}}
2024/11/19 13:36:36.696027573 Executing <Task pending name='Task-51' coro=<WSProtocol.run_asgi() running at /opt/rstudio-connect/mnt/app/python/env/lib/python3.12/site-packages/uvicorn/protocols/websockets/wsproto_impl.py:234> cb=[WSProtocol.on_task_complete()] created at /opt/rstudio-connect/mnt/app/python/env/lib/python3.12/site-packages/uvicorn/protocols/websockets/wsproto_impl.py:189> took 0.301 seconds

I brought this up with our solutions engineer as well, but I wanted to raise an issue here in case it's something you all want to dig into, or had any advice about debugging steps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions