SOLVED: Renaming encrypted TrueNAS dataset makes it impossible to get key

I have a pool called ssd_mirror_1, inside is a dataset called docker_volumes, and inside is a dataset called test.

I created the dataset through the UI, turn the encryption on, set it into key mode.

Key is easily retrievable through UI at this point.

Renaming dataset to test_1 for example, makes the UI throw an error and tell me that it is unable to get the key.

If I rename it back, I can once again, get the key through the UI.

Don’t need a solution for this, just hope someone finds this when they’re as confused as I am.

How did you rename it? zfs rename?

1 Like

Were you trying to upload the json? I have a feeling if you opened the key file in a text editor and then copy and pasted the actual key it would work.

Of course. I do know it is unsupported so it’s my fault, but maybe this helps others who do the same.

I couldn’t download the key, that was the issue. But I suppose TrueNAS tracks keys in some DB that obviously depends on dataset name which I’ve changed out of its scope of control.