key-networks / ztncui

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

Move ZTNCUI #66

Open jimthedj65 opened 3 years ago

jimthedj65 commented 3 years ago

Hi All,

I am looking to move my controller from one machine to another. what directories would I need to move to the new machine to continue.

Currently using latest version of ztncui with recent version of zerotier.

thanks for any guidance.

lideming commented 3 years ago

Hi, I have done this before.

Assuming you run ZT and ztncui directly on the OS (not in the Docker):

1) Stop ZT controller and ztncui. 2) Move Copy data of ztncui (/opt/key-networks/ztncui/etc) and ZT controler (/var/lib/zerotier-one). 3) On the new machine, start ZT controller and ztncui. 4) Ensure they run well on the new machine. 5) On the old machine, ensure the ZT controller won't automatically start again. (Or, delete /var/lib/zerotier-one and reinstall ZT to make it have a new identity.)

jimthedj65 commented 3 years ago

Hi, I have done this before.

Assuming you run ZT and ztncui directly on the OS (not in the Docker):

  1. Stop ZT controller and ztncui.
  2. ~Move~ Copy data of ztncui (/opt/key-networks/ztncui/etc) and ZT controler (/var/lib/zerotier-one).
  3. On the new machine, start ZT controller and ztncui.
  4. Ensure they run well on the new machine.
  5. On the old machine, ensure the ZT controller won't automatically start again. (Or, delete /var/lib/zerotier-one and reinstall ZT to make it have a new identity.)

Hi Thwere many thanks, ZTNCUI is indeed on the OS directly. Thanks for the direction, it is very much appreciated. I think this should be on the ZTNCUI website as FAQ it is very helpful. I will let you know how the move goes.

jimthedj65 commented 3 years ago

I think a merge function would be really helpful for merging two controllers.....

MANKUD commented 2 years ago

@lideming I have a question if the new zero tier controller has a different public IP comparing to the old will it still work without issues after moving?

lideming commented 2 years ago

@lideming I have a question if the new zero tier controller has a different public IP comparing to the old will it still work without issues after moving?

Yes, it will work.

Controllers are not binding to IPs. They are just normal peers in ZeroTier VL1 perspective, so they can have changing public IP or even hehind NAT. Peers will find each other over ZeroTier roots (and your moons, if available).

MANKUD commented 2 years ago

@lideming thank you so much for the quick reply really appreciate it.

MANKUD commented 2 years ago

@lideming On the new machine I need to install zero tier and ztncui and then replace with the files copied from the old machine right?

lideming commented 2 years ago

@MANKUD Yes, and check your network is working before deleting data from the old machine.

Also ensure the old machine will never run the old ZeroTier controller and using the old id, or they will conflict with each other.

MANKUD commented 2 years ago

@lideming Noted I will try it and if any issues will report it here.

MANKUD commented 2 years ago

@lideming getting this error on the new machine followed the steps you mentioned exactly.

image

MANKUD commented 2 years ago

@lideming getting this error on the new machine followed the steps you mentioned exactly.

image

Server reboot seems to have fixed the issue. I am able to establish connections.

MANKUD commented 2 years ago

@lideming I am having a weird issue when I am trying to rename a member from the member name field it just logs me out and gets me back to the login page.. Very strange I did not have such issue on the old machine rest everything seems fine. Do you have any idea why it's happening and how to fix this as assigning names to the member is very important for me.

MANKUD commented 2 years ago

@lideming I am having a weird issue when I am trying to rename a member from the member name field it just logs me out and gets me back to the login page.. Very strange I did not have such issue on the old machine rest everything seems fine. Do you have any idea why it's happening and how to fix this as assigning names to the member is very important for me.

I fixed it by changing permissions.

rupesh43210 commented 1 year ago

Hi, I have done this before.

Assuming you run ZT and ztncui directly on the OS (not in the Docker):

  1. Stop ZT controller and ztncui.
  2. ~Move~ Copy data of ztncui (/opt/key-networks/ztncui/etc) and ZT controler (/var/lib/zerotier-one).
  3. On the new machine, start ZT controller and ztncui.
  4. Ensure they run well on the new machine.
  5. On the old machine, ensure the ZT controller won't automatically start again. (Or, delete /var/lib/zerotier-one and reinstall ZT to make it have a new identity.)

I am unable to restart ztncui after I copy all the directories mentioned. ( I am replacing both directories mentioned) is that how it is to be done or I am doing something wrong here?

Kindly help

image