"Symbolic Link Loop" with ZFS snapshots in AIO

I use a mounted ZFS dataset for the data directory used by nextcloud. Overall this works perfectly, however, for some reason I cannot figure out, the snapshots are not properly usable by nextcloud. I believe I have permissions set properly, but this happens when I run a command to check if a snapshot is properly readable

root@nextcloud:/nextcloud/data/.zfs/snapshot# sudo docker exec --user www-data -it nextcloud-aio-nextcloud ls -l /mnt/ncdata/.zfs/snapshot/zfs-auto-snap_monthly-2024-08-01-1052/
ls: cannot access '/mnt/ncdata/.zfs/snapshot/zfs-auto-snap_monthly-2024-08-01-1052/': Symbolic link loop

Note that the snapshot directory properly lists it’s contents in the host ( Which is a Proxmox LXC, but I figure that’s irrelevant. ZFS is on the proxmox host.

I’m hitting a similar issue using docker on unRAID.

Inside the container -

root@b534116323f2:/nextcloud/.zfs/snapshot# cd 2024-08-13-195923/
bash: cd: 2024-08-13-195923/: Symbolic link loop

1 Like