Skip to content

Startup error - Global task timeout: Bootstrap stage 2 timeout #260

Description

@piejanssens
Logger: homeassistant.config_entries
Source: config_entries.py:796
First occurred: 7:00:35 AM (1 occurrence)
Last logged: 7:00:35 AM

Setup of config entry 'alphab06c2ee841644ad' for alphaess integration cancelled
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 796, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alphaess/__init__.py", line 286, in async_setup_entry
    await _coordinator.async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 324, in async_config_entry_first_refresh
    await self._async_config_entry_first_refresh()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 350, in _async_config_entry_first_refresh
    await self._async_refresh(
    ...<3 lines>...
    )
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 434, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/alphaess/coordinator.py", line 515, in _async_update_data
    jsondata = await self.api.getdata(True, True, throttle_factor)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/alphaess/alphaess.py", line 425, in getdata
    unit['SumData'] = await self.getSumDataForCustomer(serial)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/alphaess/alphaess.py", line 103, in getSumDataForCustomer
    return await self.api_get(resource)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/alphaess/alphaess.py", line 345, in api_get
    async with self.session.get(
               ~~~~~~~~~~~~~~~~^
            path,
            ^^^^^
    ...<3 lines>...
            ssl=self.verify_ssl
            ^^^^^^^^^^^^^^^^^^^
    ) as response:
    ^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 1521, in __aenter__
    self._resp: _RetType = await self._coro
                           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 788, in _request
    resp = await handler(req)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client.py", line 766, in _connect_and_send_request
    await resp.start(conn)
  File "/usr/local/lib/python3.14/site-packages/aiohttp/client_reqrep.py", line 539, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.14/site-packages/aiohttp/streams.py", line 707, in read
    await self._waiter
asyncio.exceptions.CancelledError: Global task timeout: Bootstrap stage 2 timeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions