AppDaemon: WebGUI startet nicht

Rings um Add-On's. Offizielle oder Custom.


Antworten
Benutzeravatar
Markus
Beiträge: 434
Registriert: Fr 23. Jul 2021, 09:03
2
Wohnort: Österreich
Has thanked: 21 times
Been thanked: 8 times

AppDaemon: WebGUI startet nicht

Beitrag von Markus »

Wäre gerade beim einrichten von AppDaemon4, warum auch immer startet die WebGUI nicht. Hat jemand einen Tipp was falsch ist?

Configuration

Code: Alles auswählen

init_commands: []
python_packages: []
system_packages: []
log_level: info
appdaemon.yaml

Code: Alles auswählen

secrets: /config/secrets.yaml
appdaemon:
  latitude: !secret latitude
  longitude: !secret longitude
  elevation: !secret elevation
  time_zone: CET
  plugins:
    HASS:
      type: hass
      ha_url: http://192.168.200.179:8123
      token: !secret appdaemon_token
      app_init_delay: 20  
http:
  url: http://xxx.x.x.x:5050
admin:
api:
hadashboard:
logs:
  error_log:
    filename: /config/appdaemon/logs/error.log
  main_log:
    filename: /config/appdaemon/logs/appdaemon.log
  acces_log:
    filename: /config/appdaemon/logs/access.log
  diag_log:
    filename: /config/appdaemon/logs/diag.log
    log_generations: 5
    log_size: 1024
    format: "{asctime} {levelname:<8} {appname:<10}: {message}"
  retic_log:
    name: Reticlog
    filename: /config/appdaemon/logs/retic.log
  flash:
    name: FlashLight
    filename: /config/appdaemon/logs/flash.log
Benutzeravatar
azrael783
Beiträge: 114
Registriert: Mi 27. Okt 2021, 08:57
2
Has thanked: 5 times
Been thanked: 8 times
Kontaktdaten:

Re: AppDaemon: WebGUI startet nicht

Beitrag von azrael783 »

Läuft bei mir in einer Testumgebung ohne irgendetwas an den Einstellungen geändert zu haben. Hattest du vorher die Version 3 von AppDaemon laufen? Wenn ja solltest du mal in die Doku gucken:

Code: Alles auswählen

Upgrading from AppDaemon 3.x

If you have previously ran AppDaemon 3.x (e.g., via an add-on), these steps will help you getting upgraded to AppDaemon 4.x.

    After installing this add-on, stop the current running AppDaemon 3.x add-on.
    Open your /config/appdaemon/appdaemon.yaml file in an editor.
        Remove the log.
        Removethreads, api_port, app_dir, ha_url and token.
        Add the following to the appdaemon section: latitude, longitude, elevation and time_zone.
        Add a http section with url: http://127.0.0.1:5050 in it.
        At the end of the file add admin: and api:.
        Remove everthing under hadashboard:, leaving just that.
Wenn nicht, hast du in der Konfiguration einen Port angegeben? Standardmäßig wird da wohl der Port 5050 verwendet.
Wer Rechtschreibfehler findet, darf sie gerne behalten :D
Benutzeravatar
Markus
Beiträge: 434
Registriert: Fr 23. Jul 2021, 09:03
2
Wohnort: Österreich
Has thanked: 21 times
Been thanked: 8 times

Re: AppDaemon: WebGUI startet nicht

Beitrag von Markus »

Hatte vorher keinen AppDaemon3 laufen. Port 5050 ist in der Configuration eingestellt.

Log

Code: Alles auswählen

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: AppDaemon 4
 Python Apps and Dashboard using AppDaemon 4.x for Home Assistant
-----------------------------------------------------------
 Add-on version: 0.8.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 7.1  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2021.12.10
 Home Assistant Supervisor: 2021.12.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] appdaemon.sh: executing... 
[cont-init.d] appdaemon.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[13:36:30] INFO: Starting AppDaemon...
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/appdaemon/__main__.py", line 443, in main
    admain.main()
  File "/usr/lib/python3.9/site-packages/appdaemon/__main__.py", line 387, in main
    self.logging = logging.Logging(logs, args.debug)
  File "/usr/lib/python3.9/site-packages/appdaemon/logging.py", line 274, in __init__
    logger = logging.getLogger(args["name"])
KeyError: 'name'
[13:36:34] INFO: Starting AppDaemon...
Traceback (most recent call last):
  File "/usr/bin/appdaemon", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.9/site-packages/appdaemon/__main__.py", line 443, in main
    admain.main()
  File "/usr/lib/python3.9/site-packages/appdaemon/__main__.py", line 387, in main
    self.logging = logging.Logging(logs, args.debug)
  File "/usr/lib/python3.9/site-packages/appdaemon/logging.py", line 274, in __init__
    logger = logging.getLogger(args["name"])
KeyError: 'name'
Benutzeravatar
azrael783
Beiträge: 114
Registriert: Mi 27. Okt 2021, 08:57
2
Has thanked: 5 times
Been thanked: 8 times
Kontaktdaten:

Re: AppDaemon: WebGUI startet nicht

Beitrag von azrael783 »

Merkwürdig, ich gucke heute Abend nochmal in die Configs rein, habe da momentan keinen Zugriff drauf ;)
Wer Rechtschreibfehler findet, darf sie gerne behalten :D
Benutzeravatar
azrael783
Beiträge: 114
Registriert: Mi 27. Okt 2021, 08:57
2
Has thanked: 5 times
Been thanked: 8 times
Kontaktdaten:

Re: AppDaemon: WebGUI startet nicht

Beitrag von azrael783 »

Also, hier der Inhalt der 'appdaemon.yaml':

Code: Alles auswählen

---
secrets: /config/secrets.yaml
appdaemon:
  latitude: 52.379189
  longitude: 4.899431
  elevation: 2
  time_zone: Europe/Amsterdam
  plugins:
    HASS:
      type: hass
http:
  url: http://127.0.0.1:5050
admin:
api:
hadashboard:
und der Inhalt der 'configuration.yaml':

Code: Alles auswählen

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
Wie gesagt, ist ein Dev System an dem ich noch nicht wirklich viel gemacht habe. Hast du mal die ganzen Log Einträge versucht auszukommentieren?
Wer Rechtschreibfehler findet, darf sie gerne behalten :D
Benutzeravatar
Markus
Beiträge: 434
Registriert: Fr 23. Jul 2021, 09:03
2
Wohnort: Österreich
Has thanked: 21 times
Been thanked: 8 times

Re: AppDaemon: WebGUI startet nicht

Beitrag von Markus »

Danke, es lag wohl an den logs.
Benutzeravatar
azrael783
Beiträge: 114
Registriert: Mi 27. Okt 2021, 08:57
2
Has thanked: 5 times
Been thanked: 8 times
Kontaktdaten:

Re: AppDaemon: WebGUI startet nicht

Beitrag von azrael783 »

Gerne, freut mich wenn ich helfen konnte ;)
Wer Rechtschreibfehler findet, darf sie gerne behalten :D
Antworten