Are you using a docker container or native?: Docker
Description
It appears that an event which is larger than the buffer size was generated. Every so often the tool is retrying the download and failing because the event is larger than the buffer. It seems that this event is not being abandoned after N attempts like the others, and instead keeps retrying. I don't know if it disappears at the end of the retention window or not as it has not been long enough to find out.
This event should either be abandoned after N attempts like some others are, or arguably immediately abandoned as it can never successfully download. (I presume the alternative would be to dynamically grow the buffer size with a default and a maximum, where maximum is only used if required. Abandon if larger than max. Just thinking out loud...).
What I Did
I am running with the latest docker image on github. The config is:
ERROR
2023-04-27 19:07:20 [ ERROR ] unifi_protect_backup.downloader : [6449950c014ac403e40003f8] Unexpected exception occurred, abandoning event 6449950c014ac403e40003f8:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/unifi_protect_backup/downloader.py", line 155, in start
await self.upload_queue.put((event, video))
File "/usr/lib/python3.10/site-packages/unifi_protect_backup/utils.py", line 413, in put
raise ValueError(
ValueError: Item is larger (952.3MiB) than the size of the buffer (512.0MiB)
ERROR
2023-04-27 19:12:05 [ ERROR ] unifi_protect_backup.downloader : [6449950c014ac403e40003f8] Unexpected exception occurred, abandoning event 6449950c014ac403e40003f8:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/unifi_protect_backup/downloader.py", line 155, in start
await self.upload_queue.put((event, video))
File "/usr/lib/python3.10/site-packages/unifi_protect_backup/utils.py", line 413, in put
raise ValueError(
ValueError: Item is larger (952.3MiB) than the size of the buffer (512.0MiB)
ERROR
2023-04-27 19:17:24 [ ERROR ] unifi_protect_backup.downloader : [6449950c014ac403e40003f8] Unexpected exception occurred, abandoning event 6449950c014ac403e40003f8:
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/unifi_protect_backup/downloader.py", line 155, in start
await self.upload_queue.put((event, video))
File "/usr/lib/python3.10/site-packages/unifi_protect_backup/utils.py", line 413, in put
raise ValueError(
ValueError: Item is larger (952.3MiB) than the size of the buffer (512.0MiB)
Description
It appears that an event which is larger than the buffer size was generated. Every so often the tool is retrying the download and failing because the event is larger than the buffer. It seems that this event is not being abandoned after N attempts like the others, and instead keeps retrying. I don't know if it disappears at the end of the retention window or not as it has not been long enough to find out.
This event should either be abandoned after N attempts like some others are, or arguably immediately abandoned as it can never successfully download. (I presume the alternative would be to dynamically grow the buffer size with a default and a maximum, where maximum is only used if required. Abandon if larger than max. Just thinking out loud...).
What I Did
I am running with the latest docker image on github. The config is:
The error I am seeing is: