Martmiwp Posted March 2, 2021 Share Posted March 2, 2021 (edited) Hallo! Ich habe ein Problem mit influxDB. Ich hatte die App installiert und etwas mit Openhab probiert. Um einen "sauberen" Start hinzulegen habe ich influx deinstalliert - die Verzeichnisse auf appdata umbenannt, damit sie weg sind. Bei der Neuinstallation von influx habe ich folgendes Phänomen: - wenn ich über die Console influx aufrufe, meldet sich der Client mit den Optionen # influx Influx Client Usage: influx [command] Available Commands: apply Apply a template to manage resources auth Authorization management commands backup Backup database bucket Bucket management commands completion Generates completion scripts config Config management commands dashboards List Dashboard(s). delete Delete points from influxDB export Export existing resources Damit kann ich keine neue DB usw. anlegen - Mir fällt auf, dass bei ps -eaf der influxd prozess von einem user und nicht von root gestartet wurde - wenn ich neu installiere, sind schon Teile der Software im Cache - kann es daran liegen - Andere container (Openhab, squeezebox...) laufen - - Software Unrais 6.8.3 Meine Frage: Was mache ich da falsch? Ich habe schon alles gelöscht und mehrfach neu installiert, aber der Zustand bleibt. DANKE Das Log zeigt: 2021-03-02T07:45:02.636829815Z info found existing boltdb file, skipping setup wrapper {"system": "docker", "bolt_path": "/var/lib/influxdb2/influxd.bolt"} ts=2021-03-02T07:45:06.280497Z lvl=info msg="Welcome to InfluxDB" log_id=0SdUCpv0000 version=2.0.4 commit=4e7a59bb9a build_date=2021-02-08T17:47:02Z ts=2021-03-02T07:45:06.321158Z lvl=info msg="Resources opened" log_id=0SdUCpv0000 service=bolt path=/var/lib/influxdb2/influxd.bolt ts=2021-03-02T07:45:06.625171Z lvl=info msg="Using data dir" log_id=0SdUCpv0000 service=storage-engine service=store path=/var/lib/influxdb2/engine/data ts=2021-03-02T07:45:06.625200Z lvl=info msg="Compaction settings" log_id=0SdUCpv0000 service=storage-engine service=store max_concurrent_compactions=4 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648 ts=2021-03-02T07:45:06.625210Z lvl=info msg="Open store (start)" log_id=0SdUCpv0000 service=storage-engine service=store op_name=tsdb_open op_event=start ts=2021-03-02T07:45:06.625265Z lvl=info msg="Open store (end)" log_id=0SdUCpv0000 service=storage-engine service=store op_name=tsdb_open op_event=end op_elapsed=0.058ms ts=2021-03-02T07:45:06.625293Z lvl=info msg="Starting retention policy enforcement service" log_id=0SdUCpv0000 service=retention check_interval=30m ts=2021-03-02T07:45:06.625312Z lvl=info msg="Starting precreation service" log_id=0SdUCpv0000 service=shard-precreation check_interval=10m advance_period=30m ts=2021-03-02T07:45:06.625349Z lvl=info msg="Starting query controller" log_id=0SdUCpv0000 service=storage-reads concurrency_quota=10 initial_memory_bytes_quota_per_query=9223372036854775807 memory_bytes_quota_per_query=9223372036854775807 max_memory_bytes=0 queue_size=10 ts=2021-03-02T07:45:06.627200Z lvl=info msg="Configuring InfluxQL statement executor (zeros indicate unlimited)." log_id=0SdUCpv0000 max_select_point=0 max_select_series=0 max_select_buckets=0 ts=2021-03-02T07:45:07.050988Z lvl=info msg=Starting log_id=0SdUCpv0000 service=telemetry interval=8h ts=2021-03-02T07:45:07.050984Z lvl=info msg=Listening log_id=0SdUCpv0000 transport=http addr=:8086 port=8086 Edited March 2, 2021 by Martmiwp Quote Link to comment
Ford Prefect Posted March 2, 2021 Share Posted March 2, 2021 IinfluxDb Container ist auch auf V2.x upgedated, aber die Auto-Migration funktioniert noch nicht. In V2 ist Authentication required 🤣 ...im Docker template nicht auf "latest", sondern auf "v1.8", -> "influxdb:1.8" im Eintrag "Repository" stellen und warten, bis der v2 Docker funktioniert Quote Link to comment
Martmiwp Posted March 2, 2021 Author Share Posted March 2, 2021 DANKE !!! - das war es ! ... da hat sich das Update und meine Bastelei überlagert. Bad timing. 1 Quote Link to comment
Cyboc Posted March 9, 2021 Share Posted March 9, 2021 Ich habe mich heute auch damit befasst und nach einigem rumprobieren die neue Datenbank-Version zum laufen bekommen. Der Influx-DB Container braucht weitere Parameter (beschrieben auf der Docker-Hub Seite), dann kann in der Web-Oberfläche ein Token generiert werden. Bei Grafa muss dann die Datenquelle angepasst werden, wie z.B. statt Basic-Auth den den neu erstellten Token sowie die im Influx-DB angeben Containerparameter wie Organisation und Bucket. Das Problem ist nur, dass somit alte Dashboard Konfigurationen anscheinend komplett neue Queries benötigen. Quote Link to comment
Ford Prefect Posted March 10, 2021 Share Posted March 10, 2021 (edited) Hmmm...ja, interessant. Als das "Problem" auftrat, gab es noch keinen Migrations-Prozess für den Docker auf der Wiki-Seite von Influxdata...das ist jetzt anders: https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/docker/ Da steht auch: nfluxDB 2.x provides a 1.x compatibility API, but expects a different storage layout on disk. To account for theses differences, the InfluxDB Docker image migrates 1.x data and into 2.x-compatible data automatically before booting the influxd server. ...mal schauen, ob es da nicht auch eine Hilfeseite für den Query-Teil gibt. Evtl. muss man die alte API nur als Alternative/Standard setzen um alte Queries behalten zu können. Edit: https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/#dashboards Dashboards You can continue to use your existing dashboards and visualization tools with InfluxDB 2.0 via the 1.x read compatibility API. The upgrade process creates DBRP mappings to ensure existing users can execute InfluxQL queries with the appropriate permissions. Edited March 10, 2021 by Ford Prefect Quote Link to comment
jesperbrh Posted March 12, 2021 Share Posted March 12, 2021 On 3/2/2021 at 9:18 AM, Ford Prefect said: IinfluxDb Container ist auch auf V2.x upgedated, aber die Auto-Migration funktioniert noch nicht. In V2 ist Authentication required 🤣 ...im Docker template nicht auf "latest", sondern auf "v1.8", -> "influxdb:1.8" im Eintrag "Repository" stellen und warten, bis der v2 Docker funktioniert thank you very much from Denmark 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.