FAQs

Why do I get a certificate authority error?

Sometimes, when using a package that calls to the internet, you'll get an error along the lines of x509: certificate signed by unknown authority. This is most common when trying to run a Singularity container or a Nextflow pipeline with the singularity profile. For example:

FATAL:   Unable to handle docker://asoberan/abrfseurat:20250910 uri: failed to get checksum for docker://asoberan/abrfseurat:20250910: Get "https://auth.docker.io/token?scope=repository%3Aasoberan%2Fabrfseurat%3Apull&service=registry.docker.io": x509: certificate signed by unknown authority

This error is caused by an out-of-date certificate bundle on the compute node that your job is running on. There are two possible solutions:

  1. Try re-submitting your job to a different compute node.

    1. For example, if your job was submitting to compute node c21 , re-submit the job, but exclude that node.

      1. sbatch --exclude c21 myjob.sh

  2. Manually download an up-to-date certificate bundle.

    1. Download the cacert.pem onto Luria head node: wget https://curl.se/ca/cacert.pem

    2. Move the file to Luria and put it in the directory ~/.pki/certs/. If that directory doesn't exist, create it.

    3. Add the following to a new line in your ~/.bash_profile file: export SSL_CERT_DIR="/etc/ssl/certs:/home/<you>/.pki/certs"

    4. Run source ~/.bash_profile

    5. Try running your script / pipeline again.

    6. If this does not work try these steps:

      1. Add export SSL_CERT_DIR="/etc/ssl/certs:/home/<you>/.pki/certs" to your Slurm submission script, in a line before calling singularity.

      2. Run singularity clean -f to clear your Singularity cache

      3. Resubmit your script

Why can't my R package be installed?

Luria has multiple versions of R available through the environment modules system. Sometimes, R packages install normally. However, other times there may be incompatibilities between the versions of R installed on Luria and the R package you're trying to install or a dependency that an R package needs is not installed on Luria.

In cases like this, you'll likely to need to use R from a Singularity image.

Using R from Singularity

The Rocker project creates OCI imagesarrow-up-right that come pre-installed with R. Each image is geared toward a specific use-case. The r-ver images can be used for when you only need the R command line. The rest of the images come pre-installed with RStudio.

To use one of these images, follow these instructions on Luria:

If you want to use R in a script, such as when writing a script to submit to Slurm, you'll need to first load Singularity, then replace any calls to Rscript with the full container invocation. For example:

The BioMicro Center has an image that contains R, RStudio, and the suite of Seurat tools preinstalled (asoberan/abrfseurat:20250910). To use this image, you can replace docker://rocker/r-ver:4.2.0 with docker://asoberan/abrfseurat:20250910 in the examples above.

Using RStudio from Singularity

You can take advantage of Singularity images that come with RStudio preinstalled to use RStudio on the cluster.

To use RStudio on the cluster, simply copy the following text into a file on the cluster. Name the file something relevant, such as rstudio.sh . Then, submit this file to Slurm using sbatch.

When running this file for the first time, give it about 7-10 minutes to download the Singularity image. After those 7-10 minutes, Slurm will create an output file that contains instructions at the top on how to access the RStudio server on your workstation's web browser.

For more information on Singularity, visit the following page:

Running Images in Singularitychevron-right

Last updated

Was this helpful?