Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error doing job: protocol.resume_writing() failed #69290

Closed
iridris opened this issue Apr 4, 2022 · 14 comments
Closed

Error doing job: protocol.resume_writing() failed #69290

iridris opened this issue Apr 4, 2022 · 14 comments
Labels

Comments

@iridris
Copy link
Contributor

iridris commented Apr 4, 2022

The problem

Error message shows up in logs starting with the 2022.4 beta. Not really sure what integration or component is causing this, so this issue is a bit light on details. No apparent issue is caused by this error, and I also don't notice any correlation between a user's action in HA and the error message appearing.

What version of Home Assistant Core has the issue?

core-2022.4.0b4

What was the last working version of Home Assistant Core?

core-2022.3.8

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:96
First occurred: 9:19:13 AM (2 occurrences)
Last logged: 12:07:36 PM
Error doing job: protocol.resume_writing() failed

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/asyncio/transports.py", line 294, in _maybe_resume_protocol
    self._protocol.resume_writing()
  File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 516, in resume_writing
    self._app_protocol.resume_writing()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/base_protocol.py", line 31, in resume_writing
    assert self._paused
AssertionError

Additional information

Additional information from the Info page:

System Health

version core-2022.4.0b4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.108
arch x86_64
timezone America/New_York
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.6
update_channel beta
supervisor_version supervisor-2022.03.5
docker_version 20.10.9
disk_total 30.8 GB
disk_used 24.2 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Let's Encrypt (4.12.0), Samba share (9.5.1), Studio Code Server (4.2.0), SQLite Web (3.3.0), ESPHome (2022.2.6), motionEye (0.18.0), SSH & Web Terminal (10.1.1), Docker Wyze Bridge (1.2.1), Check Home Assistant configuration (3.10.0), InfluxDB (4.4.1), File editor (5.3.3)
Dashboards
dashboards 5
resources 3
views 9
mode storage
@iridris
Copy link
Contributor Author

iridris commented Apr 21, 2022

I'm still receiving this log entry occasionally. I'd like to enable some debug logging to try and provide more details. Would anyone be able to direct me to which components I would need to adjust logging for? I'd rather not blow up my log by enabling debug logging on everything while waiting for this error to occur.

@iridris
Copy link
Contributor Author

iridris commented Apr 28, 2022

The number of occurrences of this has increased significantly with the 2022.05 beta. 87 times in about a 3 hour period.



Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:96
First occurred: 4:17:32 PM (87 occurrences)
Last logged: 7:17:49 PM
Error doing job: protocol.resume_writing() failed

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/asyncio/transports.py", line 294, in _maybe_resume_protocol
    self._protocol.resume_writing()
  File "/usr/local/lib/python3.9/asyncio/sslproto.py", line 516, in resume_writing
    self._app_protocol.resume_writing()
  File "/usr/local/lib/python3.9/site-packages/aiohttp/base_protocol.py", line 31, in resume_writing
    assert self._paused
AssertionError

@iridris
Copy link
Contributor Author

iridris commented Jul 4, 2022

I think this might be related to an issue upstream:
MagicStack/uvloop#471
aio-libs/aiohttp#6762

@Rongronggg9
Copy link

I think this might be related to an issue upstream:
MagicStack/uvloop#471
aio-libs/aiohttp#6762

Looking into your log, your HASS instance are using vanilla asyncio instead of uvloop, thus these two uvloop-specific issues you mentioned, for which aiohttp takes no responsibility, are irrelevant to this issue.

@Rongronggg9
Copy link

Since #29835, HASS no longer uses uvloop.

@sparment
Copy link

sparment commented Nov 5, 2022

I'm seeing the exact same error: "Error doing job: protocol.resume_writing() failed."
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221102.1 - latest

@jocamane
Copy link

I'm seeing the exact same error: "Error doing job: protocol.resume_writing() failed."
Home Assistant 2023.1.7
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230110.0 - latest

@Photoexploration
Copy link

Same here...
Home Assistant 2023.2.1
Supervisor 2023.01.1
Operating System 9.5
Frontend 20230202.0 - latest

@woopstar
Copy link

Same here ...
Home Assistant 2023.4.4
Supervisor 2023.04.0
Operating System 9.5
Frontend 20230411.1 - latest

@Smiley1244
Copy link

Also seeing this
Home Assistant 2023.5.1
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.2 - latest

Doesn't seem to have any other log entries occuring at the same time.

Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/transports.py", line 300, in _maybe_resume_protocol
self._protocol.resume_writing()
File "/usr/local/lib/python3.10/asyncio/sslproto.py", line 522, in resume_writing
self._app_protocol.resume_writing()
File "/usr/local/lib/python3.10/site-packages/aiohttp/base_protocol.py", line 35, in resume_writing
assert self._paused
AssertionError

@jocamane
Copy link

jocamane commented May 5, 2023

Hi,
I have the same error today as 15:59:

Home Assistant 2023.4.6
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230411.1 - latest

2023-05-05 15:59:00.012 ERROR (MainThread) [homeassistant] Error doing job: protocol.resume_writing() failed
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/transports.py", line 300, in _maybe_resume_protocol
self._protocol.resume_writing()
File "/usr/local/lib/python3.10/asyncio/sslproto.py", line 522, in resume_writing
self._app_protocol.resume_writing()
File "/usr/local/lib/python3.10/site-packages/aiohttp/base_protocol.py", line 35, in resume_writing
assert self._paused
AssertionError

@kokrp
Copy link

kokrp commented May 10, 2023

Hi,
For what its worth, same error here.

Home Assistant 2023.5.2
Supervisor 2023.04.1
Operating System 10.1
Frontend 20230503.3 - latest

Logger: homeassistant
Source: /usr/src/homeassistant/homeassistant/runner.py:137
First occurred: May 9, 2023 at 8:53:27 PM (3 occurrences)
Last logged: 11:38:55 AM

Error doing job: protocol.resume_writing() failed
Traceback (most recent call last):
File "/usr/local/lib/python3.10/asyncio/transports.py", line 300, in _maybe_resume_protocol
self._protocol.resume_writing()
File "/usr/local/lib/python3.10/asyncio/sslproto.py", line 522, in resume_writing
self._app_protocol.resume_writing()
File "/usr/local/lib/python3.10/site-packages/aiohttp/base_protocol.py", line 35, in resume_writing
assert self._paused
AssertionError

@jocamane
Copy link

I really appreciate everyone's work on HA, but more than 1 year and the problem is not discovered ???!!

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants