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
prefect agent local start --key API_KEY. But actually I think this should still work.Kevin Kho
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: --keyKevin Kho
jack
02/08/2022, 3:03 PMKevin Kho
--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.jack
02/08/2022, 3:09 PMKevin Kho
jack
02/08/2022, 3:12 PMjack
02/08/2022, 3:12 PMKevin Kho
prefect 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