Hi everyone, I am having problems installing the n...
# client
w
Hi everyone, I am having problems installing the netclient in my RPi with the new update to v0.14. The 3 installation instructions before run without any problems but then I have this error:
j
@User please update in thread if you find something
w
I think it is solved. Now, when I run the 2nd install instruction I have this extra line "deb [arch=arm64] https:apt.clustercat.com stable main" which seems to solve the problem. Thanks!
b
it was a work in progress
I was trying something but good to know it works
I will push the changes officially so you should see the version bump to v0.14.0-1
that is the version of the deb not netclient itself
w
wait.. now I am having problems joining the network
b
how so?
w
[netclient] 2022-05-17 20:41:58 starting wireguard [netclient] 2022-05-17 20:42:00 error running command: wg-quick up /etc/netclient/config/nm-k3s.conf [netclient] 2022-05-17 20:42:00 [#] ip link add nm-k3s type wireguard Error: Unknown device type. Unable to access interface: Protocol not supported [#] ip link delete dev nm-k3s Cannot find device "nm-k3s"
b
did wireguard-tools not get installed?
w
root@worker-01:~# wireguard-tools -bash: wireguard-tools: command not found root@worker-01:~# wg root@worker-01:~# apt install wireguard-tools Reading package lists... Done Building dependency tree... Done Reading state information... Done wireguard-tools is already the newest version (1.0.20210223-1). wireguard-tools set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
But now it is ok. The node shows on the netmaker interface as Healthy.
after "apt install wireguard-tools" I think
b
the deb has a dependency on wireguard-tools so it should have been installed along with netclient
w
Sorry, when you asked RPi4 or RPi3 I was actually experiencing the "E: Unable to locate package netclient" problem in a RPi4 and the error still happens.. On my other node (a RPi3) I was able to install.
b
interesting ... which os are you running on the pi? also (32 or 64 bit)?
w
On the RPi4 it is the 32bit OS version
b
Raspbian?
or I guess it is called PiOS now
w
yes
Raspbian GNU/Linux 11 (bullseye)
b
pi3 is the same
could you delete /etc/apt/trusted.gpg.d/netclient.asc and /etc/apt/sources.list.d/netclient.list and wget them again on the Pi4
w
on my RPi3 I have the 64bit version of Raspberry Pi OS
after deleting the two files and repeating the installations steps I still getting the "E: Unable to locate package netclient" on the last one
b
hmmm
apt search netclient yields nothing
w
this
b
but then apt install gives you the error?
w
yes
I don't know if it helps, but when I run on my RPi4 "uname -m" I get "armv7l" different from what I get on RPi3 (aarch64)
b
yes that would be an issue
I would have to add an arm7 version to the deb ... will take me a little bit to do that
didn't expect an arm7 version would be needed
w
It would be great if you did that because I use a lot of other SBCs with arm7.
b
should have it sometime tommorrow ... I will update this thread when it is ready
w
Thanks!
w
Hello! My pi is still running debian 10 buster on aarch64. The install went fine but after the install the binary doesn't have execute permissions. Setting them manually fixes it of course. Just thought I would let you know. > apt install netclient > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following NEW packages will be installed: > netclient > 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. > Need to get 0 B/7,729 kB of archives. > After this operation, 0 B of additional disk space will be used. > Selecting previously unselected package netclient. > (Reading database ... 34565 files and directories currently installed.) > Preparing to unpack .../netclient_0.14.0_arm64.deb ... > Unpacking netclient (0.14.0) ... > Setting up netclient (0.14.0) ... > root@raspberrypi:/home/pi# netclient > bash: /usr/sbin/netclient: Permission denied > root@raspberrypi:/home/pi# chmod +x /usr/sbin/netclient > root@raspberrypi:/home/pi# netclient > NAME: > Netclient - Netmaker's netclient agent and CLI.
b
noted, thanks
w
Now I don't know why keeps saying that netclient is not installed but when I try to install it says that is already installed...
root@worker-01:~# netclient pull -bash: netclient: command not found root@worker-01:~# apt install netclient Reading package lists... Done Building dependency tree... Done Reading state information... Done netclient is already the newest version (0.14.0). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
b
check if binary has executable bit set as pointed out by @white-piano-73111 above
w
the thing is that I don't even find the executable... 😅 I tried to find with instructions like grep, find and which netclient.
b
It should be in /sbin/
w
Nothing with the name "netclient" is inside this folder
b
/use/sbin/
w
not in this one also
b
try apt purge netclient; apt install netclient
w
Ahhh Now it works! But I still had the problem "permission denied" the first time, after following @white-piano-73111 suggestion its solved.
Thanks!
b
Should have a fix for the permission mixup tomorrow
apt repo updated --- netclient binaries should have execute permission now
apt repo updated again --- now has arm7 (armhf) binaries
g
(works fine, tested it out this morning)