Disconnected from server when publishing to shinyapps.io; not enough storage or what is the reason?

Hello!

I'm having a problem with my Shiny dashboard. I created a Shiny R project in RStudio. That means I run my app using app.R. It works perfectly and without any issues when I run the dashboard locally; however, when I publish it to shinyapps.io, after a few minutes—especially when I click through the individual tabs—the dashboard displays the message: “disconnected from server: reload.” I then have to reload the dashboard, but the problem starts over from the beginning.

Could this simply be due to server capacity? Should I choose a more expensive premium plan? I only have the starter package for $13.99. Or could it be something else? It can’t be my code, because the dashboard runs normally when hosted locally.

This is my first post here, so I hope I’ve done everything right, and I apologize if I haven’t!

Thanks in advance :slight_smile:

gogocoder

Go to shinyapps.io click on the application and then on the logs. If you see something like "out of memory" then yes, the problem is the server capacity. You can try https://connect.posit.cloud/ (soon replacing shinyapps.io) instead where the free tier comes with double the RAM.

1 Like

Oh thanks a lot for your answer. Yes the log gives me "out of memory". Then I was right with my suggestion.

I checked out connect.posit.cloud thanks for this hint. Am I right that this doesnt work with RStudio anymore?

Also another follow-up question: do you know how much storage I get with the other posit payment plans? I cant find any information on this.

It is RAM, not storage and you can see the options at Posit Connect Cloud. I was wrong about it being double - it's actually quadruple. If you're new then it really makes sense to just use connect cloud as shinyapps will be migrated there later this year anyway. You might not be able to do deploy via the GUI in RStudio, but Deploy an Application — deployApp • rsconnect works just the same and is very simple to use.

1 Like

Juhuu it worked! Thank you very much, this totally solved my problem. For later readers of this topic here is how I solved the upload via RStudio:

rsconnect::connectCloudUser()
# now login via the opened browser window

rsconnect::deployApp(server = "connect.posit.cloud")
# here take care to include only the files you need; if there are additional ones, specify via appFiles = c() argument

If there are issues with the package dependencies simply run

renv::snapshot()

that checks your app.R file for the necessary packages.

Thanks again Simon_Smart :slight_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.