bmartino1 Posted May 11 Share Posted May 11 Run this on 2 offsite unraid systems and got this docker running nicely on truenas scale. From my experiences, OP / Docker maintainer is more active in the github repository and at the Docker HUB. Thank you for a proper, well written docker. it just works! Quote Link to comment
KyleK29 Posted May 12 Share Posted May 12 (edited) For those installing this through the unRaid app tab, you may encounter the dashboards being blank and the Docker Logs saying something about the Influxdb.exe not being installed. As another user mentioned, the problem is in the influx setup. How I Fixed It: Launch a Docker Terminal (in unRAID, click the docker's icon -> Console ) Verify issue, type cmd: /static-ubuntu/grafana-unraid-stack/healthcheck.sh You should see "Executable /usr/bin/influxd does not exist!" -- if you do, proceed. Go to /data directory --> cd /data Download the corrected install script ( https://raw.githubusercontent.com/kylek29/misc_code/main/unRAID/Grafana-Unraid-Stack/fix_influxdb_2023.sh ) with this command: curl -sOL https://raw.githubusercontent.com/kylek29/misc_code/main/unRAID/Grafana-Unraid-Stack/fix_influxdb_2023.sh Give it execution permissions: chmod +x fix_influxdb_2023.sh Execute the script. ./fix_influxdb_2023.sh Verify error is gone. /static-ubuntu/grafana-unraid-stack/healthcheck.sh Now go to the admin dashboard and verify it's receiving data. If you go to the your datasources section -> influxdb -> bottom, "test" button --> it should say "datasource is working" now. *EDIT* That didn't last long. I decided to do a completely fresh install to test the above instructions one more time (complete with purged image, etc.), this time it didn't work. Data doesn't come through. Using the old image tag mentioned earlier does seem to work: testdasi/grafana-unraid-stack:s230122 If I figure out the missing step I did when I got it completely working with the :latest image, I'll update this post. Edited May 12 by KyleK29 Quote Link to comment
KyleK29 Posted May 15 Share Posted May 15 (edited) Alright, got it working again with a forked image. If anyone else wants to try (I do recommend spinning up a different copy, just for testing purposes). All you have to do is swap the repository of the GUS package / Docker container to this (right-click the Docker Containers Icon --> Edit --> find "repository"): kylek29/grafana-unraid-stack-2023:latest That is a new forked image, which adds additional layers to the grafana-unraid-stack image by testdasi. Changes made: Add a new install script that will install the new apt-key certs from Grafana/Influxdb, then reinstall latest InfluxDb/Telegraf, and perform clean up. Added tweaks to the healthcheck command so that it fires every 30seconds and will wait 30seconds for the machine to start (I noticed it often failed with the original images 0s parameters). Fixed a bug where the healthcheck status would fail and not detect the Grafana Server pid. It will now display the proper statuses of starting, healthy, and unhealthy. Fixed an issue where Tini (init handler) was failing. To look at the code and Dockerfile, see here: https://github.com/kylek29/misc_code/tree/main/unRAID/Grafana-Unraid-Stack For general usage, see the original post. This is just a fix layer. Edited May 15 by KyleK29 Clarification 2 2 1 Quote Link to comment
Nano Posted May 20 Share Posted May 20 On 5/15/2023 at 11:24 PM, KyleK29 said: Alright, got it working again with a forked image. If anyone else wants to try (I do recommend spinning up a different copy, just for testing purposes). All you have to do is swap the repository of the GUS package / Docker container to this (right-click the Docker Containers Icon --> Edit --> find "repository"): kylek29/grafana-unraid-stack-2023:latest That is a new forked image, which adds additional layers to the grafana-unraid-stack image by testdasi. Changes made: Add a new install script that will install the new apt-key certs from Grafana/Influxdb, then reinstall latest InfluxDb/Telegraf, and perform clean up. Added tweaks to the healthcheck command so that it fires every 30seconds and will wait 30seconds for the machine to start (I noticed it often failed with the original images 0s parameters). Fixed a bug where the healthcheck status would fail and not detect the Grafana Server pid. It will now display the proper statuses of starting, healthy, and unhealthy. Fixed an issue where Tini (init handler) was failing. To look at the code and Dockerfile, see here: https://github.com/kylek29/misc_code/tree/main/unRAID/Grafana-Unraid-Stack For general usage, see the original post. This is just a fix layer. This works so if possible if this could be merged with the “official release” Quote Link to comment
Lee B Posted May 24 Share Posted May 24 On 5/15/2023 at 11:24 PM, KyleK29 said: Alright, got it working again with a forked image. If anyone else wants to try (I do recommend spinning up a different copy, just for testing purposes). All you have to do is swap the repository of the GUS package / Docker container to this (right-click the Docker Containers Icon --> Edit --> find "repository"): kylek29/grafana-unraid-stack-2023:latest That is a new forked image, which adds additional layers to the grafana-unraid-stack image by testdasi. Changes made: Add a new install script that will install the new apt-key certs from Grafana/Influxdb, then reinstall latest InfluxDb/Telegraf, and perform clean up. Added tweaks to the healthcheck command so that it fires every 30seconds and will wait 30seconds for the machine to start (I noticed it often failed with the original images 0s parameters). Fixed a bug where the healthcheck status would fail and not detect the Grafana Server pid. It will now display the proper statuses of starting, healthy, and unhealthy. Fixed an issue where Tini (init handler) was failing. To look at the code and Dockerfile, see here: https://github.com/kylek29/misc_code/tree/main/unRAID/Grafana-Unraid-Stack For general usage, see the original post. This is just a fix layer. Does the influxdb have a usename and password set? Quote Link to comment
Alphahelix Posted June 26 Share Posted June 26 (edited) On 5/24/2023 at 12:12 PM, Lee B said: Does the influxdb have a usename and password set? +1 EDIT: I found a work-around by adding another user, I don't think it is the best solution, but it works... on the running container, click on the "Grafana-Unraid-Stack" icon, and select "Console" write the command "influx" in the influx console (inside the HUS-console) write the following command: CREATE USER <username> WITH PASSWORD '<password>' WITH ALL PRIVILEGES then the command "exit" then the command "exit" again done! Source: https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/#user-management-commands I hope it can help. Edited June 26 by Alphahelix Quote Link to comment
nerbonne Posted July 21 Share Posted July 21 On 9/21/2020 at 11:44 PM, testdasi said: The most frequent mistake is missing credentials (i.e. login). Create a file e.g. login.txt with exactly 2 lines, 1st line is username, 2nd line is password. Save that file in the same folder as the openvpn.ovpn. Then edit your openvpn.ovpn and find auth-user-pass line and add login.txt after it so it's like this: ... auth-user-pass login.txt ... If that still doesn't work then copy-paste your openvpn.ovpn file here and I can help have a look. I have openvpn.ovpn and login.txt in /etc/openvpn and the login loop is scrolling. Docker container is set to a static IP. Attached is my ovpn file, can you take a look and see if I missed anything? openvpn.ovpn Quote Link to comment
TheLinuxGuy Posted August 13 Share Posted August 13 On 5/15/2023 at 6:24 PM, KyleK29 said: kylek29/grafana-unraid-stack-2023:latest That is a new forked image, which adds additional layers to the grafana-unraid-stack image by testdasi. New here; so it looks like the original testdasi image is abandoned in terms of support, it looks like? Quote Link to comment
marcow Posted September 17 Share Posted September 17 Is it normal on this build : kylek29/grafana-unraid-stack-2023:latest that the telegraf service is still crashing? I'm on 6.12.3. Anything I can do to fix it? 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.