Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Support] for atribe's repo Docker images

Featured Replies

Checked with :alpine instead of :latest

 

Used:
/bin/sh -c 'apk update && apk add smartmontools && apk add lm-sensors lm-sensors-detect perl && apk add nvme-cli && apk add ipmitool && telegraf'

 

Still no luck:
 

ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied
ERROR: Unable to lock database: Permission denied
ERROR: Failed to open apk database: Permission denied

 

Something changed in the docker images that I can't install additional packages...

  • Replies 714
  • Views 225.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • As mentioned above, the latest tag now installs influx 2.0 and a docker update automatically installed this for me.   It was causing Grafana to return Authorization errors for me so clearly

  • cassiusdrow
    cassiusdrow

    EDIT: I stopped using telegraf sometime in 2023, so I have no idea if this still works for recent docker images. Caveat emptor. I've found a way to use the latest telegraf docker image while allowing

  • panzerschreck
    panzerschreck

    For everyone still having problems installing Grafana, Telegraf and InfluxDB:   I just released a tutorial on how to set everything up using atribe's docker containers on Reddit.  

Posted Images

Well, no matter what I try, there seems to be no way to install required packages to this docker image... would be nice if they were baked in to the image then.

  • smartmontools
  • lm-sensors
  • lm-sensors-detect
  • perl
  • nvme-cli
  • ipmitool

Should be fairly simple to add to docker build process and should not impact the size much.

  • 2 weeks later...

EDIT: I stopped using telegraf sometime in 2023, so I have no idea if this still works for recent docker images. Caveat emptor.

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.

 

Edited by cassiusdrow

Hi,

 

installed the Influxdb-1.8 Docker and the Web-GUI is not available, I get just --> "404 page not found".
What I have to do after Influxdb-1.8 Docker installation to run it properly?

 

Thanky you,

Lukas

2 hours ago, luk said:

Hi,

 

installed the Influxdb-1.8 Docker and the Web-GUI is not available, I get just --> "404 page not found".
What I have to do after Influxdb-1.8 Docker installation to run it properly?

 

Thanky you,

Lukas

 

If I'm not mistaken, InfluxDB 1.3 - 1.8 don't have the web interface enabled, all command line or HTTP API on port 8083.  Port 8086 is for data and returns a 404 on my working instance as well.

I believe it was version 2 where they brought back the web interface for admin and visualizing.

Hi, my glances installation no longer work , when i am going on web ui i get error.

how can i solve i install the app few times with no results

is any way to temorary disable the dashboard in Grafana?

Edited by Masterwishx

Did fix it lately, but seems since the last update Grana is broken again.

 

Unraid Version: 6.11.5

Telegraf Version: telegraf:1.20.2-alpine

Influx Version: influxdb:1.8.4-alpine

 



logger=settings t=2022-12-15T18:32:44.956718807+01:00 level=info msg="Starting Grafana" version=9.3.1 commit=89b365f8b1 branch=HEAD compiled=2022-12-01T13:45:45+01:00
logger=settings t=2022-12-15T18:32:44.956863893+01:00 level=info msg="Config loaded from" file=/usr/share/grafana/conf/defaults.ini
logger=settings t=2022-12-15T18:32:44.956871427+01:00 level=info msg="Config loaded from" file=/etc/grafana/grafana.ini
logger=settings t=2022-12-15T18:32:44.956875445+01:00 level=info msg="Config overridden from command line" arg="default.paths.data=/var/lib/grafana"
logger=settings t=2022-12-15T18:32:44.956879262+01:00 level=info msg="Config overridden from command line" arg="default.paths.logs=/var/log/grafana"
logger=settings t=2022-12-15T18:32:44.956883069+01:00 level=info msg="Config overridden from command line" arg="default.paths.plugins=/var/lib/grafana/plugins"
logger=settings t=2022-12-15T18:32:44.956887017+01:00 level=info msg="Config overridden from command line" arg="default.paths.provisioning=/etc/grafana/provisioning"
logger=settings t=2022-12-15T18:32:44.956891375+01:00 level=info msg="Config overridden from command line" arg="default.log.mode=console"
logger=settings t=2022-12-15T18:32:44.956896194+01:00 level=info msg="Config overridden from Environment variable" var="GF_PATHS_DATA=/var/lib/grafana"
logger=settings t=2022-12-15T18:32:44.956900172+01:00 level=info msg="Config overridden from Environment variable" var="GF_PATHS_LOGS=/var/log/grafana"
logger=settings t=2022-12-15T18:32:44.956909489+01:00 level=info msg="Config overridden from Environment variable" var="GF_PATHS_PLUGINS=/var/lib/grafana/plugins"
logger=settings t=2022-12-15T18:32:44.956913427+01:00 level=info msg="Config overridden from Environment variable" var="GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
logger=settings t=2022-12-15T18:32:44.956917364+01:00 level=info msg="Config overridden from Environment variable" var="GF_SERVER_ROOT_URL=http://192.168.22.24"
logger=settings t=2022-12-15T18:32:44.956922153+01:00 level=info msg="Config overridden from Environment variable" var="GF_SECURITY_ADMIN_PASSWORD=*********"
logger=settings t=2022-12-15T18:32:44.956926201+01:00 level=info msg="Path Home" path=/usr/share/grafana
logger=settings t=2022-12-15T18:32:44.956930008+01:00 level=info msg="Path Data" path=/var/lib/grafana
logger=settings t=2022-12-15T18:32:44.956933776+01:00 level=info msg="Path Logs" path=/var/log/grafana
logger=settings t=2022-12-15T18:32:44.956938535+01:00 level=info msg="Path Plugins" path=/var/lib/grafana/plugins
logger=settings t=2022-12-15T18:32:44.956943143+01:00 level=info msg="Path Provisioning" path=/etc/grafana/provisioning
logger=settings t=2022-12-15T18:32:44.956947071+01:00 level=info msg="App mode production"
logger=sqlstore t=2022-12-15T18:32:44.957075565+01:00 level=info msg="Connecting to DB" dbtype=sqlite3
logger=migrator t=2022-12-15T18:32:44.958111301+01:00 level=error msg="alert migration failure: could not get migration log" error="failed to check table existence: unable to open database file: permission denied"

** Press ANY KEY to close this window **

 

Tried setting rights correct for Grafana, but no luck on that.

 

Appdata and then "chmod a+rwX grafana"

 

Any solution on this error?

  • 2 weeks later...

hi everyone, any reason why last version of glances not working, i had to go back to the version :alpine-3.2.6.4-full.

 

Through a Github issue in the Telegraf repo I became aware of an alternative Telegraf Docker image (golift/telegraf), which is based on the latest tag but additionally contains smartctl (smartmontools), ipmitool, nvme-cli, sensors (lm-sensors), mtr (mtr-tiny) and sudo. For everything to work use_sudo = true must be set on all required inputs that support it. For monitoring Docker, you can add --user telegraf:$(stat -c '%g' /var/run/docker.sock) to the Extra parameter field in Unraid, since it works without sudo.

  • 2 weeks later...

Perhaps someone has an Idea. I want to upload data via curl into influxDB, but iam unable to authenticate. The InfluxDB documentation says I need to enable http auth in the config, but I cannot find the configfile in the appdata or the share. How do I enable this in this dockercontainer?

 

edit: solved, there isn't one. you need a token in v2

Edited by enk

On 12/24/2022 at 5:20 AM, simo241 said:

hi everyone, any reason why last version of glances not working, i had to go back to the version :alpine-3.2.6.4-full.

 

This fixed it for me. Thanks! Wonder what's causing this issue.

So after the last influxdb container update, I lost a bunch of databases and users I had created recently. Does anyone know why that may have happened?

Hello, 

I would appreciate some help with telegraf, I have got everything setup correctly (I think), Grafana and Influxdb setup.  Yet when I go to Grafana all the data is NA.  

Telegraf runs when I start it up, and then stops.  Here is the log file from the container itself.

I can post my config file as well if its needed.

https://pastebin.com/KkeiPXB8

I had a problem with the timezone for my Mineos-node docker, found the problem and a solution.

Could this be fixed in the template?

 

The docker run command for Mineos-node includes the following line:

  -e TZ="America/Los_Angeles"

It locked the minecraft server to LA time, any manual fixing in the console didn't survive a reboot and of course not a update.

So I added a manual variable in the edit page like the attached image. This added line comes later than the included LA-TZ so seems to override it.

 

Just writing to give a solution to any one else googling timezone issues with their mineos docker.

Skärmbild 2023-01-17 192003.png

  • 1 month later...

Hi guys. I didn't find this type of error I've got here.

I'm using graphana dashboard from this site: 

https://technicalramblings.com/blog/monitoring-your-ups-stats-and-cost-with-influxdb-and-grafana-on-unraid-v2-0/

 

Plugin is working, I have reading of all UPS data. Problem is, I have error on all cost calculation panels:

 

response:Object

message:"An error occurred within the plugin"

messageId:"plugin.downstreamError"

statusCode:500

traceID:""

image.png.87fe04191298f2011cd8aa9e4e996924.png

 

And I've got the readings even in the query, just this stupid error. What it can be? 

I'm using the telegraf Docker and it's great.

Will it be possible to include the ntpq binary, so ntp-stats could be collected?

 

Cheers

 

Baumix

Anyone here has problems with newest version of glances..

 

log gives me this.
 

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/docker/api/client.py", line 268, in _raise_for_status
    response.raise_for_status()
  File "/usr/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localhost/v1.41/images/b6f0331d14234c3f6d849a50400944ed565a18479d36120a32aedbfde773730d/json

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.10/site-packages/glances/__main__.py", line 19, in <module>
    glances.main()
  File "/usr/lib/python3.10/site-packages/glances/__init__.py", line 179, in main
    start(config=core.get_config(), args=core.get_args())
  File "/usr/lib/python3.10/site-packages/glances/__init__.py", line 108, in start
    mode = GlancesMode(config=config, args=args)
  File "/usr/lib/python3.10/site-packages/glances/webserver.py", line 31, in __init__
    self.stats.update()
  File "/usr/lib/python3.10/site-packages/glances/stats.py", line 216, in update
    self._plugins[p].update()
  File "/usr/lib/python3.10/site-packages/glances/plugins/glances_plugin.py", line 1114, in wrapper
    ret = fct(self, *args, **kw)
  File "/usr/lib/python3.10/site-packages/glances/plugins/glances_plugin.py", line 1131, in wrapper
    ret = fct(*args, **kw)
  File "/usr/lib/python3.10/site-packages/glances/plugins/glances_docker.py", line 255, in update
    container_stats['Image'] = container.image.tags
  File "/usr/lib/python3.10/site-packages/docker/models/containers.py", line 40, in image
    return self.client.images.get(image_id.split(':')[1])
  File "/usr/lib/python3.10/site-packages/docker/models/images.py", line 335, in get
    return self.prepare_model(self.client.api.inspect_image(name))
  File "/usr/lib/python3.10/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/usr/lib/python3.10/site-packages/docker/api/image.py", line 251, in inspect_image
    return self._result(
  File "/usr/lib/python3.10/site-packages/docker/api/client.py", line 274, in _result
    self._raise_for_status(response)
  File "/usr/lib/python3.10/site-packages/docker/api/client.py", line 270, in _raise_for_status
    raise create_api_error_from_http_exception(e) from e
  File "/usr/lib/python3.10/site-packages/docker/errors.py", line 39, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation) from e
docker.errors.ImageNotFound: 404 Client Error for http+docker://localhost/v1.41/images/b6f0331d14234c3f6d849a50400944ed565a18479d36120a32aedbfde773730d/json: Not Found ("no such image: b6f0331d14234c3f6d849a50400944ed565a18479d36120a32aedbfde773730d: No such image: sha256:b6f0331d14234c3f6d849a50400944ed565a18479d36120a32aedbfde773730d")

After install grafana and open Grafana's WebUI, the page that opens is an error: This page is not working, ERR_TOO_MANY_REDIRECTS

 

wdM5O4.png

 

I realize that the browser address is repeating the IP of my Unraid server, when I force the address to 192.168.1.100:3000/login I get this message:

 

T3sZnW.png

 

But I don't use proxy or reverse proxy. How do I resolve this?

I prefer to manage my Telegraf configs centrally via InfluxDB, so in case anyone else wishes to do the same, here's the steps that I used to get that configuration working with Telegraf (requires displaying advanced settings):

  1. Removed the configuration mount from the config
  2. Added variable: INFLUX_TOKEN using the autogenerated token from InfluxDB
  3. Set the post arguments to the "Start Telegraf" command from InfluxDB
  • 3 weeks later...
On 12/4/2022 at 1: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.

 

Hey im trying to do this as my telegraf just stopped working when I upgraded to Unraid 6.12

 

Heres the run command, but its failing even though the path to the entrypoint.sh file is correct. Any ideas?

 

docker run
  -d
  --name='telegraf'
  --net='host'
  --privileged=true
  -e TZ="Pacific/Auckland"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="TOWER"
  -e HOST_CONTAINERNAME="telegraf"
  -e 'HOST_PROC'='/rootfs/proc'
  -e 'HOST_SYS'='/rootfs/sys'
  -e 'HOST_ETC'='/rootfs/etc'
  -e 'HOST_MOUNT_PREFIX'='/rootfs'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://github.com/atribe/unRAID-docker/raw/master/icons/telegraf.png'
  -v '/var/run/utmp':'/var/run/utmp':'ro'
  -v '/var/run/docker.sock':'/var/run/docker.sock':'ro'
  -v '/':'/rootfs':'ro'
  -v '/sys':'/rootfs/sys':'ro'
  -v '/etc':'/rootfs/etc':'ro'
  -v '/proc':'/rootfs/proc':'ro'
  -v '/mnt/nvme_mirror/Docker/telegraf':'/etc/telegraf':'rw'
  -v '/run/udev':'/run/udev':'ro'
  --user=root
  --entrypoint=/mnt/nvme_mirror/Docker/telegraf/entrypoint.sh 'telegraf:1.7.1-alpine'
5e74b7db49a5a52cf0f26b0d4897f84fea8e1bcbef3e8a69e82d497e888915e7
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/mnt/nvme_mirror/Docker/telegraf/entrypoint.sh": stat /mnt/nvme_mirror/Docker/telegraf/entrypoint.sh: no such file or directory: unknown.

The command failed.

 

On 4/11/2023 at 10:20 PM, Jarsky said:

 

Hey im trying to do this as my telegraf just stopped working when I upgraded to Unraid 6.12

 

Heres the run command, but its failing even though the path to the entrypoint.sh file is correct. Any ideas?

 

docker run
  -d
  --name='telegraf'
  --net='host'
  --privileged=true
  -e TZ="Pacific/Auckland"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="TOWER"
  -e HOST_CONTAINERNAME="telegraf"
  -e 'HOST_PROC'='/rootfs/proc'
  -e 'HOST_SYS'='/rootfs/sys'
  -e 'HOST_ETC'='/rootfs/etc'
  -e 'HOST_MOUNT_PREFIX'='/rootfs'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://github.com/atribe/unRAID-docker/raw/master/icons/telegraf.png'
  -v '/var/run/utmp':'/var/run/utmp':'ro'
  -v '/var/run/docker.sock':'/var/run/docker.sock':'ro'
  -v '/':'/rootfs':'ro'
  -v '/sys':'/rootfs/sys':'ro'
  -v '/etc':'/rootfs/etc':'ro'
  -v '/proc':'/rootfs/proc':'ro'
  -v '/mnt/nvme_mirror/Docker/telegraf':'/etc/telegraf':'rw'
  -v '/run/udev':'/run/udev':'ro'
  --user=root
  --entrypoint=/mnt/nvme_mirror/Docker/telegraf/entrypoint.sh 'telegraf:1.7.1-alpine'
5e74b7db49a5a52cf0f26b0d4897f84fea8e1bcbef3e8a69e82d497e888915e7
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/mnt/nvme_mirror/Docker/telegraf/entrypoint.sh": stat /mnt/nvme_mirror/Docker/telegraf/entrypoint.sh: no such file or directory: unknown.

The command failed.

 

 

Try changing your "Extra Parameters" to: --user=root --entrypoint=/etc/telegraf/entrypoint.sh

 

  • 2 weeks later...

Need some assistance with Grafana please.  I've been trying to install all day.  Installing is successful with no reported issues.  Appdata directory is created but empty.  It doesn't start.  When I try to manually start it its going right back to stopped without much delay.  I checked the log and something flashes by but then the window immediately closes.  There isn't enough time to screengrab it.  I've tried installing/reinstalling, wiping the data from the previous installs.  I did install loki and promtail earlier but I can't find anywhere saying that would be an issue.  What are your thoughts on where I could check next? 

 

System Specs: 

Mobo: MSI PRO Z690-A DDR4 Motherboard

CPU: i13700 non-k

Memory: 64gb 4x16 corsair vengeance lpx

Drives: bunch of WD HDDs, 1 samsung ssd, 1 samsung m.2

Network: hardwired 1gb

OS: Unraid 6.11.5

GPU: Onboard

 

Happy to provide any additional data that might be useful. 

Edited by Uleepera

On 5/1/2023 at 9:26 AM, Uleepera said:

Need some assistance with Grafana please.  I've been trying to install all day.  Installing is successful with no reported issues.  Appdata directory is created but empty.  It doesn't start.  When I try to manually start it its going right back to stopped without much delay.  I checked the log and something flashes by but then the window immediately closes.  There isn't enough time to screengrab it.  I've tried installing/reinstalling, wiping the data from the previous installs.  I did install loki and promtail earlier but I can't find anywhere saying that would be an issue.  What are your thoughts on where I could check next? 

 

System Specs: 

Mobo: MSI PRO Z690-A DDR4 Motherboard

CPU: i13700 non-k

Memory: 64gb 4x16 corsair vengeance lpx

Drives: bunch of WD HDDs, 1 samsung ssd, 1 samsung m.2

Network: hardwired 1gb

OS: Unraid 6.11.5

GPU: Onboard

 

Happy to provide any additional data that might be useful. 

I am having the same issue. No errors while installing but grafana Appdata directory remains empty.

The error I am getting from the logs are:
 

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

 

16 hours ago, ASmigielski said:

I am having the same issue. No errors while installing but grafana Appdata directory remains empty.

The error I am getting from the logs are:
 

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

 

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. 

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.