Skip to content

Commit 104f336

Browse files
cclergetvsoch
authored andcommitted
Add autofs bug path documentation and troubleshooting (#108)
* Add autofs bug path documentation and troubleshooting * Better help message, thanks @vsoch
1 parent f48661e commit 104f336

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

pages/docs/admin-docs/advanced-config.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ In addition to the system bind points as specified within this configuration fil
4848

4949
Singularity will automatically disable this feature if the host does not support the prctl option `PR_SET_NO_NEW_PRIVS`. In addition, `enable overlay` must be set to `yes` and the host system must support overlayFS (generally kernel versions 3.18 and later) for users to bind host directories to bind points that do not already exist in the container.
5050

51+
### AUTOFS BUG PATH (string)
52+
With some versions of autofs, Singularity will fail to run with a "Too many levels of symbolic links" error. This error happens by way of a user requested bind (done with -B/--bind) or one specified via the configuration file. To handle this, you will want to specify those paths using this directive. For example:
53+
```bash
54+
autofs bug path = /share/PI
55+
```
5156

5257
## Logging
5358
In order to facilitate monitoring and auditing, Singularity will syslog() every action and error that takes place to the `LOCAL0` syslog facility. You can define what to do with those logs in your syslog configuration.

pages/docs/overview/faq.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,19 @@ To add /usr/local/bin to the default sudo search path, run the program visudo wh
328328
```bash
329329
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
330330
```
331+
332+
### How to resolve "Too many levels of symbolic links" error
333+
Running singularity failed with "Too many levels of symbolic links" error
334+
335+
```bash
336+
$ singularity run -B /apps container.img
337+
ERROR : There was an error binding the path /apps: Too many levels of symbolic links
338+
ABORT : Retval = 255
339+
```
340+
341+
You got this error because /apps directory is an autofs mount point. You can fix it by editing singularity.conf and adding the following directive with corresponding path:
342+
```bash
343+
autofs bug path = /apps
344+
```
345+
331346
{% include links.html %}

0 commit comments

Comments
 (0)