Unraid InfluxDB Docker Einrichtung?!


Smolo
Go to solution Solved by fir3drag0n,

Recommended Posts

...der Pfad innerhalb des containers ist " /var/lib/influxdb" ...einfach das mapping erstellen im Template.

 

Allerdings ist das neueste Image (influxdb:latest) seit ein paar Wochen nun influxdb V2.0...da ist eine Authentifizierung notwendig, wenn man auf die DB zugreifen will.

Das war  bis zur Vorversion (V1.8.x) nicht so.

Wenn Du also als Neuling den alten "klassischen" Anleitungen im Internet folgen willst, installiere die letzte V1.8 -> also im Docker Template bei "Repository" die "influxdb:1.8" eingeben

Edited by Ford Prefect
  • Thanks 1
Link to comment

Danke, das habe ich gestern auch schon festgestellt und mir die Finger gebrochen bis ich gemerkt habe wo es happert. Ich komme leider von meinem IoBroker Adapter noch nicht auf die DB drauf und bekomme immer ein Connection refused. Soweit ich gesehen habe ist die Authentifizierung per Web wohl auch deaktiviert daher hab ich dann überhaupt erst die Config Files gesucht und gesehen das nichts da ist unter AppData.

 

D.h. wenn ich im Container  /var/lib/influxdb > /mnt/user/appdata/influxdb/data hinterlege schiebt er automatisch die Files rüber oder wie? Und solange liegen die im Docker Image? Ich hatte schon versucht im Unraid Grafana Docker zu spicken aber da bin ich nicht so richtig schlau geworden.

 

Für alle anderen die mit der Auth ein Problem haben, Influx benötigt zuerst eine Config und erst danach kann man einen Benutzer einrichten. Dies funktioniert nur auf der Konsole bzw. hab ich im Webinterface nichts dazu gefunden. Der Token steht beim User in der Ersteinrichtung drinnen. Die Ports sind eigentlich 8083 u 8086 bei mir klappt es nur über 8086

influx config create -a -n <name config> -t <token vom default user> -u http://<ip>:8086

influx user create -n "<benutzername>" -p "<password>" -o <org name>

Link to comment
2 hours ago, Smolo said:

Danke, das habe ich gestern auch schon festgestellt und mir die Finger gebrochen bis ich gemerkt habe wo es happert. Ich komme leider von meinem IoBroker Adapter noch nicht auf die DB drauf und bekomme immer ein Connection refused. Soweit ich gesehen habe ist die Authentifizierung per Web wohl auch deaktiviert daher hab ich dann überhaupt erst die Config Files gesucht und gesehen das nichts da ist unter AppData.

Wenn Du zB die IP des Containers nicht anpingen kannst, stimmt mMn an der Stelle etwas nicht. 

Connection refused heisst aber doch wohl, das der Container (IP) erreicht wird, aber der Port nicht aktiviert ist.

Kann der ioBroker Adapter (bzw. die installierte Version) mit der neuen, Token basierten Authentifizierungsmethode von influxdb V2 umgehen?

 

  • Thanks 1
Link to comment
  • 7 months later...

Hallo in die Runde,

ich verzweifle gerade an der Installation von influxdb als Container. Hab zunächst auch erst mal auf 1.8 installiert um die hier beschriebenen Probleme zu umgehen.

Allerdings habe ich hier unerklärliche Phänomene. Zunächst startete der Container überhaupt nicht. Dann habe ich mit den Einstellungen experimentiert. Dabei habe ich von Netzwerktyp: „Bridge“ auf „Host“ umgestellt. Danach startete der Container. In /mnt/user/appdata wurde das Verzeichnis influxdb erzeugt, dieses enthielt die Verzeichnisse data und meta. Alles bis hierher scheint richtig zu sein.

Warum stoppt der Container dann sofort wieder???

Ein direktes Starten über Docker ist dann erst wieder nach einer Änderung der Container-Parameter möglich. Beispielsweise einer Änderung in privilegierte Rechte. Der sofortige Stopp besteht aber immer noch.

Welche Einstellungen habt Ihr eigentlich im influxdb-Container?

 

Ziel der Mühe soll es sein eine Datenauswertung in iobroker zu machen.

 

PS: Falls ich etwas falsch rüberbringe, oder unverständlich ist – ich bin noch ziemlich am Anfang.  

 

Danke

Zwischenablage02.jpg

Link to comment
On 11/23/2021 at 10:29 PM, Andy007 said:

Dabei habe ich von Netzwerktyp: „Bridge“ auf „Host“ umgestellt. Danach startete der Container

Wenn er vorher nicht gestartet ist, dann mit hoher Wahrscheinlichkeit, weil ein anderer Container den selben Port bereits verwendet. In dem Fall heißt es den/die Port(s) anpassen. Das wird aber auch als Fehlermeldung auf der Folgeseite angezeigt.

Link to comment
  • 1 year later...
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
2022-12-26T21:16:14.463191504Z  info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
2022-12-26T21:16:14.720251825Z  info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
ts=2022-12-26T21:16:14.836194Z lvl=info msg="Welcome to InfluxDB" log_id=0f04XpT0000 version=v2.6.0 commit=24a2b621ea build_date=2022-12-15T18:47:00Z log_level=info
ts=2022-12-26T21:16:14.836219Z lvl=warn msg="nats-port argument is deprecated and unused" log_id=0f04XpT0000
ts=2022-12-26T21:16:14.861153Z lvl=info msg="Resources opened" log_id=0f04XpT0000 service=bolt path=/var/lib/influxdb2/influxd.bolt
ts=2022-12-26T21:16:14.861315Z lvl=info msg="Resources opened" log_id=0f04XpT0000 service=sqlite path=/var/lib/influxdb2/influxd.sqlite
ts=2022-12-26T21:16:14.924830Z lvl=info msg="Using data dir" log_id=0f04XpT0000 service=storage-engine service=store path=/var/lib/influxdb2/engine/data
ts=2022-12-26T21:16:14.925022Z lvl=info msg="Compaction settings" log_id=0f04XpT0000 service=storage-engine service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
ts=2022-12-26T21:16:14.925082Z lvl=info msg="Open store (start)" log_id=0f04XpT0000 service=storage-engine service=store op_name=tsdb_open op_event=start
ts=2022-12-26T21:16:14.925392Z lvl=info msg="Open store (end)" log_id=0f04XpT0000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.361ms
ts=2022-12-26T21:16:14.925423Z lvl=info msg="Starting retention policy enforcement service" log_id=0f04XpT0000 service=retention check_interval=30m
ts=2022-12-26T21:16:14.925436Z lvl=info msg="Starting precreation service" log_id=0f04XpT0000 service=shard-precreation check_interval=10m advance_period=30m
ts=2022-12-26T21:16:14.926751Z lvl=info msg="Starting query controller" log_id=0f04XpT0000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
ts=2022-12-26T21:16:14.928186Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0f04XpT0000 max_select_point=0 max_select_series=0 max_select_buckets=0
ts=2022-12-26T21:16:14.990637Z lvl=info msg=Starting log_id=0f04XpT0000 service=telemetry interval=8h
ts=2022-12-26T21:16:14.990630Z lvl=info msg=Listening log_id=0f04XpT0000 service=tcp-listener transport=http addr=:8086 port=8086
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
2022-12-26T21:25:49.116929837Z  info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
2022-12-26T21:25:49.359082062Z  info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
ts=2022-12-26T21:25:49.491608Z lvl=info msg="Welcome to InfluxDB" log_id=0f054uCl000 version=v2.6.0 commit=24a2b621ea build_date=2022-12-15T18:47:00Z log_level=info
ts=2022-12-26T21:25:49.491785Z lvl=warn msg="nats-port argument is deprecated and unused" log_id=0f054uCl000
ts=2022-12-26T21:25:49.512293Z lvl=info msg="Resources opened" log_id=0f054uCl000 service=bolt path=/var/lib/influxdb2/influxd.bolt
ts=2022-12-26T21:25:49.512445Z lvl=info msg="Resources opened" log_id=0f054uCl000 service=sqlite path=/var/lib/influxdb2/influxd.sqlite
ts=2022-12-26T21:25:49.542654Z lvl=info msg="Checking InfluxDB metadata for prior version." log_id=0f054uCl000 bolt_path=/var/lib/influxdb2/influxd.bolt
ts=2022-12-26T21:25:49.543828Z lvl=info msg="Using data dir" log_id=0f054uCl000 service=storage-engine service=store path=/var/lib/influxdb2/engine/data
ts=2022-12-26T21:25:49.544111Z lvl=info msg="Compaction settings" log_id=0f054uCl000 service=storage-engine service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
ts=2022-12-26T21:25:49.544124Z lvl=info msg="Open store (start)" log_id=0f054uCl000 service=storage-engine service=store op_name=tsdb_open op_event=start
ts=2022-12-26T21:25:49.544861Z lvl=info msg="Open store (end)" log_id=0f054uCl000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.737ms
ts=2022-12-26T21:25:49.544998Z lvl=info msg="Starting retention policy enforcement service" log_id=0f054uCl000 service=retention check_interval=30m
ts=2022-12-26T21:25:49.545377Z lvl=info msg="Starting precreation service" log_id=0f054uCl000 service=shard-precreation check_interval=10m advance_period=30m
ts=2022-12-26T21:25:49.547249Z lvl=info msg="Starting query controller" log_id=0f054uCl000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
ts=2022-12-26T21:25:49.551269Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0f054uCl000 max_select_point=0 max_select_series=0 max_select_buckets=0
ts=2022-12-26T21:25:49.589909Z lvl=info msg=Starting log_id=0f054uCl000 service=telemetry interval=8h
ts=2022-12-26T21:25:49.590676Z lvl=info msg=Listening log_id=0f054uCl000 service=tcp-listener transport=http addr=:8086 port=8086
ts=2022-12-26T21:29:24.477551Z lvl=error msg="api error encountered" log_id=0f054uCl000 error="authorization must include permissions"
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
2022-12-26T21:33:09.005480172Z  info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
Command "print-config" is deprecated, use the influx-cli command server-config to display the configuration values from the running server
2022-12-26T21:33:09.263837910Z  info    found existing boltdb file, skipping setup wrapper      {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"}
ts=2022-12-26T21:33:09.385690Z lvl=info msg="Welcome to InfluxDB" log_id=0f05VkYG000 version=v2.6.0 commit=24a2b621ea build_date=2022-12-15T18:47:00Z log_level=info
ts=2022-12-26T21:33:09.385875Z lvl=warn msg="nats-port argument is deprecated and unused" log_id=0f05VkYG000
ts=2022-12-26T21:33:09.410729Z lvl=info msg="Resources opened" log_id=0f05VkYG000 service=bolt path=/var/lib/influxdb2/influxd.bolt
ts=2022-12-26T21:33:09.410955Z lvl=info msg="Resources opened" log_id=0f05VkYG000 service=sqlite path=/var/lib/influxdb2/influxd.sqlite
ts=2022-12-26T21:33:09.449205Z lvl=info msg="Checking InfluxDB metadata for prior version." log_id=0f05VkYG000 bolt_path=/var/lib/influxdb2/influxd.bolt
ts=2022-12-26T21:33:09.449745Z lvl=info msg="Using data dir" log_id=0f05VkYG000 service=storage-engine service=store path=/var/lib/influxdb2/engine/data
ts=2022-12-26T21:33:09.450108Z lvl=info msg="Compaction settings" log_id=0f05VkYG000 service=storage-engine service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648
ts=2022-12-26T21:33:09.450120Z lvl=info msg="Open store (start)" log_id=0f05VkYG000 service=storage-engine service=store op_name=tsdb_open op_event=start
ts=2022-12-26T21:33:09.450381Z lvl=info msg="Open store (end)" log_id=0f05VkYG000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.262ms
ts=2022-12-26T21:33:09.450434Z lvl=info msg="Starting retention policy enforcement service" log_id=0f05VkYG000 service=retention check_interval=30m
ts=2022-12-26T21:33:09.450458Z lvl=info msg="Starting precreation service" log_id=0f05VkYG000 service=shard-precreation check_interval=10m advance_period=30m
ts=2022-12-26T21:33:09.451675Z lvl=info msg="Starting query controller" log_id=0f05VkYG000 service=storage-reads concurrency_quota=1024 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=1024
ts=2022-12-26T21:33:09.453231Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0f05VkYG000 max_select_point=0 max_select_series=0 max_select_buckets=0
ts=2022-12-26T21:33:09.503842Z lvl=info msg=Starting log_id=0f05VkYG000 service=telemetry interval=8h
ts=2022-12-26T21:33:09.503846Z lvl=info msg=Listening log_id=0f05VkYG000 service=tcp-listener transport=http addr=:8086 port=8086

Hallo zusammen,

 

ich habe Probleme das WebInterface meines Influxdb Docker aufzurufen. (Der Port ist nicht durch ein anderen Docker belegt)

Auch eine Neuinstallation des Dockers hat nix gebracht.

Der Docker selbst laeuft und ich kann über die Console auch "influx setup" starten, Token abfrage und Version abfragen.

Weiß jemand woran es liegen könnete?

Vielen Dank!

 

P.S: Bisher könnte ich alles als stiller Leser lösen! Ein super Forum!

 

Link to comment
6 hours ago, Th. Maier said:

ich habe Probleme das WebInterface meines Influxdb Docker aufzurufen. (Der Port ist nicht durch ein anderen Docker belegt)

Auch eine Neuinstallation des Dockers hat nix gebracht.

ich frag mal ganz frei (schon länger her wo ich influx genutzt hatte), webinterface ? wäre mir fremd dass Influx so etwas hätte ?

Link to comment
2 hours ago, Th. Maier said:

Auf  meinem Docker in Unraid gibt es auch den Button "Web-Interface", öffnet aber leider nicht auf dem Port.

der Button an sich hängt nur am Eintrag in der Docker Konfig, mal egal ob da ein webinterface ist oder nicht ;)

 

aber, es scheint ja eventuell eins zu geben, da können dann andere sicher besser helfen, oder du fragst besser im influx thread nach

Link to comment
  • 1 month later...

Nabend zusammen,

 

ich habe ein Problem bei welchem ich nicht weiterkomme. Der Container selber läuft. iobroker habe ich auch mit der influxdb 2 verbunden, Daten werden reingeschrieben alles super. Nun möchte ich grafana mit der influxdb 2 verbinden. Das klappt nicht bzw. es klappt nur wenn ich bei der Query Language Flux auswähle statt InfluxQL.

 

Ich habe eine config Datei wie oben Beschrieben erstellt. Dennoch bekomme ich immer den Fehler "error reading InfluxDB. Status Code: 401

 

Hat jemand vielleicht eine Idee?

 

Danke und viele Grüße
 

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.