keshavdv / unifi-cam-proxy

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

Error after running "docker -run" #281

Closed deep2web closed 1 year ago

deep2web commented 1 year ago

Description

I get the error after running the docker image: docker run --rm -v "/home/hefti/unifi-cam/client.pem:/client.pem" keshavdv/unifi-cam-proxy unifi-cam-proxy --verbose --ip "<Camera IP>" --host <Unifi Protect IP> --mac 'AA:BB:CC:00:00:01' --cert /client.pem --token <Adoption token> rtsp -s rtsp://user.pass@cameraip/

Traceback (most recent call last):
  File "/usr/local/bin/unifi-cam-proxy", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/unifi/main.py", line 116, in main
    cam = klass(args, logger)
  File "/usr/local/lib/python3.8/site-packages/unifi/cams/rtsp.py", line 14, in __init__
    super().__init__(args, logger)
  File "/usr/local/lib/python3.8/site-packages/unifi/cams/base.py", line 48, in __init__
    self._ssl_context.load_cert_chain(args.cert, args.cert)
IsADirectoryError: [Errno 21] Is a directory

Version of Unifi Protect

2.7.18

stale[bot] commented 1 year 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.