Omada Controller startup missing keystore

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

Omada Controller startup missing keystore

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
Omada Controller startup missing keystore
Omada Controller startup missing keystore
2022-08-04 00:29:48 - last edited 2022-09-01 07:07:13
Hardware Version:
Firmware Version:

I've been trying to get the Omada controller working on my Manjaro Linux install, I downloaded 5.3 from AUR and it is failing when creating the keystore. Any ideas of how I can get this running?

 

Thanks, Derek

 

Hopefully I'm asking this question in the right place, apologies if I'm not.


08-02-2022 20:27:45.833 INFO [main] [] c.t.s.o.s.OmadaLinuxMain(44): Going to init controller!
08-02-2022 20:27:45.846 INFO [main] [] c.t.s.o.s.OmadaLinuxMain(51): Going to start controller!
08-02-2022 20:27:45.851 INFO [log4j-thread] [] c.t.s.o.c.o.a.b(32): success to load configuration omada.properties
08-02-2022 20:27:45.892 INFO [main] [] c.t.s.o.s.OmadaBootstrap(86): going to start local mongod.
08-02-2022 20:27:47.411 INFO [main] [] c.t.s.o.s.s.b(161): mongodb process id is 2045
08-02-2022 20:27:47.411 INFO [main] [] c.t.s.o.s.s.b(164): fail to delete pid file
08-02-2022 20:27:47.413 ERROR [main] [] c.t.s.f.c.FacadeUtils(68): facadeMsgEnable is not enable, msg: Mongo DB server started
08-02-2022 20:27:47.414 INFO [main] [] c.t.s.o.s.s.b(142): Mongo DB server started
08-02-2022 20:27:47.822 WARN [main] [] c.t.s.o.s.OmadaBootstrap(641): Valid keystore is missing. Generating one ...
08-02-2022 20:27:48.303 ERROR [main] [] c.t.s.o.s.OmadaBootstrap(656): Cannot save keystore
08-02-2022 20:27:48.303 ERROR [main] [] c.t.s.o.s.OmadaBootstrap(260): Certificate error
08-02-2022 20:27:48.303 ERROR [main] [] c.t.s.o.s.OmadaLinuxMain(85): Bootstrap prepare failed, going to exit.
08-02-2022 20:27:48.313 INFO [Thread-0] [] c.t.s.o.s.s.b(213): Going to stop mongod which pid is 2045
08-02-2022 20:28:25.437 INFO [Thread-0] [] c.t.s.o.s.OmadaBootstrap(183): success to shutdown mongodb database
08-02-2022 20:28:25.437 INFO [Thread-0] [] c.t.s.o.s.OmadaBootstrap(188): Omada Controller exited
08-02-2022 20:28:25.437 INFO [Thread-0] [] c.t.s.o.s.OmadaLinuxMain(80): ShutdownHook: service stopped.
 

  0      
  0      
#1
Options
1 Accepted Solution
Re:Omada Controller startup missing keystore-Solution
2022-08-06 14:47:05 - last edited 2022-08-08 04:26:20

  @dealy663 

 

I finally got it working. Thanks for your help Alex. It turns out that the problem was when I uninstalled 5.3, I deleted /opt/omada-controller, however I wasn't looking close enough to notice the symlinks to /var/lib/omada-controller. So those files weren't being cleaned up and contained some leftovers from the 5.3 install (probably bad perms or reference to mongo).

 

Thanks for all the help and suggestions guys.

 

D

Recommended Solution
  4  
  4  
#16
Options
29 Reply
Re:Omada Controller startup missing keystore
2022-08-04 12:03:29

  @dealy663 

 

It looks like your PC is not giving the controller enough permissions, you could try running it as Administrator or as Root.

Just striving to develop myself while helping others.
  0  
  0  
#2
Options
Re:Omada Controller startup missing keystore
2022-08-04 18:17:35

  @Virgo 

 

I have been trying launching this as $> sudo /opt/omada-controller/bin/control.sh start

 

Is there some other way I should be trying to launch the software?

 

Thanks, Derek

  0  
  0  
#3
Options
Re:Omada Controller startup missing keystore
2022-08-05 07:18:34

Dear @dealy663,

 

dealy663 wrote

I've been trying to get the Omada controller working on my Manjaro Linux install, I downloaded 5.3 from AUR and it is failing when creating the keystore. Any ideas of how I can get this running?

 

I'm afraid that Manjaro Linux is not officially supported on Omada Controller.

It's recommended to install the Omada controller on the following officially supported Linux operating system.

Ubuntu 16.04/18.04/20.04, Debian 8/9/10, CentOS 6/7

 

Alternatively, you may try the mbentley/docker-omada-controller maintained by @mbentley.

 

For more controller installation guides, you may check the related posts from Here.

>> Omada EAP Firmware Trial Available Here << *Try filtering posts on each forum by Label of [Early Access]*
  0  
  0  
#4
Options
Re:Omada Controller startup missing keystore
2022-08-05 15:51:56

  @dealy663 

 

I use mbentley's (most excellent) docker image for one of my site controllers.  Here's the startup logs from 5.4.6 on my Synology NAS which may give you some clues as to what you're missing (assuming you haven't just installed Docker under Manjaro and got on with your life)

 

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#5
Options
Re:Omada Controller startup missing keystore
2022-08-05 16:13:27

  @dealy663 

dealy663 wrote

I have been trying launching this as $> sudo /opt/omada-controller/bin/control.sh start

 

Is there some other way I should be trying to launch the software?

 

 

Yes, the AUR package works well and should be started with `sudo systemctl start omada-controller.service`

 

However, if you have been running it as root, you have probably broken the permissions.  You shouldn't be running it as root.

 

I would remove the package, clean up all it's data and then re-install it.  Start it with systemd which will run it with the proper permissions.

  3  
  3  
#6
Options
Re:Omada Controller startup missing keystore
2022-08-05 23:24:00

  @Alex789 

 

I still can't get it to work even afer uninstalling omada-controller and starting over. It does get further along, but always fails when trying to start mongodb:

 

08-05-2022 16:04:03.187 INFO [main] [] c.t.s.o.s.OmadaLinuxMain(): Going to init controller!
08-05-2022 16:04:03.198 INFO [main] [] c.t.s.o.s.OmadaLinuxMain(): Going to start controller!
08-05-2022 16:04:03.206 INFO [main] [] c.t.s.o.c.o.a.b(): success to load configuration omada.properties
08-05-2022 16:04:03.237 INFO [main] [] c.t.s.o.s.OmadaBootstrap(): going to start local mongod.
08-05-2022 16:05:43.381 ERROR [main] [] c.t.s.f.c.FacadeUtils(): facadeMsgEnable is not enable, msg: Fail to start mongo DB server
08-05-2022 16:05:43.382 WARN [main] [] c.t.s.o.s.s.b(): Fail to start mongo DB server
08-05-2022 16:05:43.382 WARN [main] [] c.t.s.o.s.s.a(): com.tplink.smb.omada.starter.b.a: Fail to start mongo DB server

 

I can't seem to upload the stack trace here, or the whole log file as an attachment
 

  0  
  0  
#7
Options
Re:Omada Controller startup missing keystore
2022-08-06 02:18:45

  @dealy663 Which version of mongodb do you have installed?

 

`pacman -Q | grep -i mongo`

  0  
  0  
#8
Options
Re:Omada Controller startup missing keystore
2022-08-06 04:48:30

  @Alex789 

 

I installed the mongodb44-bin from AUR, 4.4.14-1.

 

 

  0  
  0  
#9
Options
Re:Omada Controller startup missing keystore
2022-08-06 08:24:12 - last edited 2022-10-13 10:51:11

EDIT

  0  
  0  
#10
Options
Re:Omada Controller startup missing keystore
2022-08-06 11:49:28

btx wrote

  @dealy663 do not use some aur package, use instead source (tar.gz, https://static.tp-link.com/upload/software/2022/202207/20220729/Omada_SDN_Controller_v5.4.6_Linux_x64.tar.gz) and install manually.

 

 

At least as it relates to Arch Linux derivatives, I think this is not good advice.  The AUR package is quite good and integrates everything in a sane way on an Arch-based distro.

 

It also runs everything as a non-privileged user for you by default.  I suspect the issue is tied to running it manually as root causing some permissions somewhere.

 

The AUR maintainer also deals with the fact that Arch is fairly bleeding edge and has constantly shifting software versions.

 

@dealy663 The AUR package is at 5.4.6 now, can you try updating?

 

 

  0  
  0  
#11
Options