Running a snap gives error "Too many levels of symbolic links"

Bug #1833026 reported by Craig Scott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

I'm the maintainer of the CMake snap (not yet public, but is available as Unlisted while I work through final teething issues). Today we encountered an error on CentOS 7 systems where home directories are under a symbolic link. Each user's home directory is structured as `/export/home/username` where `/export/home` is a symlink to `/home`. If we install the cmake snap and issue the command `cmake --version`, we see the following error message instead of the expected output (where `myusername` is the person's login ID):

    cannot create user data directory: /export/home/myusername/snap/cmake/12: Too many levels of symbolic links

The same snap works fine on my CentOS 7 VM which does not have any symlinks in the home directory path, so it seems that `snapd` is not able to handle such situations. Having symlinks in the home directory path is not all that unusual in large company deployments, so this is not just a pathological case.

Revision history for this message
Craig Scott (craigscott) wrote :

I forgot to mention, the snapd RPM is version 2.39.1

Revision history for this message
Craig Scott (craigscott) wrote :

This looks to be another duplicate of bug #1620771

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.