Failure when accessing or mounting storage

Problem

You are trying to access an existing mount point, or create a new mount point, and it fails with an error message.

Invalid Mount Exception:The backend could not get tokens for path /mnt.

Cause

The root mount path (/mnt) is also mounted to a storage location.

You can verify that something is mounted to the root path by listing all mount points with DBUtils.

dbutils.fs.mounts()

If /mnt is listed with a source, you have storage incorrectly mounted to the root path..

Solution

You should unmount the root mount path.

dbutils.fs.unmount("/mnt")

You can now access existing mount points, or create new mount points.