alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.57k stars 224 forks source link

🐛 [Omoda] not starting #521

Closed deku-m closed 2 years ago

deku-m commented 2 years ago

Which addon?

Describe the bug

To Reproduce

-----------------------------------------------------------
 Add-on: Omada
 TP-Link Omada Controller
-----------------------------------------------------------
 Add-on version: 5.5-chromium-amd64-2022-10-19
 You are running the latest version of this add-on.
 System: Debian GNU/Linux 11 (bullseye)  (amd64 / qemux86-64)
 Home Assistant Core: 2022.10.4
 Home Assistant Supervisor: 2022.10.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
 https://github.com/alexbelgium/hassio-addons
-----------------------------------------------------------
cp: -r not specified; omitting directory '/ssl/nginxproxymanager'
cp: -r not specified; omitting directory '/ssl/ssl'
Creating directory
Updating permissions
Removing previous directories
Creating symlink
INFO: Validating user/group (omada:omada) exists with correct UID/GID (508:508)
INFO: Group (omada) doesn't exist; creating
INFO: User (omada) doesn't exist; creating
INFO: Time zone set to 'Europe/Amsterdam'
INFO: Value of 'manage.http.port' already set to 8088 in omada.properties
INFO: Value of 'manage.https.port' already set to 8043 in omada.properties
INFO: Value of 'portal.http.port' already set to 8088 in omada.properties
INFO: Value of 'portal.https.port' already set to 8843 in omada.properties
INFO: Value of 'port.adopt.v1' already set to 29812 in omada.properties
INFO: Value of 'port.app.discovery' already set to 27001 in omada.properties
INFO: Value of 'port.upgrade.v1' already set to 29813 in omada.properties
INFO: Value of 'port.manager.v1' already set to 29811 in omada.properties
INFO: Value of 'port.manager.v2' already set to 29814 in omada.properties
INFO: Value of 'port.discovery' already set to 29810 in omada.properties
WARN: Ownership not set correctly on '/opt/tplink/EAPController/data'; setting correct ownership (omada:omada)
WARN: Ownership not set correctly on '/opt/tplink/EAPController/logs'; setting correct ownership (omada:omada)
WARN: Ownership not set correctly on '/opt/tplink/EAPController/properties'; setting correct ownership (omada:omada)
INFO: Version check passed; image version (5.5.6) >= the last version ran (0.0.0); writing image version to last ran file...
INFO: Starting Omada Controller as user omada
tail: cannot open '/opt/tplink/EAPController/logs/server.log' for reading: No such file or directory
tail: '/opt/tplink/EAPController/logs/server.log' has appeared;  following new file
10-20-2022 23:42:23.995 INFO [log4j-thread] [] c.t.s.o.c.o.a.b(): success to load configuration omada.properties
10-20-2022 23:42:24.036 INFO [main] [] c.t.s.o.s.OmadaBootstrap(): going to start local mongod.
10-20-2022 23:44:04.209 ERROR [main] [] c.t.s.f.c.FacadeUtils(): facadeMsgEnable is not enable, msg: Fail to start mongo DB server
10-20-2022 23:44:04.209 WARN [main] [] c.t.s.o.s.s.b(): Fail to start mongo DB server
10-20-2022 23:44:04.209 WARN [main] [] c.t.s.o.s.s.a(): com.tplink.smb.omada.starter.b.a: Fail to start mongo DB server
com.tplink.smb.omada.starter.b.a: Fail to start mongo DB server
    at com.tplink.smb.omada.starter.server.b.a(SourceFile:146) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.server.a.e(SourceFile:74) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.d(SourceFile:239) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.q(SourceFile:317) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.a(SourceFile:106) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.e(SourceFile:267) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaLinuxMain.a(SourceFile:84) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaLinuxMain.main(SourceFile:36) ~[local-starter-5.5.6.jar:5.5.6]
10-20-2022 23:45:46.444 ERROR [main] [] c.t.s.f.c.FacadeUtils(): facadeMsgEnable is not enable, msg: Fail to start mongo DB server
10-20-2022 23:45:46.446 WARN [main] [] c.t.s.o.s.s.b(): Fail to start mongo DB server
10-20-2022 23:45:46.446 WARN [main] [] c.t.s.o.s.s.a(): com.tplink.smb.omada.starter.b.a: Fail to start mongo DB server
com.tplink.smb.omada.starter.b.a: Fail to start mongo DB server
    at com.tplink.smb.omada.starter.server.b.a(SourceFile:146) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.server.a.e(SourceFile:74) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.d(SourceFile:239) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.n(SourceFile:232) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.q(SourceFile:320) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.a(SourceFile:106) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaBootstrap.e(SourceFile:267) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaLinuxMain.a(SourceFile:84) ~[local-starter-5.5.6.jar:5.5.6]
    at com.tplink.smb.omada.starter.OmadaLinuxMain.main(SourceFile:36) ~[local-starter-5.5.6.jar:5.5.6]
10-20-2022 23:45:46.689 WARN [main] [] c.t.s.o.s.OmadaBootstrap(): Valid keystore is missing. Generating one ...
10-20-2022 23:45:47.313 INFO [main] [] c.t.s.o.s.OmadaBootstrap(): Certificate generated!
10-20-2022 23:45:48.462 INFO [mongo-check-thread] [] c.t.s.o.s.OmadaBootstrap(): mongod was shutdown, restarting it
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.6)
10-20-2022 23:46:18.185 INFO [main] [] c.t.s.o.s.OmadaLinuxMain(): Starting OmadaLinuxMain v5.5.6 using Java 17.0.4 on db21ed7f-omada with PID 7 (/opt/tplink/EAPController/lib/local-starter-5.5.6.jar started by omada in /opt/tplink/EAPController/lib)
10-20-2022 23:46:18.187 INFO [main] [] c.t.s.o.s.OmadaLinuxMain(): No active profile set, falling back to 1 default profile: "default"
10-20-2022 23:46:23.438 WARN [main] [] o.s.d.c.CustomConversions(): Registering converter from class java.time.LocalDateTime to class org.joda.time.LocalDateTime as reading converter although it doesn't convert from a store-supported type! You might want to check your annotation setup at the converter implementation.

Full addon log

Full addon config

Default as setup. System

alexbelgium commented 2 years ago

Hi, I've pushed a new version that seems to start on my system

deku-m commented 2 years ago

For me it isnt working tooo bad it stays hanging on mongodb so might be an issue in the new build for me since 5.5-chromium-amd64-2022-10-19.

Forgot to take a backup

alexbelgium commented 2 years ago

Probably an issue with permissions. I've set the config folder to /data and now it works. You can update it and it should work

deku-m commented 2 years ago

Yes i is working now thx

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.