brenner-tobias / addon-cloudflared

Connect remotely to your Home Assistant instance without opening any ports using Cloudflared.
MIT License
883 stars 54 forks source link

Eintrag "Zusätzliche Hosts" kann nicht gespeichert werden. #739

Closed StW2024 closed 21 hours ago

StW2024 commented 6 days ago

The problem

Entsprechend einem Video, dass ich auf YouTube gefunden habe, habe ich das Addon Cloudflared installiert und wollte den Eintrag für zusätzliche Hosts speichern. Ich bekomme allerdings die Fehlermeldung: Fehler beim Speichern der Add-on Konfiguration, Invalid list for option 'additional_hosts' in Cloudflared (9074a9fa_cloudflared). Got {'external_hostname': '', 'additional_hosts': 'stw-homeassist.de'}

image

What version of Cloudflared has the issue?

5.2.1

What was the last working version of Cloudflared?

No response

What type of installation are you running?

Home Assistant OS

Add-on YAML Configuration

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# OSRAM lightify
light:
  - platform: osramlightify
    host: 192.168.178.22

Anything in the logs that might be useful for us?

Dieser Eintrag wiederholt sich immer wieder, obwohl ich das Addon noch gar nicht gestartet habe.

Add-on: Cloudflared
 Use a Cloudflare Tunnel to remotely connect to Home Assistant without opening any ports
-----------------------------------------------------------
 Add-on version: 5.2.1
 You are running the latest version of this add-on.
 System: Home Assistant OS 13.2  (aarch64 / raspberrypi3-64)
 Home Assistant Core: 2024.11.2
 Home Assistant Supervisor: 2024.11.2
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[21:36:27] INFO: Checking add-on config...
[21:36:27] FATAL: Cannot run without tunnel_token, external_hostname, additional_hosts, catch_all_service or nginx_proxy_manager. Please set at least one of these add-on options.
s6-rc: warning: unable to start service init-cloudflared-config: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
/run/s6/basedir/scripts/rc.init: fatal: stopping the container.

Steps to reproduce the issue

Entsprechend dem Youtube Video:

Additional information

No response

brenner-tobias commented 4 days ago

If you only want to make HA available from outside of your network, you do not need the additional_hosts option. Your domain for HA needs to be entered in the option "external_hostname", which is the first option of the add-on. HA will be reachable under this domain.

If you want to make additional services in your network available via the cloud flared tunnel (e.g. a website on a locally run server), you have to use the additionl_hosts option. This must be an array including all the hosts you want to add. You can refer to our documentation for the structure of the array.

StW2024 commented 4 days ago

Vielen Dank für die Antwort. Leider löst das überhaupt gar nicht die Problemstellung, dass Einträge in dem Addon nicht gespeichert werden können. Weder unter „external_hostname“, noch unter „additional_hosts“.

Von: Tobias Brenner @.> Gesendet: Donnerstag, 21. November 2024 11:33 An: brenner-tobias/addon-cloudflared @.> Cc: StW2024 @.>; Author @.> Betreff: Re: [brenner-tobias/addon-cloudflared] Eintrag "Zusätzliche Hosts" kann nicht gespeichert werden. (Issue #739)

If you only want to make HA available from outside of your network, you do not need the additional_hosts option. Your domain for HA needs to be entered in the option "external_hostname", which is the first option of the add-on. HA will be reachable under this domain.

If you want to make additional services in your network available via the cloud flared tunnel (e.g. a website on a locally run server), you have to use the additionl_hosts option. This must be an array including all the hosts you want to add. You can refer to our documentation https://github.com/brenner-tobias/addon-cloudflared/blob/main/cloudflared/DOCS.md#option-additional_hosts for the structure of the array.

— Reply to this email directly, view it on GitHub https://github.com/brenner-tobias/addon-cloudflared/issues/739#issuecomment-2490742431 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BNCKUXEKUYOVXCJNWMFRDI32BWZFPAVCNFSM6AAAAABSDCXZN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJQG42DENBTGE . You are receiving this because you authored the thread. https://github.com/notifications/beacon/BNCKUXBZT32PJNSSM7RIT232BWZFPA5CNFSM6AAAAABSDCXZN6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUUOW3J6.gif Message ID: @. @.> >

brenner-tobias commented 4 days ago

As I mentioned in my reply, the additional_hosts option must be an array. So you either add a properly formatted array to the configuration as mentioned in the linked documentation, or add an empty array. You might want to look at the YAML by clicking the three dots in the right top corner and clicking "Edit in YAML". There, you can add something like this:

external_hostname: "myha.example.com"
additional_hosts: []
run_parameters: []

After following the proper formatting rules, the add-on will also allow you to save the configuration

StW2024 commented 3 days ago

Wie ich in meiner Antwort erwähnte, ist es nicht möglich irgendetwas zu speichern. Egal wo oder in welchem Format.Von meinem iPhone gesendetAm 21.11.2024 um 13:30 schrieb Tobias Brenner @.***>: As I mentioned in my reply, the additional_hosts option must be an array. So you either add a properly formatted array to the configuration as mentioned in the linked documentation, or add an empty array. You might want to look at the YAML by clicking the three dots in the right top corner and clicking "Edit in YAML". There, you can add something like this: external_hostname: "myha.example.com" additional_hosts: [] run_parameters: []

After following the proper formatting rules, the add-on will also allow you to save the configuration

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

elcajon commented 3 days ago

Try to reset the add-on config first by resetting it to its defaults:

image

After that you should, as already mentioned, enter your Home Assistant domain in external_hostname. No need to configure anything in additional_hosts if you just want to access HA.