Impossible de se connecter depuis l'extérieur

Bonjour,

J’ai suivi des tutoriels pour accéder à HA en dehors de mon domicile, et j’en suis à la presque fin. J’arrive à atteindre le site en dehors via le https://mondomaine.duckdns.org, mais lorsque je me log, j’ai :

Je suis avec HA et nginx sous docker avec portainer. J’ai regardé un post forum mais je n’arrive pas à avoir le même fichier que lui pour le modifier…

Quand j’essaie de me log de mon téléphone dans les log du portainer j’ai :

2023-08-26 15:26:33.979 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 104.28.42.21 (104.28.42.21). Requested URL: ‹ /auth/token ›. (Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1)

Ma config dans le yaml pour y accéder à distance :

http:
  server_port: 8123
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.21.0.2

Merci !

Bj

suivant ta config , tu a essayé ceci :
Model:

http:
  ssl_certificate: /config/ssl/full_chain2023.pem
  ssl_key: /config/ssl/certificate2023.pem
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.100.10
    - 172.18.0.1
  ip_ban_enabled: true
  login_attempts_threshold: 5

et verifie si HA n’as pas banni ton ip

la config suivante :

http:
  ssl_certificate: /opt/nginxproxymanager/letsencrypt/live/npm-25/fullchain>
  ssl_key: /opt/nginxproxymanager/letsencrypt/live/npm-25/privkey.pem
  server_port: 8123
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.21.0.2
  ip_ban_enabled: true
  login_attempts_threshold: 5

me donne :

s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
2023-08-26 17:05:41.257 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-26 17:05:41.466 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/opt/nginxproxymanager/letsencrypt/live/npm-25/fullchain.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/opt/nginxproxymanager/letsencrypt/live/npm-25/privkey.pem'. (See /config/configuration.yaml, line 60). Please check the docs at https://www.home-assistant.io/integrations/http
2023-08-26 17:05:41.473 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2023-08-26 17:05:41.477 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2023-08-26 17:05:41.479 ERROR (MainThread) [homeassistant.setup] Setup failed for api: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.480 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2023-08-26 17:05:41.482 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.483 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2023-08-26 17:05:41.485 ERROR (MainThread) [homeassistant.setup] Setup failed for config: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.487 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of diagnostics. Setup failed for dependencies: http
2023-08-26 17:05:41.488 ERROR (MainThread) [homeassistant.setup] Setup failed for diagnostics: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.490 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of file_upload. Setup failed for dependencies: http
2023-08-26 17:05:41.491 ERROR (MainThread) [homeassistant.setup] Setup failed for file_upload: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.493 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of repairs. Setup failed for dependencies: http
2023-08-26 17:05:41.494 ERROR (MainThread) [homeassistant.setup] Setup failed for repairs: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.496 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2023-08-26 17:05:41.498 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.500 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image_upload. Setup failed for dependencies: http
2023-08-26 17:05:41.501 ERROR (MainThread) [homeassistant.setup] Setup failed for image_upload: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:41.503 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
2023-08-26 17:05:41.504 ERROR (MainThread) [homeassistant.setup] Setup failed for search: (DependencyError(...), 'Could not setup dependencies: websocket_api')
2023-08-26 17:05:41.506 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of analytics. Setup failed for dependencies: api, websocket_api
2023-08-26 17:05:41.507 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: (DependencyError(...), 'Could not setup dependencies: api, websocket_api')
2023-08-26 17:05:41.509 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image_upload
2023-08-26 17:05:41.510 ERROR (MainThread) [homeassistant.setup] Setup failed for person: (DependencyError(...), 'Could not setup dependencies: image_upload')
2023-08-26 17:05:41.512 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics, auth, http, person
2023-08-26 17:05:41.513 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics, auth, http, person')
2023-08-26 17:05:41.528 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, config, diagnostics, file_upload, http, onboarding, repairs, search, websocket_api
2023-08-26 17:05:41.535 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: api, auth, config, diagnostics, file_upload, http, onboarding, repairs, search, websocket_api')
2023-08-26 17:05:42.802 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of usb. Setup failed for dependencies: websocket_api
2023-08-26 17:05:42.805 ERROR (MainThread) [homeassistant.setup] Setup failed for usb: (DependencyError(...), 'Could not setup dependencies: websocket_api')
2023-08-26 17:05:42.806 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2023-08-26 17:05:42.808 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:42.810 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of network. Setup failed for dependencies: websocket_api
2023-08-26 17:05:42.811 ERROR (MainThread) [homeassistant.setup] Setup failed for network: (DependencyError(...), 'Could not setup dependencies: websocket_api')
2023-08-26 17:05:42.930 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of bluetooth. Setup failed for dependencies: usb
2023-08-26 17:05:42.931 ERROR (MainThread) [homeassistant.setup] Setup failed for bluetooth: (DependencyError(...), 'Could not setup dependencies: usb')
2023-08-26 17:05:42.933 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook
2023-08-26 17:05:42.935 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: (DependencyError(...), 'Could not setup dependencies: http, webhook')
2023-08-26 17:05:42.937 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of zeroconf. Setup failed for dependencies: network, api
2023-08-26 17:05:42.938 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: (DependencyError(...), 'Could not setup dependencies: network, api')
2023-08-26 17:05:42.941 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of ssdp. Setup failed for dependencies: network
2023-08-26 17:05:42.942 ERROR (MainThread) [homeassistant.setup] Setup failed for ssdp: (DependencyError(...), 'Could not setup dependencies: network')
2023-08-26 17:05:43.308 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of stream. Setup failed for dependencies: http
2023-08-26 17:05:43.312 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.314 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of stt. Setup failed for dependencies: http
2023-08-26 17:05:43.316 ERROR (MainThread) [homeassistant.setup] Setup failed for stt: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.319 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of hacs. Setup failed for dependencies: http, websocket_api, frontend, repairs
2023-08-26 17:05:43.320 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration hacs: (DependencyError(...), 'Could not setup dependencies: http, websocket_api, frontend, repairs')
2023-08-26 17:05:43.323 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2023-08-26 17:05:43.327 ERROR (MainThread) [homeassistant.setup] Setup failed for history: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.329 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_source. Setup failed for dependencies: http
2023-08-26 17:05:43.332 ERROR (MainThread) [homeassistant.setup] Setup failed for media_source: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.335 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2023-08-26 17:05:43.337 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.339 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2023-08-26 17:05:43.341 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.344 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2023-08-26 17:05:43.345 ERROR (MainThread) [homeassistant.setup] Setup failed for map: (DependencyError(...), 'Could not setup dependencies: frontend')
2023-08-26 17:05:43.347 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of panel_iframe. Setup failed for dependencies: frontend
2023-08-26 17:05:43.349 ERROR (MainThread) [homeassistant.setup] Setup failed for panel_iframe: (DependencyError(...), 'Could not setup dependencies: frontend')
2023-08-26 17:05:43.352 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of thread. Setup failed for dependencies: zeroconf
2023-08-26 17:05:43.354 ERROR (MainThread) [homeassistant.setup] Setup failed for thread: (DependencyError(...), 'Could not setup dependencies: zeroconf')
2023-08-26 17:05:43.356 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of apple_tv. Setup failed for dependencies: zeroconf
2023-08-26 17:05:43.358 ERROR (MainThread) [homeassistant.setup] Setup failed for apple_tv: (DependencyError(...), 'Could not setup dependencies: zeroconf')
2023-08-26 17:05:43.360 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of conversation. Setup failed for dependencies: http
2023-08-26 17:05:43.362 ERROR (MainThread) [homeassistant.setup] Setup failed for conversation: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.364 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of upnp. Setup failed for dependencies: network, ssdp
2023-08-26 17:05:43.366 ERROR (MainThread) [homeassistant.setup] Setup failed for upnp: (DependencyError(...), 'Could not setup dependencies: network, ssdp')
2023-08-26 17:05:43.369 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend, http
2023-08-26 17:05:43.371 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: (DependencyError(...), 'Could not setup dependencies: frontend, http')
2023-08-26 17:05:43.373 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of application_credentials. Setup failed for dependencies: auth, websocket_api
2023-08-26 17:05:43.375 ERROR (MainThread) [homeassistant.setup] Setup failed for application_credentials: (DependencyError(...), 'Could not setup dependencies: auth, websocket_api')
2023-08-26 17:05:43.377 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mqtt. Setup failed for dependencies: file_upload, http
2023-08-26 17:05:43.379 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: (DependencyError(...), 'Could not setup dependencies: file_upload, http')
2023-08-26 17:05:43.382 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of my. Setup failed for dependencies: frontend
2023-08-26 17:05:43.383 ERROR (MainThread) [homeassistant.setup] Setup failed for my: (DependencyError(...), 'Could not setup dependencies: frontend')
2023-08-26 17:05:43.386 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2023-08-26 17:05:43.388 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:05:43.568 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of energy. Setup failed for dependencies: websocket_api, history
2023-08-26 17:05:43.571 ERROR (MainThread) [homeassistant.setup] Setup failed for energy: (DependencyError(...), 'Could not setup dependencies: websocket_api, history')
2023-08-26 17:05:43.575 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of assist_pipeline. Setup failed for dependencies: conversation, stt, tts
2023-08-26 17:05:43.576 ERROR (MainThread) [homeassistant.setup] Setup failed for assist_pipeline: (DependencyError(...), 'Could not setup dependencies: conversation, stt, tts')
2023-08-26 17:05:43.579 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of sonos. Setup failed for dependencies: ssdp
2023-08-26 17:05:43.580 ERROR (MainThread) [homeassistant.setup] Setup failed for sonos: (DependencyError(...), 'Could not setup dependencies: ssdp')
2023-08-26 17:05:43.608 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: http, webhook, person, websocket_api
2023-08-26 17:05:43.609 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: (DependencyError(...), 'Could not setup dependencies: http, webhook, person, websocket_api')
2023-08-26 17:05:43.717 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: http, network
2023-08-26 17:05:43.730 ERROR (MainThread) [homeassistant.setup] Setup failed for homekit: (DependencyError(...), 'Could not setup dependencies: http, network')
2023-08-26 17:05:45.366 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: application_credentials, assist_pipeline, bluetooth, cloud, conversation, energy, frontend, history, logbook, map, media_source, mobile_app, my, network, person, ssdp, stream, system_health, usb, webhook, zeroconf
2023-08-26 17:05:45.368 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: application_credentials, assist_pipeline, bluetooth, cloud, conversation, energy, frontend, history, logbook, map, media_source, mobile_app, my, network, person, ssdp, stream, system_health, usb, webhook, zeroconf')
2023-08-26 17:05:45.776 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of camera. Setup failed for dependencies: http
2023-08-26 17:05:45.778 ERROR (MainThread) [homeassistant.setup] Setup failed for camera: (DependencyError(...), 'Could not setup dependencies: http')

Je ne sais pas où sont les fichiers ssl car il me dit « non trouvé » …
J’utilise nginx

J’ai téléchargé le zip des SSL directement sur le plateforme nginx, puis créé un fichier dans /home/hocis/config/letsencrypt/config/SSL avec les .pem précédemment downloaded. J’ai ensuite dans mon yaml :

http:
  ssl_certificate: /home/hocis/config/letsencrypt/config/SSL/fullchain3.pem
  ssl_key: /home/hocis/config/letsencrypt/config/SSL/privkey3.pem
  server_port: 8123
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.21.0.2
  ip_ban_enabled: true
  login_attempts_threshold: 5

ça me met en log HA :

s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
2023-08-26 17:23:47.838 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-08-26 17:23:48.051 ERROR (MainThread) [homeassistant.config] Invalid config for [http]: not a file for dictionary value @ data['http']['ssl_certificate']. Got '/home/hocis/config/letsencrypt/config/SSL/fullchain3.pem'
not a file for dictionary value @ data['http']['ssl_key']. Got '/home/hocis/config/letsencrypt/config/SSL/privkey3.pem'. (See /config/configuration.yaml, line 60). Please check the docs at https://www.home-assistant.io/integrations/http
2023-08-26 17:23:48.058 ERROR (MainThread) [homeassistant.setup] Setup failed for http: Invalid config.
2023-08-26 17:23:48.062 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of api. Setup failed for dependencies: http
2023-08-26 17:23:48.063 ERROR (MainThread) [homeassistant.setup] Setup failed for api: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.065 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of auth. Setup failed for dependencies: http
2023-08-26 17:23:48.067 ERROR (MainThread) [homeassistant.setup] Setup failed for auth: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.069 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of config. Setup failed for dependencies: http
2023-08-26 17:23:48.070 ERROR (MainThread) [homeassistant.setup] Setup failed for config: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.072 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of diagnostics. Setup failed for dependencies: http
2023-08-26 17:23:48.073 ERROR (MainThread) [homeassistant.setup] Setup failed for diagnostics: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.075 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of file_upload. Setup failed for dependencies: http
2023-08-26 17:23:48.076 ERROR (MainThread) [homeassistant.setup] Setup failed for file_upload: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.077 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of repairs. Setup failed for dependencies: http
2023-08-26 17:23:48.079 ERROR (MainThread) [homeassistant.setup] Setup failed for repairs: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.080 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of websocket_api. Setup failed for dependencies: http
2023-08-26 17:23:48.081 ERROR (MainThread) [homeassistant.setup] Setup failed for websocket_api: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.084 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of image_upload. Setup failed for dependencies: http
2023-08-26 17:23:48.085 ERROR (MainThread) [homeassistant.setup] Setup failed for image_upload: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:48.086 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of search. Setup failed for dependencies: websocket_api
2023-08-26 17:23:48.088 ERROR (MainThread) [homeassistant.setup] Setup failed for search: (DependencyError(...), 'Could not setup dependencies: websocket_api')
2023-08-26 17:23:48.089 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of analytics. Setup failed for dependencies: api, websocket_api
2023-08-26 17:23:48.091 ERROR (MainThread) [homeassistant.setup] Setup failed for analytics: (DependencyError(...), 'Could not setup dependencies: api, websocket_api')
2023-08-26 17:23:48.092 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of person. Setup failed for dependencies: image_upload
2023-08-26 17:23:48.094 ERROR (MainThread) [homeassistant.setup] Setup failed for person: (DependencyError(...), 'Could not setup dependencies: image_upload')
2023-08-26 17:23:48.095 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of onboarding. Setup failed for dependencies: analytics, auth, http, person
2023-08-26 17:23:48.096 ERROR (MainThread) [homeassistant.setup] Setup failed for onboarding: (DependencyError(...), 'Could not setup dependencies: analytics, auth, http, person')
2023-08-26 17:23:48.098 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of frontend. Setup failed for dependencies: api, auth, config, diagnostics, file_upload, http, onboarding, repairs, search, websocket_api
2023-08-26 17:23:48.100 ERROR (MainThread) [homeassistant.setup] Setup failed for frontend: (DependencyError(...), 'Could not setup dependencies: api, auth, config, diagnostics, file_upload, http, onboarding, repairs, search, websocket_api')
2023-08-26 17:23:49.350 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of network. Setup failed for dependencies: websocket_api
2023-08-26 17:23:49.353 ERROR (MainThread) [homeassistant.setup] Setup failed for network: (DependencyError(...), 'Could not setup dependencies: websocket_api')
2023-08-26 17:23:49.355 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of usb. Setup failed for dependencies: websocket_api
2023-08-26 17:23:49.356 ERROR (MainThread) [homeassistant.setup] Setup failed for usb: (DependencyError(...), 'Could not setup dependencies: websocket_api')
2023-08-26 17:23:49.358 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of webhook. Setup failed for dependencies: http
2023-08-26 17:23:49.359 ERROR (MainThread) [homeassistant.setup] Setup failed for webhook: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:49.478 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of zeroconf. Setup failed for dependencies: network, api
2023-08-26 17:23:49.479 ERROR (MainThread) [homeassistant.setup] Setup failed for zeroconf: (DependencyError(...), 'Could not setup dependencies: network, api')
2023-08-26 17:23:49.481 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of bluetooth. Setup failed for dependencies: usb
2023-08-26 17:23:49.482 ERROR (MainThread) [homeassistant.setup] Setup failed for bluetooth: (DependencyError(...), 'Could not setup dependencies: usb')
2023-08-26 17:23:49.484 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of cloud. Setup failed for dependencies: http, webhook
2023-08-26 17:23:49.485 ERROR (MainThread) [homeassistant.setup] Setup failed for cloud: (DependencyError(...), 'Could not setup dependencies: http, webhook')
2023-08-26 17:23:49.488 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of ssdp. Setup failed for dependencies: network
2023-08-26 17:23:49.489 ERROR (MainThread) [homeassistant.setup] Setup failed for ssdp: (DependencyError(...), 'Could not setup dependencies: network')
2023-08-26 17:23:50.082 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of history. Setup failed for dependencies: http
2023-08-26 17:23:50.083 ERROR (MainThread) [homeassistant.setup] Setup failed for history: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.085 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mqtt. Setup failed for dependencies: file_upload, http
2023-08-26 17:23:50.087 ERROR (MainThread) [homeassistant.setup] Setup failed for mqtt: (DependencyError(...), 'Could not setup dependencies: file_upload, http')
2023-08-26 17:23:50.089 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of conversation. Setup failed for dependencies: http
2023-08-26 17:23:50.090 ERROR (MainThread) [homeassistant.setup] Setup failed for conversation: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.092 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of thread. Setup failed for dependencies: zeroconf
2023-08-26 17:23:50.092 ERROR (MainThread) [homeassistant.setup] Setup failed for thread: (DependencyError(...), 'Could not setup dependencies: zeroconf')
2023-08-26 17:23:50.095 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of tts. Setup failed for dependencies: http
2023-08-26 17:23:50.096 ERROR (MainThread) [homeassistant.setup] Setup failed for tts: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.098 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of logbook. Setup failed for dependencies: frontend, http
2023-08-26 17:23:50.100 ERROR (MainThread) [homeassistant.setup] Setup failed for logbook: (DependencyError(...), 'Could not setup dependencies: frontend, http')
2023-08-26 17:23:50.104 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of my. Setup failed for dependencies: frontend
2023-08-26 17:23:50.106 ERROR (MainThread) [homeassistant.setup] Setup failed for my: (DependencyError(...), 'Could not setup dependencies: frontend')
2023-08-26 17:23:50.108 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of upnp. Setup failed for dependencies: network, ssdp
2023-08-26 17:23:50.110 ERROR (MainThread) [homeassistant.setup] Setup failed for upnp: (DependencyError(...), 'Could not setup dependencies: network, ssdp')
2023-08-26 17:23:50.111 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of panel_iframe. Setup failed for dependencies: frontend
2023-08-26 17:23:50.113 ERROR (MainThread) [homeassistant.setup] Setup failed for panel_iframe: (DependencyError(...), 'Could not setup dependencies: frontend')
2023-08-26 17:23:50.115 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of application_credentials. Setup failed for dependencies: auth, websocket_api
2023-08-26 17:23:50.116 ERROR (MainThread) [homeassistant.setup] Setup failed for application_credentials: (DependencyError(...), 'Could not setup dependencies: auth, websocket_api')
2023-08-26 17:23:50.118 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of alexa. Setup failed for dependencies: http
2023-08-26 17:23:50.120 ERROR (MainThread) [homeassistant.setup] Setup failed for alexa: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.122 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of map. Setup failed for dependencies: frontend
2023-08-26 17:23:50.123 ERROR (MainThread) [homeassistant.setup] Setup failed for map: (DependencyError(...), 'Could not setup dependencies: frontend')
2023-08-26 17:23:50.125 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of system_health. Setup failed for dependencies: http
2023-08-26 17:23:50.127 ERROR (MainThread) [homeassistant.setup] Setup failed for system_health: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.128 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of hacs. Setup failed for dependencies: http, websocket_api, frontend, repairs
2023-08-26 17:23:50.130 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration hacs: (DependencyError(...), 'Could not setup dependencies: http, websocket_api, frontend, repairs')
2023-08-26 17:23:50.133 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of media_source. Setup failed for dependencies: http
2023-08-26 17:23:50.134 ERROR (MainThread) [homeassistant.setup] Setup failed for media_source: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.136 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of apple_tv. Setup failed for dependencies: zeroconf
2023-08-26 17:23:50.137 ERROR (MainThread) [homeassistant.setup] Setup failed for apple_tv: (DependencyError(...), 'Could not setup dependencies: zeroconf')
2023-08-26 17:23:50.140 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of stt. Setup failed for dependencies: http
2023-08-26 17:23:50.141 ERROR (MainThread) [homeassistant.setup] Setup failed for stt: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.143 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of stream. Setup failed for dependencies: http
2023-08-26 17:23:50.145 ERROR (MainThread) [homeassistant.setup] Setup failed for stream: (DependencyError(...), 'Could not setup dependencies: http')
2023-08-26 17:23:50.207 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of energy. Setup failed for dependencies: websocket_api, history
2023-08-26 17:23:50.211 ERROR (MainThread) [homeassistant.setup] Setup failed for energy: (DependencyError(...), 'Could not setup dependencies: websocket_api, history')
2023-08-26 17:23:50.235 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of assist_pipeline. Setup failed for dependencies: conversation, stt, tts
2023-08-26 17:23:50.237 ERROR (MainThread) [homeassistant.setup] Setup failed for assist_pipeline: (DependencyError(...), 'Could not setup dependencies: conversation, stt, tts')
2023-08-26 17:23:50.241 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of sonos. Setup failed for dependencies: ssdp
2023-08-26 17:23:50.244 ERROR (MainThread) [homeassistant.setup] Setup failed for sonos: (DependencyError(...), 'Could not setup dependencies: ssdp')
2023-08-26 17:23:50.280 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of mobile_app. Setup failed for dependencies: http, webhook, person, websocket_api
2023-08-26 17:23:50.283 ERROR (MainThread) [homeassistant.setup] Setup failed for mobile_app: (DependencyError(...), 'Could not setup dependencies: http, webhook, person, websocket_api')
2023-08-26 17:23:50.383 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of homekit. Setup failed for dependencies: http, network
2023-08-26 17:23:50.389 ERROR (MainThread) [homeassistant.setup] Setup failed for homekit: (DependencyError(...), 'Could not setup dependencies: http, network')
2023-08-26 17:23:51.979 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: application_credentials, assist_pipeline, bluetooth, cloud, conversation, energy, frontend, history, logbook, map, media_source, mobile_app, my, network, person, ssdp, stream, system_health, usb, webhook, zeroconf
2023-08-26 17:23:51.982 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: application_credentials, assist_pipeline, bluetooth, cloud, conversation, energy, frontend, history, logbook, map, media_source, mobile_app, my, network, person, ssdp, stream, system_health, usb, webhook, zeroconf')
2023-08-26 17:23:52.528 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of camera. Setup failed for dependencies: http
2023-08-26 17:23:52.530 ERROR (MainThread) [homeassistant.setup] Setup failed for camera: (DependencyError(...), 'Could not setup dependencies: http')

Ces deux manips rendent également HA en local inaccessible.

Salut,

Tout est là, ta config n’est pas bonne

Oui oui je comprends un peu l’anglais, je m’interroge donc sur comment la rendre clean ^^

Pour y repondre il faut le contexte de ton installation HAOS, j’imagine ?
Si oui, tu es dans un container, donc

  • /home/hocis/ c’est pas connu
  • /opt/nginxproxymanager/ non plus

Il y a 99% de chances que le bon truc commence par /config/

C’est l’écran de quoi ?
En principe avec l’éditeur de fichiers de ha, tu vois les certificats

Pardon, c’est l’écran du raspberry en SSH. J’ai cherché ou pourrait être ce certificat manuellement mais je n’ai pas trouvé. J’ai regardé s’il y avait un fichier racine /config

Si on considère que HA va chercher directement à sa racine un fichier /config, non je n’en ai pas. Le yaml est dans un fichier config : /home/hocis/config

La ou il y a le yaml j’ai un dossier letsencrypt où il y a à l’intérieur un config également.

Il faut le chemin tel que connu dans le conteneur (donc /config dans le conteneur), donc le trouver avec la console SSH n’est pas forcement plus simple (il faut transformer le chemin si c’est le cas). Par ailleurs tu n’a pas confirmé ton type d’installation

Dans mon premier message ou je demande de l’aide, j’ai écris

C’est de ça dont tu parles ? ^^

Pour répondre à ta question, depuis le /config où le yaml de portainer est mis et là ou je modifie le fichier pour y mettre le chemin SSL, je n’arrive pas à trouver où ils sont stockés

Donc 2 containers : 1 pour HA et 1 pour NGINX ?
Par défaut les containers ne partagent pas les fichiers…
Je ne sais pas pourquoi tu as choisi ce type d’installation mais c’est clairement pas le plus simple si on ne connait pas le fonctionnement des containers… Portainer, c’est bien mais ça cache le besoin technique.
Tu devrais probablement faire une installation HAOS

Voici mon portainer. J’ai utilisé cette installation car HAOS ne me permettait que d’avoir HA. Le but étant d’avoir zigbee2mqtt, homebridge, Adguard, etc au fur et à mesure. Utiliser en HAOS utilisait tout le RP pour HA. Donc voilà pourquoi ^^. Il y a peu de sujet avec du docker donc je galère un peu pour mon probleme

Tout ce que tu cites est dispo sous forme d’addon de HAOS ou d’intégration…




Ca me force à tout réinstaller/configurer sur le RP pour un chemin introuvable pour avoir HA en dehors et faire remonter tout à alexa :frowning:

Il y a aussi une interface graphique avec le ssh ?

Ce qui est à mon avis infiniment plus rapide que de galérer avec Portainer, parce que c’est loin d’être fini si tu n’as pas les bases. Partager un fichier c’est juste un aperçu des difficultés que tu vas rencontrer

Donc remettre à 0 le RP, installer Home assistant avec Operating system, et ajouter des add on pour zigbee2mqtt, moskitto, HA en dehors, adguard, nginx etc.

Exactement.
Tu peux copier le contenu de ton /home/hocis/config, tu pourras réinjecter une partie de ce que tu as déjà pour gagner du temps

Je vais regarder tout ça. Merci du conseil. Je reviendrai ici pour donner des news si ça peu aider des personnes