https://netmaker.org logo
Title
c

clever-knife-27154

11/14/2022, 3:11 AM
Hi there, I was hoping to get some help with the CLI. Netclient CLI version v0.9.4 on OpenWRT 22.03.2 and when trying to join a network I get:
2022/11/14 02:58:46 no server address provided

~ # netclient -v
Netclient CLI version v0.9.4

~ # cat /proc/cpuinfo
system type        : Qualcomm Atheros QCA9533 ver 2 rev 0
machine            : GL.iNet GL-AR300M16
processor        : 0
cpu model        : MIPS 24Kc V7.4
BogoMIPS        : 432.53
wait instruction    : yes
microsecond timers    : yes
tlb_entries        : 16
extra interrupt vector    : yes
hardware watchpoint    : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa            : mips1 mips2 mips32r1 mips32r2
ASEs implemented    : mips16
Options implemented    : tlb 4kex 4k_cache prefetch mcheck ejtag llsc dc_aliases perf_cntr_intr_bit perf
shadow register sets    : 1
kscratch registers    : 0
package            : 0
core            : 0
VCED exceptions        : not available
VCEI exceptions        : not available

~ # uname -a
Linux OpenWrt 5.10.146 #0 Fri Oct 14 22:44:41 2022 mips GNU/Linux
~ # cat /etc/banner
  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 22.03.2, r19803-9a599fee93
 -----------------------------------------------------
j

jolly-london-20127

11/14/2022, 1:33 PM
I dont see the output of the join command here
btw 0.9.4 is quite outdated now, I would recommend installing the latest version
c

clever-knife-27154

11/14/2022, 3:22 PM
I followed the instructions that point to the repo that is supported by sbilly. Not sure how I can get the latest version on this little router. Do you have a suggestion?
The output is on the very top. I just cut off the join command for security reasons. Also, for some reason, I cannot use the -vvv to get more information about when exactly the error is being triggered.
b

bored-island-21407

11/16/2022, 10:19 PM
download a binary from the github repo and and install with
sudo ./netclient install
c

clever-knife-27154

11/16/2022, 10:20 PM
Can you point me to the latest binary file?
b

bored-island-21407

11/16/2022, 10:20 PM
check the releases page
c

clever-knife-27154

11/16/2022, 10:21 PM
I did, which of all should I download?
b

bored-island-21407

11/16/2022, 10:21 PM
one of the mips ones
c

clever-knife-27154

11/16/2022, 10:22 PM
I see only one so I'm guessing there's no other option.
b

bored-island-21407

11/16/2022, 10:23 PM
c

clever-knife-27154

11/16/2022, 10:30 PM
Thanks a bunch. I will flash the image on the router again and download the binary file to give it a try. I will let you know what the results are.
Hey @bored-island-21407, I followed your instructions but no luck. Here I tried to run install on the binary file I downloaded.
/tmp # ./netclient-mips-upx install
./netclient-mips-upx: line 1: syntax error: unexpected "("
That gave me a syntax error. So I checked if Netclient is installed already per the previous instructions from sbilly GitHub.
/tmp # netclient

USAGE:
   netclient [global options] command [command options] [arguments...]

VERSION:
   v0.9.4

COMMANDS:
   join       Join a Netmaker network.
   leave      Leave a Netmaker network.
   checkin    Checks for local changes and then checks into the specified Netmaker network to ask about remote changes.
   push       Push configuration changes to server.
   pull       Pull latest configuration and peers from server.
   list       Get list of networks.
   uninstall  Uninstall the netclient system service.
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)
I did not see any install option unlike the option I see when I do the same on my MacOS
sudo netclient
VERSION:
   v0.16.1

COMMANDS:
   join        Join a Netmaker network.
   leave       Leave a Netmaker network.
   pull        Pull latest configuration and peers from server.
   list        Get list of networks.
   uninstall   Uninstall the netclient system service.
   daemon      run netclient as daemon
   install     install binary and daemon
   connect     connect netclient to a given network if disconnected
   disconnect  disconnect netclient from a given network if connected
   help, h     Shows a list of commands or help for one command
But I still tried to run the command:
/tmp # netclient install netclient-mips-upx
No help topic for 'install'
What would you suggest I try next?
In addition I read the thread you suggested and looked into the notes of the pull request. Here is the LSCPU output of both of my routers that I am trying to make work.
/tmp # lscpu
Architecture:          mips
  Byte Order:          Big Endian
CPU(s):                1
  On-line CPU(s) list: 0
Model:                 MIPS 24Kc V7.4
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
BogoMIPS:              432.53
Flags:                 mips16
Caches (sum of all):
  L1d:                 32 KiB (1 instance)
  L1i:                 64 KiB (1 instance)
root@GL-AR750S:~# lscpu
Architecture:        mips
Byte Order:          Big Endian
CPU(s):              1
On-line CPU(s) list: 0
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
BogoMIPS:            385.84
L1d cache:           32 KiB
L1i cache:           64 KiB
b

bored-island-21407

11/22/2022, 8:03 AM
rename netclient-mips-upx to netclient and run ./netclient install
c

clever-knife-27154

11/22/2022, 4:42 PM
I did that and still no difference
/tmp # wget http://192.168.1.150:8000/netclient-mips-upx
Downloading 'http://192.168.1.150:8000/netclient-mips-upx'
Connecting to 192.168.1.150:8000
Writing to 'netclient-mips-upx'
netclient-mips-upx   100% |*******************************|  3796k  0:00:00 ETA
Download completed (3887584 bytes)
/tmp # mv netclient-mips-upx netclient
/tmp # chmod +x netclient
/tmp # ./netclient install
./netclient: line 1: syntax error: unexpected "("
/tmp # bash
bash-5.1# ./netclient install
bash: ./netclient: cannot execute binary file: Exec format error
bash-5.1# chmod -x netclient
bash-5.1# ./netclient install
bash: ./netclient: Permission denied
b

bored-island-21407

11/22/2022, 5:46 PM
Looks like wrong version (arch) of binary
c

clever-knife-27154

11/22/2022, 5:47 PM
Yeah, is there another one that I can download or perhaps you can help me go through the process of building from source?
b

boundless-photographer-22783

11/23/2022, 7:50 AM
@clever-knife-27154 , yup last pull request I made supported for
Architecture:        mips
Byte Order:          Little Endian
there is one coming up https://github.com/gravitl/netmaker/pull/1756 for
Byte Order:          Big Endian
you can try it out
c

clever-knife-27154

11/24/2022, 12:56 AM
@boundless-photographer-22783 I read your thread on this topic and main issue comes because this model of the GL routers as we discovered uses the Big Endian. I was able to get version 0.9.4 up and running but unless I am running the same version server I don't think I can get it to connect properly. So the next suggestion was to download a binary file for a newer version and try to install it. Is the Big Endian version available yet?
b

boundless-photographer-22783

11/24/2022, 11:29 AM
Most likely by next release
Big Endian
will be supported through https://github.com/gravitl/netmaker/pull/1756