[Help] Issues Setting Up InfluxDB 3 on Windows

Hello everyone,

First, I should mention that I’m not an expert in computers or IT. I’m not completely new either, but I’m definitely missing some foundational knowledge.

Here’s a bit of context :

I’m currently doing an internship where I’m helping the company improve how they store data. Initially, they planned to use MySQL. However, I remembered using InfluxDB briefly (around an hour) during school and thought it might be a better fit, especially since our main goal is to store data from several thousand sensors, detect anomalies, and eventually run predictive algorithms.

When my supervisor and I first tried installing InfluxDB 3, we ran into issues. We then switched to InfluxDB 2.7 because we found a tutorial for it, and that worked fine.

Now, a few days later, I’m trying to install InfluxDB 3 again.

For information :

  • We’re using Windows.
  • Our cybersecurity team doesn’t allow the use of Docker.

I followed the documentation, but I found it quite limited, especially for someone who isn’t very experienced.

The installation seems to have worked. When I run:

influxdb3 --version

I get the version info, so I assume it’s installed correctly.

Then I ran :

influxdb3 serve --node-id host01 --object-store file --data-dir ~/.influxdb3

This also “worked”.
When I accessed localhost:8181, it asked me to create a token, which I did.

The issue starts here :
I tried using the token with the following command, since the export ... version didn’t work on Windows:

influxdb3 show databases --token YOUR_AUTH_TOKEN

But I get an error :
"Cannot authenticate token ... MissingToken"

However, when I run :

influxdb3 show databases -h

I see the following :

--token <AUTH_TOKEN>   The token for authentication with the InfluxDB 3 Core server 
                       [env: INFLUXDB3_AUTH_TOKEN=my_token INFLUXDB3_AUTH_TOKEN=my_token INFLUXDB3_AUTH_TOKEN=my_token]

(Yes, it appears 3 times ?)
(And yes, I replaced the my_token by my real token)
Can anyone explain what I might be doing wrong, or how to properly authenticate with the server?

Also, is it normal that when I try again the command to setup the token again, I now get an OS error 10061?

Thanks in advance for your help !

I got an answer on discord by an employee from InfluxData.
This is the answer :

Thanks for bringing this up @Fyore we need to update the docs with Windows specific instructions on creating the environment variable for the token. You can try the following commands to store the token $env:INFLUXDB3_AUTH_TOKEN = “YOUR_AUTH_TOKEN” or set INFLUXDB3_AUTH_TOKEN=YOUR_AUTH_TOKEN and then when you run the influxdb3 commands it should all work. Btw we are working on a comprehensive beginner friendly course about InfluxDB 3 that will be coming this month here: Loading so keep an eye on that. It’s unfortunate that you are not allowed to use Docker as you can use the UI explorer to manage database opreations with UI and you made the right choice of using InfluxDB for such time series data. With Processing Engine in InfluxDB 3 you can do anomaly detection using machine learning right inside the database on real time data. Feel free to ask any other questions etc.

I will try and I will come back to you.

For information, we still have issues and decided to stay with 2.7 for now

Hi @Fyore for the token you can always just pass it in without needing to create the variable by for example: influxdb3 show databases --token YOUR_TOKEN_STRING