✶Update 09/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-13 16:24:33

@R1D2 

I have it both running and tested on Jessie and Buster. In fact it really doesnt matter as long you have the same architecture armhf and docker running.

0
0
#157
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-13 16:26:50
The docker container runs under root user. But the omada-controller isolated in the container as user omadad
0
0
#158
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-13 18:19:47

@Ronald1965 

 

Hi thanx for the posts sofar.

Since I have never used docker and a learning noob in command line skills, I have some additional questions:

 

  1. If the docker container runs under root user, does that mean the Pi always needs to boot up as root user?
    I ask this because by default it boots up as user Pi in the home/pi directory and command line functions have to be executed with sudo

 

2. The start-up script you shared:

  • Does it matter in which directory this script is located?
  • How can I make it bootable?
  • This sounds maybe stupid...where can I download the "3.2.10-1-lomem" docker image?
    and where should it be stored? or is this handled by the script?

 

#version=latest
version=3.2.10-1-lomem
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
docker rm omada-controller
omadadata="/opt/tplink/$version/OmadaController/data"
omadawork="/opt/tplink/$version/OmadaController/work"
omadalogs="/opt/tplink/$version/OmadaController/logs"
mkdir -p $omadadata
mkdir -p $omadawork
mkdir -p $omadalogs

docker run -d \
    --name omada-controller \
    --network host \
    --memory 900m \
    -e TZ=Europe/Amsterdam \
    -e SMALL_FILES=true \
    -p 8088:8088   -p 8043:8043   -p 27001:27001/udp   -p 27002:27002   -p 29810:29810/udp   -p 29811:29811   -p 29812:29812   -p 29813:29813  \
    -v $omadadata:/opt/tplink/OmadaController/data   -v $omadawork:/opt/tplink/OmadaController/work   -v $omadalogs:/opt/tplink/OmadaController/logs \
    ronaldo1965/omada-controller:$version


 

 

0
0
#159
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-24 15:15:18

@R1D2 

Hy,

thanks for your work.

I've got a big problem - the .deb packet has an Error:

 

"dpkg-deb: Datei könnte ein Archiv sein, das durch
 einen Download im ASCII-Modus beschädigt wurde
dpkg-deb: Fehler: »omada-controller_3.2.10-1_all.deb« ist kein Archiv im Debian-Format
dpkg: Fehler beim Bearbeiten des Archivs omada-controller_3.2.10-1_all.deb (--install):
 »dpkg-deb --control«-Unterprozess gab den Fehlerwert 2 zurück
Fehler traten auf beim Bearbeiten von:
 omada-controller_3.2.10-1_all.deb"
 

translated: the archive ist damaged - i also get another checksum md5 and sha by downloading vie ftp like told.
I've done the Download twice - same problem.

 

Thanks for your help.

 

Bigjames122

0
0
#160
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-24 18:01:01

@BigJames122, try binary mode in your client. You or your client did select text mode – that's wrong for files of this type.

 

The server sets binary mode by default, just don't change it or use the FTP command bin:

 

$ ftp ftp.rent-a-guru.de

220 ftp.rent-a-guru.de FTP server ready.
Name (ftp.rent-a-guru.de:r1d2): ftp
331 Anonymous login ok, send your complete email address as your password.
Password:
mail@address

[...]

230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.

ftp> bin
200 Type set to I
ftp> cd private
250 CWD command successful
ftp> get omada-controller_3.2.10-1_all.deb

ftp> quit
221- You have transferred 1 files.


$ md5sum -b omada-controller_3.2.10-1_all.deb 
60c070dbd74aa46d1999ebada8942f20 *omada-controller_3.2.10-1_all.deb

$ sha256sum -b omada-controller_3.2.10-1_all.deb
9b0e5da56e3d8ec0cd975da7009fe2b87962a6a3992b95bc0d32b39e334a7bc9 *omada-controller_3.2.10-1_all.deb

$

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
0
0
#161
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-24 19:05:56

@R1D2 

Thanks a lot - that solved my problem.

 

Only the known problem of Java left - but i only fount about Java-8

 

pi@raspberry:~ $ sudo omadactl status
Omada Controller is not running
pi@raspberry:~ $ sudo omadactl start
Starting Omada Controller 
Cannot find any VM in Java Home /usr/lib/jvm/java-11-openjdk-armhf
pi@raspberry:~ $ java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Raspbian-3deb10u1)
OpenJDK Server VM (build 11.0.7+10-post-Raspbian-3deb10u1, mixed mode)
 

I've already set "ln -s java-11-openjdk-armhf default-java" like i found in other tutorials - doesn't work

Would be pleasent if you have a hint.

Thanks a lot  (in the name of the non-profit-Organisation imt trying it for)
Bigjames122

 

0
0
#162
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-05-24 21:37:58 - last edited 2020-05-24 21:41:27

 

BigJames122 wrote


pi@raspberry:~ $ sudo omadactl start
Starting Omada Controller 
Cannot find any VM in Java Home /usr/lib/jvm/java-11-openjdk-armhf
pi@raspberry:~ $

 

You have OpenJDK installed. I have different reports about compatibility of OpenJDK with Omada Controller and it's not recommended to use it if the controller refuses to start with this JDK active.

 

Please install Oracle JDK or JRE as described in my post #1. To install, use:

 

$ sudo -i

# apt-get update

# apt-get install oracle-java8-jdk jsvc

# update-java-alternatives --list
jdk-8-oracle-arm32-vfp-hflt    318        /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt

# ^D

$

 

I've already set "ln -s java-11-openjdk-armhf default-java" like i found in other tutorials - doesn't work

 

Never mess manually with the alternatives system. Don't follow tutorials suggesting to do so.

Use only the updata-java-alternatives command to create, remove, select a Java alternative or list all installed alternatives with option --list as shown above. See the manpage for other options to this command.

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
0
0
#163
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-07-04 09:44:19

@Anjerlaan You can pull it via docker pull ronaldo1965/omada-controller:3.2.10-1-lomem or directly run. Its getting pulled then too.

0
0
#166
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-07-12 16:43:13

@ R1D2 hello.congratulations great job. a question:
which version of raspbian do you recommend? Do I have raspbian 9 Jessie?

0
0
#167
Options
Re:✶Update 04/2020✶ Omada Controller 3.2.10 for Debian, Raspbian and other Linux systems
2020-07-12 18:23:42 - last edited 2020-07-12 18:24:37

 

Ferse wrote

which version of raspbian do you recommend?

 

Hi @Ferse, it should work with any version as long as you can get Oracle JRE and mongodb. As a last resort you can download JRE from Oracle's web site (I do this every time when deploying the controller, currently I'm using jre1.8.0_251) and for mongodb one could compile it using the sources if it's missing.

 

Under Jessie it should run out of the box. Under Stretch could be that you need to install JRE from a backport repository or from Oracle's website. Omada Controller has been tested under Debian (not Raspbian) Jessie and Stretch, but recently I changed my server's operating systems to systemd-free Devuan and thus will be able to test further versions only on Devuan.

༺ 0100 1101 0010 10ཏ1 0010 0110 1010 1110 ༻
0
0
#168
Options