Ankündigung

Einklappen
Keine Ankündigung bisher.

Probleme nach dem Update auf 1.9.4

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Probleme nach dem Update auf 1.9.4

    Hi,

    Ich hab mit git pull auf 1.9.4 (vorher 1.9.3) aktualisiert und nun bekomme ich folgende Meldung ins log.
    meine db liegt aber in \var\db

    Wie kann ich das Problem lösen?

    Code:
    database:
        plugin_name: database
        driver: sqlite3
        count_logentries: true
        connect:
        -   database:./var/db/smarthomeng.db
        -   check_same_thread:0​
    Code:
    2023-03-14  19:34:00 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.9.4-master (c0cfb39c)   --------------------
    2023-03-14  19:34:00 NOTICE   lib.smarthome       Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
    2023-03-14  19:34:00 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=1699)
    2023-03-14  19:34:00 NOTICE   lib.smarthome        - on 'Raspberry Pi 4 v1.1, 2GB (Sony, UK)'
    2023-03-14  19:34:03 NOTICE   lib.smarthome        - Nutze Feiertage für Land 'AT', Provinz '9', 1 benutzerdefinierte(r) Feiertag(e) definiert
    2023-03-14  19:34:05 ERROR    lib.db              Database [Database]: Could not connect to the database using 'sqlite3': unable to open database file
    2023-03-14  19:34:05 CRITICAL plugins.database    Database: Initialization failed: unable to open database file
    2023-03-14  19:34:05 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by SmartHomeNG (Database plugin stalled)   --------------------​

    #2
    Wie geht das Log denn nach dem Restart weiter?

    Es kann bei sqlite3 zu Zuständen kommen, bei denen sqlite3 eine Datenbank als nicht korrekt geschlossen erkennt und diese erst „reparieren“ muss. Das kann zu 1 oder 2 Neustarts von SmartHomeNG führen, bis die Datenbank. Ornal geöffnet werden kann.
    Viele Grüße
    Martin

    There is no cloud. It's only someone else's computer.

    Kommentar


      #3
      Danke Msinn


      Zitat von Msinn Beitrag anzeigen
      Wie geht das Log denn nach dem Restart weiter?
      Bisher hat sich der LOG Eintrag viele mal wiederholt.


      Ich hab jetzt den Pfad vollständig im der plugin config angegeben, nun klappt das mal.
      Code:
      database:
          plugin_name: database
          driver: sqlite3
          count_logentries: true
          connect:
          -   database:/usr/local/smarthome/var/db/smarthomeng.db
          -   check_same_thread:0​
      Nun bekomme ich aber weitere komische LOG Einträge
      Code:
      2023-03-14  20:09:46 WARNING  plugins.avm         repeater_eg@: Error 'NoneType' object has no attribute 'GetDefaultConnectionService' establishing connection to Fritzdevice via AHA-HTTP-Interface.
      2023-03-14  20:09:48 WARNING  plugins.avm         repeater_og@: Error 'NoneType' object has no attribute 'GetDefaultConnectionService' establishing connection to Fritzdevice via AHA-HTTP-Interface.
      2023-03-14  20:09:54 WARNING  plugins.avm         repeater_eg@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
      2023-03-14  20:09:54 WARNING  plugins.avm         repeater_og@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
      2023-03-14  20:09:54 WARNING  plugins.avm         repeater_og@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
      2023-03-14  20:09:56 ERROR    lib.triggertimes    NEW gives 2023-12-31 23:59:00+01:00 but OLD gives 2023-03-19 23:59:00+01:00
      2023-03-14  20:09:56 NOTICE   lib.smarthome       --------------------   SmartHomeNG initialization finished   --------------------
      2023-03-14  20:10:21 NOTICE   modules.websocket   Payload protocol 'smartvisu' is disabled - terminating connection
      2023-03-14  20:12:14 NOTICE   modules.websocket   Payload protocol 'smartvisu' is disabled - terminating connection​
      Vorallem smartvisu is disabled ist fatal. ich komme somit nicht auf meine Visu
      Zuletzt geändert von fuxl66; 14.03.2023, 20:20.

      Kommentar


        #4
        Zitat von fuxl66 Beitrag anzeigen
        weitere komische LOG Einträge
        Bzgl der Warnings des AVM Plugins:
        - Welchen Repeater setzt Du ein?
        - Wie sind die Items konfiguriert?
        - Welche Infos kommen, wenn Du im Browser "https://<IP-des-Repeaters>:49443/tr64desc.xml" eingibst?

        Kommentar


          #5
          Sisamiwe
          Ich habe 2 AVM 1750E im Einsatz und hatte alles vor dem update auf 1.9.4 problemlos funktioniert.
          Mit dem Link kommt zuerst eine Meldung im Browser, dass diese Verbindung nicht sicher ist. Sobald ich auf weiter gehe, sehe ich den document Tree.

          Kommentar


            #6
            Zitat von fuxl66 Beitrag anzeigen
            Sobald ich auf weiter gehe, sehe ich den document Tree.
            Dieser document tree wird vom Plugin gelesen und für die Verbindungen genutzt. Wir hatten das vorab auch ausreichend getestet. Kannst Du mir mal diesen document tree schicken?
            Müssen wir weiter schauen.
            Welche Items zu dem Repeatern hast Du konfiguriert?

            Kommentar


              #7
              Hier die Items und den Tree im Anhang.
              Man könnte sicher auf einige dieser Items verzichten, aber wie gesagt, vor dem Update hatte ich keine Problem.

              Code:
              AVM:
              
                  uptime_RepeaterEG:
                      type: num
                      visu_acl: ro
                      avm_data_type@repeater_eg: uptime
              
                  uptime_RepeaterOG:
                      type: num
                      visu_acl: ro
                      avm_data_type@repeater_og: uptime
              
                  firmware_RepeaterEG:
                      type: str
                      visu_acl: ro
                      avm_data_type@repeater_eg: software_version
              
                  firmware_RepeaterOG:
                      type: str
                      visu_acl: ro
                      avm_data_type@repeater_og: software_version
              
                  wlanRepeaterEG:
              
                      uf_wlan_1:
                          type: bool
                          visu_acl: rw
                          avm_data_type@repeater_eg: wlanconfig
                          avm_wlan_index@repeater_eg: 1
              
                      uf_wlan_1_ssid:
                          type: str
                          visu_acl: ro
                          avm_data_type@repeater_eg: wlanconfig_ssid
                          avm_wlan_index@repeater_eg: 1
              
                      uf_wlan_2:
                          type: bool
                          visu_acl: rw
                          avm_data_type@repeater_eg: wlanconfig    # 5GHz
                          avm_wlan_index@repeater_eg: 2
              
                      uf_wlan_2_ssid:
                          type: str
                          visu_acl: ro
                          avm_data_type@repeater_eg: wlanconfig_ssid    # 5GHz
                          avm_wlan_index@repeater_eg: 2
              
                      uf_wlan_3:
                          type: bool
                          visu_acl: rw
                          avm_data_type@repeater_eg: wlanconfig    # Guest
                          avm_wlan_index@repeater_eg: 3
              
                      uf_wlan_3_ssid:
                          type: str
                          visu_acl: ro
                          avm_data_type@repeater_eg: wlanconfig_ssid    # Guest
                          avm_wlan_index@repeater_eg: 3
              
                  wlanRepeaterOG:
              
                      uf_wlan_1:
                          type: bool
                          visu_acl: rw
                          avm_data_type@repeater_og: wlanconfig
                          avm_wlan_index@repeater_og: 1
              
                      uf_wlan_1_ssid:
                          type: str
                          visu_acl: ro
                          avm_data_type@repeater_og: wlanconfig_ssid
                          avm_wlan_index@repeater_og: 1
              
                      uf_wlan_2:
                          type: bool
                          visu_acl: rw
                          avm_data_type@repeater_og: wlanconfig    # 5GHz
                          avm_wlan_index@repeater_og: 2
              
                      uf_wlan_2_ssid:
                          type: str
                          visu_acl: ro
                          avm_data_type@repeater_og: wlanconfig_ssid    # 5GHz
                          avm_wlan_index@repeater_og: 2
              
                      uf_wlan_3:
                          type: bool
                          visu_acl: rw
                          avm_data_type@repeater_og: wlanconfig    # Guest
                          avm_wlan_index@repeater_og: 3
              
                      uf_wlan_3_ssid:
                          type: str
                          visu_acl: ro
                          avm_data_type@repeater_og: wlanconfig_ssid    # Guest
                          avm_wlan_index@repeater_og: 3​
              Angehängte Dateien

              Kommentar


                #8
                Die Meldungen aus dem websocket Modul dürften daher rühren, dass Du das Payload Protokoll der smartvisu nutzt, aber das smartvisu Plugin nicht konfiguriert ist. Das Payload Protokoll der smartvisu wird außer der smartvisu auch in der Admin GUI zur Darstellung der Graphen genutzt.

                Konfiguriere und enable das smartvisu Plugin um das Problem zu beseitigen.
                Viele Grüße
                Martin

                There is no cloud. It's only someone else's computer.

                Kommentar


                  #9
                  Msinn
                  Zitat von Msinn Beitrag anzeigen
                  Konfiguriere und enable das smartvisu Plugin um das Problem zu beseitigen.
                  Danke, Visu klappt nun wieder. Ich wundere mich wie ich bisher ohne das Plugin meine Visu zum Laufen gebracht habe.

                  Kommentar


                    #10
                    Bisher ging das, weil bisher das payload Protokoll immer enabled war. Da das Payload Protokoll der smartvisu keine Anmeldesicherheit hat, kommte damit jeder auf SmartHomeNG zugreifen. Das das Protokoll nun nur mit aktiviertem smartvisu Plugin aktiv ist, ist also ein Security Feature.
                    Viele Grüße
                    Martin

                    There is no cloud. It's only someone else's computer.

                    Kommentar


                      #11
                      Zitat von fuxl66 Beitrag anzeigen

                      ​Ich hab jetzt den Pfad vollständig im der plugin config angegeben, nun klappt das mal.
                      Code:
                      database:
                      plugin_name: database
                      driver: sqlite3
                      count_logentries: true
                      connect:
                      - database:/usr/local/smarthome/var/db/smarthomeng.db
                      - check_same_thread:0​

                      Danke, ich hatte auch Probleme nach dem Update mit ständigen Neustarts von SmarthomeNG.
                      Jetzt wird die DB gefunden und alles läuft wieder.

                      Kommentar


                        #12
                        Code:
                        23-03-15  14:56:39 ERROR    lib.plugin          Plugin 'ow' exception during import of __init__.py: invalid syntax (<fstring>, line 1)
                        > Traceback (most recent call last):
                        >   File "/usr/local/smarthome/lib/plugin.py", line 570, in __init__
                        >     exec("import {0}".format(classpath))
                        >   File "<string>", line 1, in <module>
                        >   File "<fstring>", line 1
                        >     (value=)
                        >           ^
                        > SyntaxError: invalid syntax​
                        Onewire Plugin funktioniert bei mir auch nicht mehr, owserver funktioniert aber.

                        Kommentar


                          #13
                          Zitat von Sisamiwe Beitrag anzeigen

                          Bzgl der Warnings des AVM Plugins:
                          - Welchen Repeater setzt Du ein?
                          - Wie sind die Items konfiguriert?
                          - Welche Infos kommen, wenn Du im Browser "https://<IP-des-Repeaters>:49443/tr64desc.xml" eingibst?

                          Bei mir siehts im Log genauso aus, ich habe zwei Fritz Repeater 2400. Die Fritzbox selber funktioniert aber tadellos.

                          Code:
                          2023-03-15  11:17:56 WARNING  plugins.avm         repeater_2400_1@: Error 'NoneType' object has no attribute 'GetDefaultConnectionService' establishing connection to Fritzdevice via AHA-HTTP-Interface.
                          2023-03-15  11:18:01 WARNING  plugins.avm         repeater_2400_1@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
                          2023-03-15  11:18:01 WARNING  plugins.avm         repeater_2400_1@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
                          2023-03-15  11:18:01 WARNING  plugins.avm         repeater_2400_1@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
                          2023-03-15  11:18:01 WARNING  plugins.avm         repeater_2400_1@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
                          2023-03-15  11:18:01 WARNING  plugins.avm         repeater_2400_1@: Items with avm attribute found, which needs tr064 interface. This is not available/enabled; Item will be ignored.
                          Code:
                          repeater1:
                              plugin_name: avm
                              password: **********
                              host: 192.168.178.69
                              instance: repeater_2400_1​
                          Code:
                              repeater1:
                                uptime:
                                  type: num
                                  visu_acl: ro
                                  avm_data_type@repeater_2400_1: uptime
                                serial_number:
                                  type: str
                                  visu_acl: ro
                                  avm_data_type@repeater_2400_1: serial_number
                                wlan:
                                  wlan_24:
                                    type: bool
                                    visu_acl: rw
                                    enforce_updates: yes
                                    avm_data_type@repeater_2400_1: wlanconfig    # 2,4ghz
                                    avm_wlan_index@repeater_2400_1: 1
                                  wlan_24_ssid:
                                    type: str
                                    visu_acl: ro
                                    avm_data_type@repeater_2400_1: wlanconfig_ssid    # 2,4ghz
                                    avm_wlan_index@repeater_2400_1: 1
                                  wlan_5:
                                    type: bool
                                    visu_acl: rw
                                    enforce_updates: yes
                                    avm_data_type@repeater_2400_1: wlanconfig    # 5 GHz
                                    avm_wlan_index@repeater_2400_1: 2​
                          HTML-Code:
                          <root>
                          <specVersion>
                          <major>1</major>
                          <minor>0</minor>
                          </specVersion>
                          <device>
                          <deviceType>urn:dslforum-org:device:InternetGatewayDevice:1</deviceType>
                          <friendlyName>Repeater1</friendlyName>
                          <manufacturer>AVM</manufacturer>
                          <manufacturerURL>www.avm.de</manufacturerURL>
                          <modelDescription>FRITZ!Repeater 2400</modelDescription>
                          <modelName>FRITZ!Repeater 2400</modelName>
                          <modelNumber> - avm</modelNumber>
                          <modelURL>www.avm.de</modelURL>
                          <UDN>uuid:739f2409-bccb-40e7-8e6c-74427F9C56D6</UDN>
                          <iconList>
                          <icon>
                          <mimetype>image/gif</mimetype>
                          <width>118</width>
                          <height>119</height>
                          <depth>8</depth>
                          <url>/ligd.gif</url>
                          </icon>
                          </iconList>
                          <serviceList>
                          <service>
                          <serviceType>urn:dslforum-org:service:DeviceInfo:1</serviceType>
                          <serviceId>urn:DeviceInfo-com:serviceId:DeviceInfo1</serviceId>
                          <controlURL>/upnp/control/deviceinfo</controlURL>
                          <eventSubURL>/upnp/control/deviceinfo</eventSubURL>
                          <SCPDURL>/deviceinfoSCPD.xml</SCPDURL>
                          </service>
                          <service>
                          <serviceType>urn:dslforum-org:service:DeviceConfig:1</serviceType>
                          <serviceId>urn:DeviceConfig-com:serviceId:DeviceConfig1</serviceId>
                          <controlURL>/upnp/control/deviceconfig</controlURL>
                          <eventSubURL>/upnp/control/deviceconfig</eventSubURL>
                          <SCPDURL>/deviceconfigSCPD.xml</SCPDURL>
                          </service>
                          <service>
                          <serviceType>urn:dslforum-org:service:UserInterface:1</serviceType>
                          <serviceId>urn:UserInterface-com:serviceId:UserInterface1</serviceId>
                          <controlURL>/upnp/control/userif</controlURL>
                          <eventSubURL>/upnp/control/userif</eventSubURL>
                          <SCPDURL>/userifSCPD.xml</SCPDURL>
                          </service>
                          </serviceList>
                          <deviceList>
                          <device>
                          <deviceType>urn:dslforum-org:device:LANDevice:1</deviceType>
                          <friendlyName>LANDevice - FRITZ!Repeater 2400</friendlyName>
                          <manufacturer>AVM</manufacturer>
                          <manufacturerURL>www.avm.de</manufacturerURL>
                          <modelDescription>LANDevice - FRITZ!Repeater 2400</modelDescription>
                          <modelName>LANDevice - FRITZ!Repeater 2400</modelName>
                          <modelNumber> - avm</modelNumber>
                          <modelURL>www.avm.de</modelURL>
                          <UDN>uuid:75802409-bccb-40e7-8e6b-74427F9C56D6</UDN>
                          <UPC>AVM TR-064</UPC>
                          <serviceList>
                          <service>
                          <serviceType>urn:dslforum-org:service:WLANConfiguration:1</serviceType>
                          <serviceId>
                          urn:WLANConfiguration-com:serviceId:WLANConfiguration1
                          </serviceId>
                          <controlURL>/upnp/control/wlanconfig1</controlURL>
                          <eventSubURL>/upnp/control/wlanconfig1</eventSubURL>
                          <SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
                          </service>
                          <service>
                          <serviceType>urn:dslforum-org:service:WLANConfiguration:2</serviceType>
                          <serviceId>
                          urn:WLANConfiguration-com:serviceId:WLANConfiguration2
                          </serviceId>
                          <controlURL>/upnp/control/wlanconfig2</controlURL>
                          <eventSubURL>/upnp/control/wlanconfig2</eventSubURL>
                          <SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
                          </service>
                          <!-- 2 -->
                          <service>
                          <serviceType>urn:dslforum-org:service:WLANConfiguration:3</serviceType>
                          <serviceId>
                          urn:WLANConfiguration-com:serviceId:WLANConfiguration3
                          </serviceId>
                          <controlURL>/upnp/control/wlanconfig3</controlURL>
                          <eventSubURL>/upnp/control/wlanconfig3</eventSubURL>
                          <SCPDURL>/wlanconfigSCPD.xml</SCPDURL>
                          </service>
                          <service>
                          <serviceType>urn:dslforum-org:service:Hosts:1</serviceType>
                          <serviceId>urn:LanDeviceHosts-com:serviceId:Hosts1</serviceId>
                          <controlURL>/upnp/control/hosts</controlURL>
                          <eventSubURL>/upnp/control/hosts</eventSubURL>
                          <SCPDURL>/hostsSCPD.xml</SCPDURL>
                          </service>
                          </serviceList>
                          </device>
                          </deviceList>
                          <presentationURL>http://fritz.box</presentationURL>
                          </device>
                          </root>

                          Kommentar


                            #14
                            Zitat von eXcite Beitrag anzeigen
                            Code:
                            23-03-15 14:56:39 ERROR lib.plugin Plugin 'ow' exception during import of __init__.py: invalid syntax (<fstring>, line 1)
                            > Traceback (most recent call last):
                            > File "/usr/local/smarthome/lib/plugin.py", line 570, in __init__
                            > exec("import {0}".format(classpath))
                            > File "<string>", line 1, in <module>
                            > File "<fstring>", line 1
                            > (value=)
                            > ^
                            > SyntaxError: invalid syntax​
                            Onewire Plugin funktioniert bei mir auch nicht mehr, owserver funktioniert aber.
                            Bei mir und bmx läuft das onewire Plugin. Wie hast Du das onewire Plugin konfiguriert?

                            Und kannst Du bitte das Log vom Start bis zu diesem Fehler posten?
                            Viele Grüße
                            Martin

                            There is no cloud. It's only someone else's computer.

                            Kommentar


                              #15
                              Zitat von hijacker7 Beitrag anzeigen
                              Bei mir siehts im Log genauso aus, ich habe zwei Fritz Repeater 2400. Die Fritzbox selber funktioniert aber tadellos.
                              Der Fehler ist der gleich, wie bei fuxl66

                              Ich arbeite an einem Fix und melde mich.

                              PS:
                              Wir könnten das auch in den Thread vom AVM Plugin verlegen

                              Kommentar

                              Lädt...
                              X