Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Off Topic
    4. Maria DB Config kein Zugriff

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Maria DB Config kein Zugriff

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

      Hi, ich komme leider nich mehr per Windows Rechner und Heidi SQL an meine Datenbanken dran, obwohl ich mir sicher bin das meine Benutzerdaten stimmen. Der Iobroker kann aber noch auf die Datenbank zugreifen, das passiert ja auch lokal, da beides auf einem Raspi läuft. Nun wollte ich in der Maria Config schauen was da nicht stimmt bzw, einen neuen Benutzer anlegen. Leider kann ich darauf nicht zugreifen und weiß nicht wie ich hier weiterkommen. Kennt jemand das Problem? Kann ich da noch was retten.

      pi@raspberrypi:~ $ sudo vi /etc/mysql/mariadb.conf.d/50-server.cnf
      E325: ATTENTION
      Found a swap file by the name "/etc/mysql/mariadb.conf.d/.50-server.cnf.swp"
                owned by: root   dated: Tue Aug 16 18:51:27 2022
               file name: /etc/mysql/mariadb.conf.d/50-server.cnf
                modified: YES
               user name: root   host name: raspberrypi
              process ID: 29917
      While opening file "/etc/mysql/mariadb.conf.d/50-server.cnf"
                   dated: Sun Feb 20 02:40:11 2022
      
      (1) Another program may be editing the same file.  If this is the case,
          be careful not to end up with two different instances of the same
          file when making changes.  Quit, or continue with caution.
      (2) An edit session for this file crashed.
          If this is the case, use ":recover" or "vim -r /etc/mysql/mariadb.conf.d/50-
      server.cnf"
          to recover the changes (see ":help recovery").
          If you did this already, delete the swap file "/etc/mysql/mariadb.conf.d/.50
      -server.cnf.swp"
          to avoid this message.
      "/etc/mysql/mariadb.conf.d/50-server.cnf" 117 lines, 3666 bytes
      Press ENTER or type command to continue
      
      
      Codierknecht Ro75 2 Replies Last reply Reply Quote 0
      • Codierknecht
        Codierknecht Developer Most Active @frankyboy73 last edited by

        @frankyboy73 sagte in Maria DB Config kein Zugriff:

        da beides auf einem Raspi läuft

        Zeig mal

        iob diag
        
        F 1 Reply Last reply Reply Quote 0
        • F
          frankyboy73 @Codierknecht last edited by

          @codierknecht sagte in Maria DB Config kein Zugriff:

          iob diag

          ======================= SUMMARY =======================
                                  v.2023-10-10
          
          
             Static hostname: raspberrypi
                   Icon name: computer
            Operating System: Raspbian GNU/Linux 11 (bullseye)
                      Kernel: Linux 6.1.21-v8+
                Architecture: arm64
          
          Installation:           native
          Kernel:                 aarch64
          Userland:               armhf
          Timezone:               Europe/Berlin (CET, +0100)
          User-ID:                1000
          X-Server:               false
          Boot Target:            graphical.target
          
          Pending OS-Updates:     28
          Pending iob updates:    2
          
          Nodejs-Installation:    /usr/bin/nodejs         v18.19.0
                                  /usr/bin/node           v18.19.0
                                  /usr/bin/npm            10.2.3
                                  /usr/bin/npx            10.2.3
                                  /usr/bin/corepack       0.22.0
          
          Recommended versions are nodejs 18.19.1 and npm 10.2.4
          Your nodejs installation is correct
          
          MEMORY:
                         total        used        free      shared  buff/cache   available
          Mem:            3.8G        1.6G        996M        0.0K        1.2G        2.1G
          Swap:            99M          0B         99M
          Total:          3.9G        1.6G        1.1G
          
          Active iob-Instances:   18
          Active repo(s): Stable (default)
          
          ioBroker Core:          js-controller           5.0.17
                                  admin                   6.13.15
          
          ioBroker Status:        iobroker is running on this host.
          
          
          Objects type: jsonl
          States  type: jsonl
          
          Status admin and web instance:
          + system.adapter.admin.0                  : admin                 : raspberrypi                              -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
          + system.adapter.web.0                    : web                   : raspberrypi                              -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
          
          Objects:                7016
          States:                 8165
          
          Size of iob-Database:
          
          25M     /opt/iobroker/iobroker-data/objects.jsonl
          8.3M    /opt/iobroker/iobroker-data/objects.json.migrated
          8.3M    /opt/iobroker/iobroker-data/objects.json.bak.migrated
          5.3M    /opt/iobroker/iobroker-data/states.jsonl
          1.6M    /opt/iobroker/iobroker-data/states.json.migrated
          1.6M    /opt/iobroker/iobroker-data/states.json.bak.migrated
          
          
          
          =================== END OF SUMMARY ====================
          
          Codierknecht 1 Reply Last reply Reply Quote 0
          • Codierknecht
            Codierknecht Developer Most Active @frankyboy73 last edited by

            @frankyboy73 sagte in Maria DB Config kein Zugriff:

            Pending OS-Updates:     28
            Pending iob updates:    2
            
            Nodejs-Installation:    /usr/bin/nodejs         v18.19.0
                                    /usr/bin/node           v18.19.0
                                    /usr/bin/npm            10.2.3
                                    /usr/bin/npx            10.2.3
            

            Ich würde den erstmal auf aktuellen Stand bringen.

            Welcher Prozess ist denn

                    process ID: 29917
            

            Einen Reboot hast Du schon probiert?

            F 1 Reply Last reply Reply Quote 0
            • F
              frankyboy73 @Codierknecht last edited by frankyboy73

              @codierknecht Hi, ja, reboot habe ich schon öfters probiert. Was für ein process 29917 ist weiß ich nicht, habe auch keine Ahnung wie ich das rauskriege.
              Auf den aktuellen Stand kann ich das natürlich bringen, aber das Problem bestand auch schon als die NodeJS 18.19.0 die aktuelle war. Habe das so hingenommen da ja in Verbindung mit Ibroker bzw. dem SQL Adapter noch funktioniert. Aber da ich so langsam auf Bookworm umziehen möchte, muss ich ja irgendwie meine Datenbanken sichern für den Umzug.
              Edit: Mir ist auch nicht ganz klar was die Iobroker Installation, damit zu tun haben soll, das ich nicht mehr auf meine Maria DB Datenbanken bzw. auf die Maria DB Config Datei zugreifen kann.

              Codierknecht 1 Reply Last reply Reply Quote 0
              • Codierknecht
                Codierknecht Developer Most Active @frankyboy73 last edited by

                @frankyboy73 sagte in Maria DB Config kein Zugriff:

                habe auch keine Ahnung wie ich das rauskriege

                htop
                

                Mir ist auch nicht ganz klar was die Iobroker Installation, damit zu tun haben soll

                Die Installation selbst nicht. Ich wollte nur sehen, wie die Speicherauslastung aussieht.
                Das Swap aber leer und der Speicher eigentlich nicht knapp ist, weiß ich da auch nicht weiter.

                Vielleicht hilfts ja, ioBroker und MariaDB mal zu beenden, um auf die Config zu kommen.

                F 1 Reply Last reply Reply Quote 0
                • F
                  frankyboy73 @Codierknecht last edited by

                  @codierknecht Ok, htop habe ich mal eingegeben, aber mir wir kein Process mit 29917 angezeigt. Die höchste Zahl ist im 10000 Bereich.
                  iob.jpg
                  Wie beende ich denn MariaDB? Bin leider kein Linux Fachmann.

                  Codierknecht 1 Reply Last reply Reply Quote 0
                  • Codierknecht
                    Codierknecht Developer Most Active @frankyboy73 last edited by

                    @frankyboy73 sagte in Maria DB Config kein Zugriff:

                    Wie beende ich denn MariaDB? Bin leider kein Linux Fachmann.

                    Ich sicher auch nicht. Aber Tante Gurgel hilft da weiter:

                    systemctl stop mariadb
                    systemctl start mariadb
                    
                    F 1 Reply Last reply Reply Quote 0
                    • F
                      frankyboy73 @Codierknecht last edited by

                      @codierknecht Ok, habe MariaDb und Iobroker beendet, habe aber trotzdem keinen Zugriff auf die Config Datei. Leider gleiche Meldung.

                      E325: ATTENTION
                      Found a swap file by the name "/etc/mysql/mariadb.conf.d/.50-server.cnf.swp"
                                owned by: root   dated: Tue Aug 16 18:51:27 2022
                               file name: /etc/mysql/mariadb.conf.d/50-server.cnf
                                modified: YES
                               user name: root   host name: raspberrypi
                              process ID: 29917
                      While opening file "/etc/mysql/mariadb.conf.d/50-server.cnf"
                                   dated: Sun Feb 20 02:40:11 2022
                      
                      (1) Another program may be editing the same file.  If this is the case,
                          be careful not to end up with two different instances of the same
                          file when making changes.  Quit, or continue with caution.
                      (2) An edit session for this file crashed.
                          If this is the case, use ":recover" or "vim -r /etc/mysql/mariadb.conf.d/50-
                      server.cnf"
                          to recover the changes (see ":help recovery").
                          If you did this already, delete the swap file "/etc/mysql/mariadb.conf.d/.50
                      -server.cnf.swp"
                          to avoid this message.
                      "/etc/mysql/mariadb.conf.d/50-server.cnf" 117 lines, 3666 bytes
                      Press ENTER or type command to continue
                      
                      
                      Codierknecht D 2 Replies Last reply Reply Quote 0
                      • Codierknecht
                        Codierknecht Developer Most Active @frankyboy73 last edited by

                        @frankyboy73
                        Dann bin ich mit meinem Latein am Ende.
                        Vielleicht hat @Thomas-Braun hier einen Rat?

                        F Thomas Braun 2 Replies Last reply Reply Quote 0
                        • F
                          frankyboy73 @Codierknecht last edited by

                          @codierknecht Trotzdem vielen Dank für deine Mühe, habe dadurch auch wieder ein paar neue Sachen gelernt. iod diag und htop war mir auch neu, Danke.
                          Zur Not hoffe ich, das ich mit dem Backit Adapter irgendwie die Datenbank mitnehmen kann.

                          1 Reply Last reply Reply Quote 0
                          • D
                            dimaiv @frankyboy73 last edited by dimaiv

                            @frankyboy73
                            Mit welchem Befehl versuchst du es aufmachen?
                            Update:
                            Ganz oben gesehen "vi"
                            Probier mal mit "nano"

                            Codierknecht F 2 Replies Last reply Reply Quote 0
                            • Codierknecht
                              Codierknecht Developer Most Active @dimaiv last edited by

                              @dimaiv

                              pi@raspberrypi:~ $ sudo vi /etc/mysql/mariadb.conf.d/50-server.cnf
                              

                              siehe Eingangspost

                              1 Reply Last reply Reply Quote 0
                              • F
                                frankyboy73 @dimaiv last edited by

                                @dimaiv Hi, so.

                                sudo vi /etc/mysql/mariadb.conf.d/50-server.cnf
                                

                                Genau so habe ich es bei der ersten Installation auch gemacht. Video von hausautomatisierung.

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  dimaiv @frankyboy73 last edited by

                                  @frankyboy73
                                  Probier mal mit "nano"

                                  F 2 Replies Last reply Reply Quote 0
                                  • F
                                    frankyboy73 @dimaiv last edited by

                                    @dimaiv
                                    maria.jpg

                                    Codierknecht 1 Reply Last reply Reply Quote 0
                                    • Codierknecht
                                      Codierknecht Developer Most Active @frankyboy73 last edited by

                                      @frankyboy73
                                      Da klemmt wohl ein früherer Editierversuch.
                                      Aber durch root ???

                                      Dass der Kram aber einen Reboot überlebt, wundert micht etwas.

                                      1 Reply Last reply Reply Quote 0
                                      • Ro75
                                        Ro75 @frankyboy73 last edited by

                                        @frankyboy73 du hast auf deinem Raspi aber nicht zufällig

                                        be2aac85-55a7-4dea-a27c-f16d29efe211-image.png

                                        aktiviert?

                                        Ro75.

                                        1 Reply Last reply Reply Quote 0
                                        • F
                                          frankyboy73 @dimaiv last edited by frankyboy73

                                          @dimaiv Hi, habe die Datei jetzt mit yes (open anyway) geöffnet. Jetzt konnte ich sie bearbeiten. Super. Warum ich die mit nano jetzt bearbeiten konnte und mit vi nicht erschließt sich mir nicht. Ich konnte sie zwar auch mit vi öffnen, aber ändern ging nicht.
                                          Das binding war nicht mehr auskommentiert und daurch konnte ich nicht mehr von einem anderen Rechner auf die Database kommen.
                                          Jetzt nach dem speichern und neustarten, kann ich die Config auch ohne Fehlermeldung öffen, auch mit vi, und wieder auf die Datenbank zugreifen.
                                          Vielen Dank, ich weiß zwar nicht wie sich das von selbst geändert hat, aber ich bin froh das ich wieder drauf komme.
                                          Auch an @Codierknecht und @Ro75 vielen Dank für eure Unterstützung.
                                          Edit: @Codierknecht das mit root wundert mich auch, ich habe auf diesem System noch nie den root user benutzt.

                                          1 Reply Last reply Reply Quote 1
                                          • Thomas Braun
                                            Thomas Braun Most Active @Codierknecht last edited by

                                            @codierknecht

                                            Nein. Von Datenbanken hab ich keine Ahnung.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            551
                                            Online

                                            31.6k
                                            Users

                                            79.4k
                                            Topics

                                            1.3m
                                            Posts

                                            5
                                            22
                                            782
                                            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