NEWS
Kein iobroker Backup mehr über BackitUp Adapter
-
@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
-
otto@raspberrypi:~ $ sudo ls -lah /etc/influxdb2 ls: cannot access '/etc/influxdb2': No such file or directory
-
@laser sagte in Kein iobroker Backup mehr über BackitUp Adapter:
Dein Datenverzeichnis für die InfluxDB liegt irgendwo anders, als normal. Versuch mal noch
ls -lah /var/lib/influxdb
-
otto@raspberrypi:/etc $ ls -lah /var/lib/influxdb ls: cannot open directory '/var/lib/influxdb': Permission denied otto@raspberrypi:/etc $ sudo ls -lah /var/lib/influxdb total 296K drwxr-x--- 4 influxdb influxdb 4.0K Nov 20 16:18 . drwxr-xr-x 30 root root 4.0K Nov 20 16:16 .. drwxr-x--- 3 influxdb influxdb 4.0K May 30 13:44 .cache drwxr-x--- 5 influxdb influxdb 4.0K May 30 14:02 engine -rw------- 1 influxdb influxdb 256K Nov 20 16:18 influxd.bolt -rw-r----- 1 influxdb influxdb 7 Nov 20 16:18 influxd.pid -rw-r----- 1 influxdb influxdb 120K May 30 13:44 influxd.sqlite
otto@raspberrypi:/etc $ sudo ls -lah /etc/influxdb total 16K drwxr-xr-x 2 root root 4.0K Nov 18 18:07 . drwxr-xr-x 89 root root 4.0K Nov 18 18:07 .. -rw-r--r-- 1 root root 86 May 30 13:44 config.toml -rw-r--r-- 1 root root 86 Nov 18 18:07 config.toml.defaults
-
Okay, dann hast du wahrscheinlich mal ein Update von V1 gemacht. Also:
influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb/influxd.bolt
-
@marc-berg sagte in Kein iobroker Backup mehr über BackitUp Adapter:
influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb/influxd.bolt
Ja, habe mal upgedatet!
DerBefehl auch als "sudo"?otto@raspberrypi:/etc $ influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb/influxd.bolt Error: stat /var/lib/influxdb/influxd.bolt: permission denied See 'influxd -h' for help otto@raspberrypi:/etc $ sudo influxd recovery auth create-operator --org privat --username iobroker --bolt-path /var/lib/influxdb/influxd.bolt 2023-11-20T15:32:46.060743Z info Resources opened {"log_id": "0lcLduR0000", "system": "bolt-kvstore", "path": "/var/lib/influxdb/influxd.bolt"} ID User Name User ID Description Token Permissions 0b485bd1c75e4000 iobroker 0b4721cca3305000 onboarding-cliWizard-token-1685530468858 zijB7piBzzSSLchg2TCyrp2MViRxSJ5_HQP_ynLZO_T8K6Wy-guPxh9uI75KjCKFKIhzTGhpSSeyMpp58Z_juw== [read:orgs/56ed5fe7a100c804/annotations write:orgs/56ed5fe7a100c804/annotations read:orgs/56ed5fe7a100c804/authorizations write:orgs/56ed5fe7a100c804/authorizations read:orgs/56ed5fe7a100c804/buckets write:orgs/56ed5fe7a100c804/buckets read:orgs/56ed5fe7a100c804/checks write:orgs/56ed5fe7a100c804/checks read:orgs/56ed5fe7a100c804/dashboards write:orgs/56ed5fe7a100c804/dashboards read:orgs/56ed5fe7a100c804/dbrp write:orgs/56ed5fe7a100c804/dbrp read:orgs/56ed5fe7a100c804/documents write:orgs/56ed5fe7a100c804/documents read:orgs/56ed5fe7a100c804/labels write:orgs/56ed5fe7a100c804/labels read:orgs/56ed5fe7a100c804/notebooks write:orgs/56ed5fe7a100c804/notebooks read:orgs/56ed5fe7a100c804/notificationEndpoints write:orgs/56ed5fe7a100c804/notificationEndpoints read:orgs/56ed5fe7a100c804/notificationRules write:orgs/56ed5fe7a100c804/notificationRules read:orgs/56ed5fe7a100c804 read:orgs/56ed5fe7a100c804/remotes write:orgs/56ed5fe7a100c804/remotes read:orgs/56ed5fe7a100c804/replications write:orgs/56ed5fe7a100c804/replications read:orgs/56ed5fe7a100c804/scrapers write:orgs/56ed5fe7a100c804/scrapers read:orgs/56ed5fe7a100c804/secrets write:orgs/56ed5fe7a100c804/secrets read:orgs/56ed5fe7a100c804/sources write:orgs/56ed5fe7a100c804/sources read:orgs/56ed5fe7a100c804/tasks write:orgs/56ed5fe7a100c804/tasks read:orgs/56ed5fe7a100c804/telegrafs write:orgs/56ed5fe7a100c804/telegrafs read:users/0b4721cca3305000 write:users/0b4721cca3305000 read:orgs/56ed5fe7a100c804/variables write:orgs/56ed5fe7a100c804/variables read:orgs/56ed5fe7a100c804/views write:orgs/56ed5fe7a100c804/views] 0c26fdf572986000 iobroker 0b4721cca3305000 onboarding-cliWizard-token-1700471139713 oodzlogKQY9O0tCtNNDYiFxomFcAWJXjd-RTbC738Fkna1nzQiVXRjNVaKZDFt_lvWEYrZWhpUNIxsnMISQejg== [read:orgs/56ed5fe7a100c804/annotations write:orgs/56ed5fe7a100c804/annotations read:orgs/56ed5fe7a100c804/authorizations write:orgs/56ed5fe7a100c804/authorizations read:orgs/56ed5fe7a100c804/buckets write:orgs/56ed5fe7a100c804/buckets read:orgs/56ed5fe7a100c804/checks write:orgs/56ed5fe7a100c804/checks read:orgs/56ed5fe7a100c804/dashboards write:orgs/56ed5fe7a100c804/dashboards read:orgs/56ed5fe7a100c804/dbrp write:orgs/56ed5fe7a100c804/dbrp read:orgs/56ed5fe7a100c804/documents write:orgs/56ed5fe7a100c804/documents read:orgs/56ed5fe7a100c804/labels write:orgs/56ed5fe7a100c804/labels read:orgs/56ed5fe7a100c804/notebooks write:orgs/56ed5fe7a100c804/notebooks read:orgs/56ed5fe7a100c804/notificationEndpoints write:orgs/56ed5fe7a100c804/notificationEndpoints read:orgs/56ed5fe7a100c804/notificationRules write:orgs/56ed5fe7a100c804/notificationRules read:orgs/56ed5fe7a100c804 read:orgs/56ed5fe7a100c804/remotes write:orgs/56ed5fe7a100c804/remotes read:orgs/56ed5fe7a100c804/replications write:orgs/56ed5fe7a100c804/replications read:orgs/56ed5fe7a100c804/scrapers write:orgs/56ed5fe7a100c804/scrapers read:orgs/56ed5fe7a100c804/secrets write:orgs/56ed5fe7a100c804/secrets read:orgs/56ed5fe7a100c804/sources write:orgs/56ed5fe7a100c804/sources read:orgs/56ed5fe7a100c804/tasks write:orgs/56ed5fe7a100c804/tasks read:orgs/56ed5fe7a100c804/telegrafs write:orgs/56ed5fe7a100c804/telegrafs read:users/0b4721cca3305000 write:users/0b4721cca3305000 read:orgs/56ed5fe7a100c804/variables write:orgs/56ed5fe7a100c804/variables read:orgs/56ed5fe7a100c804/views write:orgs/56ed5fe7a100c804/views] 0c2731d6a8bd8000 iobroker 0b4721cca3305000 iobroker Z50uyViNwOSShEX2jY2A09cHyCCavlnqe1GFdkzGnYWZ4a2uQ2ghc9wahuCQwuNrpDuWHhGj7_wrrflgHMkpMA== [read:orgs/56ed5fe7a100c804/annotations write:orgs/56ed5fe7a100c804/annotations read:orgs/56ed5fe7a100c804/authorizations write:orgs/56ed5fe7a100c804/authorizations read:orgs/56ed5fe7a100c804/buckets write:orgs/56ed5fe7a100c804/buckets read:orgs/56ed5fe7a100c804/checks write:orgs/56ed5fe7a100c804/checks read:orgs/56ed5fe7a100c804/dashboards write:orgs/56ed5fe7a100c804/dashboards read:orgs/56ed5fe7a100c804/dbrp write:orgs/56ed5fe7a100c804/dbrp read:orgs/56ed5fe7a100c804/documents write:orgs/56ed5fe7a100c804/documents read:orgs/56ed5fe7a100c804/labels write:orgs/56ed5fe7a100c804/labels read:orgs/56ed5fe7a100c804/notebooks write:orgs/56ed5fe7a100c804/notebooks read:orgs/56ed5fe7a100c804/notificationEndpoints write:orgs/56ed5fe7a100c804/notificationEndpoints read:orgs/56ed5fe7a100c804/notificationRules write:orgs/56ed5fe7a100c804/notificationRules read:orgs/56ed5fe7a100c804 read:orgs/56ed5fe7a100c804/remotes write:orgs/56ed5fe7a100c804/remotes read:orgs/56ed5fe7a100c804/replications write:orgs/56ed5fe7a100c804/replications read:orgs/56ed5fe7a100c804/scrapers write:orgs/56ed5fe7a100c804/scrapers read:orgs/56ed5fe7a100c804/secrets write:orgs/56ed5fe7a100c804/secrets read:orgs/56ed5fe7a100c804/sources write:orgs/56ed5fe7a100c804/sources read:orgs/56ed5fe7a100c804/tasks write:orgs/56ed5fe7a100c804/tasks read:orgs/56ed5fe7a100c804/telegrafs write:orgs/56ed5fe7a100c804/telegrafs read:users/0b4721cca3305000 write:users/0b4721cca3305000 read:orgs/56ed5fe7a100c804/variables write:orgs/56ed5fe7a100c804/variables read:orgs/56ed5fe7a100c804/views write:orgs/56ed5fe7a100c804/views] 0c27485709bd8000 iobroker 0b4721cca3305000 neuer iobroker token Q494kw0QVOhk3if8D-cZsqjlggKCOIEJcD8gW1Za4vUzKGYYQO7RoraoIrmmPm-NjdaChpZAddzXtsQ7Mw5GBg== [read:orgs/56ed5fe7a100c804/annotations write:orgs/56ed5fe7a100c804/annotations read:orgs/56ed5fe7a100c804/authorizations write:orgs/56ed5fe7a100c804/authorizations read:orgs/56ed5fe7a100c804/buckets write:orgs/56ed5fe7a100c804/buckets read:orgs/56ed5fe7a100c804/checks write:orgs/56ed5fe7a100c804/checks read:orgs/56ed5fe7a100c804/dashboards write:orgs/56ed5fe7a100c804/dashboards read:orgs/56ed5fe7a100c804/dbrp write:orgs/56ed5fe7a100c804/dbrp read:orgs/56ed5fe7a100c804/documents write:orgs/56ed5fe7a100c804/documents read:orgs/56ed5fe7a100c804/labels write:orgs/56ed5fe7a100c804/labels read:orgs/56ed5fe7a100c804/notebooks write:orgs/56ed5fe7a100c804/notebooks read:orgs/56ed5fe7a100c804/notificationEndpoints write:orgs/56ed5fe7a100c804/notificationEndpoints read:orgs/56ed5fe7a100c804/notificationRules write:orgs/56ed5fe7a100c804/notificationRules read:orgs/56ed5fe7a100c804 read:orgs/56ed5fe7a100c804/remotes write:orgs/56ed5fe7a100c804/remotes read:orgs/56ed5fe7a100c804/replications write:orgs/56ed5fe7a100c804/replications read:orgs/56ed5fe7a100c804/scrapers write:orgs/56ed5fe7a100c804/scrapers read:orgs/56ed5fe7a100c804/secrets write:orgs/56ed5fe7a100c804/secrets read:orgs/56ed5fe7a100c804/sources write:orgs/56ed5fe7a100c804/sources read:orgs/56ed5fe7a100c804/tasks write:orgs/56ed5fe7a100c804/tasks read:orgs/56ed5fe7a100c804/telegrafs write:orgs/56ed5fe7a100c804/telegrafs read:users/0b4721cca3305000 write:users/0b4721cca3305000 read:orgs/56ed5fe7a100c804/variables write:orgs/56ed5fe7a100c804/variables read:orgs/56ed5fe7a100c804/views write:orgs/56ed5fe7a100c804/views] 0c27568e5bacd000 iobroker 0b4721cca3305000 iobroker's Recovery Token 7wIc7VllUj3xRIfnu2jIxvPaLgMruI2ZHyUw2dYLeHSYrPQvPtS-1l8-_Jr43Nveb_aXW5cmzT11oM59gyKx6g== [read:authorizations write:authorizations read:buckets write:buckets read:dashboards write:dashboards read:orgs write:orgs read:sources write:sources read:tasks write:tasks read:telegrafs write:telegrafs read:users write:users read:variables write:variables read:scrapers write:scrapers read:secrets write:secrets read:labels write:labels read:views write:views read:documents write:documents read:notificationRules write:notificationRules read:notificationEndpoints write:notificationEndpoints read:checks write:checks read:dbrp write:dbrp read:notebooks write:notebooks read:annotations write:annotations read:remotes write:remotes read:replications write:replications] otto@r
-
influx auth list -t 7wIc7VllUj3xRIfnu2jIxvPaLgMruI2ZHyUw2dYLeHSYrPQvPtS-1l8-_Jr43Nveb_aXW5cmzT11oM59gyKx6g== --json
-
Heureka!
Jetzt nochmal den
influx auth list -t 12345 --json
Befehl mit dem zuletzt noch vorhandenen Token.
EDIT: vorher die DB wieder starten