NEWS
Kein iobroker Backup mehr über BackitUp Adapter
-
@laser Der Link ist extern und leider nicht für uns greifbar
Versuche hiermit mal einen neuen zu erstellen
https://docs.influxdata.com/influxdb/v2/reference/cli/influxd/recovery/auth/ -
Versuche es mal wie folgt...
influxd recovery auth create-operator --username admin --org privat
Dieser Befehl kann nur ausgeführt werden, wenn der InfluxDB-Server ( influxd) nicht läuft.
-
@simatec versuche ich, jedoch klappt das nicht ich bin als iobroker angemeldet, nicht als admin. Beides versucht...
otto@raspberrypi:/opt/iobroker/backups $ sudo service influxdb stop otto@raspberrypi:/opt/iobroker/backups $ influxd recovery auth create-operator --username admin --org privat 2023-11-20T14:51:36.698840Z info Resources opened {"log_id": "0lcJIBTG000", "system": "bolt-kvstore", "path": "/home/otto/.influxdbv2/influxd.bolt"} Error: bucket "authorizationsv1": bucket not found See 'influxd -h' for help otto@raspberrypi:/opt/iobroker/backups $ sudo service influxdb start otto@raspberrypi:/opt/iobroker/backups $ otto@raspberrypi:/opt/iobroker/backups $ sudo service influxdb stop otto@raspberrypi:/opt/iobroker/backups $ influxd recovery auth create-operator --username iobroker --org privat 2023-11-20T14:55:10.325204Z info Resources opened {"log_id": "0lcJVDy0000", "system": "bolt-kvstore", "path": "/home/otto/.influxdbv2/influxd.bolt"} Error: bucket "authorizationsv1": bucket not found See 'influxd -h' for help
-
@laser führe mal mit sudo aus
-
@simatec sagte in Kein iobroker Backup mehr über BackitUp Adapter:
@laser führe mal mit sudo aus
Geht auch nicht:
otto@raspberrypi:/opt/iobroker/backups $ sudo influxd recovery auth create-operator --username admin --org privat 2023-11-20T14:59:54.826071Z info Resources opened {"log_id": "0lcJlaGW000", "system": "bolt-kvstore", "path": "/root/.influxdbv2/influxd.bolt"} Error: bucket "authorizationsv1": bucket not found See 'influxd -h' for help otto@raspberrypi:/opt/iobroker/backups $ sudo influxd recovery auth create-operator --username iobroker --org privat 2023-11-20T15:00:12.179537Z info Resources opened {"log_id": "0lcJme4l000", "system": "bolt-kvstore", "path": "/root/.influxdbv2/influxd.bolt"} Error: bucket "authorizationsv1": bucket not found See 'influxd -h' for help
Examples
Generate a new operator token
influxd
--org example-org
--username example-user -
@laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:
"path": "/root/.influxdbv2/influxd.bolt"
Der Pfad ist aber auch schon merkwürdig. Warum sollte das in /root liegen?
-
sudo influxd recovery auth create-operator --username iobroker --org privat --bolt-path ~/.influxdbv2/influxd.bolt
-
@thomas-braun evtl. habe ich beim Neuanlegen der DB etwas falsch gemacht. Das Ganze ist ja mehr gesichert als ein Atomkraftwerk!
-
@simatec :
otto@raspberrypi:~ $ sudo influxd recovery auth create-operator --username iobroker --org privat --bolt-path ~/.influxdbv2/influxd.bolt 2023-11-20T15:05:44.345023Z info Resources opened {"log_id": "0lcK5vb0000", "system": "bolt-kvstore", "path": "/home/otto/.influxdbv2/influxd.bolt"} Error: bucket "authorizationsv1": bucket not found See 'influxd -h' for help
-
@laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:
authorizationsv1
Was ist das für ein Bucket??? Was hast du denn da gemacht... Laut deiner Config ist dein Bucket "iobroker"
Zeige doch bitte mal die Config in der Influx UI ...
Hatte ich schon mehrfach nach gefragt -
@simatec mein Bucket ist auch iobroker! Was genau soll ich zeigen?
-
@laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:
otto@raspberrypi:~ $ sudo influxd recovery auth create-operator --username iobroker --org privat --bolt-path ~/.influxdbv2/influxd.bolt
Ich trau' mir ja kaum noch was zu sagen, weil wenn ich sage "Guck mal hier, das ist dein Operator-Token, trage den mal in Backitup ein." wird verstanden: "LÖSCH SOFORT ALLE TOKENS UND VERGISS DEN OPERATOR TOKEN NICHT!!!"
Ich versuchs trotzdem mal: Das hier ist in 99% aller Installationen der korrekte Aufruf:
influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb2/influxd.bolt
-
@marc-berg die Tokens habe ich gelöscht. Nirgendwo habe ich einen Hinweis gefunden, ob man alte Tokens für irgend etwas braucht. Ich wollte damit "Ordnung" reinbringen. Meine irrige Annahme war eben, der neue Token ersetzt den Alten.
Den Originalen habe ich mir ja notiert. -
@laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:
Meine irrige Annahme war eben, der neue Token ersetzt den Alten.
Alles gut, ich habe den Befehl noch korrigiert, sollte jetzt laufen.
-
otto@raspberrypi:~ $ sudo service influxdb stop otto@raspberrypi:~ $ influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb2/influxd.bolt Error: unable to create directory /var/lib/influxdb2/influxd.bolt: mkdir /var/lib/influxdb2: permission denied See 'influxd -h' for help otto@raspberrypi:~ $ sudo influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb2/influxd.bolt 2023-11-20T15:16:38.172849Z info Resources opened {"log_id": "0lcKipYG000", "system": "bolt-kvstore", "path": "/var/lib/influxdb2/influxd.bolt"} Error: bucket "authorizationsv1": bucket not found See 'influxd -h' for help
Ergänzung:
-
@laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:
/var/lib/influxdb2
ls /var/lib/influxdb2
-
@marc-berg sagte in Kein iobroker Backup mehr über BackitUp Adapter:
ls /var/lib/influxdb2
otto@raspberrypi:~ $ ls /var/lib/influxdb2 ls: cannot open directory '/var/lib/influxdb2': Permission denied otto@raspberrypi:~ $ sudo ls /var/lib/influxdb2 influxd.bolt otto@raspberrypi:~ $
-
@laser Zeige mal die Rechte dazu
sudo ls -lah /var/lib/influxdb2
-
@simatec sagte in Kein iobroker Backup mehr über BackitUp Adapter:
sudo ls -lah /var/lib/influxdb2
otto@raspberrypi:~ $ sudo ls -lah /var/lib/influxdb2 total 24K drwx------ 2 root root 4.0K Nov 20 16:16 . drwxr-xr-x 30 root root 4.0K Nov 20 16:16 .. -rw------- 1 root root 16K Nov 20 16:16 influxd.bolt
Hilft das weiter?
otto@raspberrypi:~ $ sudo service influxdb status ● influxdb.service - InfluxDB is an open-source, distributed, time series database Loaded: loaded (/lib/systemd/system/influxdb.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2023-11-20 16:18:14 CET; 5min ago Docs: https://docs.influxdata.com/influxdb/ Process: 160456 ExecStart=/usr/lib/influxdb/scripts/influxd-systemd-start.sh (code=exited, status=0/SUCCESS) Main PID: 160457 (influxd) Tasks: 11 (limit: 8754) CPU: 25.211s CGroup: /system.slice/influxdb.service └─160457 /usr/bin/influxd Nov 20 16:22:29 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:29.456805Z lvl=error msg="api error encountered" log_id=0lcKo5TW000 handler=session error="unauthorized access" Nov 20 16:22:34 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:34.531661Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:22:44 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:44.540406Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:22:46 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:46.522636Z lvl=error msg="api error encountered" log_id=0lcKo5TW000 handler=session error="unauthorized access" Nov 20 16:22:54 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:22:54.547785Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:23:04 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:04.556455Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:23:14 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:14.563884Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:23:24 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:24.570846Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:23:34 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:34.578017Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found" Nov 20 16:23:44 raspberrypi influxd-systemd-start.sh[160457]: ts=2023-11-20T15:23:44.584759Z lvl=info msg=Unauthorized log_id=0lcKo5TW000 error="authorization not found"
-
@simatec sagte in Kein iobroker Backup mehr über BackitUp Adapter:
sudo ls -lah /var/lib/influxdb2
und bitte
sudo ls -lah /etc/influxdb2