Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check error message appearing in assessment reports #295

Open
gothub opened this issue Dec 1, 2021 · 1 comment
Open

Check error message appearing in assessment reports #295

gothub opened this issue Dec 1, 2021 · 1 comment
Assignees

Comments

@gothub
Copy link
Contributor

gothub commented Dec 1, 2021

Assessment reports created after Nov 21, 2021 one or both of the following messages in the check output.

  • "Error in library(jsonlite, quietly = TRUE) : there is no package called ‘jsonlite’ Execution halted"
  • "ImportError: library metadig not found"

For example:
Screen Shot 2021-11-30 at 5 28 08 PM

@gothub gothub self-assigned this Dec 1, 2021
@gothub
Copy link
Contributor Author

gothub commented Dec 1, 2021

The first error "Error in library(jsonlite, quietly = TRUE) : there is no package called ‘jsonlite’ Execution halted" is a result of a CRAN mirror not being available. This mirror was referenced in the Docker file that builds the metadig-worker container. The solution is to change the current, inactive mirror with '(repos = c(CRAN = "http://cran.rstudio.com"', which uses a content delivery network, fronted by Amazon CloudFlare (https://www.rstudio.com/blog/rstudio-cran-mirror/).

The second error is due to updating to Jython v2.7.2, which no longer inspects the environment variable 'JYTHONPATH' to determine the location of the NCEAS metadig Python library. Jython v2.7.2 uses a command line argument to communication this value now. This is specified in the Java command from the metadig-worker Docker file. The new Dockerfile command specified the search path like this:

CMD java  -Dpython.path=/opt/local/metadig/metadig-py edu.ucsb.nceas.mdqengine.Worker

@gothub gothub added this to the 2.4.0 milestone Jan 11, 2022
@mbjones mbjones modified the milestones: 2.4.0, 2.5.0 Jul 14, 2022
@jeanetteclark jeanetteclark removed this from the 2.5.0 milestone Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants