statnet / statnetWeb

A graphical user interface for network modeling with the 'statnet' software
GNU General Public License v3.0
29 stars 17 forks source link

problems deploying update on shinyapps.io #93

Closed martinamorris closed 1 month ago

martinamorris commented 1 month ago

using rsconnect::deployApp() the deployment fails with the attached log

statnetWeb-logs.txt

martinamorris commented 1 month ago

@mbojan can you pls lmk if you know how to fix these? Otherwise, I'll see if I can get help online. Thx@

mbojan commented 1 month ago

Do you remember what were you doing in the app that generated the log, the errors at the end in particular?

martinamorris commented 1 month ago

The only thing I was doing was running the command deployApp(), following the instructions here

mbojan commented 1 month ago

Strange. The app runs for me locally. Maybe it is because of some outdated dependencies on the shinyapps server? I don't have much experience with Shiny to honest.

martinamorris commented 1 month ago

runs for me locally as well, and the update was just published on CRAN

martinamorris commented 1 month ago

Ok, so I fixed the first error by using deployApp(appMode="shiny")

But I'm getting a new error: Timeout waiting for '_check_container_alive' after 30 seconds

Comes after all packages are installed and locales generated. Quarto is installed on my machine, but there's still a flag during deployment. Online stuff suggests this may just be random, and deployment will work later. Have tried 3 times in quick succession with no change.

Quarto not found.
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
[2024-07-19T23:30:15.866716071+0000] Creating dir /srv/connect/apps/statnetWeb
[2024-07-19T23:30:15.870203666+0000] Creating dir /srv/connect/apps/statnetWeb/.github
[2024-07-19T23:30:15.873403857+0000] Creating dir /srv/connect/apps/statnetWeb/.github/workflows
[2024-07-19T23:30:15.876624687+0000] Copying file .github/workflows/R-CMD-check.yaml
[2024-07-19T23:30:15.880157077+0000] Copying file .Rbuildignore
[2024-07-19T23:30:15.883578248+0000] Copying file cran-comments.md
[2024-07-19T23:30:15.886881700+0000] Copying file CRAN-SUBMISSION
[2024-07-19T23:30:15.890194284+0000] Copying file DESCRIPTION
[2024-07-19T23:30:15.893513064+0000] Creating dir /srv/connect/apps/statnetWeb/inst
[2024-07-19T23:30:15.896815256+0000] Creating dir /srv/connect/apps/statnetWeb/inst/html
[2024-07-19T23:30:15.900068950+0000] Copying file inst/html/d2-sX-ergmterms.html
[2024-07-19T23:30:15.903928937+0000] Creating dir /srv/connect/apps/statnetWeb/inst/pics
[2024-07-19T23:30:15.907120908+0000] Copying file inst/pics/wikiExample.png
[2024-07-19T23:30:15.910620609+0000] Copying file inst/pics/wikiExampleSmall.jpg
[2024-07-19T23:30:15.913968861+0000] Creating dir /srv/connect/apps/statnetWeb/inst/shiny
[2024-07-19T23:30:15.917121036+0000] Creating dir /srv/connect/apps/statnetWeb/inst/shiny/statnetWeb
[2024-07-19T23:30:15.920216647+0000] Copying file inst/shiny/statnetWeb/global.R
[2024-07-19T23:30:15.923527380+0000] Copying file inst/shiny/statnetWeb/server.R
[2024-07-19T23:30:15.927043995+0000] Copying file inst/shiny/statnetWeb/ui.R
[2024-07-19T23:30:15.930402838+0000] Creating dir /srv/connect/apps/statnetWeb/inst/shiny/statnetWeb/www
[2024-07-19T23:30:15.933569206+0000] Copying file inst/shiny/statnetWeb/www/200px-Icon-round-Question_mark.svg.png
[2024-07-19T23:30:15.936871923+0000] Copying file inst/shiny/statnetWeb/www/ajax-loader.gif
[2024-07-19T23:30:15.940243670+0000] Copying file inst/shiny/statnetWeb/www/alert.js
[2024-07-19T23:30:15.943589318+0000] Copying file inst/shiny/statnetWeb/www/busy.js
[2024-07-19T23:30:15.946895461+0000] Copying file inst/shiny/statnetWeb/www/callout2.png
[2024-07-19T23:30:15.950264284+0000] Copying file inst/shiny/statnetWeb/www/csde_goudy.fw.png
[2024-07-19T23:30:15.953791662+0000] Copying file inst/shiny/statnetWeb/www/csdelogo_crop.png
[2024-07-19T23:30:15.957431818+0000] Copying file inst/shiny/statnetWeb/www/mycosmo.css
[2024-07-19T23:30:15.961064538+0000] Copying file inst/shiny/statnetWeb/www/style.css
[2024-07-19T23:30:15.964435243+0000] Copying file inst/shiny/statnetWeb/www/UW.Wordmark_ctr_K.jpg
[2024-07-19T23:30:15.967910720+0000] Copying file LICENSE
[2024-07-19T23:30:15.971243162+0000] Creating dir /srv/connect/apps/statnetWeb/man
[2024-07-19T23:30:15.974452596+0000] Copying file man/run_sw.Rd
[2024-07-19T23:30:15.977737375+0000] Copying file man/statnetWeb.Rd
[2024-07-19T23:30:15.981023573+0000] Copying file NAMESPACE
[2024-07-19T23:30:15.984364633+0000] Copying file NEWS.md
[2024-07-19T23:30:15.987761451+0000] Creating dir /srv/connect/apps/statnetWeb/R
[2024-07-19T23:30:15.991043489+0000] Copying file R/run_sw.R
[2024-07-19T23:30:15.994424302+0000] Copying file R/statnetWeb-package.R
[2024-07-19T23:30:15.998062484+0000] Copying file README.md## End Task Log ###############################################################################
Error: Unhandled Exception: child_task=1438926505 child_task_status=error: Unhandled Exception: Timeout waiting for '_check_container_alive' after 30 seconds
martinamorris commented 1 month ago

The key to the shinyapps.io deployment was to deploy from the Rstudio publish button. For some reason, using the command line syntax deployApp() just didn't work.