Influx DB geht nicht

Einrichtung der openHAB Umgebung und allgemeine Konfigurationsthemen.

Moderatoren: seppy, udo1toni

AndyRPi
Beiträge: 68
Registriert: 3. Jan 2021 11:06
Answers: 0
Wohnort: Wörlitz / Obertshausen

Re: Influx DB geht nicht

Beitrag von AndyRPi »

Lux73 hat geschrieben: 27. Dez 2022 18:15 ja dann ist das erstmal dein Hauptproblem!

Grafana kommt er viel später

InfluxDB runterwerfen und nochmal neu installieren
so ich habes runtergeworfen

Code: Alles auswählen

openhabian@openhabian:~ $ sudo apt-get remove influxdb
[sudo] password for openhabian:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  influxdb
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 148 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 69071 files and directories currently installed.)
Removing influxdb (1.8.10-1) ...
dpkg: warning: while removing influxdb, unable to remove directory '/var/lib/influxdb': Device or resource busy - directory may be a mount point?
Processing triggers for man-db (2.9.4-2) ...
Updating FireMotD available updates count ...
Openhab 4.0.0 RPi SSD
Homematic CCU3
Phoscon
Shelly
FRITZ!Box
Alexa

Lux73
Beiträge: 71
Registriert: 26. Dez 2019 12:32
Answers: 0
Wohnort: Bielefeld

Re: Influx DB geht nicht

Beitrag von Lux73 »

Code: Alles auswählen

dpkg: warning: while removing influxdb, unable to remove directory '/var/lib/influxdb': Device or resource busy - directory may be a mount point?
das sieht nicht gut aus! wie hast du deine SSD installiert?

ausgabe von

Code: Alles auswählen

mount
APU2c4|Debian12.11|OpenHAB4.3.5@Zulu21|mosquitto|hostapd|dnsmasq|zigbee2mqtt / Huawei MediaPad T5|FullyKioskBrowser
Zigbee:CC2652RB|1xCC2530.ROUTER|15xHue|4xIlluminize 5110.40|Danfoss:4xAlly+4xRoomSensor
Aqara:5xMCCGQ11LM/6xWSDCGQ11LM/6xGZCGQ01LM/4xRTCGQ11LM/2xRTCGQ13LM/2xRTCGQ14LM/1xDJT11LM/1xRTCZCGQ11LM/2x WXKG02LM
TuYa:2xTS011F/3xTS0601/1xTS0001|MOES:1xUFO-R11|HEIMAN:1xHS2WD-E
MQTT:Tasmota13.4.0|6xDelock 11826|3xShelly1|3xBlitzwolf SHP8|1xGosund SP112

AndyRPi
Beiträge: 68
Registriert: 3. Jan 2021 11:06
Answers: 0
Wohnort: Wörlitz / Obertshausen

Re: Influx DB geht nicht

Beitrag von AndyRPi »

Lux73 hat geschrieben:

Code: Alles auswählen

dpkg: warning: while removing influxdb, unable to remove directory '/var/lib/influxdb': Device or resource busy - directory may be a mount point?
das sieht nicht gut aus! wie hast du deine SSD installiert?

ausgabe von

Code: Alles auswählen

mount
Ich habe einfach meine SD Karte per dd auf die ssd übertragen. Alles bis auf Influx läuft ohne weiteres Grafana konnte Ich deinstallieren


Gesendet von iPad mit Tapatalk
Openhab 4.0.0 RPi SSD
Homematic CCU3
Phoscon
Shelly
FRITZ!Box
Alexa

AndyRPi
Beiträge: 68
Registriert: 3. Jan 2021 11:06
Answers: 0
Wohnort: Wörlitz / Obertshausen

Re: Influx DB geht nicht

Beitrag von AndyRPi »

ausgabe von

Code: Alles auswählen

mount
[/quote]

Code: Alles auswählen

openhabian@openhabian:~ $ mount
/dev/sda2 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1933576k,nr_inodes=483394,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=787308k,nr_inodes=819200,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda2 on /srv/openhab-addons type ext4 (rw,noatime)
/dev/sda2 on /srv/openhab-conf type ext4 (rw,noatime)
/dev/sda2 on /srv/openhab-sys type ext4 (rw,noatime)
/dev/sda2 on /srv/openhab-userdata type ext4 (rw,noatime)
/dev/sda2 on /opt/zram/persistence.bind type ext4 (rw,noatime)
/dev/zram1 on /opt/zram/zram1 type ext4 (rw,noatime)
overlay1 on /var/lib/openhab/persistence type overlay (rw,relatime,lowerdir=/opt/zram/persistence.bind,upperdir=/opt/zram/zram1/upper,workdir=/opt/zram/zram1/workdir,redirect_dir=on)
overlay1 on /srv/openhab-userdata/persistence type overlay (rw,relatime,lowerdir=/opt/zram/persistence.bind,upperdir=/opt/zram/zram1/upper,workdir=/opt/zram/zram1/workdir,redirect_dir=on)
/dev/sda2 on /opt/zram/influxdb.bind type ext4 (rw,noatime)
/dev/zram2 on /opt/zram/zram2 type ext4 (rw,noatime)
overlay2 on /var/lib/influxdb type overlay (rw,relatime,lowerdir=/opt/zram/influxdb.bind,upperdir=/opt/zram/zram2/upper,workdir=/opt/zram/zram2/workdir,redirect_dir=on)
/dev/sda2 on /opt/zram/log.bind type ext4 (rw,noatime)
/dev/zram3 on /opt/zram/zram3 type ext4 (rw,noatime)
overlay3 on /var/log type overlay (rw,relatime,lowerdir=/opt/zram/log.bind,upperdir=/opt/zram/zram3/upper,workdir=/opt/zram/zram3/workdir,redirect_dir=on)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=393652k,nr_inodes=98413,mode=700,uid=1000,gid=114)
Openhab 4.0.0 RPi SSD
Homematic CCU3
Phoscon
Shelly
FRITZ!Box
Alexa

Lux73
Beiträge: 71
Registriert: 26. Dez 2019 12:32
Answers: 0
Wohnort: Bielefeld

Re: Influx DB geht nicht

Beitrag von Lux73 »

Code: Alles auswählen

dpkg: warning: while removing influxdb, unable to remove directory '/var/lib/influxdb': Device or resource busy - directory may be a mount point?
der Fehler sieht unklar aus und muss behoben werden sonst kannn InfluxDB nicht auf das angemahnte Verzeichnis zugreifen/schreiben

Code: Alles auswählen

overlay2 on /var/lib/influxdb type overlay (rw,relatime,lowerdir=/opt/zram/influxdb.bind,upperdir=/opt/zram/zram2/upper,workdir=/opt/zram/zram2/workdir,redirect_dir=on)
arbeitest du mit dem zram Addon?
APU2c4|Debian12.11|OpenHAB4.3.5@Zulu21|mosquitto|hostapd|dnsmasq|zigbee2mqtt / Huawei MediaPad T5|FullyKioskBrowser
Zigbee:CC2652RB|1xCC2530.ROUTER|15xHue|4xIlluminize 5110.40|Danfoss:4xAlly+4xRoomSensor
Aqara:5xMCCGQ11LM/6xWSDCGQ11LM/6xGZCGQ01LM/4xRTCGQ11LM/2xRTCGQ13LM/2xRTCGQ14LM/1xDJT11LM/1xRTCZCGQ11LM/2x WXKG02LM
TuYa:2xTS011F/3xTS0601/1xTS0001|MOES:1xUFO-R11|HEIMAN:1xHS2WD-E
MQTT:Tasmota13.4.0|6xDelock 11826|3xShelly1|3xBlitzwolf SHP8|1xGosund SP112

AndyRPi
Beiträge: 68
Registriert: 3. Jan 2021 11:06
Answers: 0
Wohnort: Wörlitz / Obertshausen

Re: Influx DB geht nicht

Beitrag von AndyRPi »

Lux73 hat geschrieben:

Code: Alles auswählen

dpkg: warning: while removing influxdb, unable to remove directory '/var/lib/influxdb': Device or resource busy - directory may be a mount point?
der Fehler sieht unklar aus und muss behoben werden sonst kannn InfluxDB nicht auf das angemahnte Verzeichnis zugreifen/schreiben

Code: Alles auswählen

overlay2 on /var/lib/influxdb type overlay (rw,relatime,lowerdir=/opt/zram/influxdb.bind,upperdir=/opt/zram/zram2/upper,workdir=/opt/zram/zram2/workdir,redirect_dir=on)
arbeitest du mit dem zram Addon?
Ich habe eine Standard Installation


Gesendet von iPad mit Tapatalk
Openhab 4.0.0 RPi SSD
Homematic CCU3
Phoscon
Shelly
FRITZ!Box
Alexa

Lux73
Beiträge: 71
Registriert: 26. Dez 2019 12:32
Answers: 0
Wohnort: Bielefeld

Re: Influx DB geht nicht

Beitrag von Lux73 »

wieviel RAM hat dein Raspi?

ich habe mit zram auf einem Raspi3+ vor 2-3 Jahren nicht die besten erfahrungen gesammelt

aber anscheinend hat deine Installation den Pfad /var/lib/influxdb in welcher die Datenbank gespeichert wird komplett auf einen zram Mount umgebogen.

warum dies jetzt so ist keine Ahnung. zram ist per default m.e. nach keine inkludierte Option welche automatisch installiert wird.

solange der mount overlay2 on /var/lib/influxdb type overlay angelegt wird, bekommst du m.e. nach Probleme mit InfluxDB

klar könntest du vor dem Erststart in der influxd.conf einen anderen Pfad anlegen aber ej keine Ahnung was bei deinem System sonst noch alles umgebogen ist ^^

ich empfehle eine saubere Neustallation ;)
APU2c4|Debian12.11|OpenHAB4.3.5@Zulu21|mosquitto|hostapd|dnsmasq|zigbee2mqtt / Huawei MediaPad T5|FullyKioskBrowser
Zigbee:CC2652RB|1xCC2530.ROUTER|15xHue|4xIlluminize 5110.40|Danfoss:4xAlly+4xRoomSensor
Aqara:5xMCCGQ11LM/6xWSDCGQ11LM/6xGZCGQ01LM/4xRTCGQ11LM/2xRTCGQ13LM/2xRTCGQ14LM/1xDJT11LM/1xRTCZCGQ11LM/2x WXKG02LM
TuYa:2xTS011F/3xTS0601/1xTS0001|MOES:1xUFO-R11|HEIMAN:1xHS2WD-E
MQTT:Tasmota13.4.0|6xDelock 11826|3xShelly1|3xBlitzwolf SHP8|1xGosund SP112

AndyRPi
Beiträge: 68
Registriert: 3. Jan 2021 11:06
Answers: 0
Wohnort: Wörlitz / Obertshausen

Re: Influx DB geht nicht

Beitrag von AndyRPi »

Schon wieder? Ich hab erst neu aufgesetzt und nun alles schön am laufen gehabt auf der sd Karte ich mach jetzt mal ein Backup.


Gesendet von iPad mit Tapatalk
Openhab 4.0.0 RPi SSD
Homematic CCU3
Phoscon
Shelly
FRITZ!Box
Alexa

AndyRPi
Beiträge: 68
Registriert: 3. Jan 2021 11:06
Answers: 0
Wohnort: Wörlitz / Obertshausen

Re: Influx DB geht nicht

Beitrag von AndyRPi »

Lux73 hat geschrieben:wieviel RAM hat dein Raspi?

ich habe mit zram auf einem Raspi3+ vor 2-3 Jahren nicht die besten erfahrungen gesammelt

aber anscheinend hat deine Installation den Pfad /var/lib/influxdb in welcher die Datenbank gespeichert wird komplett auf einen zram Mount umgebogen.

warum dies jetzt so ist keine Ahnung. zram ist per default m.e. nach keine inkludierte Option welche automatisch installiert wird.

solange der mount overlay2 on /var/lib/influxdb type overlay angelegt wird, bekommst du m.e. nach Probleme mit InfluxDB

klar könntest du vor dem Erststart in der influxd.conf einen anderen Pfad anlegen aber ej keine Ahnung was bei deinem System sonst noch alles umgebogen ist ^^

ich empfehle eine saubere Neustallation ;)
Ich habe 8mb RAM. Ich hab einen aktuelles Image von openHAB.org genommen.


Gesendet von iPad mit Tapatalk
Openhab 4.0.0 RPi SSD
Homematic CCU3
Phoscon
Shelly
FRITZ!Box
Alexa

Lux73
Beiträge: 71
Registriert: 26. Dez 2019 12:32
Answers: 0
Wohnort: Bielefeld

Re: Influx DB geht nicht

Beitrag von Lux73 »

8GB reicht definitiv

nach kurzer Recherche scheint zram bei OpenHabian wohl mittlerweile doch per default installiert zu werden :shock:

warum der influxdb mount jetzt Probleme bereitet ist mir unklar - allerdings weiß ich jetzt wieder warum ich immer alles "from scratch" installiere :mrgreen:

kann dir leider nicht mehr weiterhelfen

zram disablen/deinstallieren könnte helfen - aber sinn der ache ist das m.e. nicht.

könnte auch deine nachträgliche SSD "dd" aktion mit schuld sein... kein Plan

drücke dir die Daumen das da ein anderer User helfen kann ^^
APU2c4|Debian12.11|OpenHAB4.3.5@Zulu21|mosquitto|hostapd|dnsmasq|zigbee2mqtt / Huawei MediaPad T5|FullyKioskBrowser
Zigbee:CC2652RB|1xCC2530.ROUTER|15xHue|4xIlluminize 5110.40|Danfoss:4xAlly+4xRoomSensor
Aqara:5xMCCGQ11LM/6xWSDCGQ11LM/6xGZCGQ01LM/4xRTCGQ11LM/2xRTCGQ13LM/2xRTCGQ14LM/1xDJT11LM/1xRTCZCGQ11LM/2x WXKG02LM
TuYa:2xTS011F/3xTS0601/1xTS0001|MOES:1xUFO-R11|HEIMAN:1xHS2WD-E
MQTT:Tasmota13.4.0|6xDelock 11826|3xShelly1|3xBlitzwolf SHP8|1xGosund SP112

Antworten