Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. InfluxDB
    5. Installation von influxDB Useranlage nicht möglich

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Installation von influxDB Useranlage nicht möglich

    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ed210 last edited by

      Hallo!

      Da ich meine Passwörter zur Datenbank "verlegt" hatte, wollte ich influxDB neu installieren.

      zuerst habe ich die bestehende Installation mit folgenden Befehlen gelöscht:

      sudo apt-get remove influxdb
      sudo apt-get purge influxdb
      

      Dann habe ich influxDB gemäß der hier veröffentlichten Anleitung neu installiert:

      https://www.verdrahtet.info/2020/02/14/installation-von-influxdb-grafana-inkl-verbindung-zu-iobroker/
      

      Wenn ich dann nach der Installation einen User anlegen will, erhalte ich die Fehlermeldung: ERR: unable to parse authentication credentials

      Hier der ganze Vorgang:

      ed210@CT201:~$ wget -qO- https://repos.influxdata.com/influxdb.key | sudo apt-key add -
      OK
      ed210@CT201:~$ source /etc/os-releaseecho "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
      -bash: /etc/os-releaseecho: No such file or directory
      ed210@CT201:~$ echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | 
      > 
      > 
      > sudo tee /etc/apt/sources.list.d/influxdb.list
      deb https://repos.influxdata.com/debian bionic stable
      ed210@CT201:~$ sudo apt-get update
      Get:1 https://repos.influxdata.com/debian bionic InRelease [4737 B]
      Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease                                                                                                  
      Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                                
      Hit:4 https://packages.grafana.com/oss/deb stable InRelease                                                                                              
      Hit:5 https://deb.nodesource.com/node_16.x bionic InRelease                                                                           
      Get:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                      
      Get:7 https://repos.influxdata.com/debian bionic/stable amd64 Packages [1267 B]   
      Fetched 183 kB in 2s (101 kB/s)                                                          
      Reading package lists... Done
      ed210@CT201:~$ sudo apt-get install influxdb
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following NEW packages will be installed:
        influxdb
      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      Need to get 54.4 MB of archives.
      After this operation, 153 MB of additional disk space will be used.
      Get:1 https://repos.influxdata.com/debian bionic/stable amd64 influxdb amd64 1.8.10-1 [54.4 MB]
      Fetched 54.4 MB in 7s (7564 kB/s)                                                                                                                                                  
      Selecting previously unselected package influxdb.
      (Reading database ... 41033 files and directories currently installed.)
      Preparing to unpack .../influxdb_1.8.10-1_amd64.deb ...
      Unpacking influxdb (1.8.10-1) ...
      Setting up influxdb (1.8.10-1) ...
      Created symlink /etc/systemd/system/influxd.service -> /lib/systemd/system/influxdb.service.
      Created symlink /etc/systemd/system/multi-user.target.wants/influxdb.service -> /lib/systemd/system/influxdb.service.
      Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
      ed210@CT201:~$ sudo service influxdb start
      ed210@CT201:~$ sudo influx
      Connected to http://localhost:8086 version 1.8.10
      InfluxDB shell version: 1.8.10
      > CREATE USER "admin" WITH PASSWORD '<DBadmin>' WITH ALL PRIVILEGES
      ERR: unable to parse authentication credentials
      Warning: It is possible this error is due to not setting a database.
      Please set a database with the command "use <database>".
      > exit
      ed210@CT201:~$ sudo apt-get purge influxdb
      Reading package lists... Done
      Building dependency tree       
      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, 153 MB disk space will be freed.
      Do you want to continue? [Y/n] y
      (Reading database ... 41053 files and directories currently installed.)
      Removing influxdb (1.8.10-1) ...
      Removed /etc/systemd/system/influxd.service.
      Removed /etc/systemd/system/multi-user.target.wants/influxdb.service.
      Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
      (Reading database ... 41032 files and directories currently installed.)
      Purging configuration files for influxdb (1.8.10-1) ...
      Failed to disable unit: Unit file influxdb.service does not exist.
      dpkg: warning: while removing influxdb, directory '/var/lib/influxdb' not empty so not removed
      ed210@CT201:~$ sudo apt-get autoremove --purge influxdb
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      Package 'influxdb' is not installed, so not removed
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      ed210@CT201:~$ sudo apt-get update
      Hit:1 https://repos.influxdata.com/debian bionic InRelease
      Hit:2 https://packages.grafana.com/oss/deb stable InRelease                                                                                                                        
      Hit:3 https://deb.nodesource.com/node_16.x bionic InRelease                                                                                                                        
      Hit:4 http://archive.ubuntu.com/ubuntu bionic InRelease                                             
      Hit:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
      Hit:6 http://archive.ubuntu.com/ubuntu bionic-security InRelease
      Reading package lists... Done                      
      ed210@CT201:~$ sudo apt-get install influxdb
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      The following NEW packages will be installed:
        influxdb
      0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
      Need to get 0 B/54.4 MB of archives.
      After this operation, 153 MB of additional disk space will be used.
      Selecting previously unselected package influxdb.
      (Reading database ... 41029 files and directories currently installed.)
      Preparing to unpack .../influxdb_1.8.10-1_amd64.deb ...
      Unpacking influxdb (1.8.10-1) ...
      Setting up influxdb (1.8.10-1) ...
      Created symlink /etc/systemd/system/influxd.service -> /lib/systemd/system/influxdb.service.
      Created symlink /etc/systemd/system/multi-user.target.wants/influxdb.service -> /lib/systemd/system/influxdb.service.
      Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
      ed210@CT201:~$ sudo service influxdb start
      ed210@CT201:~$ sudo influx
      Connected to http://localhost:8086 version 1.8.10
      InfluxDB shell version: 1.8.10
      > CREATE USER "admin" WITH PASSWORD '<XXXXXXX>' WITH ALL PRIVILEGES
      ERR: unable to parse authentication credentials
      Warning: It is possible this error is due to not setting a database.
      Please set a database with the command "use <database>".
      > 
      

      Der Fehler wird am Ende der Anleitung von verdrahtet.info auch erwähnt, jedoch muss man sich zur Lösung des Problems anmelden und ich kann ja nicht mal einen user anlegen.

      Habe ich die alte Installation vielleicht nicht richtig gelöscht und es sind noch Reste vorhanden?

      Weiß jemand Rat? Wahrscheinlich ist der Verweis auf debian in der zweiten Zeile der Anleitung von verdrahtet.info

      echo "deb https://repos.influxdata.com/debian $(lsb_release -cs) stable" | 
      

      für mich auch nicht der richtige, da ich ubuntu benutze, aber zumindest gab es keine Fehlermeldung bei der Installation.

      Nodejs 16,17.0
      npm 8.15.0
      ioBroker 4.0.23
      AdminAdapter 6.2.17
      Ubuntu 18.04.6
      läuft unter Proxmox 7.0.-11

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      946
      Online

      31.7k
      Users

      79.7k
      Topics

      1.3m
      Posts

      1
      1
      125
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo