Error during setup of component ssdp

A search of the forum posts reveal that a few others are getting this error, but there is little in the way of solutions.

I am now getting this notification with every restart of Home Assistant. All I did was to add the following to my configuration.yaml to use Duckdns to access my Home Assistant remotely.

http:
 ssl_certificate: /ssl/fullchain.pem
 ssl_key: /ssl/privkey.pem

Is there any way to determine why this is failing?
(Duckdns access is working now, by the way).

Here is the log file at the first mention of “ssdp”

2023-03-13 11:03:58.701 ERROR (MainThread) [homeassistant.setup] Error during setup of component ssdp
Traceback (most recent call last):
File “/usr/local/lib/python3.10/site-packages/yarl/_url.py”, line 166, in new
port = val.port
File “/usr/local/lib/python3.10/urllib/parse.py”, line 177, in port
raise ValueError(f"Port could not be cast to integer value as {port!r}")
ValueError: Port could not be cast to integer value as ‘:8123’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 256, in _async_setup_component
result = await task
File “/usr/src/homeassistant/homeassistant/components/ssdp/init.py”, line 225, in async_setup
await server.async_start()
File “/usr/src/homeassistant/homeassistant/components/ssdp/init.py”, line 751, in async_start
await self._async_start_upnp_servers()
File “/usr/src/homeassistant/homeassistant/components/ssdp/init.py”, line 765, in _async_start_upnp_servers
presentation_url = get_url(self.hass, allow_ip=True, prefer_external=False)
File “/usr/src/homeassistant/homeassistant/helpers/network.py”, line 155, in get_url
return _get_external_url(
File “/usr/src/homeassistant/homeassistant/helpers/network.py”, line 265, in _get_external_url
external_url = yarl.URL(hass.config.external_url)
File “/usr/local/lib/python3.10/site-packages/yarl/_url.py”, line 168, in new
raise ValueError(
ValueError: Invalid URL: port can’t be converted to integer

What does your configuration.yaml look like?

It sounds like you may have set the port to :8123

Here is the whole configuration.yaml

# homeassistant:

# MyHomeAssistant
# Allows the documentation to link directly to the right page in their instance.
# https://www.home-assistant.io/integrations/my/
my:


# I am not sure where I used the notify component.
notify:
  - name: notify
    platform: file
    timestamp: true
    filename: notify.txt

recorder:
  purge_keep_days: 5
  auto_purge: true
  include:
    domains:
      - sensor
      - switch
  exclude:
    entities:
      - sensor.date
      - switch.wemos_blinkr_led

history:
  use_include_order: true
  include:
    entities:
      - sensor.temp_attic
      - switch.floodlight
      - sensor.freezer_temperature_c
      - binary_sensor.jeep_status
      - input_text.jeep_presence
      - binary_sensor.volt_status
      - input_text.volt_presence
  exclude:
    entities:
      - sensor.date
      - switch.wemos_blinkr_led

# Get access to logger.set_level service following bdraco live demo
# https://youtu.be/m9gKFH8WlzY?t=3297
logger:
  default: warn

watchman:
  ignored_files:
    # wildcards must be enclosed in quotes!
    - "*.yaml" # exclude all yaml files from the report (useless)
    - "/config/entities/*" # exclude all files in /config/entities
    - "sensor.in_range" # This is a trigger, not an entity
    - "script.*" # This is an action. Not an entity

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

http:
 ssl_certificate: /ssl/fullchain.pem
 ssl_key: /ssl/privkey.pem
 
 
frontend:
  extra_module_url:
    - local/community/lovelace-card-mod/card-mod.js
    - /local/hass-bha-icons.js
  themes: !include_dir_merge_named themes

# Text to speech
tts:
  - platform: amazon_polly
    aws_access_key_id: --censored--
    aws_secret_access_key: --censored--


# Discover some devices automatically ("New Devices Discovered")
#discovery:
#  ignore:
#    - plex_mediaserver
#    - google_cast


##############################
# Device trackers
life360:
  accounts:
    username: !secret life360_login
    password: !secret life360_password
  driving_speed: 15
  show_as_state:
    - driving


##############################
#Honeywell Thermostats
climate:
  - platform: honeywell
    username: !secret honeywell_username
    password: !secret honeywell_password
    #region: us


##############################
#Amcrest IP3M-943B camera component
# Device Name: AMC0181R96E741YF05 (From Amcrest app).
amcrest:
  - host: 192.168.1.195
    name: Driveway
    username: !secret alogin
    password: !secret apassword
    resolution: high
    stream_source: snapshot
    scan_interval: 5


##############################
#Google calendar
#google:
#  client_id: !secret google_client_id
#  client_secret: !secret google_client_secret


##############################
#HACS
#themes: !include_dir_merge_named themes


##############################
# Pings
binary_sensor:
  - platform: ping
    host: 192.168.1.201
    name: "Solar Temperature Probe Ping"
    count: 1
    scan_interval: 5

    #Marvin	192.168.1.124	Raspberry Pi Foundation	B8:27:EB:A9:87:83	MQTT Broker
  - platform: ping
    host: 192.168.1.124 
    name: "Broker Ping"
    count: 1
    scan_interval: 5

    #homeassistant	192.168.1.57	EliteGroup Computer Systems Co., LTD	1C:69:7A:06:5B:BA
  - platform: ping
    host: 192.168.1.57
    name: "Home Assistant Ping"
    count: 1
    scan_interval: 5

    #CR1000A.mynetworksettings.com	Wistron Neweb Corporation	78:67:0E:AE:37:F2	Verizon FIOS Router
  - platform: ping
    host: 192.168.1.1
    name: "Router Ping"
    count: 1
    scan_interval: 5

    #192.168.1.70 - Zeus
  - platform: ping
    host: 192.168.1.70
    name: "Zeus Ping"
    count: 1
    scan_interval: 5
    
    #192.168.1.98	Steve's phone
  - platform: ping
    host: 192.168.1.98
    name: "Steve Phone Ping"
    count: 1
    scan_interval: 5
    
    #LGwebOSTV	192.168.1.159	LG Electronics	78:5D:C8:D6:53:64	LG Television in Family Room
    #Used to determine if the TV is on or off
  - platform: ping
    host: 192.168.1.159
    name: "LG Television"
    count: 3
    scan_interval: 1



#####################################
#This makes two new entities every midnight.
# sensor.sunrise.offset
# sensor.sunset.offset
template:
  - trigger:
      - platform: time
        at: "00:00:00"
      - platform: event
        event_type: event_template_reloaded
      - platform: homeassistant
        event: start
    sensor:
      - name: "Sunrise Offset"
        unique_id: "sensor_sunrise_offset"
        state: "{{ state_attr('sun.sun', 'next_rising') | as_datetime| as_local + timedelta(minutes=range(-25, 26) | random) }}"
        device_class: timestamp
      - name: "Sunset"
        unique_id: "sensor_sunset"
        state: "{{ state_attr('sun.sun', 'next_setting') | as_datetime }}"
        device_class: timestamp
      - name: "Sunset Offset"
        unique_id: "sensor_sunset_offset"
        state: "{{ state_attr('sun.sun', 'next_setting') | as_datetime + timedelta(minutes=range(240, 360) | random) }}"
        device_class: timestamp
  - sensor:
      - name: "windspeed in knots"
        unique_id: "windspeed_kts"
        state: "{{ ((states('sensor.openweathermap_wind_speed') | float(0)) * 1.94384) | round(0) }}"
        unit_of_measurement: "kts"
  - sensor:
      - name: "kim address"
        unique_id: "kim_address"
        state: "{{state_attr('device_tracker.kim', 'address') }}"


##############################
#Secrets.yaml is automatic. No need to include it.
automation: !include automations.yaml
camera: !include cameras.yaml
group: !include groups.yaml
mqtt: !include mqtt.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include sensors.yaml
zone: !include zones.yaml #For Life360

## No longer used
#switch: !include switches.yaml
#device_tracker: !include device_tracker.yaml

I’m stumped :man_shrugging:

Hi,
same error here, did you find a solution?

Thanks.

Yes. Stop using DuckDNS and subscribe to Nabu Casa.