Pranker99 Posted May 5, 2023 Share Posted May 5, 2023 10 hours ago, Uleepera said: After much digging, the directory permission for the grafana directory needs to be updated. either go in and chmod it or just use the file tool for the share and change the permissions. After that everything worked fine. I had the same issue. I ssh'd into unraid and did a chmod -R 777 on the grafana folder in appdata and it worked. Quote Link to comment
Cyclops Posted May 8, 2023 Share Posted May 8, 2023 (edited) I am trying to download the telegraf.conf file from this url: https://github.com/influxdata/telegraf/blob/master/etc/telegraf.conf that's listed in the startup guide. However, I am getting a 404 error and no existing blob/master subdirectory. What's the new url to download the templete telgraf.conf file? Thank you! Edited May 8, 2023 by Cyclops Quote Link to comment
gamerkonks Posted May 9, 2023 Share Posted May 9, 2023 3 hours ago, Cyclops said: I am trying to download the telegraf.conf file from this url: https://github.com/influxdata/telegraf/blob/master/etc/telegraf.conf that's listed in the startup guide. However, I am getting a 404 error and no existing blob/master subdirectory. What's the new url to download the templete telgraf.conf file? Thank you! Based on the documentation here you should be able to generate a config file by running telegraf --sample-config > telegraf.conf Quote Link to comment
ptchernegovski Posted May 21, 2023 Share Posted May 21, 2023 On 5/5/2023 at 2:53 PM, Pranker99 said: I had the same issue. I ssh'd into unraid and did a chmod -R 777 on the grafana folder in appdata and it worked. Hey, What was your command for the chmod? What I thought I had to do isn't working on grafana Quote Link to comment
ASmigielski Posted May 30, 2023 Share Posted May 30, 2023 On 5/21/2023 at 1:22 PM, ptchernegovski said: Hey, What was your command for the chmod? What I thought I had to do isn't working on grafana The command is: chmod -r 777 /mnt/user/appdata/unraid/ Quote Link to comment
scubieman Posted June 1, 2023 Share Posted June 1, 2023 (edited) Everytime i open influxdb it goes to the initial setup, Am I doing something wrong? edit: I go to the directory for the appdata... and the folder is empty? Edited June 1, 2023 by scubieman Quote Link to comment
Cuissedemouche Posted June 6, 2023 Share Posted June 6, 2023 On 5/9/2023 at 1:05 AM, gamerkonks said: Based on the documentation here you should be able to generate a config file by running telegraf --sample-config > telegraf.conf Hi, I saw that in the documentation, but we can't start the telegraf docker if we don't have a telegraf.conf already setup, so I don't get how we could run this command Quote Link to comment
dgallaher Posted June 29, 2023 Share Posted June 29, 2023 On 6/6/2023 at 7:49 PM, Cuissedemouche said: Hi, I saw that in the documentation, but we can't start the telegraf docker if we don't have a telegraf.conf already setup, so I don't get how we could run this command I'm in the same situation and haven't been able to find a working link for telegraf.conf. Any help? Quote Link to comment
Chunks Posted June 29, 2023 Share Posted June 29, 2023 I had the permissions problem with Grafana, and I fixed it by going to the /mnt/user/appdata folder and running: chown nobody:users grafana after that, the image started right up. (this was an existing install that stopped working) Quote Link to comment
obiwog Posted July 11, 2023 Share Posted July 11, 2023 On 6/29/2023 at 5:07 AM, dgallaher said: I'm in the same situation and haven't been able to find a working link for telegraf.conf. Any help? I ran into the same issue. I tried using The Way Back machine and was able to get a config file from a May 03, 2022 snapshot. Here is the URL: https://web.archive.org/web/20220503171018/https://github.com/influxdata/telegraf/blob/master/etc/telegraf.conf Quote Link to comment
macronin Posted July 14, 2023 Share Posted July 14, 2023 (edited) On 7/11/2023 at 8:34 AM, obiwog said: I ran into the same issue. I tried using The Way Back machine and was able to get a config file from a May 03, 2022 snapshot. Here is the URL: https://web.archive.org/web/20220503171018/https://github.com/influxdata/telegraf/blob/master/etc/telegraf.conf I'm a new Unraid user so was just starting my monitoring setup and also ran into the same issue. Looks like the Guide may need an update. But the good news is I was able to find a newer final version of the telegraf.conf file. The one I found is from Feb of 2023 https://web.archive.org/web/20230209014553/https://raw.githubusercontent.com/influxdata/telegraf/master/etc/telegraf.conf Edited July 14, 2023 by macronin Quote Link to comment
Abe677 Posted July 23, 2023 Share Posted July 23, 2023 (edited) I feel like an idiot but some confusion on my part lingers. Just did a vanilla install of the InfluxDB docker on my up-to-date Unraid server. I didn't change anything since the default ports 8083 and 8086 were unused. When I attempt to connect via the "WebUI" context menu I get a "ERR_CONNECTION_REFUSED" error. So I google a bit and read some posts that the web UI has been depreciated and I should use console commands, but that goes nowhere. I see that the WebUI context menu is using port 8083. For the heck of it I change it to port 8086 and voila - a web UI that lets me set up InfluxDB. So is the Web UI depreciated? Is there was port swap in the docker template? Edited July 23, 2023 by Abe677 Quote Link to comment
Kev29 Posted August 2, 2023 Share Posted August 2, 2023 Hallo, ich musste vor kurzer zeit mein System neu aufsetzen und hatte leider kein Backup von Unraid und meinen Dockern. Jetzt möchte ich den Grafana Docker neu installieren was auch soweit funktioniert, aber wenn ich den starten möchte dann startet er nicht oder bringt Fehler. In der Protokolldatei kommt folgendes: mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied GF_PATHS_DATA='/var/lib/grafana' is not writable. You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later Kann mir jemand weiterhelfen was ich tun muss oder wie ich den Docker zum Laufen bekomme? Vielen Dank schon einmal. Quote Link to comment
westcoastbias Posted August 13, 2023 Share Posted August 13, 2023 I am having issues with this application. I am trying to get data from an ambient weather station (WS-2000) into grafana for visualization purposes. Here is what I have setup. 1) https://github.com/neilenns/ambientweather2mqtt This was installed via CA 2) I also installed mosquitto from CA (the cmcambridge repo) I believe that this is working fine. I can see logs from mosquitto showing the weather station publishing 3) I installed this grafana application. But no data ever gets into it from the weather station. It appears to be hitting mosquitto, but data is not returning. In fact, I dont see that it has actually subscribed in the logs (I am new to MQTT, but it seems like there should be something? I have tried all wildcards and other various things, but I also get an empty query response I have attached screenshots of the log from mosquitto as well as from the data sources tab in grafana. I appreciate any guidance. Quote Link to comment
mauriceatkinson@btconnect. Posted September 12, 2023 Share Posted September 12, 2023 Hi I wonder if anybody has got the Grafana docker to work with ssl? I am installing Grafana to connect to an existing influx db in order so it can be used to make a single dashboard panel available to an external web page. In order to embed the grafana dashboard panel iframe I need to be using https so trying to see if anybody has got ssl working with this docker container. I am new to docker and whilst I can see the Grafana commands needed I cannot run this as sudo. Any help or direction to implement ssl in the container would be much appreciated. Quote Link to comment
ZynanBob Posted September 14, 2023 Share Posted September 14, 2023 Hey can somebody help me to publish glances to mqtt? Where do i have to put the information? And... is it normal that there isn't any info published to home assistant about the docker container in unraid? Quote Link to comment
Necro Posted September 17, 2023 Share Posted September 17, 2023 On 12/3/2022 at 7:33 PM, cassiusdrow said: I've found a way to use the latest telegraf docker image while allowing installation of smartmontools and any other packages needed. This is using the "telegraf:alpine" image. This technique can probably be used with the "telegraf:latest" image but the package commands will be different. 1. Create your telegraf configuration file as /mnt/user/appdata/telegraf/telegraf.conf 2. Create the /mnt/user/appdata/telegraf/entrypoint.sh file: #!/bin/sh # Add packages apk update apk upgrade apk add smartmontools nvme-cli lm-sensors lm-sensors-detect perl curl ipmitool # Update smart database /usr/sbin/update-smart-drivedb --no-verify # Start telegraf telegraf --watch-config poll --config '/etc/telegraf/telegraf.conf' 3. Make the file executable: chmod 777 /mnt/user/appdata/telegraf/entrypoint.sh 4. Install atribe's official telegraf docker 5. Set Repository: telegraf:alpine 6. Set Extra Parameters: --user=root --entrypoint=/etc/telegraf/entrypoint.sh 7. Edit "Host Path 7" 7.a. Change "Container Path" to /etc/telegraf 7.b. change "Host Path" to /mnt/user/appdata/telegraf 7.c. change "Default Value" to /mnt/user/appdata/telegraf 7.d. Save the changes. 8. Click Apply to start the container. Has something changed with using this approach? Keep getting that the entrypoint.sh file can't be found. It's definitely there (everything starts fine w/mapping just the telegraph folder, removing the extra parameter results in telegraph just starting with the telegraph.conf in that mapped directory). Somewhat baffled - wondering if it's because it's a script that it's not seeing it? Quote Link to comment
cassiusdrow Posted September 17, 2023 Share Posted September 17, 2023 2 hours ago, Necro said: Has something changed with using this approach? Keep getting that the entrypoint.sh file can't be found. It's definitely there (everything starts fine w/mapping just the telegraph folder, removing the extra parameter results in telegraph just starting with the telegraph.conf in that mapped directory). Somewhat baffled - wondering if it's because it's a script that it's not seeing it? I'm sorry, I can't help. I stopped running influx/telegraf/grafana a few months ago. The influx database was getting very large and I wasn't really looking at the data so I removed them. Quote Link to comment
Necro Posted September 18, 2023 Share Posted September 18, 2023 17 hours ago, cassiusdrow said: I'm sorry, I can't help. I stopped running influx/telegraf/grafana a few months ago. The influx database was getting very large and I wasn't really looking at the data so I removed them. Thanks for the quick reply either way! Ended up just shifting to the earlier release and it's all working fine - wasted way too much time trying to fix it when that just did it with two line changes :/. Quote Link to comment
tjb_altf4 Posted September 21, 2023 Share Posted September 21, 2023 On 8/2/2023 at 11:11 PM, Kev29 said: Hallo, ich musste vor kurzer zeit mein System neu aufsetzen und hatte leider kein Backup von Unraid und meinen Dockern. Jetzt möchte ich den Grafana Docker neu installieren was auch soweit funktioniert, aber wenn ich den starten möchte dann startet er nicht oder bringt Fehler. In der Protokolldatei kommt folgendes: mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied GF_PATHS_DATA='/var/lib/grafana' is not writable. You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later Kann mir jemand weiterhelfen was ich tun muss oder wie ich den Docker zum Laufen bekomme? Vielen Dank schon einmal. Just went through this myself, solution is to change permissions from read-only for group/other to R/W: Quote Link to comment
giantrobot Posted October 5, 2023 Share Posted October 5, 2023 On 2/17/2021 at 11:41 PM, NielsS said: Did you get it to work in the end? I am facing a similar issue, but for me the docker does not mention yet reading the telegraf.d folder. My Post Argument looks like this /bin/sh -c 'apt update && apt install -y smartmontools && apt install -y lm-sensors && apt install -y nvme-cli && apt install -y ipmitool && telegraf --config /etc/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d' Any guidance is welcome! this finally worked for me, putting it in the post argument directly. I only used the --config-directory parameter. while the log doesn't explicitly mention reading the config-directory, I can see the multiple outputs being loaded so I infer that it was successful; previously it would only load one output. phew! Quote Link to comment
Kev29 Posted October 8, 2023 Share Posted October 8, 2023 On 21.9.2023 at 15:10, tjb_altf4 said: Ich habe das gerade selbst durchgesehen. Die Lösung besteht darin, die Berechtigungen von „schreibgeschützt“ für Gruppe/Andere in „R/W“ zu ändern: Wo kann ich das genau einstellen? Finde das bis jetzt bei mir noch nicht. Quote Link to comment
tjb_altf4 Posted October 9, 2023 Share Posted October 9, 2023 11 hours ago, Kev29 said: Wo kann ich das genau einstellen? Finde das bis jetzt bei mir noch nicht. Quote Link to comment
jit-010101 Posted October 17, 2023 Share Posted October 17, 2023 (edited) How to fix Grafana Permission Errors properly (on first start and later) Its not ok to set the permissions of the appdata/grafana folder anything else then root or increase the permissions blindly. to correctly fix this there needs to be an extra parameter added do that the internal user id using the same id as the root user from unraid Grafana Container -> Edit -> Advanced -> Extra Parameters -> add: --user 0 after that make sure owner of /mnt/user/appdata/Grafana is root:root and grafana will start just fine: chown -R root:root /mnt/user/appdata/Grafana Edited October 18, 2023 by jit-010101 Quote Link to comment
atribe Posted November 15, 2023 Author Share Posted November 15, 2023 On 10/17/2023 at 4:13 PM, jit-010101 said: How to fix Grafana Permission Errors properly (on first start and later) Its not ok to set the permissions of the appdata/grafana folder anything else then root or increase the permissions blindly. to correctly fix this there needs to be an extra parameter added do that the internal user id using the same id as the root user from unraid Grafana Container -> Edit -> Advanced -> Extra Parameters -> add: --user 0 after that make sure owner of /mnt/user/appdata/Grafana is root:root and grafana will start just fine: chown -R root:root /mnt/user/appdata/Grafana I just updated the xml template to now include the extra parameters by default. <ExtraParams>--user "$(id -u)"</ExtraParams> 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.