nmfs-opensci / nmfs-connect

Resources and issue tracker for the NMFS posit connect instance.
13 stars 0 forks source link

PERFORMANCE ISSUE: Streamlit Prod Server Issue #30

Closed MichaelAkridge-NOAA closed 11 months ago

MichaelAkridge-NOAA commented 11 months ago

What is the name of the product?

streamlit

Which instance is the product on (dev, test, prod)?

prod

What did you experience?

Streamlit app deploys to prod server, but once loaded the app is stuck on "Please Wait". No issues with test server deployment. Error: image Log:

023/10/18 21:24:43.609227671 2023-10-18 21:24:43.609 Starting server...
2023/10/18 21:24:43.609463813 2023-10-18 21:24:43.609 Serving static content from /var/opt/rstudio-connect/mnt/app/python/env/lib/python3.8/site-packages/streamlit/static
2023/10/18 21:24:43.612535336 2023-10-18 21:24:43.612 Server started on port 43005
2023/10/18 21:24:43.612658503 2023-10-18 21:24:43.612 Runtime state: RuntimeState.INITIAL -> RuntimeState.NO_SESSIONS_CONNECTED
2023/10/18 21:24:43.766705704 
2023/10/18 21:24:43.766724671   You can now view your Streamlit app in your browser.
2023/10/18 21:24:43.766769429 
2023/10/18 21:24:43.766780573   Network URL: http://redacted
2023/10/18 21:24:43.766807004   External URL: http://redacted
2023/10/18 21:24:43.766809349 
2023/10/18 21:24:43.766999372 2023-10-18 21:24:43.766 Skipping PyPI version check
2023/10/18 21:24:43.767169666 2023-10-18 21:24:43.767 Setting up signal handler
2023/10/18 21:24:50.174047056 [rsc-session] Received signal: interrupt
2023/10/18 21:24:50.174146937 [rsc-session] Terminating subprocess with interrupt ...
2023/10/18 21:24:50.174418642   Stopping...
2023/10/18 21:24:50.174676771 2023-10-18 21:24:50.174 Runtime stopping...
2023/10/18 21:24:50.174753049 2023-10-18 21:24:50.174 Runtime state: RuntimeState.NO_SESSIONS_CONNECTED -> RuntimeState.STOPPING
2023/10/18 21:24:50.175294799 2023-10-18 21:24:50.175 Runtime state: RuntimeState.STOPPING -> RuntimeState.STOPPED
2023/10/18 21:24:50.309901681 [rsc-session] Terminated subprocess with signal: interrupt

What would you like to see instead?

app that operatives normally

k-doering-NOAA commented 11 months ago

@MichaelAkridge-NOAA thanks for reporting this! We've only just tried to change the config to work for streamlit apps. I'll put in a jira ticket to get this sorted.

k-doering-NOAA commented 11 months ago

Jira: https://apps-st.fisheries.noaa.gov/jira/browse/OPS-5750

MichaelAkridge-NOAA commented 11 months ago

Thanks! If I can be of help with testing just let me know. Cheers, Michael

k-doering-NOAA commented 11 months ago

@MichaelAkridge-NOAA thank you! I will keep you updated!

k-doering-NOAA commented 11 months ago

@MichaelAkridge-NOAA, I think the Streamlit Prod issues have been resolved - I see your deployed app is no longer stuck on "please wait". Could you check?

k-doering-NOAA commented 11 months ago

adding that the fix was enabling websockets.

MichaelAkridge-NOAA commented 10 months ago

@k-doering-NOAA thanks so much!