• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Error: unknown command "[My organisation name's 2nd word]" for "create" when trying to create influxDB config file (page 241, section 6.3 Smart Home)

Q&A Forum › Category: Home Automation › Error: unknown command "[My organisation name's 2nd word]" for "create" when trying to create influxDB config file (page 241, section 6.3 Smart Home)
0 Vote Up Vote Down
Liam Woffindin asked 8 months ago

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.

3 Answers
0 Vote Up Vote Down
Best Answer
Liam Woffindin answered 8 months ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

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.
 

Support


 
Regards,
Sara

0 Vote Up Vote Down
Sara Santos Staff answered 8 months ago

Hi.
Thanks for the feedback.
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.