Task / Type Error in Supervisor Logs

Hello together,

I received this error in my supervisor logs. Home Assistant OS running at Virtual Box. I already wipe the .vdi and restore my settings (Restore Option: Restore Everything) but the error is back.
I’m new to Linux & Virtual Environment. It seams HA running normal, but could you may have a look?

Thank you!

ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-810' coro=<Scheduler._run_task.<locals>._wrap_task() done, defined at /usr/src/supervisor/supervisor/misc/scheduler.py:58> exception=TypeError('an integer is required (got type str)')>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/misc/scheduler.py", line 62, in _wrap_task
    await task.coro_callback()
  File "/usr/src/supervisor/supervisor/misc/tasks.py", line 416, in _watchdog_addon_application
    if addon.in_progress or await addon.watchdog_application():
  File "/usr/src/supervisor/supervisor/addons/addon.py", line 479, in watchdog_application
    return await self.sys_run_in_executor(check_port, self.ip_address, port)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/utils/__init__.py", line 43, in check_port
    result = sock.connect_ex((str(address), port))
TypeError: an integer is required (got type str)

Edit: Please let me know if I can provide further log files.

1 Like

I’m getting the same error in hassio on a rpi 4. Just started after an update:

ERROR (MainThread) [asyncio] Task exception was never retrieved
future: <Task finished name='Task-120684' coro=<Scheduler._run_task.<locals>._wrap_task() done, defined at /usr/src/supervisor/supervisor/misc/scheduler.py:58> exception=TypeError('an integer is required (got type str)')>
Traceback (most recent call last):
  File "/usr/src/supervisor/supervisor/misc/scheduler.py", line 62, in _wrap_task
    await task.coro_callback()
  File "/usr/src/supervisor/supervisor/misc/tasks.py", line 416, in _watchdog_addon_application
    if addon.in_progress or await addon.watchdog_application():
  File "/usr/src/supervisor/supervisor/addons/addon.py", line 479, in watchdog_application
    return await self.sys_run_in_executor(check_port, self.ip_address, port)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/supervisor/supervisor/utils/__init__.py", line 43, in check_port
    result = sock.connect_ex((str(address), port))
TypeError: an integer is required (got type str)

I don’t think its anything you are doing wrong, maybe some new bug was introduced. Hopefully someone here has some insight on where to start looking. As of this morning my supervisor log is filling up with these errors. It happens every two minutes exactly and the only difference is the task number which changes with every error. Just guessing from the stack trace, it looks like a string is being passed somewhere as a port number.

A downgrade to 2021.5.4 did not appear to fix the issue, and to throw gasoline on the fire the system just seems to stop responding and go offline after a while.

I’m not sure whether the host is rebooting or everything is just hanging and becoming unresponsive at regular intervals, but I’m seeing the same behavior on a fresh vanilla install on a seperate rpi 4.

Appears it is a known issue and the fix will be released soon:

2 Likes

I’m having this issue aswell… Waiting for a fix :slight_smile:

Seing this issue as of a few days now also in my installation

seeing this now in 9.5 , brand new user and brand new isntall

1 Like