doitandbedone / ispyagentdvr-docker

GNU General Public License v3.0
118 stars 45 forks source link

Random crash (May be related to cameras with less reliable connection; Wifi) #27

Closed doitandbedone closed 4 years ago

doitandbedone commented 4 years ago

Affected version: 2.8.6.0

Expected behavior: Server should run without any issues, if cameras cannot be contacted, it should handle the error gracefully.

Actual Result: Server crashes after a few minutes, 10+ in my experience. Lots of logs about some cameras not being able to connect/be found are printed.

Additional info: @ispysoftware This crash has been bothering me for a while but it's hard to get it from the server as I set it to restart if anything happens and logs aren't as easy to get. Anyhow, this happens randomly and usually takes 10+ mins to happen. I was able to get a clean set of logs from my mac. I've noticed that some of the wifi cameras aren't as reliable and well... they do disconnect. Seems there's constant timeouts and seems to be the last logs in the container before it stops, not too sure if it has anything to do with it however. agentRandomCrash.txt

Steps to reproduce: Boot the server Have one or more wifi cameras added in the network Check logs for camera connectivity issues. Using Amcrest IP3M-HX2W Eventually it will timeout with this message:

The HTTP request to 'http://<redacted-ip>/onvif/device_service' has exceeded the allotted timeout of 00:00:15. The time allotted to this operation may have been a portion of a longer timeout.
Error: SourceError: Deck: CoreLogic.Sources.Combined.MediaStream:Invalid Source ()
doitandbedone commented 4 years ago

After updating to 2.8.7.0 the server has been running consistently for more than 1hr now. Fix for #26 may have fixed this issue as well. I'll let it run for the whole night and check back in the morning.

ispysoftware commented 4 years ago

Sorry I didn't see this. Feel free to tag me in.

doitandbedone commented 4 years ago

@ispysoftware Server has been running for 12hrs straight with no crash. I'll close this for now, if I find any other problem I'll open a new issue.

Edit: Closed as seems fixed by Fix on #26

Thank you!