Skip to content

Commit

Permalink
Merge pull request #395 from pangenome/more_doc
Browse files Browse the repository at this point in the history
 Resolving the `'Illegal option --'` error
  • Loading branch information
AndreaGuarracino committed May 1, 2024
2 parents 166944d + f27c7d3 commit 2c91de0
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,36 @@ GUIX_PACKAGE_PATH=. guix package -i pggb
A nextflow DSL2 port of `pggb` is developed by the [nf-core](https://nf-co.re/) community. See [nf-core/pangenome](https://github.com/nf-core/pangenome) for more details.


## issues

### Resolving the `'Illegal option --'` error with Singularity on HPC (thanks to Rachel Rusholme Pilcher)

When running a Singularity container on an Alma Linux node in HPC, you may encounter an `'Illegal option --'` error. This issue arises due to an incompatibility between the Singularity container and the Alma Linux environment.

The `which` function from the Alma Linux 9 host machine is inherited by the Singularity container during execution. However, the container's Debian operating system may not be compatible with this function, leading to the error. Modifying the container's definition file (`.def`) alone is insufficient to resolve this issue persistently.

To address this problem, you have two options:

1. **Unset the `which` function before running the container:**

Before executing your Singularity container, run the following command on the host machine:

```
unset -f which
```

This command unsets the `which` function, preventing it from being inherited by the container.

2. **Use the `-e` flag when running the container:**

Execute your Singularity container using the `-e` flag:

```
singularity exec -e ...
```

The `-e` flag prevents any host environment variables and functions from being inherited by the container.

## reporting

### MultiQC
Expand Down

0 comments on commit 2c91de0

Please sign in to comment.