Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst]Grafana Installationsprobleme

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    SOLVED [gelöst]Grafana Installationsprobleme

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dominik F.
      Dominik F. @SBorg last edited by Dominik F.

      @SBorg

      Okay, die Frage ist jetzt, wie installiere ich den Server 😄
      Ich habe folgendes zum installieren eingegeben:

      Zur Installation hab ich folgende Befehle von der Grafana Seite benutzt:
      
      sudo apt-get install -y apt-transport-https
      sudo apt-get install -y software-properties-common wget
      wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
      sudo apt-get update
      sudo apt-get install grafana
      sudo systemctl daemon-reload
      sudo systemctl start grafana-server
      sudo systemctl status grafana-server
      
      

      mir ist noch was eingefallen, ich hatte doch einen Fehler als ich folgendes eingegeben habe:

      pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server.service
      Failed to enable unit: Too many levels of symbolic links
      
      
      1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active last edited by

        was du noch anpassen musst, ist deine grafana.ini

        Grafana vorbereiten:
        /etc/grafana/grafana.ini bearbeiten ( z.b. sudo nano /etc/grafana/grafana.ini )
        
        Das Einbetten von Grafiken erlauben:
        im Abschnitt Security folgende Zeile hinzuzufügen: allow_embedding=true:
        [security]
        allow_embedding=true
        Den Zugriff ohne Login erlauben:
        [auth.anonymous] 
        # enable anonymous 
        access enabled = true
        # specify organization name that should be used for unauthenticated users
        org_name = Deine_Firma.com
        # specify role for unauthenticated users
        org_role = Viewer
        Darauf achten, dass wenn
        org_role = Viewer
        eingetragen ist, muss der org_name auch in den Einstellungen auf der Weboberfläche vorgenommen werden. 
        
        Links Zahnrad, Preferences, Organisation Name „Deine_Firma.com“
        
        Änderungen aktivieren durch restart grafana:
        sudo service grafana-server restart
        
        Dominik F. 1 Reply Last reply Reply Quote 0
        • Dominik F.
          Dominik F. @crunchip last edited by

          @crunchip

          grafana.ini ist geändert. Bisher keine Veränderung, hab immer noch eine weiße Seite

          crunchip 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Dominik F. last edited by

            @Dominik-F du hattest doch den Befehl eingegeben und Fehler erhalten

            sudo systemctl enable grafana-server.service
            

            probiere mal diesen

            sudo systemctl enable grafana-server
            sudo systemctl start grafana-server
            
            Dominik F. 1 Reply Last reply Reply Quote 0
            • Dominik F.
              Dominik F. @crunchip last edited by

              @crunchip

              gleicher Fehler

              pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server
              Failed to enable unit: Too many levels of symbolic links
              
              
              crunchip 1 Reply Last reply Reply Quote 0
              • crunchip
                crunchip Forum Testing Most Active @Dominik F. last edited by crunchip

                @Dominik-F was hällst du davon, Grafana zu deinstallieren und wir probieren es nochmal von neuem?
                Hab das hier mal rausgesucht

                also entweder 1. apt-get purge oder 3. sudo systemctl start grafana-server verwenden

                hier nochmal im einzelnen

                Entfernt Grafana und alle Abhängigkeiten und temporären Dateien

                sudo apt-get purge grafana
                

                deinstalliert nur Grafana

                sudo apt-get remove grafana
                

                Deinstallieren Sie grafana und seine Abhängigkeiten

                sudo apt-get remove --auto-remove grafana
                

                Installation

                sudo apt update
                sudo apt upgrade
                sudo apt-get install -y adduser libfontconfig1
                wget https://dl.grafana.com/oss/release/grafana_6.6.1_arm64.deb
                sudo dpkg -i grafana_6.6.1_arm64.deb
                sudo systemctl enable grafana-server
                sudo systemctl start grafana-server
                
                Dominik F. 1 Reply Last reply Reply Quote 0
                • Dominik F.
                  Dominik F. @crunchip last edited by Dominik F.

                  @crunchip

                  Das ist eine sehr gute Idee 🙂
                  Hab die Schritte jetzt ausgeführt und es kam bei

                  wget https://dl.grafana.com/oss/release/grafana_6.6.1_arm64.deb
                  sudo dpkg -i grafana_6.6.1_arm64.deb
                  

                  ein Fehler den ich beheben konnte, es ging um arm64 und musste die befehle für armhf nehmen.
                  Das lief dann auch so durch und dann kam wieder ein Fehler, diesmal jedoch ein anderer:

                  pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server
                  Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
                  Executing: /lib/systemd/systemd-sysv-install enable grafana-server
                  Failed to enable unit: Unit file /etc/systemd/system/grafana.service is masked.
                  

                  Vielleicht sagt dir dieser Fehler ja etwas?

                  EDIT:
                  Witzigerweise kann ich jetzt auf Grafana zugreifen^^ Ich hoffe der Fehler wird kein Problem sein

                  crunchip SBorg 2 Replies Last reply Reply Quote 0
                  • crunchip
                    crunchip Forum Testing Most Active @Dominik F. last edited by crunchip

                    @Dominik-F sagte in Grafana Installationsprobleme:

                    armhf nehmen

                    sorry, war mein Fehler, aber hast es ja gefunden

                    auf die schnelle hab ich was "ähnliches" gefunden, vllt hilft dir das weiter,
                    https://blog.ruanbekker.com/blog/2017/12/09/unmask-a-masked-service-in-systemd/

                    @Dominik-F sagte in Grafana Installationsprobleme:

                    Ich hoffe der Fehler wird kein Problem sein

                    denke, das Problem wird der Autostart/ grafana.service sein, aber vllt hilft dir der Link
                    bin da leider auch der absolute Laie

                    eventuell reicht ein

                    systemctl unmask grafana.service
                    
                    Dominik F. 1 Reply Last reply Reply Quote 0
                    • Dominik F.
                      Dominik F. @crunchip last edited by

                      @crunchip

                      Ich werde mir den Blog morgen mal durchlesen und mich dann melden ob es funktioniert hat.

                      Der Befehl hat leider einen anderen Fehler ausgespuckt:

                      pi@raspberrypi4-io:~ $ sudo systemctl unmask grafana.service
                      Removed /etc/systemd/system/grafana.service.
                      pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server
                      Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
                      Executing: /lib/systemd/systemd-sysv-install enable grafana-server
                      Failed to enable unit: Unit /run/systemd/generator.late/grafana.service is transient or generated.
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • SBorg
                        SBorg Forum Testing Most Active @Dominik F. last edited by

                        @Dominik-F sagte in Grafana Installationsprobleme:

                        Vielleicht sagt dir dieser Fehler ja etwas?

                        Das ist noch ein Überbleibsel von der alten Installation mv /etc/systemd/system/grafana.service /etc/systemd/system/grafana.service_old behebt auch dieses Problemchen 😉

                        Dominik F. 1 Reply Last reply Reply Quote 0
                        • Dominik F.
                          Dominik F. @SBorg last edited by

                          @SBorg

                          Da spuckt er mir folgendes aus:

                          pi@raspberrypi4-io:~ $ mv /etc/systemd/system/grafana.service /etc/systemd/system/grafana.service_old
                          mv: der Aufruf von stat für '/etc/systemd/system/grafana.service' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
                          
                          
                          SBorg crunchip 2 Replies Last reply Reply Quote 0
                          • SBorg
                            SBorg Forum Testing Most Active @Dominik F. last edited by

                            @Dominik-F Grumpf, sudo vergessen: sudo mv /etc/systemd/system/grafana.service /etc/systemd/system/grafana.service_old
                            ...oder dein zwischenzeitliches "umask" hat ihn eh gegrillt.

                            crunchip 1 Reply Last reply Reply Quote 0
                            • crunchip
                              crunchip Forum Testing Most Active @Dominik F. last edited by

                              @Dominik-F das hab ich noch gefunden

                              Eine Serviceeinheit, die leer ist (0 Byte), wird systemdals maskiert analysiert . Während systemctl mask <unit>der Verknüpfung des Dienstes mit funktioniert /dev/nullsystemd scheinbar nur, ob eine Datei beim Lesen 0 Byte groß ist, um festzustellen, ob eine Einheit maskiert ist. Dies führt zu einer irreführenden Meldung über einen maskierten Dienst.
                              So entlarven Sie einen systemd-Dienst !!!! Sie können es versuchen systemctl unmask your_app.service, aber wenn Ihr Service-Link mit einem Symlink verknüpft wurde, schlägt /dev/nulldies fehl. Folgendes wird empfohlen:
                              
                              Überprüfen Sie, ob die Gerätedatei ein Symlink zu /dev/null:
                              
                              file /lib/systemd/system/your_app.service
                              Es sollte zurückkehren:
                              
                              /lib/systemd/system/your_app.service: symbolic link to /dev/null
                              Löschen Sie den Symlink:
                              
                              sudo rm /lib/systemd/system/your_app.service
                              Laden Sie den systemd-Daemon neu, während Sie einen Dienst geändert haben:
                              
                              sudo systemctl daemon-reload
                              Überprüfen Sie den Status:
                              
                              systemctl status your_app
                              
                              1 Reply Last reply Reply Quote 0
                              • crunchip
                                crunchip Forum Testing Most Active @SBorg last edited by

                                @SBorg sagte in Grafana Installationsprobleme:

                                zwischenzeitliches "umask" hat ihn eh gegrillt.

                                dann sollte doch ein

                                sudo systemctl daemon-reload
                                

                                reichen

                                SBorg 1 Reply Last reply Reply Quote 0
                                • Dominik F.
                                  Dominik F. last edited by

                                  hat beides nicht geholfen:

                                  pi@raspberrypi4-io:~ $ file /lib/systemd/system/grafana.service
                                  /lib/systemd/system/grafana.service: cannot open `/lib/systemd/system/grafana.service' (No such file or directory)
                                  pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server
                                  Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
                                  Executing: /lib/systemd/systemd-sysv-install enable grafana-server
                                  Failed to enable unit: Unit /run/systemd/generator.late/grafana.service is transient or generated.
                                  pi@raspberrypi4-io:~ $ sudo systemctl daemon-reload
                                  pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server
                                  Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
                                  Executing: /lib/systemd/systemd-sysv-install enable grafana-server
                                  Failed to enable unit: Unit /run/systemd/generator.late/grafana.service is transient or generated.
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • SBorg
                                    SBorg Forum Testing Most Active @crunchip last edited by SBorg

                                    @crunchip Nicht unbedingt. "masked" heißt so viel wie nicht "starten". Durch "umask" hast du dies umgangen, was dir der "richtige" Service dann übel nimmt...

                                    @Dominik-F was gibt denn ein ls /etc/systemd/system/graf* aus?

                                    Dominik F. crunchip 2 Replies Last reply Reply Quote 0
                                    • Dominik F.
                                      Dominik F. @SBorg last edited by

                                      @SBorg

                                      pi@raspberrypi4-io:~ $ ls /etc/systemd/system/graf*
                                      /etc/systemd/system/grafana-server.service
                                      
                                      SBorg 1 Reply Last reply Reply Quote 0
                                      • SBorg
                                        SBorg Forum Testing Most Active @Dominik F. last edited by

                                        @Dominik-F Ok, dann ist noch alles gut 🙂
                                         systemctl stop grafana-server
                                        sudo mv /etc/systemd/system/grafana.service /etc/systemd/system/grafana.service_old
                                        systemctl start grafana-server

                                        Jetzt sollte er eigentlich ohne Fehler laufen.

                                        Dominik F. 1 Reply Last reply Reply Quote 0
                                        • Dominik F.
                                          Dominik F. @SBorg last edited by

                                          @SBorg

                                          Dieser Fehler ist irgendwie geblieben:

                                          pi@raspberrypi4-io:~ $ sudo systemctl enable grafana-server
                                          Synchronizing state of grafana-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
                                          Executing: /lib/systemd/systemd-sysv-install enable grafana-server
                                          Failed to enable unit: Unit /run/systemd/generator.late/grafana.service is transient or generated.
                                          
                                          SBorg 1 Reply Last reply Reply Quote 0
                                          • SBorg
                                            SBorg Forum Testing Most Active @Dominik F. last edited by

                                            @Dominik-F Bei ls /etc/systemd/system/graf* dürfte er jetzt nur noch grafa..._old anzeigen?
                                            Versuche mal den Service zu starten : sudo systemctl enable grafana-server.service

                                            Dominik F. 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            859
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            grafana
                                            5
                                            42
                                            6407
                                            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