You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is rather strange that when the container is brought up and one accesses the shell using:
docker compose exec -it influxdbv2 sh
The output of the DOCKER_INFLUXDB_INIT_ADMIN_TOKEN is empty. Assuming the value is unset after the entrypoint.sh is executed I perform some other checks:
Check whether the /run/secrets/influxdbv2_admin_token has the token value, which it has
Use this Admin token within the container to query the auth lists using:
I pass the admin token to the Output Plugin for InfluxDBv2 to try writing to the init bucket and I get authorization errors even though the ADMIN_TOKEN is the exact same.
Inference
I am almost certain that the ADMIN_TOKEN_FILE is unable to set the user-specified token because when I replace the DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE with DOCKER_INFLUXDB_INIT_ADMIN_TOKEN and set the value directly I can query the auth list query via curl and my Telegraf plugin is able to insert the values into the init bucket with any errors.
Please let me know if you need more reproduction proof.
(cc @powersj This can be the reason for users complaining about Authorization Errors)
The text was updated successfully, but these errors were encountered:
Description
For a configuration that loads the init values via files as mentioned below:
And the respective
.env
file:It is rather strange that when the container is brought up and one accesses the shell using:
The output of the
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
is empty. Assuming the value is unset after theentrypoint.sh
is executed I perform some other checks:Check whether the
/run/secrets/influxdbv2_admin_token
has the token value, which it hasUse this Admin token within the container to query the auth lists using:
Tests with Telegraf
I pass the admin token to the Output Plugin for InfluxDBv2 to try writing to the init bucket and I get authorization errors even though the ADMIN_TOKEN is the exact same.
Inference
I am almost certain that the
ADMIN_TOKEN_FILE
is unable to set the user-specified token because when I replace theDOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE
withDOCKER_INFLUXDB_INIT_ADMIN_TOKEN
and set the value directly I can query the auth list query via curl and my Telegraf plugin is able to insert the values into the init bucket with any errors.Please let me know if you need more reproduction proof.
(cc @powersj This can be the reason for users complaining about Authorization Errors)
The text was updated successfully, but these errors were encountered: