jack
02/08/2022, 2:48 PMprefect agent local start --token [some-token] --api <https://api.prefect.io>
But after generating an api KEY (not a token) and running a similar incantation:
prefect agent local start --token [THE-NEW-KEY] --api <https://api.prefect.io>
it complains with
prefect.utilities.exceptions.ClientError: [{'path': ['register_agent'], 'message': 'Unauthorized: permission error.', 'extensions': {'code': 'FORBIDDEN'}}]
Kevin Kho
02/08/2022, 2:52 PMprefect agent local start --key API_KEY
. But actually I think this should still work.prefect auth logout
and then try logging in again. We have a fix for this in the next release so you shouldn’t have to logoutjack
02/08/2022, 2:54 PMError: no such option: --key
Kevin Kho
02/08/2022, 3:01 PMjack
02/08/2022, 3:03 PMKevin Kho
02/08/2022, 3:05 PM--token
but also do the logout first and take out any keys/tokens in the config.toml
?jack
02/08/2022, 3:08 PMprefect auth logout
it complains:
Error: Auth commands with server are not currently supported.
Kevin Kho
02/08/2022, 3:11 PMjack
02/08/2022, 3:12 PMKevin Kho
02/08/2022, 3:13 PMprefect backend cloud
or prefect backend server
to toggle. I think we should be good to try againjack
02/08/2022, 3:20 PMprefect backend server
even though we've been using cloud for months 🤷
The agent starts now using the --token
argument with the newly generated KEY
Thank you Kevin!Kevin Kho
02/08/2022, 3:21 PM