nmfs-opensci / nmfs-connect

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

DEPLOYMENT ISSUE: request to add library #34

Closed smwoodman closed 1 week ago

smwoodman commented 3 weeks ago

What is the name of the product?

CruzPlot

Link to the product's code, if available (e.g., to the GitHub Source Code)?

https://github.com/SWFSC/cruzplot

Which type of product were you trying to deploy (e.g., Quarto Doc, Shiny App, etc.)?

Shiny app

How were you trying to deploy it (e.g., One click from the Rstudio IDE, Git-backed workflow)?

One click from the RStudio IDE

What did you experience?

the following error message in RStudio:

Installing igraph (2.0.3) ... 
curl: HTTP 200 https://rspm-sync.rstudio.com/bin/4.4-jammy/6b0677f8578093008c334e742a2a000eb4e643caebb441a3f5363bd365cfdbb6.tar.gz
FAILED
Error: error testing if 'igraph' can be loaded [error code 1]
/opt/R/4.4.0/lib/R/bin/R --vanilla -s -f '/opt/rstudio-connect/mnt/tmp/RtmpPzeFjD/renv-install-7c87b4e7480ae.R'
================================================================================

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.4.0/igraph/libs/igraph.so':
  libglpk.so.40: cannot open shared object file: No such file or directory
Calls: loadNamespace -> library.dynam -> dyn.load
Execution halted

Unable to fully restore the R packages associated with this deployment.
Please review the preceding messages to determine which package
encountered installation difficulty and the cause of the failure.

An error occurred while building your content.
This link offers advice for this kind of error:
    https://docs.posit.co/connect/user/troubleshooting/#r-missing-system-library
Build error: An error occurred while building your content. (Error code: r-missing-system-library)
── Deployment complete ─────────────────────────────────────────────────────────
✖ Deployment failed with error: An error occurred while building your content. (Error code: r-missing-system-library)

What do you hope to experience?

Successful deployment

k-doering-NOAA commented 3 weeks ago

Likely missing these packages: libglpk-dev libxml2-dev

k-doering-NOAA commented 3 weeks ago

confirmed that adding packages solved the issue.

smwoodman commented 2 weeks ago

Hi @k-doering-NOAA - commenting/reopening as per email that I was able to deploy on test, but ran into another 'r-missing-system-library' error on production. Relevant chunk is below, full logs are attached. CruzPlot-prod-deployment-log.log

...
2024/07/09 16:19:07.609646545 Installing lubridate (1.9.3) ... 
2024/07/09 16:19:07.610603298   OK (symlinked cache)
2024/07/09 16:19:07.610693286 Installing spatstat.data (3.1-2) ... 
2024/07/09 16:19:09.476938831 curl: HTTP 200 https://rspm-sync.rstudio.com/bin/4.4-jammy/e93f3c871000c3727377bd25e5b628eb4b0dd9a7382e48c832a069fa32ac4e38.tar.gz
2024/07/09 16:19:10.145140191 FAILED
2024/07/09 16:19:10.165892738 Error: error testing if 'spatstat.data' can be loaded [error code 1]
2024/07/09 16:19:10.165909676 /opt/R/4.4.0/lib/R/bin/R --vanilla -s -f '/opt/rstudio-connect/mnt/tmp/Rtmph5xA6a/renv-install-87de22b80cda5.R'
2024/07/09 16:19:10.165986205 ================================================================================
2024/07/09 16:19:10.165989742 
2024/07/09 16:19:10.166020892 Error in dyn.load(file, DLLpath = DLLpath, ...) : 
2024/07/09 16:19:10.166024044   unable to load shared object '/opt/rstudio-connect/mnt/packrat/4.4.0/v2/library/Matrix/dd389af18dd1bfe3c452cffeb10d6630/Matrix/libs/Matrix.so':
2024/07/09 16:19:10.166049005   libRlapack.so: cannot open shared object file: No such file or directory
2024/07/09 16:19:10.166054641 Calls: loadNamespace ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
2024/07/09 16:19:10.166144859 Execution halted
2024/07/09 16:19:10.166149443 
2024/07/09 16:19:10.166165018 Unable to fully restore the R packages associated with this deployment.
2024/07/09 16:19:10.166170806 Please review the preceding messages to determine which package
2024/07/09 16:19:10.166183334 encountered installation difficulty and the cause of the failure.
2024/07/09 16:19:10.166186128 
k-doering-NOAA commented 2 weeks ago

@smwoodman Thanks for reporting, I think this may be similar to the issue we are seeing with your other app. Hopefully solving that will also solve this issue!

k-doering-NOAA commented 1 week ago

fixed