[Config Support]: Cant pass frigate plus key #15216
Unanswered
nmcrae85
asked this question in
Config Support
Replies: 4 comments 1 reply
-
Have you done docker compose up -d ? Also, you shouldn't be sharing your API key |
Beta Was this translation helpful? Give feedback.
0 replies
-
I cleared out your API key since it has been compromised. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thnaks. I did refresh the key after.
I did docker compose up -d, it loads fine. Its when i add the model:
path: plus:// part
…On Wed, 27 Nov 2024 at 13:42, Nicolas Mowen ***@***.***> wrote:
Have you done docker compose up -d ?
Also, you shouldn't be sharing your API key
—
Reply to this email directly, view it on GitHub
<#15216 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHUULJB5IERDJXQ6EJEWRJL2CXD2RAVCNFSM6AAAAABSSVLQU6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZZGQ4DSMA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm having the same issue - generated a new api key and config is the same as pre beta... checked printenv and can see the api key: PLUS_API_KEY=6xxx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem you are having
Having an issue where the frigate plus key isnt being passed through into the config (from docker) correctly, as when I try to set the model inside the config I get the following error. "Plus API not activated"
Config Error:
Traceback (most recent call last):
File "/opt/frigate/frigate/api/app.py", line 187, in config_save
FrigateConfig.parse_yaml(new_config)
File "/opt/frigate/frigate/config/config.py", line 696, in parse_yaml
return cls.parse(config_yaml, is_json=False, **context)
File "/opt/frigate/frigate/config/config.py", line 692, in parse
return cls.parse_object(config, **context)
File "/opt/frigate/frigate/config/config.py", line 702, in parse_object
return cls.model_validate(
File "/usr/local/lib/python3.9/dist-packages/pydantic/main.py", line 568, in model_validate
return cls.pydantic_validator.validate_python(
File "/opt/frigate/frigate/config/config.py", line 584, in post_validation
self.model.check_and_load_plus_model(self.plus_api)
File "/opt/frigate/frigate/detectors/detector_config.py", line 125, in check_and_load_plus_model
download_url = plus_api.get_model_download_url(model_id)
File "/opt/frigate/frigate/plus.py", line 228, in get_model_download_url
r = self._get(f"model/{model_id}/signed_url")
File "/opt/frigate/frigate/plus.py", line 84, in _get
f"{self.host}/v1/{path}", headers=self._get_authorization_header()
File "/opt/frigate/frigate/plus.py", line 79, in _get_authorization_header
self._refresh_token_if_needed()
File "/opt/frigate/frigate/plus.py", line 71, in _refresh_token_if_needed
raise Exception("Plus API not activated")
Exception: Plus API not activated
Version
frigate:0.15.0-beta2
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
Frigate stats
No response
Operating system
Other Linux
Install method
Docker Compose
docker-compose file or Docker CLI command
Object Detector
Coral
Screenshots of the Frigate UI's System metrics pages
No response
Any other information that may be helpful
neil@ai:~/Documents/frigate$ docker run -e PLUS_API_KEY=60f53baf-3962-4dcc-9615-78a311ce345a:1f94f08659fcde3de0f388f6b5a13679f48a8a51 --rm ghcr.io/blakeblackshear/frigate:0.15.0-beta2-tensorrt printenv PLUS_API_KEY
s6-rc: info: service s6rc-fdholder: starting
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service s6rc-fdholder successfully started
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service trt-model-prepare: starting
s6-rc: info: service log-prepare: starting
tensorrt model preparation disabled
s6-rc: info: service trt-model-prepare successfully started
s6-rc: info: service log-prepare successfully started
s6-rc: info: service nginx-log: starting
s6-rc: info: service go2rtc-log: starting
s6-rc: info: service frigate-log: starting
s6-rc: info: service certsync-log: starting
s6-rc: info: service nginx-log successfully started
s6-rc: info: service go2rtc-log successfully started
s6-rc: info: service go2rtc: starting
s6-rc: info: service frigate-log successfully started
s6-rc: info: service certsync-log successfully started
s6-rc: info: service go2rtc successfully started
s6-rc: info: service go2rtc-healthcheck: starting
s6-rc: info: service frigate: starting
s6-rc: info: service frigate successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service go2rtc-healthcheck successfully started
2024-11-27 11:53:59.897296069 [INFO] Starting NGINX...
2024-11-27 11:53:59.897300721 [INFO] Preparing new go2rtc config...
2024-11-27 11:53:59.897355103 [INFO] Preparing Frigate...
2024-11-27 11:53:59.897368305 [INFO] Starting Frigate...
2024-11-27 11:53:59.901865358 [INFO] No TLS certificate found. Generating a self signed certificate...
2024-11-27 11:54:00.308471098 [INFO] Starting go2rtc...
2024-11-27 11:54:00.399202162 11:54:00.399 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-11-27 11:54:00.399205261 11:54:00.399 INF config path=/dev/shm/go2rtc.yaml
2024-11-27 11:54:00.399483663 11:54:00.399 INF [rtsp] listen addr=:8554
2024-11-27 11:54:00.399515848 11:54:00.399 INF [api] listen addr=:1984
2024-11-27 11:54:00.399579048 11:54:00.399 INF [webrtc] listen addr=:8555/tcp
s6-rc: info: service nginx successfully started
s6-rc: info: service certsync: starting
s6-rc: info: service certsync successfully started
s6-rc: info: service legacy-services: starting
2024-11-27 11:54:01.420797149 [INFO] Starting certsync...
s6-rc: info: service legacy-services successfully started
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service go2rtc-healthcheck: stopping
s6-rc: info: service certsync: stopping
2024-11-27 11:54:01.432073729 [INFO] The go2rtc-healthcheck service exited with code 256 (by signal 15)
s6-rc: info: service go2rtc-healthcheck successfully stopped
2024-11-27 11:54:01.432720658 [INFO] Service CERTSYNC exited with code 256 (by signal 15)
s6-rc: info: service certsync successfully stopped
s6-rc: info: service nginx: stopping
s6-rc: info: service certsync-log: stopping
s6-rc: info: service certsync-log successfully stopped
2024-11-27 11:54:01.467181755 [INFO] Service NGINX exited with code 0 (by signal 0)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service nginx-log: stopping
s6-rc: info: service frigate: stopping
s6-rc: info: service nginx-log successfully stopped
2024-11-27 11:54:01.478832144 [INFO] Service Frigate exited with code 256 (by signal 15)
s6-rc: info: service frigate successfully stopped
s6-rc: info: service trt-model-prepare: stopping
s6-rc: info: service go2rtc: stopping
s6-rc: info: service frigate-log: stopping
2024-11-27 11:54:01.480581810 exit with signal: terminated
s6-rc: info: service trt-model-prepare successfully stopped
s6-rc: info: service frigate-log successfully stopped
2024-11-27 11:54:01.486000565 [INFO] The go2rtc service exited with code 0 (by signal 0)
s6-rc: info: service go2rtc successfully stopped
s6-rc: info: service go2rtc-log: stopping
s6-rc: info: service go2rtc-log successfully stopped
s6-rc: info: service log-prepare: stopping
s6-rc: info: service s6rc-fdholder: stopping
s6-rc: info: service log-prepare successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service s6rc-fdholder successfully stopped
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Beta Was this translation helpful? Give feedback.
All reactions