avenga
Goto Top

Influxdb startet nicht mehr nach Update

Hallo,
ich habe meinen RPi heute geupdatet, wie jede Woche.
Influx wurde dabei geupdatet, wie schon oft.

Nur nach dem reboot startet es nicht mehr:

1
2
3

Zugriff verweigert.

Jemand eine Idee wie ich das wieder zum laufen kriege könnte ?

influxd läuft !

1.8.7-1 ist installiert.

MfG

Content-Key: 1101649770

Url: https://administrator.de/contentid/1101649770

Printed on: April 25, 2024 at 05:04 o'clock

Member: HanTrio
Solution HanTrio Jul 30, 2021 at 05:39:01 (UTC)
Goto Top
"Permission denied" mit einem explizit genannten file - wie sehen da die Rechte aus bei:
/usr/lib/influxdb/scripts/influxd-systemd-start.sh
?
Fehlt evtl. das exec Bit, also hilft ggf.
chmod +x
?

Ansonsten, was passiert, wenn du
systemctl start influxdb
mal testweise mit nem sudo ausführst?
Member: cykes
cykes Jul 30, 2021 at 05:39:07 (UTC)
Goto Top
Moin,

es wäre hilfreich, wenn Du Deine Logauszüge etc. hier als Text in Codeblöcke und nicht als Screenshots einstellst.

Da ja mehrfach "Permission Denied" bei den Startversuchen als Fehlermeldung kommt, überprüfe doch mal die Berechtigungen sämtlicher Scripte und der ausführbaren Dateien auch in Bezug auf User/Group, die sollten ja laut influxdb.service auf influxdb/influxdb stehen. Laut diverser Fundstellen im Netz funktioniert der Start als Service nur bei diesen Owner-Einstellungen.

Ansonsten findet sich sicher noch etwas in der Doku zur 1.8: https://docs.influxdata.com/influxdb/v1.8/

Gruß

cykes
Member: Avenga
Avenga Jul 30, 2021 updated at 07:29:51 (UTC)
Goto Top
sudo chmod +x /usr/lib/influxdb/scripts/influxd-systemd-start.sh
<- das war die Lösung, warum auch immer dies nach dem Update notwendig war erschließt sich mir nicht.
Edit, sehe gerade im Vergleich zu einem RPi wo noch die alte Version von influxdb läuft, dass es diese Datei gar nicht gibt "influxd-systemd-start.sh" - die muss mit dem Update dazu gekommen sein.


chmod +x bedeutet doch alle Zugriff haben anstatt nur der Nutzer "influx" ?
habe vorher probiert
chmod u+x /usr/lib/influxdb/scripts/influxd-systemd-start.sh 
was nichts brachte.

überprüfe doch mal die Berechtigungen sämtlicher Scripte und der ausführbaren Dateien auch in Bezug auf User/Group, die sollten ja laut influxdb.service auf influxdb/influxdb stehen.
Wie kann ich die Berechtigungen prüfen/einsehen ?

Danke

Edit, hier alte vs neu
3213
Member: godlie
godlie Jul 30, 2021 at 08:25:50 (UTC)
Goto Top
Hallo,

ein chmod u+x bedeutet das der User das "Executable" dazubekommt, genaueres kannst du dir hier rauslesen

https://www.shellbefehle.de/befehle/chmod/

grüße
Member: HanTrio
HanTrio Jul 30, 2021 at 12:22:21 (UTC)
Goto Top
Zitat von @Avenga:

überprüfe doch mal die Berechtigungen sämtlicher Scripte und der ausführbaren Dateien auch in Bezug auf User/Group, die sollten ja laut influxdb.service auf influxdb/influxdb stehen.
Wie kann ich die Berechtigungen prüfen/einsehen ?

Auf der Konsole geht das easy mit
ls -l
-> ist dann im üblichen rwx-Format direkt auslesbar.

beim File Manager auf einem RasPi bin ich mir nicht 100% sicher, aber ich gehe davon aus, dass Rechtsklick -> Eigenschaften -> Berechtigungen o.ä. zum Ziel führt.
Möglicherweise ist da dann auch gleich ein Häkchen "ausführbar machen" dabei (?)
Member: cykes
cykes Jul 30, 2021 at 17:31:30 (UTC)
Goto Top
Zitat von @Avenga:

überprüfe doch mal die Berechtigungen sämtlicher Scripte und der ausführbaren Dateien auch in Bezug auf User/Group, die sollten ja laut influxdb.service auf influxdb/influxdb stehen.
Wie kann ich die Berechtigungen prüfen/einsehen ?
Prüfen - wie schon erwähnt - mit
ls -al
Ändern mittels: https://www.shellbefehle.de/befehle/chown/

Und noch ein wenig bash lernen im Anschluss face-wink
Member: Avenga
Avenga Aug 01, 2021 updated at 20:00:10 (UTC)
Goto Top
danke, ich kriege die ganzen chmod und umask Befehle einfach nicht in meinen Kopf...
Member: cykes
cykes Aug 01, 2021 at 20:16:02 (UTC)
Goto Top
Zitat von @Avenga:

danke, ich kriege die ganzen chmod und umask Befehle einfach nicht in meinen Kopf...
Dort müssen sie ja auch nur kurz verweilen: Aus dem Kopf über die Tastatur in die Shell - reicht ja face-wink

Läuft es denn jetzt wieder oder immer noch nicht?
Member: Avenga
Avenga Aug 02, 2021 at 05:40:09 (UTC)
Goto Top
Natürlich, hatte ich doch als Lösung markiert Siehe
Member: Avenga
Avenga Aug 12, 2021 at 21:23:20 (UTC)
Goto Top
Hallo,
habe auf 1.8.9 geupdatet, nun startet influx schon wieder nicht, allerdings mit einem anderen Problem:
● influxdb.service - InfluxDB is an open-source, distributed, time series database
   Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled)
   Active: activating (start) since Thu 2021-08-12 23:05:21 CEST; 6s ago
     Docs: https://docs.influxdata.com/influxdb/
Cntrl PID: 6016 (influxd-systemd)
    Tasks: 14 (limit: 2059)
   CGroup: /system.slice/influxdb.service
           ├─6016 /bin/bash -e /usr/lib/influxdb/scripts/influxd-systemd-start.sh
           ├─6017 /usr/bin/influxd -config /etc/influxdb/influxdb.conf
           └─6085 sleep 1

Aug 12 23:05:22 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:22.985055Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/53 duration=23.659ms  
Aug 12 23:05:22 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:22.987831Z lvl=info msg="Opened file" log_id=0Vw2mnYl000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/69/000000001-000000001.tsm id=0 duration=0.323ms  
Aug 12 23:05:22 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:22.989584Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/61 duration=20.349ms  
Aug 12 23:05:23 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:23.022111Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/69 duration=35.982ms  
Aug 12 23:05:23 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:23.025412Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/7 duration=34.974ms  
Aug 12 23:05:23 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:23.026153Z lvl=info msg="Opened file" log_id=0Vw2mnYl000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/77/000000001-000000001.tsm id=0 duration=0.825ms  
Aug 12 23:05:23 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:23.028659Z lvl=info msg="Opened file" log_id=0Vw2mnYl000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/85/000000001-000000001.tsm id=0 duration=0.323ms  
Aug 12 23:05:23 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:23.045257Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/85 duration=18.923ms  
Aug 12 23:05:23 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:23.051526Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/77 duration=29.029ms  
Aug 12 23:05:24 nibepi influxd-systemd-start.sh[6016]: ts=2021-08-12T21:05:24.604522Z lvl=info msg="Opened shard" log_id=0Vw2mnYl000 service=store trace_id=0Vw2mnyG000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/229 duration=1693.006ms  

Jemand zufällig eine Idee was es diesmal für Probleme hat ?

Auf einem anderen RPi gab es keine Probleme!
Member: HanTrio
HanTrio Aug 13, 2021 at 05:29:39 (UTC)
Goto Top
Ich seh da erstmal kein wirkliches Problem? Also klar, es startet nicht, aber die Meldungen sagen ja auch, dass der Dienst (noch) nicht gestartet ist (activating), und dass das file "influxd-systemd-start.sh" div. Dinge tut.

Was sagt denn ein vollständiges
journalctl -u influxdb
?
Member: Avenga
Avenga Aug 13, 2021 updated at 05:43:51 (UTC)
Goto Top
das sagt sehr viel:
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:45.516537Z lvl=info msg="InfluxDB starting" log_id=0Vw27Hg0000 version=1.8.9 branch=1.8 commit=d9b56321d579  
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:45.516657Z lvl=info msg="Go runtime" log_id=0Vw27Hg0000 version=go1.13.8 maxprocs=4  
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: Merging with configuration at: /etc/influxdb/influxdb.conf
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:45.782852Z lvl=info msg="Using data dir" log_id=0Vw27Hg0000 service=store path=/var/lib/influxdb/data  
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:45.783087Z lvl=info msg="Compaction settings" log_id=0Vw27Hg0000 service=store max_concurrent_compactions=2 throughput_bytes_per_second=50331648 throughput_bytes_per_second_burst=50331648  
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:45.783169Z lvl=info msg="Open store (start)" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open op_event=start  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:46.934412Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/232/000000009-000000001.tsm id=1 duration=200.232ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.050723Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/227/000000011-000000002.tsm id=0 duration=317.943ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.097478Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/224/000000012-000000002.tsm id=0 duration=363.961ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.097478Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/225/000000011-000000002.tsm id=0 duration=363.329ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.279870Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/232/000000008-000000002.tsm id=0 duration=261.169ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.280476Z lvl=info msg="Reading file" log_id=0Vw27Hg0000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/_internal/monitor/232/_00037.wal size=10510610  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.552278Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/225 duration=977.646ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.580479Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/224 duration=1005.889ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.626614Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/227 duration=1051.833ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.829090Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/226/000000011-000000002.tsm id=0 duration=227.403ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.879654Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/230/000000012-000000002.tsm id=0 duration=245.489ms  
Aug 12 22:53:47 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:47.926726Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/228/000000012-000000002.tsm id=0 duration=245.603ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.081371Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/226 duration=519.069ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.217834Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/228 duration=590.965ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.283323Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/230 duration=702.610ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.292756Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/_internal/monitor/231/000000012-000000002.tsm id=0 duration=154.620ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.328568Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/93/000000001-000000001.tsm id=0 duration=19.144ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.332716Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/101/000000001-000000001.tsm id=0 duration=22.585ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.511319Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/93 duration=293.107ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.567413Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/_internal/monitor/231 duration=485.818ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.569930Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/101 duration=286.404ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.605007Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/109/000000001-000000001.tsm id=0 duration=20.145ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.635275Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/117/000000001-000000001.tsm id=0 duration=23.296ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.736299Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/109 duration=224.694ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.736421Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/12 duration=166.305ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.816466Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/133/000000001-000000001.tsm id=0 duration=31.169ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.817435Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/117 duration=249.741ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.820503Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/125/000000001-000000001.tsm id=0 duration=35.927ms  
Aug 12 22:53:48 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:48.895247Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/141/000000001-000000001.tsm id=0 duration=32.097ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.068140Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/133 duration=330.526ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.104791Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/125 duration=368.277ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.150392Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/141 duration=332.775ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.159386Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/149/000000001-000000001.tsm id=0 duration=48.106ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.176833Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/157/000000001-000000001.tsm id=0 duration=23.190ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.199252Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/165/000000001-000000001.tsm id=0 duration=19.814ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.232263Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/157 duration=127.191ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.245429Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/165 duration=94.532ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.246975Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/149 duration=178.551ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.269644Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/173/000000001-000000001.tsm id=0 duration=23.267ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.295896Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/181/000000001-000000001.tsm id=0 duration=20.931ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.299468Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/189/000000001-000000001.tsm id=0 duration=24.165ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.377911Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/173 duration=145.358ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.443055Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/189 duration=195.746ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.443394Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/197/000000001-000000001.tsm id=0 duration=35.499ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.470830Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/181 duration=225.093ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.527410Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/205/000000001-000000001.tsm id=0 duration=19.831ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.559451Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/197 duration=181.261ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.577339Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/20 duration=134.023ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.589757Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/213/000000001-000000001.tsm id=0 duration=11.624ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.621918Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/221/000000001-000000001.tsm id=0 duration=23.313ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.649786Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/205 duration=178.659ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.667850Z lvl=info msg="Reading file" log_id=0Vw27Hg0000 engine=tsm1 service=cacheloader path=/var/lib/influxdb/wal/db/autogen/229/_00001.wal size=3362381  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.681630Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/213 duration=121.975ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.765031Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/221 duration=187.445ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.779335Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/29/000000001-000000004.tsm id=0 duration=53.152ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.817387Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/37/000000001-000000004.tsm id=0 duration=19.930ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.881011Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/29 duration=199.191ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.897910Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/37 duration=132.594ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.969437Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/53/000000001-000000001.tsm id=0 duration=23.373ms  
Aug 12 22:53:49 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:49.976251Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/45/000000001-000000001.tsm id=0 duration=77.490ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.051837Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/45 duration=170.553ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.056107Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/53 duration=158.008ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.065432Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/61/000000001-000000001.tsm id=0 duration=8.407ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.088263Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/69/000000001-000000001.tsm id=0 duration=10.113ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.117462Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/61 duration=65.399ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.143261Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/69 duration=86.628ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.174070Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/7 duration=56.438ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.179342Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/77/000000001-000000001.tsm id=0 duration=16.910ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.192284Z lvl=info msg="Opened file" log_id=0Vw27Hg0000 engine=tsm1 service=filestore path=/var/lib/influxdb/data/db/autogen/85/000000001-000000001.tsm id=0 duration=7.346ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.209345Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/85 duration=34.956ms  
Aug 12 22:53:50 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:50.228800Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/77 duration=85.252ms  
Aug 12 22:53:52 nibepi influxd-systemd-start.sh[430]: ts=2021-08-12T20:53:52.534353Z lvl=info msg="Opened shard" log_id=0Vw27Hg0000 service=store trace_id=0Vw27Iil000 op_name=tsdb_open index_version=inmem path=/var/lib/influxdb/data/db/autogen/229 duration=2884.331ms  
Aug 12 22:53:57 nibepi influxd-systemd-start.sh[430]: Failed to reach influxdb http endpoint at http://localhost:8086/health
Aug 12 22:53:57 nibepi systemd[1]: influxdb.service: Control process exited, code=exited, status=1/FAILURE
Aug 12 22:53:57 nibepi systemd[1]: influxdb.service: Failed with result 'exit-code'.  
Aug 12 22:53:57 nibepi systemd[1]: Failed to start InfluxDB is an open-source, distributed, time series database.
Aug 12 22:53:57 nibepi systemd[1]: influxdb.service: Service RestartSec=100ms expired, scheduling restart.

und influxd sagt:
influxd

 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b  
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b  
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P  
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"  

2021-08-13T05:42:46.470730Z     info    InfluxDB starting       {"log_id": "0VwWOakl000", "version": "1.8.9", "branch": "1.8", "commit": "d9b56321d579"}  
2021-08-13T05:42:46.471049Z     info    Go runtime      {"log_id": "0VwWOakl000", "version": "go1.13.8", "maxprocs": 4}  
2021-08-13T05:42:46.574228Z     info    Using data dir  {"log_id": "0VwWOakl000", "service": "store", "path": "/var/lib/influxdb/data"}  
2021-08-13T05:42:46.574621Z     info    Compaction settings     {"log_id": "0VwWOakl000", "service": "store", "max_concurrent_compactions": 2, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}  
2021-08-13T05:42:46.574907Z     info    Open store (start)      {"log_id": "0VwWOakl000", "service": "store", "trace_id": "0VwWObBW000", "op_name": "tsdb_open", "op_event": "start"}  
2021-08-13T05:42:46.575406Z     info    Open store (end)        {"log_id": "0VwWOakl000", "service": "store", "trace_id": "0VwWObBW000", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "0.509ms"}  
run: open server: open tsdb store: mkdir /var/lib/influxdb/data/_internal/_series: permission denied
Member: Avenga
Avenga Aug 13, 2021 at 06:16:26 (UTC)
Goto Top
Ich habe es wieder zum laufen bekommen indem ich influxd-systemd-start.sh wieder zur Version 1.8.7 geändert habe:

1.8.7:
#!/bin/bash -e

/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS &
echo $! > /var/lib/influxdb/influxd.pid

BIND_ADDRESS=$(influxd config | grep -A5 "\[http\]" | grep '^  bind-address' | cut -d ' ' -f5 | tr -d '"')  
HOST=${BIND_ADDRESS%%:*}
HOST=${HOST:-"localhost"}  
PORT=${BIND_ADDRESS##*:}

set +e
result=$(curl -s -o /dev/null http://$HOST:$PORT/health -w %{http_code})
while [ "$result" != "200" ]; do  
  sleep 1
  result=$(curl -s -o /dev/null http://$HOST:$PORT/health -w %{http_code})
done
set -e


1.8.9:
#!/bin/bash -e

/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS &
PID=$!
echo $PID > /var/lib/influxdb/influxd.pid

PROTOCOL="http"  
BIND_ADDRESS=$(influxd config | grep -A5 "\[http\]" | grep '^  bind-address' | cut -d ' ' -f5 | tr -d '"')  
HTTPS_ENABLED_FOUND=$(influxd config | grep "https-enabled = true" | cut -d ' ' -f5)  
HTTPS_ENABLED=${HTTPS_ENABLED_FOUND:-"false"}  
if [ $HTTPS_ENABLED = "true" ]; then  
  HTTPS_CERT=$(influxd config | grep "https-certificate" | cut -d ' ' -f5 | tr -d '"')  
  if [ ! -f "${HTTPS_CERT}" ]; then  
    echo "${HTTPS_CERT} not found! Exiting..."  
    exit 1
  fi
  echo "$HTTPS_CERT found"  
  PROTOCOL="https"  
fi
HOST=${BIND_ADDRESS%%:*}
HOST=${HOST:-"localhost"}  
PORT=${BIND_ADDRESS##*:}

set +e
max_attempts=10
url="$PROTOCOL://$HOST:$PORT/health"  
result=$(curl -k -s -o /dev/null $url -w %{http_code})
while [ "$result" != "200" ]; do  
  sleep 1
  result=$(curl -k -s -o /dev/null $url -w %{http_code})
  max_attempts=$(($max_attempts-1))
  if [ $max_attempts -le 0 ]; then
    echo "Failed to reach influxdb $PROTOCOL endpoint at $url"  
    exit 1
  fi
done
set -e

wenn mir Jemand erklären könnte warum Version 1.8.9 auf einem RPi2 + 3 nicht mit dem influxd-systemd-start.sh von 1.8.9 läuft, sondern nur mit dem von 1.8.7 wäre ich sehr dankbar.

Auf einem RPi4 läuft 1.8.9 mit influxd-systemd-start.sh 1.8.9

ich nutze kein https, nur http und 8086.
Member: HanTrio
HanTrio Aug 13, 2021 at 09:24:17 (UTC)
Goto Top
Joah sind halt zwei verschiedene Configs, die gemerged wurden:
Aug 12 22:53:45 nibepi influxd-systemd-start.sh[430]: Merging with configuration at: /etc/influxdb/influxdb.conf

Was den Fehler letztendlich auslöst, ist dieses hier (im zweiten Script):
    echo "Failed to reach influxdb $PROTOCOL endpoint at $url"  
    exit 1
-> entspricht der Fehlermeldung aus dem Journal:
Aug 12 22:53:57 nibepi influxd-systemd-start.sh[430]: Failed to reach influxdb http endpoint at http://localhost:8086/health

Es wird versucht, eine URL aufzurufen, und zwar explizit mit einem return code von 200 (= alles ok).
Dies wird 10x versucht, und wenn's dann immer noch nicht klappt, passiert genau das oben: exit mit Fehlercode 1.

Interessanterweise versucht das zweite Script ggf., diese URL mit https (anstatt nur mit http) zu erreichen - das scheint hier jedoch keine Rolle zu spielen, da in deiner Fehlermeldung explizit http versucht wird.

Ohne also die "wirkliche" Ursache zu erkennen: Das Script versucht, eine URL aufzurufen, das klappt nicht -> error+ exit.

Was noch auffällt:
run: open server: open tsdb store: mkdir /var/lib/influxdb/data/_internal/_series: permission denied
-> könnte man vllt testweise manuell anlegen.
Member: Avenga
Avenga Aug 13, 2021 at 11:34:55 (UTC)
Goto Top
danke, da wäre ich nie drauf gekommen.

bei beiden RPi kommt die Erfolgsmeldung:

sd

Trotzdem kann der 2 + 3er nicht mit dem neuen *.sh gestartet werden.


Zitat von @HanTrio:
Was noch auffällt:
run: open server: open tsdb store: mkdir /var/lib/influxdb/data/_internal/_series: permission denied
-> könnte man vllt testweise manuell anlegen.

was genau soll ich anlegen ?
Member: HanTrio
HanTrio Aug 13, 2021 at 13:22:49 (UTC)
Goto Top
"mkdir" steht für "make directory" ;) also ein Verzeichnis anlegen.
Das geht nur, wenn im Verzeichnisbaum darüber entspr. Rechte gesetzt sind.

Wenn du mal
ls -la /var/
eingibst, dann solltest du sehen, dass so ziemlich alles darin zu User + Gruppe "root" gehört - auch das "lib" Verzeichnis, und dieses hat (vermutlich) keine bzw. nur eingeschränkte Schreibrechte.
Auf meinem Pi zB:
ls -la /var/
drwxr-xr-x 47 root root       4096 Aug  6 16:16 lib
-> fehlendes "w" bei den Rechten

Das bedeutet, als normaler User darfst du da drin kein Verzeichnis anlegen -> "permission denied". Das wird hier von dem User influxd versucht, schlägt aber fehl.

Aber, davon abgesehen.. es ist nicht soo ungewöhnlich, dass neue Releases nicht völlig bug-frei sind.
Wenn du dir mal das changelog von influxdb anschaust:
https://docs.influxdata.com/influxdb/v1.8/about_the_project/releasenotes ...
dann ist da zB. die Version 1.8.8, die überhaupt nie offiziell erschienen ist ("Due to encountering several issues") ;)

Also, wenn bei dir alles so weit funktioniert, indem du eine Version vorher verwendest, dann würd ich es einfach dabei belassen.
Member: Avenga
Avenga Aug 13, 2021 updated at 13:57:07 (UTC)
Goto Top
Also ich verwende schon 1.8.9 auf allen 3 RPi, jedoch läuft das aktuelle mit dem "/usr/lib/influxdb/scripts/influxd-systemd-start.sh" nur auf dem RPi4 - und ich versuche herauszufinden warum.

Der RPi2+3 läuft nur mit der alten Version vom "/usr/lib/influxdb/scripts/influxd-systemd-start.sh" von Version 1.8.7.
(Siehe dazu Influxdb startet nicht mehr nach Update )
Also ohne https und /health Abfrage - wobei diese wiederum im Browser ok ist.


Jetzt, wo es wieder läuft steht bei influxd:
 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b  
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b  
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P  
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"  

2021-08-13T13:55:03.780813Z     info    InfluxDB starting       {"log_id": "0VwxZPu0000", "version": "1.8.9", "branch": "1.8", "commit": "d9b56321d579"}  
2021-08-13T13:55:03.780937Z     info    Go runtime      {"log_id": "0VwxZPu0000", "version": "go1.13.8", "maxprocs": 4}  
run: open server: listen: listen tcp 127.0.0.1:8088: bind: address already in use

lib sieht bei beiden gleich aus:
drwxr-xr-x 46 root root       4096 Jan 25  2021 lib
der andere hat 48 sonst alles gleich.

wenn du sonst noch ne Idee hast wo ich gucken könnte ?