Error on command `lxc profile edit`

Hello,

I try to edit my profiles, and it doesn’t work anymore, I can’t tell when it started failling because I have not had the need to do it since a while on that server. I am using lxd 4.19 from snap. That server got a hardware change this year (motherboard, and CPU from Intel to AMD)

I do lxc profile edit default, it opens up a blanck nano editor with the error message:

"The directory « /proc/self/fd/9 » doesn't exists"

# ls -lah /proc/self/fd/9
ls: cannot access '/proc/self/fd/9': No such file or directory

# ls -la /proc/self/fd/ 
total 0
dr-x------ 2 root root  0 Oct  9 15:44 .
dr-xr-xr-x 9 root root  0 Oct  9 15:44 ..
lrwx------ 1 root root 64 Oct  9 15:44 0 -> /dev/pts/1
lrwx------ 1 root root 64 Oct  9 15:44 1 -> /dev/pts/1
lrwx------ 1 root root 64 Oct  9 15:44 2 -> /dev/pts/1
lr-x------ 1 root root 64 Oct  9 15:44 3 -> /proc/1376830/fd

Do you have the EDITOR environment variable set to something?

Yes:

# echo $EDITOR
nano

Does unsetting that env variable somehow resolve the issue?