bugraoz93 commented on issue #45661:
URL: https://github.com/apache/airflow/issues/45661#issuecomment-2797148773
> Sorry, I don't understand ! @bugraoz93, as you mentioned, I have checked
that the `Jobs` command is added to `airflowctl`, and its subcommands are also
added and working fine. However, when I try to execute an operations command
like `airflowctl jobs list,` I encounter an issue. It throws the following error
>
> ` airflowctl jobs list`
> ```
> Traceback (most recent call last):
> File "/usr/local/bin/airflowctl", line 10, in <module>
> sys.exit(main())
> File "/opt/airflow/airflow-ctl/src/airflowctl/__main__.py", line 33, in
main
> args.func(args)
> File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 298,
in wrapper
> with get_client(kind=kind) as api_client:
> File "/usr/local/lib/python3.9/contextlib.py", line 119, in __enter__
> return next(self.gen)
> File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 275,
in get_client
> raise e
> File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 266,
in get_client
> credentials = Credentials().load()
> File "/opt/airflow/airflow-ctl/src/airflowctl/api/client.py", line 146,
in load
> raise AirflowCtlNotFoundException(f"No credentials found in
{default_config_dir}")
> airflowctl.exceptions.AirflowCtlNotFoundException: No credentials found in
/root/.config/airflow
> ```
> I am wondering if this issue is related to missing credentials or
something else. I believe the remote commands were added successfully. Could
you please clarify?
>
>
@Prab-27 Yeah, some of the commands already covered with the auto generation
part, which I tagged the PR earlier in this issue. I am currently adding docs,
so it is a bit empty on the documentation side. Sorry about that!
You can use the following commands before executing any of the commands.
`airflowctl auth login --username=admin --password`
Enter `admin` again hit enter. It should authenticate accordingly. Then, you
can execute any of the commands. If you think your story is covered by auto
generation, check as you do, and we can close the issue :) Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]