[SUPPORT] testdasi repo


Recommended Posts

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!

Link to comment
Posted (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:

  1. Launch a Docker Terminal (in unRAID, click the docker's icon -> Console )
  2. Verify issue, type cmd: 
    1. /static-ubuntu/grafana-unraid-stack/healthcheck.sh
    2. You should see "Executable /usr/bin/influxd does not exist!"  -- if you do, proceed.
  3. Go to /data directory -->
    cd /data

     

  4. 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

     

  5. Give it execution permissions:
    chmod +x fix_influxdb_2023.sh
  6. Execute the script. 
    ./fix_influxdb_2023.sh

     

  7. 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 by KyleK29
Link to comment
Posted (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 by KyleK29
Clarification
  • Like 2
  • Thanks 2
  • Upvote 1
Link to comment
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”

Link to comment
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?

Link to comment
  • 1 month later...
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 by Alphahelix
Link to comment
  • 4 weeks later...
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

Link to comment
  • 4 weeks later...
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?

Link to comment
  • 1 month later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.