Omada Controller 3.0.2 for Linux (including new tpeap v1.4)

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
1456...

Omada Controller 3.0.2 for Linux (including new tpeap v1.4)

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
109 Reply
Re:Re: Omada EAP Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-06 09:49:25 - last edited 2019-03-06 01:55:43

R1D2 wrote

...preparation of the .deb package ...

 

 

That makes me curious: a .deb-package for raspbian?

  0  
  0  
#42
Options
Re:Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-06 12:21:35 - last edited 2019-03-06 01:55:43

OK i choose community version
Because omada-linux official slow Release

  0  
  0  
#43
Options
Re: Omada EAP Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-06 15:54:05 - last edited 2019-03-06 01:55:43

AlienMindbender wrote:

That makes me curious: a .deb-package for raspbian?

 

Yes, it turned out that I need packages for making a custom-netinst anyway.

 

Just was busy with Pharos Control 2.0.4 for Linux last few days - it had priority b/c I wanted to wait for the official Omada Controller anyway before planned version 1.5 release of tpeap. Maybe you want to give Pharos Control a try also if you have CPE or WBS APs. It installs fine out of the box on my RasPi 3.

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#44
Options
Re:Re: Omada EAP Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-06 19:49:24 - last edited 2019-03-06 01:55:43

Sorry, I haven't heard of PharosControl yet, I do not think I need it. I have several EAP AP, which I control with OmadaController so I am keen on testing your raspbian-package...

  0  
  0  
#45
Options
Re: Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-07 01:10:22 - last edited 2019-03-06 01:55:43

Rewjang wrote

OK i choose community version
Because omada-linux official slow Release

 

Welcome to the club, Rewjang! 

 

However, I will split the tpeap utility in a separate package so you can even choose to use official Omada Controller with this start/stop script and management utility in the future. My Omada Controller packages just differ from TP-Link's by removing the binaries mongod/portt and the embedded JRE to make them architecture-independent. Ok, and a theme here and there (currently only in 2.7.0) will be included, too.

 

But it's no problem to use the official package with the enhanced start/stop script and management utility tpeap, especially since TP-Link did use a few lines of the 2017 version in their control.sh of v3.0.2 already. Why not the rest? I don't know. Maybe, they don't find the command line utilities as useful as UNIX/Linux users do.

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#46
Options
Re:Re: Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-07 08:23:42 - last edited 2019-03-06 01:55:43

I am looking forward to your RPi packages. Let me know, if I can assist with (beta-)testing. 

  0  
  0  
#47
Options
Re: Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-08 20:11:12 - last edited 2019-03-06 01:55:43

AlienMindbender wrote

I am looking forward to your RPi packages. Let me know, if I can assist with (beta-)testing. 

 

Thanks for your offer to test. The beta is available from ftp.rent-a-guru.de/private, file name is:

 

    omada-controller_3.0.2_all.deb

 

SHA sum is:

 

    $ sha256sum -b omada-controller_3.0.2_all.deb

    b21eb2bcfd70fcd00ca085efeb10d8adae76625c097231497c757059c36e42bf *omada-controller_3.0.2_all.deb

 

Runs on the RasPi and on every other CPU architecture as long as java, jsvc and mongodb are installed, too. Search for them with:

 

    $ which java

    $ which jsvc

    $ which mongod

 

Remaining environment settings will be auto-detected, so no action is required if above commands are installed. The role account will be also created automatically by the installer.

 

After installation Omada Controller will be started automatically without waiting for it to become ready. Check current state with:

 

    $ sudo tpeap status

 

Since Omada Controller needs ~3 min. to become ready to serve requests on a Pi, increase the time-out tpeap should wait at start of the controller before complaining. Just run this command to set a permanent time-out for the script:

 

    $ sudo tpeap -S 200

 

Then a tpeap -w start will always wait 200 seconds before complaining if the Controller isn't ready.

 

Known problems:

  • tpeap status currently needs to be run as root due to restrictive file permissions of the PID file.¹
  • tpeap switch for switching versions command is still being enhanced to user another technique.

 

¹ Caused by jsvc wrapper. More on this topic later.

 

Both will be fixed in the final release.

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  2  
  2  
#48
Options
Re:Re: Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-09 11:33:03 - last edited 2019-03-06 01:55:43

Hi R1D2, many thanks for your work. Install of your RPi-Package worked fine, but unfortunately, Omada Controller failed to start:

 

pi@pi:~ $ sudo tpeap -S 200
Saved WAIT_TIME=200 successfully
pi@pi:~ $ sudo tpeap -w start
Starting Omada Controller Invalid JVM name specified server
.........................................................................................................................................................................................................
pi@pi:~ $

 

I have not yet found the time to track down the error further myself, maybe later today. 

  0  
  0  
#49
Options
Re: Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-09 13:59:49 - last edited 2019-03-06 01:55:43

AlienMindbender wrote
Starting Omada Controller Invalid JVM name specified server

 

Error msg comes from jsvc., but tpeap does not set or change the JVM with option -jvm, so no idea why it complains.

 

You might check your versions of Java and jsvc. On my Raspbian I have:

 

    pi $ java -version
    java version "1.8.0_65"
    Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
    Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
    pi $ dpkg -l | fgrep -e jsvc -e libcommons-daemon
    ii  jsvc                     1.0.15-7   armhf     Wrapper to launch Java applications as daemons
    ii  libcommons-daemon-java   1.0.15-7   all       Library to launch Java applications as daemons

    pi $

 

 

Omada Controller starts fine here, didn't even have to install anything of the pre-requisites. Maybe you did install other Java/jsvc packages?

 

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
  0  
  0  
#50
Options
Re:Re: Omada Controller 3.0.2 for Linux (including new tpeap v1.4)
2018-09-09 14:09:31 - last edited 2019-03-06 01:55:43

Nothing obviously different on my system: 

 

pi@pi:~ $ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-1~deb9u1-b13)
OpenJDK Client VM (build 25.181-b13, mixed mode)
pi@pi:~ $ dpkg -l | fgrep -e jsvc -e libcommons-daemon
ii  jsvc                                  1.0.15-7                          armhf        Wrapper to launch Java applications as daemons
ii  libcommons-daemon-java                1.0.15-7                          all          Library to launch Java applications as daemons
pi@pi:~ $

 

No additional JAVA or jsvc packages installed, in contrary, I assume something is missing. I think I originally ran raspbian lite and I had to install jsvc (which brought jre) and mongodb before I was able to install your omada-controller.deb...

 

EDIT: 

startup.log: 

 

Invalid JVM name specified server
Cannot locate JVM library file
Service exit with a return value of 1

 

Based on a first short internet research that error seems to occur when executing 64bit java applications with 32bit libraries. Isn't the official Omada Controller a 64bit application?

 

edit2: 

 

I did a fresh install of the current raspbian stretch image on a RPi2, installed omada-controller.deb and there is no startup error. So your package is okay, sorry for the confusion.

 

edit3: I originally had the wrong JDK, it works with oracle-java8-jdk

  0  
  0  
#51
Options