Hi
I’ve been stuck on this section for a week now, I cannot get my raspberryPi to accept the commands I am inputting.
On page 241, it asks me to put in the command
influx config create –config-name influx-config –host-url http://YOUR_RASPBERRY_PI_IP_ADDRESS:8086 –org <your-org> — token <your-auth-token> –active
I copy pasted my details but it seems to not accept my organisation name. The command looks like this:
influx config create –config-name influx-config –host-url http://[my RPi IP address]:8086 –org [My organisation name] — token [Copied from my API list on InfluxDB dashboard] –active
I don’t really want to reveal what [My organisation name] is online, so I will describe it’s format and how it relates to the error code. My organisation name is 4 words separated by a space, the first word is The, so it looks like “The Word[2] Word[3] Word[4]”.
This gives me the following error code;
Error: unknown command “Word[2]” for “create”
It seems to me that it only wants a single unbroken string of characters for my org name. I tried to remove the spaces “TheWord[2]Word[3]Word[4]”, and separating the words by hyphens “The-Word[2]-Word[3]-Word[4]”, which it accepts for the config file, but later in the section, it tells me it doesn’t recognise the organisation name. The console simply states;
Error: failed to lookup org with name “TheWord[2]Word[3]Word[4]”
My InfluxDB username is the 1st and 2nd word only (TheWord[2]), is this what it wants me to input? The tutorial asks specifically for the organisation name so I don’t think it want’s the username.
Thank you for the link. I renamed my organisation to just TheWord[2], deleted my old API token, generated a new one, and re ran the command with the new details, so now I seem to have a config file so we have a solution to this problem. I’m going to carry on the module and see if I hit the same error the last time I we did this. if we do I will post another question.
Hopefully this will help someone in future
Hi.
I would suggest you create a new organization with a simpler name and then test the commands again.
https://docs.influxdata.com/influxdb/v2/admin/organizations/create-org/
It seems a problem with your syntax.
If you want you can send us an email with more information and printscreen of the actuall commands you’re trying to run as well as the information about the organization name.
Regards,
Sara