Shiny app deployment completed but cannot connect

Hello there!

I recently deployed a shiny app but when I tried to access the website, it failed. The webpage shows a message like this.
image

The only thing that I can think of is that the dataset that I uploaded is large.

What could be the reasons?

Thank you!

Hi, welcome!

We don't have enough information to help you out, Could you check what your app's logs say?

Thank you for the reply!
Here is the log.

2023-02-28T08:53:06.857669+00:00 shinyapps[8415826]: Running content using the current R environment
2023-02-28T08:53:06.865998+00:00 shinyapps[8415826]: R version: 4.2.1
2023-02-28T08:53:06.866018+00:00 shinyapps[8415826]: shiny version: 1.7.4
2023-02-28T08:53:06.866027+00:00 shinyapps[8415826]: httpuv version: 1.6.6
2023-02-28T08:53:06.866032+00:00 shinyapps[8415826]: rmarkdown version: (none)
2023-02-28T08:53:06.866042+00:00 shinyapps[8415826]: knitr version: (none)
2023-02-28T08:53:06.866069+00:00 shinyapps[8415826]: jsonlite version: 1.8.3
2023-02-28T08:53:06.866077+00:00 shinyapps[8415826]: RJSONIO version: (none)
2023-02-28T08:53:06.866090+00:00 shinyapps[8415826]: htmltools version: 0.5.4
2023-02-28T08:53:06.866107+00:00 shinyapps[8415826]: reticulate version: 1.26
2023-02-28T08:53:06.866155+00:00 shinyapps[8415826]: Warning: The reticulate package is installed but no Python environment is available.
2023-02-28T08:53:06.866164+00:00 shinyapps[8415826]: Did you forget to set the RETICULATE_PYTHON environment variable in your .Rprofile before publishing?
2023-02-28T08:53:06.866382+00:00 shinyapps[8415826]: Using pandoc: /opt/connect/ext/pandoc/2.16
2023-02-28T08:53:07.265430+00:00 shinyapps[8415826]: Starting R with process ID: '25'
2023-02-28T08:53:07.265800+00:00 shinyapps[8415826]: Shiny application starting ...
2023-02-28T08:53:11.256636+00:00 shinyapps[8415826]: Attaching SeuratObject
2023-02-28T08:53:11.279462+00:00 shinyapps[8415826]: Attaching package: ‘dplyr’
2023-02-28T08:53:11.280164+00:00 shinyapps[8415826]: The following objects are masked from ‘package:stats’:
2023-02-28T08:53:11.280197+00:00 shinyapps[8415826]:     filter, lag
2023-02-28T08:53:11.280435+00:00 shinyapps[8415826]: The following objects are masked from ‘package:base’:
2023-02-28T08:53:11.280454+00:00 shinyapps[8415826]:     intersect, setdiff, setequal, union
2023-02-28T08:53:21.609436+00:00 shinyapps[8415826]: Container event from container-7810661: oom (out of memory)
2023-02-28T09:09:16.410603+00:00 shinyapps[8415826]: Container event from container-7810661: stop
2023-02-28T21:21:13.660187+00:00 shinyapps[8415826]: Running on host: cf459d1b47eb
2023-02-28T21:21:13.660204+00:00 shinyapps[8415826]: Server version: 2022.11.0
2023-02-28T21:21:13.660209+00:00 shinyapps[8415826]: LANG: C.UTF-8
2023-02-28T21:21:13.660222+00:00 shinyapps[8415826]: Working directory: /srv/connect/apps/dct_shiny
2023-02-28T21:21:13.660485+00:00 shinyapps[8415826]: Running content using the current R environment
2023-02-28T21:21:13.771844+00:00 shinyapps[8415826]: R version: 4.2.1
2023-02-28T21:21:13.771861+00:00 shinyapps[8415826]: shiny version: 1.7.4
2023-02-28T21:21:13.771864+00:00 shinyapps[8415826]: httpuv version: 1.6.6
2023-02-28T21:21:13.771867+00:00 shinyapps[8415826]: rmarkdown version: (none)
2023-02-28T21:21:13.771887+00:00 shinyapps[8415826]: knitr version: (none)
2023-02-28T21:21:13.771914+00:00 shinyapps[8415826]: jsonlite version: 1.8.3
2023-02-28T21:21:13.771919+00:00 shinyapps[8415826]: RJSONIO version: (none)
2023-02-28T21:21:13.771927+00:00 shinyapps[8415826]: htmltools version: 0.5.4
2023-02-28T21:21:13.771931+00:00 shinyapps[8415826]: reticulate version: 1.26
2023-02-28T21:21:13.771935+00:00 shinyapps[8415826]: Warning: The reticulate package is installed but no Python environment is available.
2023-02-28T21:21:13.771939+00:00 shinyapps[8415826]: Did you forget to set the RETICULATE_PYTHON environment variable in your .Rprofile before publishing?
2023-02-28T21:21:13.772220+00:00 shinyapps[8415826]: Using pandoc: /opt/connect/ext/pandoc/2.16
2023-02-28T21:21:14.542093+00:00 shinyapps[8415826]: Starting R with process ID: '26'
2023-02-28T21:21:14.542444+00:00 shinyapps[8415826]: Shiny application starting ...
2023-02-28T21:21:19.111043+00:00 shinyapps[8415826]: Attaching SeuratObject
2023-02-28T21:21:19.132828+00:00 shinyapps[8415826]: Attaching package: ‘dplyr’
2023-02-28T21:21:19.133500+00:00 shinyapps[8415826]: The following objects are masked from ‘package:stats’:
2023-02-28T21:21:19.133534+00:00 shinyapps[8415826]:     filter, lag
2023-02-28T21:21:19.133755+00:00 shinyapps[8415826]: The following objects are masked from ‘package:base’:
2023-02-28T21:21:19.133781+00:00 shinyapps[8415826]:     intersect, setdiff, setequal, union
2023-02-28T21:21:29.264103+00:00 shinyapps[8415826]: Container event from container-7810661: oom (out of memory)
2023-02-28T21:37:17.896484+00:00 shinyapps[8415826]: Container event from container-7810661: stop
``;

here is the relevant part

As I'm new to deploying a shiny app, could you point me to the right direction on how to fix this "out of memory" issue, please?
Thank you!

Your app requires more than the default 1GB RAM limit to run. If you have a paid account you could increase that limit, otherwise, you need to reduce your app's RAM requirements.

If you have large data try to pre process it as much as possible and use memory efficient methods on run time or use an "on-disk" approach.

For more specific advice, you would need to give us more details about your specific case.

Thank you so much for your help!

I reduced the size of the data file and now it's up and running!