key-networks / ztncui

ZeroTier network controller UI
GNU General Public License v3.0
1.56k stars 230 forks source link

Deleting members #16

Closed Fastidious closed 5 years ago

Fastidious commented 5 years ago

I deleted a member, yet the entry doesn't get removed from the list. Is there a workaround for that? The member was an old iPhone, which was surplussed without leaving the network before hand.

key-networks commented 5 years ago

I've noticed this as well. It seems to be a ZeroTier issue. The solution is to get the member to leave the network.

Fastidious commented 5 years ago

I went to zerotier-one directory (/var/lig/zerotier-one/) and was able to edit .jsons and delete a file with the "zombie" ID in it, managing to get it removed from the list, without breaking anything.

The solution provided isn't longer possible, as I do not have the device. Is there a way to force a "defunct" member to leave a network?

key-networks commented 5 years ago

I'm not sure - maybe you could ask amongst the Zerotier community and feed back here?

Sevenlive commented 5 years ago

I have the same Issue....

Didn't try deleting the files yet, but i guess it will help

key-networks commented 5 years ago

Here is a workaround:

NETWORK=c741fda1ece47103 MEMBER=2c26433123 sudo rm /var/lib/zerotier-one/controller.d/network/${NETWORK}/member/${MEMBER}.json sudo systemctl restart zerotier-one

fastcat commented 5 years ago

For others that come along and find this, I found I had to delete /var/lib/zerotier-one/peers.d/${MEMBER}.peer as well

key-networks commented 5 years ago

Thanks @fastcat

mdPlusPlus commented 4 years ago

Do you have the intention to add this to ztncui?

key-networks commented 4 years ago

@mdPlusPlus - I'm happy to accept code contributions.