[Support] for atribe's repo Docker images


Recommended Posts

Got it!  So, a lot has happened in the last few hours. I have influxdb, grafana, and untelegraf running successfully, even with some pretty graphs (all thanks to you and your awesome dockers).  Perhaps you have another set of answers in you: I want to monitor hdd temps but untelegraf doesn't have a way for me to activate the hddtemp plug in (according to the Docker hub page).  So, i tried to set up the telegraf docker.  I created the conf file, pointed the host path to it, mimicked my other keys/paths from the untelegraf docker, the docker install command completes successfully BUT the telegraf docker never shows as "started".  When I check the log, I see the following:

 

2017/01/11 03:56:09 Using config file: /etc/telegraf/telegraf.conf
2017/01/11 03:56:09 Could not parse [agent] config
Error parsing /etc/telegraf/telegraf.conf, line 70: field corresponding to `logfile' is not defined in `*config.AgentConfig'

 

Any idea how I can fix that?  Or how I can get untelegraf (simply because I already have it working) to record hddtemps?  Or, if it already is running, where is it hiding for graphing in Grafana?  I checked every value I could see in there but nothing related to HD temps was available.

 

Cheers

 

For HDD Temps I use the scripts in this forum post: https://lime-technology.com/forum/index.php?topic=52220

As for your error I'm not sure. Did you modify it?

Link to comment

So I moved all my current Spigot servers over to MineOS-node, and everything os working. I had to change the PUID/PGID in terminal of all the files manuals before they were visible to MineOS to 1000:1000. I only tried this because looking at the docker log, one of the entries says setting default user mc (1000) & looking at my original MineOS install (none node) all the folders & files were owned by 1000:1000.

 

everything seems to be working now!

 

Seems to me the MineOS-node is a lot more responsive !!

Link to comment

 

For HDD Temps I use the scripts in this forum post: https://lime-technology.com/forum/index.php?topic=52220

As for your error I'm not sure. Did you modify it?

 

Alright, I have the hddtemp script MOSTLY working (thanks for showing me those), which is why I'm back.  The hdtemp script is not returning SOME of my hdd temps; I updated the script to $tagsarray to include all 7 drives but 3 are not returning values.  Then I ran smartctl on the and all of my drives, including the ones that are missing, and they show  194 Temperature_Celsius and some show 190 Airflow_Temperature_Cel.  Do all of your drives show up appropriately?  Did you make any other edits to your script besides what you posted on the thread you listed?

 

My hddtemp.sh script is as follows:

#!/usr/bin/php
<?php

$tagsArray = array(
"/dev/sdb", 
"/dev/sdc", 
"/dev/sdd", 
"/dev/sde", 
"/dev/sdf", 
"/dev/sdg", 
"/dev/sdh", 
"/dev/sdi", 
);

//do system call and parse output for tag and value

foreach ($tagsArray as $tag) {

$call = "smartctl -A ".$tag;
$output = shell_exec($call);
preg_match("/Temperature.+(\d\d)$/im", $output, $match);

//send measurement, tag and value to influx

sendDB($match[1], $tag);

}

//end system call


//send to influxdb - you will need to change the parameters (influxserverIP, Tower, us-west) in the $curl to your setup, optionally change the telegraf to another database, but you must create the database in influxdb first. telegraf will already exist if you have set up the telegraf agent docker.

function sendDB($val, $tagname) {

$curl = "curl -i -XPOST 'http://192.168.1.253:8086/write?db=telegraf2' --data-binary 'HDTemp,host=Tower,region=us-east "
.$tagname."=".$val."'";
$execsr = exec($curl);

}


?>

Link to comment

The only change I could see is the way I have disk=$tagname and value=$val. (Makes it so you only need one query in Grafana to get all the data.) in the last function. This is mine:

function sendDB($val, $tagname) {
$curl = "curl -i -XPOST 'http://tygra.tribe.home:8086/write?db=telegraf' --data-binary 'disktemp,host=unraid,region=us-west,disk=".$tagname." "
."value=".$val."'";
$execsr = exec($curl);
}
?>

 

However, I ran the code that it runs on my box and the temperature output is different for different hard drives. The script is actually only working for 3 of my drives. They all have smartctl -A /dev/sbx output that looks like:

194 Temperature_Celsius     0x0022   118   093   000    Old_age   Always       -       25

 

The drives that aren't displaying temp in Grafana are have output like this:

194 Temperature_Celsius     0x0002   250   250   000    Old_age   Always       -       24 (Min/Max 10/43)

or

194 Temperature_Celsius     0x0022   026   040   000    Old_age   Always       -       26 (0 15 0 0 0)

 

What I'm pretty sure is happening is that the line

preg_match("/Temperature.+(\d\d)$/im", $output, $match);

doesn't match the two bottom patterns.

 

It's late and I'm going to bed, but either you can figure out the proper match or I'll try tomorrow.

Thanks for helping me find a problem with my plots.

 

 

 

Link to comment

The only change I could see is the way I have disk=$tagname and value=$val. (Makes it so you only need one query in Grafana to get all the data.) in the last function. This is mine:

function sendDB($val, $tagname) {
$curl = "curl -i -XPOST 'http://tygra.tribe.home:8086/write?db=telegraf' --data-binary 'disktemp,host=unraid,region=us-west,disk=".$tagname." "
."value=".$val."'";
$execsr = exec($curl);
}
?>

 

However, I ran the code that it runs on my box and the temperature output is different for different hard drives. The script is actually only working for 3 of my drives. They all have smartctl -A /dev/sbx output that looks like:

194 Temperature_Celsius     0x0022   118   093   000    Old_age   Always       -       25

 

The drives that aren't displaying temp in Grafana are have output like this:

194 Temperature_Celsius     0x0002   250   250   000    Old_age   Always       -       24 (Min/Max 10/43)

or

194 Temperature_Celsius     0x0022   026   040   000    Old_age   Always       -       26 (0 15 0 0 0)

 

What I'm pretty sure is happening is that the line

preg_match("/Temperature.+(\d\d)$/im", $output, $match);

doesn't match the two bottom patterns.

 

It's late and I'm going to bed, but either you can figure out the proper match or I'll try tomorrow.

Thanks for helping me find a problem with my plots.

 

Ok, I got it.  I changed the preg_match pattern to

"/Temperature.+\-\s+(\d\d).?/im"

which just looks for the first pair of digits after a dash and some whitespace and leaves the option for additonal characters after;  that relies entirely on "WHEN_FAILED" always being a dash so perhaps it's not the most robust method.  To test, I ran it against the similar bottom outputs to what you have, and received the correct temperatures.  Now I have it running in the hddtemp script and all of my drives are present and reporting.  Let me know if that change works for you as well.

Link to comment

Hey all, with the Grafana/influx/untelegraf combo, you all seem to be doing better than me .. And I'm wondering if you might be able to assist where I'm going wrong...

 

I can't seem to get the HDTemp graph to work. I used Viaduct's HDTemp script to push some data in to influx, which worked brilliantly!, as well as manually pushing in my own data, which also worked fine. But trying to grab that data back out is where it all fails ..

 

What the Table looks like:

 

> select * from HDTemp
name: HDTemp
time                    /dev/sda        /dev/sdc        /dev/sdh        host    region
----                    --------        --------        --------        ----    ------
1484224866545880159     40                                              kryten  au-west
1484225718567102466                     38                              kryten  us-west
1484225720589067936                                     40              kryten  us-west

 

And I've managed to get what I believe to be "the correct data" ..

 

> select "/dev/sda" from "HDTemp"
name: HDTemp
time                    /dev/sda
----                    --------
1484224866545880159     40

 

 

But I can't seem to get it inputted correctly in to Grafana .. I've tried a lot of config combinations ..

 

My current (failing) entry looks like;

 

http://imgur.com/3Jtimyl

 

Which translates to

SELECT "/dev/sda" FROM "HDTemp" WHERE $timeFilter GROUP BY time(5m) fill(0)

 

but no matter what I try, I get the error: "InfluxDB Error: Undefined"

 

anything at all you guys can suggest would be amazing ..

 

 

Link to comment

ok, fixed the "undefined" error, for some reason, it had stopped communicating with the database ... rebooting the docker fixed that ..

 

still can't get a graph to work for the drives though .. the panel info just says "no datapoints" .. I have managed to get the CPU graph working fine ..

 

If I could just get a screeny of someone elses hdtemp metric data .. that'd probably sort me out ..

 

 

Link to comment

Oh good. I had a similar issue when influxdb was on a different server than telegraf. The time was out of sync between them and it cause the data to show up at weird times. I had to set them both to use the same local ntp server so they were always in sync and that fixed it.

Link to comment

I am getting a failure when installing the mineos-node docker:

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="mineos-node" --net="bridge" -e TZ="America/Los_Angeles" -e HOST_OS="unRAID" -e "USER_PASSWORD"="mypass" -e "USER_PASSWORD"="mypass" -p 25565-25575:25565-25575/tcp -p 8443:8443/tcp -p 25565-25575:25565-25575/tcp -p 8443:8443/tcp -v "/mnt/user/appdata/minecraft/":"/var/games/minecraft":rw -v "/mnt/user/appdata/minecraft/":"/var/games/minecraft":rw -v "/mnt/user":"/unraid":rw hexparrot/mineos:node-jessie
Unable to find image 'hexparrot/mineos:node-jessie' locally
node-jessie: Pulling from hexparrot/mineos
386a066cd84a: Pulling fs layer
acff15b8d24c: Pulling fs layer
e5c87c19abf4: Pulling fs layer
38f779cec299: Pulling fs layer
3c20c36229de: Pulling fs layer
e0f409cca983: Pulling fs layer
afc04af539b4: Pulling fs layer
28709a13ccc7: Pulling fs layer
38f779cec299: Waiting
3c20c36229de: Waiting
afc04af539b4: Waiting
e0f409cca983: Waiting
28709a13ccc7: Waiting
acff15b8d24c: Verifying Checksum
acff15b8d24c: Download complete
38f779cec299: Verifying Checksum
38f779cec299: Download complete
3c20c36229de: Verifying Checksum
3c20c36229de: Download complete
386a066cd84a: Verifying Checksum
386a066cd84a: Download complete
afc04af539b4: Download complete
28709a13ccc7: Verifying Checksum
28709a13ccc7: Download complete
e0f409cca983: Verifying Checksum
e0f409cca983: Download complete
e5c87c19abf4: Verifying Checksum
e5c87c19abf4: Download complete
386a066cd84a: Pull complete
386a066cd84a: Pull complete
acff15b8d24c: Pull complete
acff15b8d24c: Pull complete
e5c87c19abf4: Pull complete
e5c87c19abf4: Pull complete
38f779cec299: Pull complete
38f779cec299: Pull complete
3c20c36229de: Pull complete
3c20c36229de: Pull complete
e0f409cca983: Pull complete
e0f409cca983: Pull complete
afc04af539b4: Pull complete
afc04af539b4: Pull complete
28709a13ccc7: Pull complete
28709a13ccc7: Pull complete
Digest: sha256:6f2664027e16c8ebeb9e1cdf440c32a44fe3560f0a1f9b46e47109bdf2cadaac
Status: Downloaded newer image for hexparrot/mineos:node-jessie
fdb223d4ae4e1d100d5da08d94b1b803475e4c932b1c424a4de4ba64ffc3d522
docker: Error response from daemon: failed to create endpoint mineos-node on network bridge: Bind for 0.0.0.0:25575 failed: port is already allocated.

The command failed.

 

port 25575 is not in use

 

any help would be appricited, I am pulling out what little hair I have left..

 

The Doc

Link to comment

I am getting a failure when installing the mineos-node docker:

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="mineos-node" --net="bridge" -e TZ="America/Los_Angeles" -e HOST_OS="unRAID" -e "USER_PASSWORD"="mypass" -e "USER_PASSWORD"="mypass" -p 25565-25575:25565-25575/tcp -p 8443:8443/tcp -p 25565-25575:25565-25575/tcp -p 8443:8443/tcp -v "/mnt/user/appdata/minecraft/":"/var/games/minecraft":rw -v "/mnt/user/appdata/minecraft/":"/var/games/minecraft":rw -v "/mnt/user":"/unraid":rw hexparrot/mineos:node-jessie
Unable to find image 'hexparrot/mineos:node-jessie' locally
node-jessie: Pulling from hexparrot/mineos
386a066cd84a: Pulling fs layer
acff15b8d24c: Pulling fs layer
e5c87c19abf4: Pulling fs layer
38f779cec299: Pulling fs layer
3c20c36229de: Pulling fs layer
e0f409cca983: Pulling fs layer
afc04af539b4: Pulling fs layer
28709a13ccc7: Pulling fs layer
38f779cec299: Waiting
3c20c36229de: Waiting
afc04af539b4: Waiting
e0f409cca983: Waiting
28709a13ccc7: Waiting
acff15b8d24c: Verifying Checksum
acff15b8d24c: Download complete
38f779cec299: Verifying Checksum
38f779cec299: Download complete
3c20c36229de: Verifying Checksum
3c20c36229de: Download complete
386a066cd84a: Verifying Checksum
386a066cd84a: Download complete
afc04af539b4: Download complete
28709a13ccc7: Verifying Checksum
28709a13ccc7: Download complete
e0f409cca983: Verifying Checksum
e0f409cca983: Download complete
e5c87c19abf4: Verifying Checksum
e5c87c19abf4: Download complete
386a066cd84a: Pull complete
386a066cd84a: Pull complete
acff15b8d24c: Pull complete
acff15b8d24c: Pull complete
e5c87c19abf4: Pull complete
e5c87c19abf4: Pull complete
38f779cec299: Pull complete
38f779cec299: Pull complete
3c20c36229de: Pull complete
3c20c36229de: Pull complete
e0f409cca983: Pull complete
e0f409cca983: Pull complete
afc04af539b4: Pull complete
afc04af539b4: Pull complete
28709a13ccc7: Pull complete
28709a13ccc7: Pull complete
Digest: sha256:6f2664027e16c8ebeb9e1cdf440c32a44fe3560f0a1f9b46e47109bdf2cadaac
Status: Downloaded newer image for hexparrot/mineos:node-jessie
fdb223d4ae4e1d100d5da08d94b1b803475e4c932b1c424a4de4ba64ffc3d522
docker: Error response from daemon: failed to create endpoint mineos-node on network bridge: Bind for 0.0.0.0:25575 failed: port is already allocated.

The command failed.

 

port 25575 is not in use

 

any help would be appricited, I am pulling out what little hair I have left..

 

The Doc

It looks like the command to start the container has everything in there twice. Check in the advanced view that the ports, volumes, and environment variables are only defined once. If they are only there once, I'd day so a restart because that is really strange behavior.

 

Sent from my Pixel XL using Tapatalk

 

 

Link to comment

Just wondering who the ownership of the files created by mineOS should be? mine are root:root & during a spigot build, it never seems to finish?

 

My files are root:root. I get the same error with spigot builds, but I don't know anything about spigot. It all works with standard jars or even forge jars for me.

 

This may be the issue with Building Spigot, I see hexparrot updated 12 days ago

 

SHELL=/bin/bash
Otherwise spigot does not build (fails on ApplyPatches.sh)

 

All my current servers are Spigot servers, i'll have to try and figure out the issue!!

Link to comment

I've got another thread specific to my issue, but was suggested to post here.

https://lime-technology.com/forum/index.php?topic=55847.0

Issue: Docker will not start. the .conf file is in the appropriate location. Not sure what the below logs are telling me. I've deleted and tried to add again with same issue.

 

Contents of docker.log:

time="2017-01-22T07:59:54.001220628-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T07:59:54.001267923-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

time="2017-01-22T08:00:04.392312922-05:00" level=error msg="Handler for POST /containers/create returned error: No such image: telegraf (tag: latest)"

time="2017-01-22T08:00:04.392361541-05:00" level=error msg="HTTP Error" err="No such image: telegraf (tag: latest)" statusCode=404

time="2017-01-22T08:00:39.574439066-05:00" level=error msg="Handler for POST /containers/create returned error: Conflict. The name \"telegraf\" is already in use by container a52ecba4b5fc. You have to delete (or rename) that container to be able to reuse that name."

time="2017-01-22T08:00:39.574495067-05:00" level=error msg="HTTP Error" err="Conflict. The name \"telegraf\" is already in use by container a52ecba4b5fc. You have to delete (or rename) that container to be able to reuse that name." statusCode=409

time="2017-01-22T08:22:01.441279607-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T08:22:01.441326640-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

time="2017-01-22T08:36:19.265370324-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T08:36:19.265415682-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

 

Link to comment

I've got another thread specific to my issue, but was suggested to post here.

https://lime-technology.com/forum/index.php?topic=55847.0

Issue: Docker will not start. the .conf file is in the appropriate location. Not sure what the below logs are telling me. I've deleted and tried to add again with same issue.

 

Contents of docker.log:

time="2017-01-22T07:59:54.001220628-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T07:59:54.001267923-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

time="2017-01-22T08:00:04.392312922-05:00" level=error msg="Handler for POST /containers/create returned error: No such image: telegraf (tag: latest)"

time="2017-01-22T08:00:04.392361541-05:00" level=error msg="HTTP Error" err="No such image: telegraf (tag: latest)" statusCode=404

time="2017-01-22T08:00:39.574439066-05:00" level=error msg="Handler for POST /containers/create returned error: Conflict. The name \"telegraf\" is already in use by container a52ecba4b5fc. You have to delete (or rename) that container to be able to reuse that name."

time="2017-01-22T08:00:39.574495067-05:00" level=error msg="HTTP Error" err="Conflict. The name \"telegraf\" is already in use by container a52ecba4b5fc. You have to delete (or rename) that container to be able to reuse that name." statusCode=409

time="2017-01-22T08:22:01.441279607-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T08:22:01.441326640-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

time="2017-01-22T08:36:19.265370324-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T08:36:19.265415682-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

 

If you check my sig, it'll give you some helpful info on how to post your docker run command.

Link to comment

If you check my sig, it'll give you some helpful info on how to post your docker run command.

 

Here is a picture when I tried to re-create the telegraf container pqBldHEh.jpg

 

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="telegraf" --net="host" --privileged="true" -e HOST_PROC="/rootfs/proc" -e HOST_SYS="/rootfs/sys" -e HOST_ETC="/rootfs/etc" -e HOST_MOUNT_PREFIX="/rootfs" -e TZ="America/New_York" -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/user/appdata/telegraf/telegraf.conf":"/etc/telegraf/telegraf.conf":rw telegraf:1.0-alpine

Link to comment

@pokmiuhy Your log says that telegraf:

create returned error: Conflict. The name \"telegraf\" is already in use by container a52ecba4b5fc. You have to delete (or rename) that container to be able to reuse that name.

 

Can you make sure that there are no other contains with that name? If you open up to the command prompt (putty or if you have a monitor on your unRAID box) you can type

docker ps -a

. This will show all containers. If there are any that are named telegraf you can type

docker rm telegraf

to remove it.

 

If that doesn't work post the new logs.

Link to comment

Here is the output...

 

 

root@Hollywood:/mnt/user/appdata/telegraf/telegraf.conf# docker ps -a

CONTAINER ID        IMAGE                COMMAND                CREATED            STATUS              PORTS              NAMES

9019198678bf        telegraf:1.0-alpine  "/entrypoint.sh tele  About an hour ago                                          telegraf

root@Hollywood:/mnt/user/appdata/telegraf/telegraf.conf#

 

and here is the docker.log file

 

root@Hollywood:/var/log# tail docker.log

time="2017-01-22T17:11:51.820267584-05:00" level=error msg="Handler for POST /containers/create returned error: No such image: telegraf (tag: latest)"

time="2017-01-22T17:11:51.820317841-05:00" level=error msg="HTTP Error" err="No such image: telegraf (tag: latest)" statusCode=404

time="2017-01-22T17:15:38.295712969-05:00" level=error msg="Handler for POST /images/create returned error: Invalid repository name (telegraf:1.0-alpine), only [a-z0-9-_.] are allowed"

time="2017-01-22T17:15:38.295769839-05:00" level=error msg="HTTP Error" err="Invalid repository name (telegraf:1.0-alpine), only [a-z0-9-_.] are allowed" statusCode=500

time="2017-01-22T17:15:38.344527428-05:00" level=error msg="Handler for POST /containers/create returned error: No such image: telegraf:1.0-alpine (tag: 1.0-alpine)"

time="2017-01-22T17:15:38.344576266-05:00" level=error msg="HTTP Error" err="No such image: telegraf:1.0-alpine (tag: 1.0-alpine)" statusCode=404

time="2017-01-22T17:15:44.748237211-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container 9019198678bfbb19bd9845604a9260cb5d3ac2a68631cdd42a0d284cba81a465: [8] System error: not a directory"

time="2017-01-22T17:15:44.748287605-05:00" level=error msg="HTTP Error" err="Cannot start container 9019198678bfbb19bd9845604a9260cb5d3ac2a68631cdd42a0d284cba81a465: [8] System error: not a directory" statusCode=500

time="2017-01-22T17:22:10.525209560-05:00" level=error msg="Handler for POST /containers/{name:.*}/start returned error: Cannot start container telegraf: [8] System error: not a directory"

time="2017-01-22T17:22:10.525254243-05:00" level=error msg="HTTP Error" err="Cannot start container telegraf: [8] System error: not a directory" statusCode=500

root@Hollywood:/var/log#

 

Link to comment

I'd suggest removing the container and then removing the image.

 

docker rm telegraf

 

Then run

docker images

 

Then docker rmi <the image id, something like a352b......>

 

You really only need the first 4 or so letters of the image id, then it will do a match and find it.

 

Then refresh the unraid docker web interface and pull down a new community app.

Link to comment

Is the problem specific to this the telegraf container? Can you get something else to work?

 

I don't have any others. Just tried apache with no luck. Any suggested app's to try?

 

Try watchtower, its a simple app that updates your other docker images to the latest versions.

Link to comment

Is the problem specific to this the telegraf container? Can you get something else to work?

 

I don't have any others. Just tried apache with no luck. Any suggested app's to try?

 

Try watchtower, its a simple app that updates your other docker images to the latest versions.

 

That worked. It's running.

Link to comment

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.