Smolo Posted March 28, 2021 Share Posted March 28, 2021 Hi, hat jemand den blanken InfluxDB Container am laufen? Wenn ja was muss getan werden das der Container die Daten / Config auch entsprechend im AppData Folder ablegt? Beste Grüße Smolo PS: Influx + Docker Neuling Quote Link to comment
Ford Prefect Posted March 29, 2021 Share Posted March 29, 2021 (edited) ...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 March 29, 2021 by Ford Prefect 1 Quote Link to comment
Smolo Posted March 29, 2021 Author Share Posted March 29, 2021 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> Quote Link to comment
Ford Prefect Posted March 29, 2021 Share Posted March 29, 2021 ...bei mir sind bei Verwendung von /var/lib/influxdb > /mnt/user/appdata/influxdb dann due Verzeichnisse data, meta und wal angelegt. Mit der 2.0er habe ich es aber noch nicht probiert...Gesendet von meinem SM-G960F mit Tapatalk Quote Link to comment
Ford Prefect Posted March 29, 2021 Share Posted March 29, 2021 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? 1 Quote Link to comment
Smolo Posted March 29, 2021 Author Share Posted March 29, 2021 Misst da habe ich ja noch gar nicht dran gedacht das muss ich unbedingt checken, denn ich hab erst vor kurzem Influx auf dem RP4 drauf gepackt und da hab ich mit Sicherheit nicht an solche Major Changes gedacht 🤔 Quote Link to comment
Ford Prefect Posted March 29, 2021 Share Posted March 29, 2021 ...mach den Gegen-Test und installiere im Container die influxdb:1.8 ...das geht am schnellsten 😄 Quote Link to comment
Andy007 Posted November 23, 2021 Share Posted November 23, 2021 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 Quote Link to comment
Andy007 Posted November 23, 2021 Share Posted November 23, 2021 ...ich hänge mal einen Auszug der Protokolldatei des Containers an. Bei der Stelle "No such container..." war der Zeitpunkt als ich eine Pararmeteränderung in den Einstellungen des Containers gemacht habe. Ansonsten gibt es nur die zwei (blauen) Systemmeldungen. Quote Link to comment
alturismo Posted November 24, 2021 Share Posted November 24, 2021 7 hours ago, Andy007 said: war der Zeitpunkt als ich eine Pararmeteränderung in den Einstellungen des Containers gemacht habe. wenn du an den container parameter etwas änderst .. ändert sich auch die ID des containers, daher findet er "live" auch das log dann nicht mehr, schließen und log neu öffnen. Quote Link to comment
mgutt Posted November 24, 2021 Share Posted November 24, 2021 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. Quote Link to comment
Th. Maier Posted December 26, 2022 Share Posted December 26, 2022 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! Quote Link to comment
alturismo Posted December 27, 2022 Share Posted December 27, 2022 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 ? Quote Link to comment
Th. Maier Posted December 27, 2022 Share Posted December 27, 2022 (edited) Ich komme (ziehe gerade alles auf Unraid um) von der Synology und dort konnte ich ein WebInterface aufrufen. (Hier mal der Screenshot) Auf meinem Docker in Unraid gibt es auch den Button "Web-Interface", öffnet aber leider nicht auf dem Port. Edited December 27, 2022 by Th. Maier Quote Link to comment
alturismo Posted December 27, 2022 Share Posted December 27, 2022 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 Quote Link to comment
Th. Maier Posted December 27, 2022 Share Posted December 27, 2022 Da ich ziemlich "neu" in dem Thema "unraid" bin, denke sitzt das Problem 45cm vor dem Bildschirm. Gibt es einen extra Thread bei unraid für influx oder meinst du ein Forum für Influx? P.S: Vielen Dank für deine Tipps Quote Link to comment
Solution fir3drag0n Posted December 27, 2022 Solution Share Posted December 27, 2022 Normalerweise ist das influx-webinterface über Port 8086 erreichbar, zumindest bei mir noch vor zwei Tagen. Ggf. manuell im Browser eingeben, hat funktioniert. Quote Link to comment
Th. Maier Posted December 27, 2022 Share Posted December 27, 2022 Ach MENSCH! Wenn man rechtsklickt öffnet er den Port 8083 und nicht den Port 8086!!! Kaum gibt man den richtigen Port ein funktioniert es! Quote Link to comment
Daen Posted February 13, 2023 Share Posted February 13, 2023 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 Quote Link to comment
ThomasH71 Posted March 31, 2023 Share Posted March 31, 2023 Hallo, ich habe auch mal eine Frage zur InfluxDB. Sollte man den Container auch im Cache ablegen oder in Array speichern, da die Daten (ich verwende auch HomeAssistant) ziemlich viel werden könnten. Quote Link to comment
alturismo Posted March 31, 2023 Share Posted March 31, 2023 1 hour ago, ThomasH71 said: ich habe auch mal eine Frage zur InfluxDB. Sollte man den Container auch im Cache ablegen oder in Array speichern, da die Daten (ich verwende auch HomeAssistant) ziemlich viel werden könnten. Frage retour, willst du das dein array permanent läuft ? dann hast du die Antwort 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.