Hi
Fixed the config file issue I was having, then went on the the next command and it threw it right back at me. Have I done something fundamentally wrong?
I am copy pasting the commands I type and the error codes into a notepad doc, so I can keep track of which command created which error code. Here are the error codes. Copied from the PDF file;
influx apply -f https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml
Created the error:
2024/09/18 11:30:42 WARN: Passing URLs via -f/–file is deprecated, please use -u/–template-url instead
Error: failed to read template(s) from “https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml”: bad response: address=https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml status_code=404 body=”404: Not Found”
So I used some initiative and changed the command from -f to -u, as suggested by the error code.
influx apply -u https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml
Which gave me the error message;
Error: failed to read template(s) from “https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml”: bad response: address=https://raw.githubusercontent.com/influxdata/communitytemplates/master/raspberry-pi/raspberry-pi-system.yml status_code=404 body=”404: Not Found”
Not sure what I’m doing wrong here, I’ve gone through the entire module 6 twice now and can’t get past these pages.
This message is just a note, the command will still run.
ARN: Passing URLs via -f/–file is deprecated, please use -u/–template-url instead
It seems you’re having issues with copy/paste as it cannot find the URL.
Your command is not working because during copy/paste, it ommited a “-“
Use this command isntead:
influx apply -f https://raw.githubusercontent.com/influxdata/community-templates/master/raspberry-pi/raspberry-pi-system.yml
I’m also pasting here the next command in the eBook in case you have problems (you can copy and past everything at once.).
# influxdata-archive_compat.key GPG fingerprint: # 9D53 9D90 D332 8DC7 D6C8 D3B9 D8FF 8E1F 7DF8 B07E wget -q https://repos.influxdata.com/influxdata-archive_compat.key echo '393e8779c89ac8d958f81f942f9ad7fb82a25e133faddaf92e15b16e6ac9ce4c influxdata-archive_compat.key' | sha256sum -c && cat influxdata-archive_compat.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg > /dev/null echo 'deb [signed-by=/etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg] https://repos.influxdata.com/debian stable main' | sudo tee /etc/apt/sources.list.d/influxdata.list sudo apt-get update && sudo apt-get install telegraf
I hope this helps.
Regards.
Your commands do seem to be working but when I tried to setup Telegraf (page 245) I got more error messages (see “error codes” screenshot for more detail
“E! [agent] Error writing to outputs.influxdb_v2: failed to send metrics to any configured server(s)”
I confirm I have the correct IP address, org name, the API is a brand new one I generated when I tried to just restart the module. I deleted the old one.
Installing telegraf seemed to have worked, I used the command you provided and followed the link to get it myself.
Here are screenshots of my commands and the responses, they all seem to accept them but when I try to upload data to telegraf, it doesn’t seem to want to know
Copied from Telegraf website installer
Install notes