Prab-27 commented on issue #45661:
URL: https://github.com/apache/airflow/issues/45661#issuecomment-2797019775

   @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?
   


-- 
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]

Reply via email to