Linux Omada Software 4.1.5 tries to restart randomly after successfully starting
Getting a weird issue with the new omada software. The software will start fine, but at some point, tries to restart itself and fails because mongo was already started. Up until it tries to restart itself, the software functions fine.
I don't see anything triggering the restart in systemctl (ubuntu VM). In fact, the status of omada service in systemctl says the service started fine.
Aug 15 15:55:34 <servername> systemd[1]: Starting LSB: Omada Controller...
Aug 15 15:55:34 <servername> tpeap[1988]: check omada
Aug 15 15:55:57 <servername> tpeap[1988]: Starting Omada Controller. Please wait.......................
Aug 15 15:55:57 <servername> tpeap[1988]: Started successfully.
Aug 15 15:55:57 <servername> tpeap[1988]: You can visit http://localhost:8088 on this host to manage the wireless network.
Aug 15 15:55:57 <servername> systemd[1]: Started LSB: Omada Controller.
Startup.log
java version "1.8.0_265"
OpenJDK Runtime Environment (build 1.8.0_265-8u265-b01-0ubuntu2~20.04-b01)
OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode)
commons daemon version "1.0.15-dev"
commons daemon process (id: 751, parent: 177)
Going to init controller!
Going to start controller!
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
Caused by: com.tplink.omada.start.a.a: port 27217 is already in use.
at com.tplink.omada.start.b.b.a(SourceFile:45)
at com.tplink.omada.start.b.d.d(SourceFile:97)
at com.tplink.omada.start.b.b.e(SourceFile:72)
at com.tplink.omada.start.OmadaBootstrap.d(SourceFile:209)
at com.tplink.omada.start.OmadaBootstrap.q(SourceFile:273)
at com.tplink.omada.start.OmadaBootstrap.a(SourceFile:86)
at com.tplink.omada.start.OmadaBootstrap.e(SourceFile:231)
at com.tplink.omada.start.OmadaLinuxMain.b(SourceFile:80)
at com.tplink.omada.start.OmadaLinuxMain.start(SourceFile:43)
... 5 more
Cannot start daemon
Service exit with a return value of 5
Server.log (nothing relevant on line before - seems like it's just trying to start up again):
2020-08-15 15:53:27 [main] [INFO]-[SourceFile:29] - success to load configuration omada.properties
2020-08-15 15:53:28 [main] [INFO]-[SourceFile:75] - going to start local mongod.
2020-08-15 15:53:28 [main] [ERROR]-[SourceFile:95] - Failed to init_port 27217 is already in use.
com.tplink.omada.start.a.a: port 27217 is already in use.
at com.tplink.omada.start.b.b.a(SourceFile:45) ~[omada-start.jar:?]
at com.tplink.omada.start.b.d.d(SourceFile:97) ~[omada-start.jar:?]
at com.tplink.omada.start.b.b.e(SourceFile:72) ~[omada-start.jar:?]
at com.tplink.omada.start.OmadaBootstrap.d(SourceFile:209) ~[omada-start.jar:?]
at com.tplink.omada.start.OmadaBootstrap.q(SourceFile:273) ~[omada-start.jar:?]
at com.tplink.omada.start.OmadaBootstrap.a(SourceFile:86) [omada-start.jar:?]
at com.tplink.omada.start.OmadaBootstrap.e(SourceFile:231) [omada-start.jar:?]
at com.tplink.omada.start.OmadaLinuxMain.b(SourceFile:80) [omada-start.jar:?]
at com.tplink.omada.start.OmadaLinuxMain.start(SourceFile:43) [omada-start.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_265]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_265]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_265]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_265]
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243) [commons-daemon-1.0.15.jar:1.0.15]