You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "atul-astronomer (via GitHub)" <gi...@apache.org> on 2025/09/09 13:53:02 UTC
[I] Getting 'Not authenticated' error for airflowctl commands [airflow]
atul-astronomer opened a new issue, #55414:
URL: https://github.com/apache/airflow/issues/55414
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
Installed package:
```typescript
root@f17bd88a475e:/opt/airflow# pip show apache-airflow-ctl
Name: apache-airflow-ctl
Version: 1.0.0b1
Summary: Apache Airflow command line tool for communicating with an Apache Airflow, using the API.
Home-page:
Author:
Author-email:
License:
Location: /usr/python/lib/python3.10/site-packages
Editable project location: /opt/airflow/airflow-ctl
Requires: argcomplete, httpx, keyring, lazy-object-proxy, methodtools, platformdirs, pydantic, rich-argparse, structlog, tabulate, uuid6
Required-by:
```
Error:
```javascript
root@f17bd88a475e:/opt/airflow# airflowctl auth login --api-url http://localhost:28080/api/v2 --env AIRFLOW_CLI_ENVIRONMENT
Please set a password for your new keyring:
Please confirm the password:
Error: blank passwords aren't allowed.
Please set a password for your new keyring:
Please confirm the password:
Login successful! Welcome to airflowctl!
root@f17bd88a475e:/opt/airflow# airflowctl assets create-event --asset-id 1
2025-09-09 13:41:29 [warning ] Server error [airflowctl.api.client] extra={'detail': 'Not authenticated'}
Server response error: Client error message: {'detail': 'Not authenticated'}
Client error, Please check the command and its parameters. If you need help, run the command with --help.
```
### What you think should happen instead?
_No response_
### How to reproduce
Try to run airflowctl commands as per [this](https://airflow.staged.apache.org/docs/apache-airflow-ctl/1.0.0b1/) doc
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #55414:
URL: https://github.com/apache/airflow/issues/55414#issuecomment-3271634378
@Prab-27, that seems like another problem related to maybe the datamodel not being generated properly. I will handle that separately.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #55414:
URL: https://github.com/apache/airflow/issues/55414#issuecomment-3271550131
Thanks a lot @atul-astronomer! I wrongly closed it. I will check this out and fix it soon
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "vincbeck (via GitHub)" <gi...@apache.org>.
vincbeck closed issue #55414: Getting 'Not authenticated' error for airflowctl commands
URL: https://github.com/apache/airflow/issues/55414
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #55414:
URL: https://github.com/apache/airflow/issues/55414#issuecomment-3271546383
> [@bugraoz93](https://github.com/bugraoz93) ,When I try to reproduce this, it shows me...
>
> ```
> ...
> root@78202b4db989:/opt/airflow# export AIRFLOW_CLI_TOKEN=admin
> root@78202b4db989:/opt/airflow# airflowctl auth login --api-url http://localhost:28080/api/v2 --env AIRFLOW_CLI_ENVIRONMENT
> Please enter password for encrypted keyring:
> Login successful! Welcome to airflowctl!
> root@78202b4db989:/opt/airflow# airflowctl assets create-event --asset-id 1
> Please enter password for encrypted keyring:
> 2025-09-09 16:39:09 [warning ] Server error [airflowctl.api.client] extra={'detail': [{'type': 'dict_type', 'loc': ['body', 'extra'], 'msg': 'Input should be a valid dictionary', 'input': None}]}
> Server response error: Client error message: {'detail': [{'type':
> 'dict_type', 'loc': ['body', 'extra'], 'msg': 'Input should be a
> valid dictionary', 'input': None}]}
> Client error, Please check the command and its parameters. If you
> need help, run the command with --help.
> ```
Thanks for checking @Prab-27! `AIRFLOW_CLI_TOKEN` should be acquired from API manually because that is the JWT token.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 commented on issue #55414:
URL: https://github.com/apache/airflow/issues/55414#issuecomment-3271546013
> [@bugraoz93](https://github.com/bugraoz93) ,When I try to reproduce this, it shows me...
>
> ```
> ...
> root@78202b4db989:/opt/airflow# export AIRFLOW_CLI_TOKEN=admin
> root@78202b4db989:/opt/airflow# airflowctl auth login --api-url http://localhost:28080/api/v2 --env AIRFLOW_CLI_ENVIRONMENT
> Please enter password for encrypted keyring:
> Login successful! Welcome to airflowctl!
> root@78202b4db989:/opt/airflow# airflowctl assets create-event --asset-id 1
> Please enter password for encrypted keyring:
> 2025-09-09 16:39:09 [warning ] Server error [airflowctl.api.client] extra={'detail': [{'type': 'dict_type', 'loc': ['body', 'extra'], 'msg': 'Input should be a valid dictionary', 'input': None}]}
> Server response error: Client error message: {'detail': [{'type':
> 'dict_type', 'loc': ['body', 'extra'], 'msg': 'Input should be a
> valid dictionary', 'input': None}]}
> Client error, Please check the command and its parameters. If you
> need help, run the command with --help.
> ```
Thanks for checking @Prab-27! `AIRFLOW_CLI_TOKEN` should be acquired from API manually because that is the JWT token.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "Prab-27 (via GitHub)" <gi...@apache.org>.
Prab-27 commented on issue #55414:
URL: https://github.com/apache/airflow/issues/55414#issuecomment-3271499818
@bugraoz93 ,When I try to reproduce this, it shows me...
```
...
root@78202b4db989:/opt/airflow# export AIRFLOW_CLI_TOKEN=admin
root@78202b4db989:/opt/airflow# airflowctl auth login --api-url http://localhost:28080/api/v2 --env AIRFLOW_CLI_ENVIRONMENT
Please enter password for encrypted keyring:
Login successful! Welcome to airflowctl!
root@78202b4db989:/opt/airflow# airflowctl assets create-event --asset-id 1
Please enter password for encrypted keyring:
2025-09-09 16:39:09 [warning ] Server error [airflowctl.api.client] extra={'detail': [{'type': 'dict_type', 'loc': ['body', 'extra'], 'msg': 'Input should be a valid dictionary', 'input': None}]}
Server response error: Client error message: {'detail': [{'type':
'dict_type', 'loc': ['body', 'extra'], 'msg': 'Input should be a
valid dictionary', 'input': None}]}
Client error, Please check the command and its parameters. If you
need help, run the command with --help.
```
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Getting 'Not authenticated' error for airflowctl commands [airflow]
Posted by "bugraoz93 (via GitHub)" <gi...@apache.org>.
bugraoz93 closed issue #55414: Getting 'Not authenticated' error for airflowctl commands
URL: https://github.com/apache/airflow/issues/55414
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org