gravitl / netmaker

Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
https://netmaker.io
Other
9.4k stars 547 forks source link

[Bug]: netclient 0.12 #916

Closed ahmaddxb closed 2 years ago

ahmaddxb commented 2 years ago

Contact Details

No response

What happened?

Docker install error 2022/03/18 12:06:54 [netclient] error removing profile from /etc/hosts 'default' profile should not be handled by hostctl

Version

v0.12.0

What OS are you using?

Linux

Relevant log output

netclient] joining network

2022/03/18 12:06:45 [netclient] success

2022/03/18 12:06:45 [netclient] ALREADY_INSTALLED. Netclient appears to already be installed for default. To re-install, please remove by executing 'sudo netclient leave -n default'. Then re-run the install command.

[netclient] Starting netclient daemon

2022/03/18 12:06:45 [netclient] pulling latest config for PFIep0SZ

2022/03/18 12:06:47 [netclient] waiting for interface...

2022/03/18 12:06:47 [netclient] interface ready - netclient.. ENGAGE

2022/03/18 12:06:49 [netclient] pulling latest config for default

2022/03/18 12:06:50 [netclient] waiting for interface...

2022/03/18 12:06:50 [netclient] interface ready - netclient.. ENGAGE

2022/03/18 12:06:53 [netclient] started comms network daemon, PFIep0SZ

2022/03/18 12:06:53 [netclient] netclient daemon started for network: PFIep0SZ

2022/03/18 12:06:53 [netclient] received peer update for node last-ornery PFIep0SZ

2022/03/18 12:06:53 [netclient] received message to update node instance-20220222-1222

2022/03/18 12:06:54 [netclient] received peer update for node instance-20220222-1222 default

2022/03/18 12:06:54 [netclient] error removing profile from /etc/hosts 'default' profile should not be handled by hostctl

Contributing guidelines

mattkasun commented 2 years ago

This is a limitation of the library used to control /etc/hosts. The original contents of /etc/hosts are allocated to the profile "default". Netclient uses the network name as the profile with the library. As "default" is reserved, private dns cannot be used with a network named default.

ahmaddxb commented 2 years ago

I did a clean install of netmaker and don't receive this error anymore.

mattkasun commented 2 years ago

fixed with PR #918

ahmaddxb commented 2 years ago

I have this error

2022/03/22 11:46:20 [netclient] received peer update for node localhost vlan 2022/03/22 11:46:20 [netclient] error removing profile from /etc/hosts unknown profile name