keshavdv / unifi-cam-proxy

Enable non-Ubiquiti cameras to work with Unifi NVR
MIT License
1.6k stars 226 forks source link

Every day at 3am the camera Crashes #201

Closed Jimmy062006 closed 2 years ago

Jimmy062006 commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Set the camera up
  2. Wait till 3am
  3. After 3am firmware update check it will no longer record or stream in unifi. (Camera is fine though)

Expected behavior Not crash and stop recording

Screenshots If applicable, add screenshots to help explain your problem.

Camera (please complete the following information):

Additional context Every day at 3am the camera reports a firmware update (in the unifi controller) and never comes back online.

The below stack trace is the only thing I have been able to fine.

2022-03-12 19:31:22 0c697a21f66f RTSPCam[1] INFO Processing [GetSystemStats] message Traceback (most recent call last): File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/app/unifi/clock_sync.py", line 167, in main() File "/app/unifi/clock_sync.py", line 157, in main write(read_bytes(source, payload_size)) File "/app/unifi/clock_sync.py", line 87, in write sys.stdout.buffer.write(data) BrokenPipeError: [Errno 32] Broken pipe Exception ignored in: <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> BrokenPipeError: [Errno 32] Broken pipe av_interleaved_write_frame(): Broken pipe Last message repeated 1 times Error writing trailer of pipe:: Broken pipe

sreknob commented 2 years ago

This is likely the same issue as #199 You don't mention what version of protect you're running. If >1.21.2 you might want to consider a downgrade. See comments in the other issue.

Jimmy062006 commented 2 years ago

I have rolled my version back to 1.21.2 and still have the issue so not sure its 100% the same issue.

The proxy tool keeps saying WARNING Previous ffmpeg process for video3 died. for each video stream video1 and video2

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.