Nix-collect-garbage | error: --- BadStorePath

I wanted to clean up but there is an “badStorePath”

sudo nix-collect-garbage --delete-older-than 9d

69 store paths deleted, 1.65 MiB freed
error: --- BadStorePath ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- nix-collect-garbage
store path 'rxnia8994slsjgps7ilhs9yr37pa3lyc-' has an empty name

I’ve had the same problem on unstable. I managed to got it working by switching to stable (21.11) channel and collect garbage from there.

Hosted by Flying Circus.