Closed xuefer closed 3 years ago
amcrest documentation amcrest source (message by IssueLinks)
the IP does not belong to a device (misconfigured), but maybe this config make it easier to reproduce but not 100%
I have no idea how this could happen. Are you saying it only happens if the configured camera doesn't actually exist, or isn't on?
It might help if you could capture more details from home-assistant.log when this happens. Please add at least the following to your configuration, then restart. The next time it happens, look in home-assistant.log for any lines that have to do with amcrest.
logger:
default: info
logs:
amcrest: debug
homeassistant.components.amcrest: debug
homeassistant.core: debug
not sure if the following state the same issue when restarting home assistant
# sv restart homeassistant
timeout: run: homeassistant: (pid 19846) 2211s, got TERM
# strace -fp 19846
strace: Process 19846 attached with 4 threads
[pid 19867] futex(0x7f867c2404c0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 20198] futex(0x7f8638096190, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...>
[pid 19917] recvfrom(34, <unfinished ...>
# lsof -np 19846
hass 19846 root 34u IPv4 83122 0t0 TCP 172.16.26.1:61232->172.16.26.83:www (ESTABLISHED)
172.16.26.83 is
amcrest:
- host: 172.16.26.83
username: ...
password: ...
stream_source: rtsp
binary_sensors:
- audio_detected
- motion_detected
- online
device: dahua camera device exists working fine but make restarting home assistant impossible, stuck at "recvfrom(34,"
I'm not sure but I'll file a new issue ticket if this is not the same problem
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.
The problem
Happen randomly during shutdown, preventing shutdown Update for camera.men_kou fails, RuntimeError: cannot schedule new futures after shutdown
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
@pnbruckner