Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support]: error when autotracking is disabled but writen in the configuration #8026

Closed
edurenye opened this issue Oct 2, 2023 · 0 comments · Fixed by #8028
Closed

[Support]: error when autotracking is disabled but writen in the configuration #8026

edurenye opened this issue Oct 2, 2023 · 0 comments · Fixed by #8028
Labels
beta Related to the current beta version of frigate support triage

Comments

@edurenye
Copy link

edurenye commented Oct 2, 2023

Describe the problem you are having

I have autotracking disabled but with configuration options writen under it and I get an error in the logs.

I'm using Jetson Nano board with the image: ghcr.io/blakeblackshear/frigate:dev-9a4f970-tensorrt-jp4

Thank you very much!

Version

0.13.0-9A4F970

Frigate config file

autotracking:
  enabled: false
  calibrate_on_startup: true
  zooming: disabled
  required_zones:
    - zone_0
    - zone_1
  return_preset: PRESET_1

Relevant log output

2023-10-02 15:09:36.683988809  [2023-10-02 15:09:36] frigate.http                   ERROR   : Exception on /camera1/ptz/info [GET]
2023-10-02 15:09:36.683999174  Traceback (most recent call last):
2023-10-02 15:09:36.684003028    File "/opt/frigate/frigate/ptz/onvif.py", line 136, in _init_onvif
2023-10-02 15:09:36.684006674      move_request.Translation.Zoom.space = ptz_config["Spaces"][
2023-10-02 15:09:36.684010112  AttributeError: 'NoneType' object has no attribute 'Zoom'
2023-10-02 15:09:36.684011987  
2023-10-02 15:09:36.684049383  During handling of the above exception, another exception occurred:
2023-10-02 15:09:36.684054227  
2023-10-02 15:09:36.684056727  Traceback (most recent call last):
2023-10-02 15:09:36.684060477    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2190, in wsgi_app
2023-10-02 15:09:36.684063030      response = self.full_dispatch_request()
2023-10-02 15:09:36.684066832    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1486, in full_dispatch_request
2023-10-02 15:09:36.684100791      rv = self.handle_user_exception(e)
2023-10-02 15:09:36.684105895    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1484, in full_dispatch_request
2023-10-02 15:09:36.684125427      rv = self.dispatch_request()
2023-10-02 15:09:36.684130010    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1469, in dispatch_request
2023-10-02 15:09:36.684133500      return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-10-02 15:09:36.684136417    File "/opt/frigate/frigate/http.py", line 1188, in camera_ptz_info
2023-10-02 15:09:36.684139490      return jsonify(current_app.onvif.get_camera_info(camera_name))
2023-10-02 15:09:36.684142771    File "/opt/frigate/frigate/ptz/onvif.py", line 448, in get_camera_info
2023-10-02 15:09:36.684144958      self._init_onvif(camera_name)
2023-10-02 15:09:36.684168709    File "/opt/frigate/frigate/ptz/onvif.py", line 140, in _init_onvif
2023-10-02 15:09:36.684172928      if self.config.cameras[camera_name].onvif.autotracking.zoom_relative:
2023-10-02 15:09:36.684176105  AttributeError: 'PtzAutotrackConfig' object has no attribute 'zoom_relative'
2023-10-02 15:09:38.529351546  [2023-10-02 15:09:38] frigate.ptz.onvif              WARNING : Unable to get presets from camera: cobert: Unknown error: This optional method is not implemented
2023-10-02 15:09:43.342701212  [2023-10-02 15:09:43] frigate.http                   ERROR   : Exception on /camera1/ptz/info [GET]
2023-10-02 15:09:43.342708972  Traceback (most recent call last):
2023-10-02 15:09:43.342713035    File "/opt/frigate/frigate/ptz/onvif.py", line 136, in _init_onvif
2023-10-02 15:09:43.342716629      move_request.Translation.Zoom.space = ptz_config["Spaces"][
2023-10-02 15:09:43.342720170  AttributeError: 'NoneType' object has no attribute 'Zoom'
2023-10-02 15:09:43.342722045  
2023-10-02 15:09:43.342726004  During handling of the above exception, another exception occurred:
2023-10-02 15:09:43.342727879  
2023-10-02 15:09:43.342730327  Traceback (most recent call last):
2023-10-02 15:09:43.342733973    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 2190, in wsgi_app
2023-10-02 15:09:43.342736577      response = self.full_dispatch_request()
2023-10-02 15:09:43.342740327    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1486, in full_dispatch_request
2023-10-02 15:09:43.342742931      rv = self.handle_user_exception(e)
2023-10-02 15:09:43.342746681    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1484, in full_dispatch_request
2023-10-02 15:09:43.342749129      rv = self.dispatch_request()
2023-10-02 15:09:43.342752827    File "/usr/local/lib/python3.9/dist-packages/flask/app.py", line 1469, in dispatch_request
2023-10-02 15:09:43.342756109      return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
2023-10-02 15:09:43.342759234    File "/opt/frigate/frigate/http.py", line 1188, in camera_ptz_info
2023-10-02 15:09:43.342762255      return jsonify(current_app.onvif.get_camera_info(camera_name))
2023-10-02 15:09:43.342765432    File "/opt/frigate/frigate/ptz/onvif.py", line 448, in get_camera_info
2023-10-02 15:09:43.342767723      self._init_onvif(camera_name)
2023-10-02 15:09:43.342770796    File "/opt/frigate/frigate/ptz/onvif.py", line 140, in _init_onvif
2023-10-02 15:09:43.342774078      if self.config.cameras[camera_name].onvif.autotracking.zoom_relative:
2023-10-02 15:09:43.342777255  AttributeError: 'PtzAutotrackConfig' object has no attribute 'zoom_relative'

FFprobe output from your camera

No issues with this.

Frigate stats

No response

Operating system

Other Linux

Install method

Docker CLI

Coral version

Dev Board

Network connection

Wired

Camera make and model

not relevant, happens with any camera

Any other information that may be helpful

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Related to the current beta version of frigate support triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants