gravitl / netmaker

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

[Bug]: open /sbin/netclient: text file busy #1435

Closed cirrusflyer closed 5 months ago

cirrusflyer commented 2 years ago

Contact Details

No response

What happened?

After successfully installing on FreeBSD using this:

curl -sfL https://raw.githubusercontent.com/gravitl/netmaker/master/scripts/netclient-install.sh | sudo VERSION="0.14.6" sh -

Ran the join command with my key (removed for posting here)

sudo netclient join -t

Results below (and redacted info), but see the line "open /sbin/netclient: text file busy"

Version

v0.14.6

What OS are you using?

FreeBSD

Relevant log output

[netclient] 2022-07-31 18:27:05 joining xxxx-net at api.xxxx.network:443 
[netclient] 2022-07-31 18:27:05 network: xxxx-net node xxxxxxxx is using port 51821 
[netclient] 2022-07-31 18:27:05 starting wireguard 
[netclient] 2022-07-31 18:27:08 network: xxxx-net sent a node update to server for node xxxxxxxx ,  xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 
[netclient] 2022-07-31 18:27:08 updating netclient binary in  /sbin/ 
2022/07/31 18:27:08 open /sbin/netclient: text file busy
[netclient] 2022-07-31 18:27:08 error installing:  open /sbin/netclient: text file busy

Contributing guidelines

snoyiatk commented 2 years ago

Thanks for the great project. I'm facing the same issue, and there's no additional output when specified -vvv. The error apppear when I tried to install netclient service with netclient install. netclient was run successfully as foreground process before that. Copy netclient to another location and run netclient install in from there works.

eidetic-av commented 1 year ago

Thanks @snoyiatk I can confirm this workaround fixed the issue for me.

mv /sbin/netclient /tmp/netclient
cd /tmp
./netclient install
./netclient joint -t .....
abhishek9686 commented 5 months ago

netclient is no longer supported on FreeBSD