Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] error: sql.0 (8477) Cannot insert INSERT INTO

    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

    [gelöst] error: sql.0 (8477) Cannot insert INSERT INTO

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

      Hi,

      bei einem Neustart des Alexa Adapters bekomme ich folgende Fehlermeldung im Log.

      2022-10-17 05:10:03.770 - error: sql.0 (8477) Cannot insert INSERT INTO iobroker.ts_string (id, ts, val, ack, _from, q) VALUES (undefined, 1665975602934, 'session-id=259-8044994-6481531; session-id-time=2296522805l; ubid-acbde=259-2645234-9822514; x-acbde=s4bi?@erGwAWlWnAoUvfkfLIW8a@G9Po; at-acbde=Atza|IwEBIOW4Sdib_YaEdnLj8KSLT8E0fIzp5Yd1C9p00HXxygXwjz-vCPZPXKoRJsff5Sut9EhLklMLZ2WhKa6MiJq9bRlBuz9frSgYNJDaHjopGv-pSvkEjGMInB2V0XXoZzsQVr6gJ9V3k1zTSwk5Z5RLk_9CdBM1iSbYrqM76M1muQlZDKlaTrrAmxsKzdwQs4Y4H8VHeXr07N_yvKlIKklEsDfyisX0M9plJXLK1r2hfF_3l1JLJtauoA2C2OwP7l9bhVgQiztVL9ApGSXHY4O1xxqeOHCAC0XkyAlp_eEZIcEeFqULMvOOd6Hu5Nolk9LMeC4; sess-at-acbde=Jp9yBDUQDUHpuyaPVY/lA8hQPaG4xmzdWO1kDVnhIDM=; csrf=902917021', 1, 6, 0),(undefined, 1665975606167, 'session-id=257-5874424-0967117; session-id-time=2296695605l; ubid-acbde=258-3463369-9789655; x-acbde=wWRoRA7FaNrI@9wzQKvtY5OSw?Hs?xCM; at-acbde=Atza|IwEBIGgft5-x5-wFjr43svKmfAPTZAQ5a17DKop7OLEhdWWpHYtsTHbY-bHlMF7EJe6Fd4JRCAR5Zg3_d-gaeEa-y4Vp-G7dCjJcCKEgqBPgfpgwncZHl5HF3l9_vT_aCwAuHnZuf8GAuz-NZDS7CUZ786bPqCSdjWRweAvGN2BNlLZ-aTAhWcOTUSnysV-_zsAdIUOjy-BG3Iqslh6LRzXr5GhF_ark8nccA7tucWto3ncYMBI1cKM0PQsxvCrc5Ft8wCOkwLjgK5DpDmQQHj8Ecu2CfkNHM8Zj2r6fQWSdpHpwLoWsHKxHRUeZYYABbV1xmfE; sess-at-acbde=Kb87c+XzA6bBd7i0hqqLBjnXCCUoWoIuNYYWpBjqewQ=; csrf=-77564427', 1, 6, 0);: Error: Unknown column 'undefined' in 'field list' (id: alexa2.0.info.cookie)

      Kann das von irgendeinem History Eintrag kommen ?

      Gruß
      HDM

      Systemdata Bitte Ausfüllen
      Hardwaresystem: NUC&;etc.
      Arbeitsspeicher: 2GB
      Festplattenart: HDD
      Betriebssystem: Ubuntu
      Node-Version: 10.x.x
      Nodejs-Version: v14.19.0
      NPM-Version: 11.75 GB
      Installationsart: Manuell
      Image genutzt: Nein
      Ort/Name der Imagedatei: Link
      liv-in-sky haus-automatisierung 2 Replies Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Spitfire4all last edited by

        @spitfire4all sagte in error: sql.0 (8477) Cannot insert INSERT INTO `iobroker`:

        alexa2.0.info.cookie

        • bitte solche meldungen in code tags schreiben https://forum.iobroker.net/post/873416

        • hat der dp einen solche history eintrag (alexa2.0.info.cookie) ?

        • neuste alexa2 adapter version ?

        • evtl alexa2 instanz stoppen - alle dp unter alexa2.0 löschen - alexa2 instanz starten

        1 Reply Last reply Reply Quote 0
        • haus-automatisierung
          haus-automatisierung Developer Most Active @Spitfire4all last edited by haus-automatisierung

          @spitfire4all Das Problem ist, dass probiert wird undefined in die Spalte id zu schreiben. Da es bestimmt eine auto_increment Spalte ist, sollte NULL (oder gar nix) übergeben werden.

          Welche Version des SQL-Adapters hast Du im Einsatz?

          PS: Warum hast Du SQL-Logging für Cookies aktiv??? Würde ich mal abschalten auf dem Datenpunkt alexa2.0.info.cookie

          S 1 Reply Last reply Reply Quote 1
          • S
            Spitfire4all @haus-automatisierung last edited by Spitfire4all

            @haus-automatisierung
            @haus-automatisierung
            OK, das wird wohl mein Problem sein.
            Der Adapter säuft mir ab und zu ab, da das Coockie wohl nicht erneuert wird. Warum auch immer.
            Deshalb hatte ich das SQL-Logging für Cookies aktiv aktiviert.

            Danke
            Gruß
            Hans-Dieter

            haus-automatisierung 1 Reply Last reply Reply Quote 0
            • haus-automatisierung
              haus-automatisierung Developer Most Active @Spitfire4all last edited by haus-automatisierung

              @spitfire4all sagte in error: sql.0 (8477) Cannot insert INSERT INTO `iobroker`:

              OK, das wird wohl mein Problem sein.

              Na ich denke schon, dass das ein Bug im SQL-Adapter ist. Dort dürfte im INSERT nie undefined stehen. Aber wenn Du das logging entfernst, tritt der Fehler zumindest nicht mehr auf 🙂

              Daher die Frage, welche Version des Adapters bei dir läuft.

              Auch wenn das Logging der Cookie-Informationen in SQL nicht sehr sinnvoll ist, sollte es dennoch funktionieren.

              S 1 Reply Last reply Reply Quote 0
              • S
                Spitfire4all @haus-automatisierung last edited by Spitfire4all

                @haus-automatisierung
                Ich habe die Version v3.19.9 installiert.
                Halte die Adapter eigentlich immer aktuell.

                Wo finde ich dieses INSERT, mal sehen was da drin steht.

                Vielen Dank für eure Hilfe.

                Gruß
                HDM

                haus-automatisierung 1 Reply Last reply Reply Quote 0
                • haus-automatisierung
                  haus-automatisierung Developer Most Active @Spitfire4all last edited by

                  @spitfire4all sagte in error: sql.0 (8477) Cannot insert INSERT INTO `iobroker`:

                  Ich habe die Version v3.19.9 installiert.

                  Die Version gibt es gar nicht? 2.2.0 ist beta und 2.1.8 ist stable. Siehe https://github.com/ioBroker/ioBroker.sql

                  @spitfire4all sagte in error: sql.0 (8477) Cannot insert INSERT INTO `iobroker`:

                  Wo finde ich dieses INSERT, mal sehen was da drin steht.

                  Das wird automatisch vom Adapter zusammengebaut, wenn sich der Wert ändert und geloggt werden soll. Also: Im Adapter-Code.

                  Was nutzt Du denn für eine Datenbank? MySQL/MariaDB? Postgres? Sqlite?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    Spitfire4all @haus-automatisierung last edited by

                    @haus-automatisierung
                    OK, sorry aneinander vorbeigeredet.

                    Die Alexa Version ist:

                    33871b95-6d15-41b3-8419-53b79081a3a8-image.png

                    2777bccd-29f3-4ec2-b22b-54c8075bca70-image.png

                    Ist eine MariaDB, daran kann ich mich noch erinnern, die Installation ist schon etwas länger her,
                    schätze einmal ein Jahr oder so.

                    Gruß
                    HDM

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    840
                    Online

                    31.8k
                    Users

                    80.0k
                    Topics

                    1.3m
                    Posts

                    3
                    8
                    286
                    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