Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID-related errors in v1 auth commands are confusing #20084

Closed
yangvipguang opened this issue Nov 18, 2020 · 10 comments
Closed

ID-related errors in v1 auth commands are confusing #20084

yangvipguang opened this issue Nov 18, 2020 · 10 comments
Assignees
Labels
area/2.x OSS 2.0 related issues and PRs

Comments

@yangvipguang
Copy link

Version: 2.0.1
Deployement: Helm Install
I am so confused.
I have configured admin user with random password。And, I can login the ui with admin user, But it does't work in the telegraf agent .
image

@yangvipguang
Copy link
Author

and I set up a different password with flux command 。But the result is same
image

@su600
Copy link

su600 commented Nov 25, 2020

用InfluxDB生成的Token连接试试

@danxmoran danxmoran added the area/2.x OSS 2.0 related issues and PRs label Nov 25, 2020
@danxmoran danxmoran self-assigned this Nov 25, 2020
@danxmoran
Copy link
Contributor

Hi @yangvipguang, apologies for the confusion, we have an open issue to clarify our docs around V1 auth. You'll need to create a V1 compatibility token to use with the V1 influxdb telegraf output. The command you want is influx v1 auth create, you can see reference docs here.

@yangvipguang
Copy link
Author

yangvipguang commented Nov 26, 2020

@danxmoran But I do't know what‘s wrong with this
image

@danxmoran
Copy link
Contributor

@yangvipguang the read-bucket and write-bucket args should also be IDs, not names. influx bucket list will show you the ID for your monitoring bucket.

I have an open task to improve our validation errors so it's clear which arg is the problem, I'll add this case to the list.

@danxmoran danxmoran changed the title 401 Unauthorized ID-related errors in v1 auth commands are confusing Nov 30, 2020
@danxmoran
Copy link
Contributor

@yangvipguang I've updated the title of this issue to reflect the problem with the latest error message you posted

@yangvipguang
Copy link
Author

@danxmoran thanks it works。 But,the error message is indeed confusing for anyone not familiar with influxdb。one more question :
Is the bucket the same as the database?

@yangvipguang
Copy link
Author

@danxmoran But I have a new qustion:
image

@danxmoran
Copy link
Contributor

You're receiving 404 responses from the server (not a connection refused error), so I think the k8s networking is set up properly. Have you created a DBRP mapping for your target bucket? If not, you'll need to:

  1. Use influx v1 dbrp create to init a new DBRP mapping, pointing at your target bucket
  2. Configure telegraf to use the DB/RP pair you used in step 1

@danxmoran
Copy link
Contributor

I've merged a change that will (hopefully) make the error messages easier to understand in the future.

@yangvipguang I'm happy to keep helping, but for our tracking purposes I'm going to close this issue. For general questions, you can use one/both of:

Feel free to open more issues for specific bugs / feature requests as they come up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/2.x OSS 2.0 related issues and PRs
Projects
None yet
Development

No branches or pull requests

3 participants