-
Notifications
You must be signed in to change notification settings - Fork 252
DB initialization is broken when INFLUXDB_HTTP_AUTH_ENABLED is used #224
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
Comments
Did you ever figure out the issue on this? |
@alexbowers I don't really remember. |
Any chance you could share how you do that? What im aiming for is to build a docker container for testing on Travis, so something automated. is that what you managed to do? |
Please try |
Using this as my docker-compose.yml file, as you can see it is "true", not "1" and it doesn't work. |
@alexbowers you need to use INFLUXDB_ADMIN_USER |
Using
and sending a request to
cURL request:
Response:
Do you have an example of it working that I can copy the docker commands for? The log I have in docker is:
The entire log is as follows:
|
@alexbowers please clean your volume |
Fantastic, I think this works now.
Thanks! :D
…On Thu, 2 Aug 2018 at 20:51, PSanetra ***@***.***> wrote:
@alexbowers <https://github.com/alexbowers> please clean your volume
/tmp/influxdb2 before trying to initialize influxdb again. The init
script won't try to initialize influxdb if it can find a meta directory
in it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#224 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAzc3qpwB_jcN_WiNNb8uuofIiZPESTWks5uM1hCgaJpZM4T8Z78>
.
|
The bug is in My workaround is to write #!/bin/sh -ev
influxd &
/influxdb-apply.py /influxdb-apply.yaml http://localhost:8086/
wait |
Setting the `INFLUXDB_HTTP_AUTH_ENABLED` variable to something other than `true` (eg. `INFLUXDB_HTTP_AUTH_ENABLED=1`) can result in errors in the init script. More details here : influxdata/influxdata-docker#224
Tried it with
:1.5
,:1.5-alpine
,:1.4
, the log is more or less the same:Without
INFLUXDB_HTTP_AUTH_ENABLED=1
it seems to work fine (but allINFLUXDB_*_USER
s are not created).The text was updated successfully, but these errors were encountered: