Ankündigung

Einklappen
Keine Ankündigung bisher.

Problem bei der Umstellung auf 1.9.4

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

    Problem bei der Umstellung auf 1.9.4

    Mir fehlt der Durchblick! Ich stelle gerade ein Plugin aus der laufenden 1.9.3 auf die neue 1.9.4 smarthomeNG um und scheitere!

    Ich finde das Problem nicht. Die fehlende 'webif_pagelength' wird angemeckert, obwohl diese im Plugin in der yaml vorliegt

    ich bin für jede Hilfe dankbar. Leider bringe ich das bisjetzt problemlos laufende Plugin nicht über die hier gezeigte Schwelle! Die eigentliche Arbeit, die Umstellung aud das neue mysql3 erreiche ich erst garnicht.

    Wenn weitere Daten benötigt werden, bitte melden!

    LG Wolfgang



    Code:
    2023-03-26  15:57:41 NOTICE   lib.smarthome    --------------------   Init SmartHomeNG v1.9.4-master (c0cfb39c)   --------------------
    2023-03-26  15:57:41 NOTICE   lib.smarthome    Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
    2023-03-26  15:57:41 NOTICE   lib.smarthome     - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=31376)
    2023-03-26  15:57:41 NOTICE   lib.smarthome     - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'
    2023-03-26  15:57:42 NOTICE   lib.smarthome     - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
    2023-03-26  15:57:44 CRITICAL lib.module       Module 'mqtt' (modules.mqtt) exception during import of __init__.py: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
    
    eigene Logzeilen
    2023-03-26  15:57:45 ERROR    lib.smarthome    Test Typ  <class 'KeyError'>
    2023-03-26  15:57:45 ERROR    lib.smarthome    Test Value  'webif_pagelength'
    2023-03-26  15:57:45 ERROR    lib.smarthome    Test tb  <traceback object at 0x7f7c3b1080>
    2023-03-26  15:57:45 ERROR    lib.smarthome    Test mytb    File "/usr/local/smarthome/bin/smarthome.py", line 292, in <module>
        sh.start()
    Ende eigener Log
      File "/usr/local/smarthome/lib/smarthome.py", line 652, in start
        self.plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf_basename)
      File "/usr/local/smarthome/lib/plugin.py", line 122, in __init__
        plugin_name, self.meta = self._get_pluginname_and_metadata(plugin, _conf[plugin])
      File "/usr/local/smarthome/lib/plugin.py", line 242, in _get_pluginname_and_metadata
        meta = Metadata(self._sh, (plugin_name+plugin_version).replace('.',os.sep), 'plugin')
      File "/usr/local/smarthome/lib/metadata.py", line 129, in __init__
        self.global_parameters = self.get_global_plugin_parameters()
      File "/usr/local/smarthome/lib/metadata.py", line 277, in get_global_plugin_parameters
        result['webif_pagelength']['description'] = self._sh.modules.get_module('http')._metadata.meta['parameters']['webif_pagelength'].get('description', {'en': 'No description found!'})
     
    2023-03-26  15:57:45 ERROR    lib.smarthome    Unhandled exception: 'webif_pagelength'
    <class 'KeyError'>
    running SmartHomeNG v1.9.4-master (c0cfb39c)
    Exception:   File "/usr/local/smarthome/bin/smarthome.py", line 292, in <module>
        sh.start()
      File "/usr/local/smarthome/lib/smarthome.py", line 652, in start
        self.plugins = lib.plugin.Plugins(self, configfile=self._plugin_conf_basename)
      File "/usr/local/smarthome/lib/plugin.py", line 122, in __init__
        plugin_name, self.meta = self._get_pluginname_and_metadata(plugin, _conf[plugin])
      File "/usr/local/smarthome/lib/plugin.py", line 242, in _get_pluginname_and_metadata
        meta = Metadata(self._sh, (plugin_name+plugin_version).replace('.',os.sep), 'plugin')
      File "/usr/local/smarthome/lib/metadata.py", line 129, in __init__
        self.global_parameters = self.get_global_plugin_parameters()
      File "/usr/local/smarthome/lib/metadata.py", line 277, in get_global_plugin_parameters
        result['webif_pagelength']['description'] = self._sh.modules.get_module('http')._metadata.meta['parameters']['webif_pagelength'].get('description', {'en': 'No description found!'})
    
    ​
      ----  Main        
    ​
    Code:
    # Metadata for the plugin
    plugin:
        # Global plugin attributes
        type: protocol                   # plugin type (gateway, interface, protocol, system, web)
        description:
            de: 'Portfolioverwaltung, mit Unterstuetzung  MySQL/SQLITE3 '
            en: 'Portfoliomanagement, with support for  MySQL/SQLITE3'
        tester: schloessl
        maintainer: schloessl
        state: 'test'
        keywords: aastockwert
    #    documentation: https://github.com/smarthomeNG/smarthome/wiki/CLI-Plugin        # url of documentation (wiki) page
    #    support: https://knx-user-forum.de/forum/supportforen/smarthome-py
        version: 1.0.0                  # Plugin version (must match the version specified in __init__.py)
        sh_minversion: 1.9              # minimum shNG version to use this plugin
    #    sh_maxversion:                 # maximum shNG version to use this plugin (leave empty if latest)
    #    py_minversion: 3.7             # minimum Python version to use for this plugin
    #    py_maxversion:                 # maximum Python version to use for this plugin (leave empty if latest)
        multi_instance: false           # plugin supports multi instance
        restartable: unknown
        classname: Aastockwert          # class containing the plugin
    
    parameters:
        # Definition of parameters to be configured in etc/plugin.yaml (enter 'parameters: NONE', if section should be empty)
        # This parameter should be included if plugin provides a web interface. It lets users configure the standard number of entries per page
        webif_pagelength:
            type: int
            default: 0
            valid_list:
                - -1
                - 0
                - 25
                - 50
                - 100
            description:
                de: 'Anzahl an Items, die standardmäßig in einer Web Interface Tabelle pro Seite angezeigt werden.
                     0 = automatisch, -1 = alle'
                en: 'Number of items being listed in a web interface table per page by default.
                     0 = automatic, -1 = all'
            description_long:
                de: 'Anzahl an Items, die standardmäßig in einer Web Interface Tabelle pro Seite angezeigt werden.\n
                     Bei 0 wird die Tabelle automatisch an die Höhe des Browserfensters angepasst.\n
                     Bei -1 werden alle Tabelleneinträge auf einer Seite angezeigt.'
                en: 'Amount of items being listed in a web interface table per page by default.\n
                     0 adjusts the table height automatically based on the height of the browser windows.\n
                     -1 shows all table entries on one page.'
    
        param1:
            type: str
            description:
                de: 'Demo Parameter rot 1.8.3'
                en: 'Parameter for demonstration purposes'
    
    ​
    Zuletzt geändert von schloessl; 26.03.2023, 16:42.

    #2
    Hallo,

    entferne den Parameter pagelength aus der yaml Datei.
    Der wird nicht mehr benötigt.

    Kommentar


      #3
      Der Parameter webif_pagelength ist in v1.9.4 ein globaler Parameter und wird im http Modul in der etc/module.yaml definiert.
      Viele Grüße
      Martin

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

      Kommentar


        #4
        Danke für die Hilfe!

        Ich habe die /etc/modul.yaml geändert, aber das Problem ist nicht beseitigt.

        Jetzt fehlt der Pfad "api.logics ???",
        Im ADMIN fehlen jetzt die ITEMS, LOGICS , The path '/api/logics/' was not found.usw

        Darf ich noch einmal um Hilfe bitten?​

        Code:
        http:
            module_name: http
        #    port: 8383
        #    servicesport: 8384
        #    showpluginlist: False
            showservicelist: true
        #    starturl: backend
        #    threads: 8
        #    showtraceback: True
            webif_pagelength: 0




        Code:
        2023-03-27 15:37:02 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:326 --------------------   Init SmartHomeNG v1.9.4-master (c0cfb39c)   --------------------  ----  Main        
        2023-03-27 15:37:02 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:327 Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome  ----  Main        
        2023-03-27 15:37:02 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:329  - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=13662)  ----  Main        
        2023-03-27 15:37:02 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:333  - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'  ----  Main        
        2023-03-27 15:37:04 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:414  - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert  ----  Main        
        2023-03-27 15:37:06 CEST WARNING  lib.module          module              _load_module ln:230 Not loading module Mqtt from section 'mqtt': Module is disabled  ----  Main        
        2023-03-27 15:52:22 CEST WARNING  modules.admin.api_logics rest                REST_dispatch_execute ln:349 REST_dispatch_execute: None: (404, "The path '/api/logics/' was not found.")  ----  CP Server Thread-13
        2023-03-27 15:56:52 CEST WARNING  modules.admin.api_plugins rest                REST_dispatch_execute ln:349 REST_dispatch_execute: None: 'webif_pagelength'  ----  CP Server Thread-15
        ​
        2023-03-27 16:12:34 CEST CRITICAL lib.module module _load_module ln:238 Module 'mqtt' (modules.mqtt) exception during import of __init__.py: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' ---- Main

        Steckz hier das Problem?
        Zuletzt geändert von schloessl; 27.03.2023, 15:16. Grund: Die letzte Zeile hinzugefügt "lib ohne attribute"

        Kommentar


          #5
          Danke für die Unterstützung!


          Im http;
          webif_pagelength: 0 eingefügt!

          mqtt ist ausgeachaltet

          Aber es geht leider nicht voran!

          Code:
          2023-03-29 17:15:04 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.9.4-master (c0cfb39c) --------------------
          2023-03-29 17:15:04 NOTICE lib.smarthome Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
          2023-03-29 17:15:04 NOTICE lib.smarthome - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=18001)
          2023-03-29 17:15:04 NOTICE lib.smarthome - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'
          2023-03-29 17:15:06 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
          2023-03-29 17:15:08 WARNING lib.module Not loading module Mqtt from section 'mqtt': Module is disabled
          2023-03-29 17:18:52 NOTICE lib.smarthome -------------------- SmartHomeNG stopped --------------------
          
          
          2023-03-29 17:18:52 ERROR asyncio Task was destroyed but it is pending!
          task: &lt;Task pending name='ws_server' coro=&lt;Websocket.ws_server() running at /usr/local/smarthome/modules/websocket/__init__.py:265&gt; wait_for=&lt;Future pending cb=[&lt;TaskWakeupMethWrapper object at 0x7f87746a30&gt;()]&gt;&gt;
          2023-03-29 17:18:52 ERROR asyncio Task was destroyed but it is pending!
          task: &lt;Task pending name='update_visu' coro=&lt;Websocket.update_visu() running at /usr/local/smarthome/modules/websocket/__init__.py:922&gt; wait_for=&lt;Future pending cb=[&lt;TaskWakeupMethWrapper object at 0x7f87746bb0&gt;()]&gt;&gt;
          2023-03-29 17:18:52 ERROR asyncio Task was destroyed but it is pending!
          task: &lt;Task pending name='update_all_series' coro=&lt;Websocket.update_all_series() running at /usr/local/smarthome/modules/websocket/__init__.py:765&gt; wait_for=&lt;Future pending cb=[&lt;TaskWakeupMethWrapper object at 0x7f8783dee0&gt;()]&gt;&gt;
          
          
          2023-03-29 17:19:19 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.9.4-master (c0cfb39c) --------------------
          2023-03-29 17:19:19 NOTICE lib.smarthome Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
          2023-03-29 17:19:19 NOTICE lib.smarthome - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=18076)
          2023-03-29 17:19:19 NOTICE lib.smarthome - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'
          2023-03-29 17:19:20 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
          2023-03-29 17:19:22 WARNING lib.module Not loading module Mqtt from section 'mqtt': Module is disabled
          ​
          In der Admin-Seite ist nur noch die Systenseite sichtbar, Iitems. logics, usw bleiben leer!
          Wo streckt mein Problem?

          Code:
          2023-03-29  19:38:02 NOTICE   lib.smarthome    --------------------   Init SmartHomeNG v1.9.4-master (c0cfb39c)   --------------------
          2023-03-29  19:38:02 NOTICE   lib.smarthome    Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
          2023-03-29  19:38:02 NOTICE   lib.smarthome     - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=19717)
          2023-03-29  19:38:02 NOTICE   lib.smarthome     - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'
          2023-03-29  19:38:03 NOTICE   lib.smarthome     - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
          2023-03-29  19:59:19 WARNING  modules.admin.api_logics REST_dispatch_execute: None: (404, "The path '[COLOR=#e74c3c]/api/logics/' was not found[/COLOR].")​
          Was steckt hinter dieser Warnung?
          Zuletzt geändert von bmx; 30.03.2023, 08:33.

          Kommentar


            #6
            KurzenFrage interessehalber: Wiso hast Du das mqtt Modul disabled?
            Viele Grüße
            Martin

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

            Kommentar


              #7
              Ich glaube es nicht zu benötigen. liege ich da falsch??

              LG Wolfgang

              kurz nachgeschoben!
              Code:
              2023-03-29 20:32:51 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:333  - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'  ----  Main        
              2023-03-29 20:32:52 CEST NOTICE   lib.smarthome       smarthome           __init__     ln:414  - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert  ----  Main        
              2023-03-29 20:32:54 CEST CRITICAL lib.module          module              _load_module ln:238 Module 'mqtt' (modules.mqtt) exception during import of __init__.py: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'  ----  Main        
              ​
              Was ist das ? 'X509_V_FLAG_CB_ISSUER_CHECK'
              Zuletzt geändert von schloessl; 29.03.2023, 19:38. Grund: Kurz mit mqtt gestestet, neues Problem?

              Kommentar


                #8
                Tritt das Problem denn auch auf, wenn Du das mqtt Modul aktiviert hast?
                Viele Grüße
                Martin

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

                Kommentar


                  #9
                  Hallo Msinn,
                  danke für Deine Hilfe.

                  Ich hatte mqtt aktiviert und damit getestet. Die Fehlermeldung ist unter #7 aufgelistet.
                  ich habe einmal "X509_V_FLAG_CB_ISSUER_CHECK" in google eingegeben, das Problem scheint bekannt zu sein.

                  install pyOpenSSL ist bei ubuntu angeblich notwendig. (Möchte aber hier nicht weiter alles zerschießen)

                  Schlimmer ist der Verlust der Daten im Admin

                  Code:
                  2023-03-30 13:20:20 WARNING modules.admin.api_logics REST_dispatch_execute: None: (404, "The path '/api/logics/' was not found.")
                  2023-03-30 13:46:32 WARNING modules.admin.api_logics REST_dispatch_execute: None: (404, "The path '/api/logics/' was not found.")
                  2023-03-30 13:47:09 WARNING modules.admin.api_plugins REST_dispatch_execute: None: 'webif_pagelength'
                  2023-03-30 13:50:33 WARNING modules.admin.api_plugins REST_dispatch_execute: None: 'webif_pagelength'
                  2023-03-30 13:50:40 WARNING modules.admin.api_logics REST_dispatch_execute: None: (404, "The path '/api/logics/' was not found.")​
                  Logik, Szenen und Plugins sind im Admin nicht mehr gefüllt!

                  Unter SERVICES wird diese Meldung angezeigt: SHNG_STATE.Starting: Initializing plugins

                  weiter Plugins KNX. OWSERVER und MQTT sind geladen und werden angezeigt.

                  Wo kann ich suchen?​
                  Zuletzt geändert von bmx; 30.03.2023, 16:19.

                  Kommentar


                    #10
                    Tippfehler bei Visitor Messages

                    Kommentar


                      #11
                      Zitat von schloessl Beitrag anzeigen
                      weiter Plugins KNX. OWSERVER und MQTT sind geladen und werden angezeigt.
                      Ich hatte vom mqtt Modul gesprochen. Das mqtt Plugin schadet zwar nicht, das hättest Du aber um meine Frage zu beantworten nicht konfigurieren müssen.

                      Frage: Woher hast Du das Plugin OWSERVER? Das kenne ich nicht.

                      Zitat von schloessl Beitrag anzeigen
                      WARNING modules.admin.api_plugins REST_dispatch_execute: None: 'webif_pagelength'
                      Die Meldung macht mich stutzig. Die würde eigentlich höchstens kommen, wenn das http Modul nicht das aktuelle ist.
                      Allerdings sind Deine Log Messages für mich etwas schwer zu interpretieren, weil Du nicht den standardmäßigen Formatter benutzt.

                      Viele Grüße
                      Martin

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

                      Kommentar


                        #12
                        Danke Msinn für Deine Antwort,

                        hier noch einmal die Logmeldungen nach einem Neustart. Leider waren diese zuvor als Code und nicht als Quote formatiert.

                        Der zuvor angesprochene OWSERVER war natürlich der owserver v3.2p4​, sorry für die Großschreibung!


                        Hier die error.log
                        2023-03-31 11:59:13 CEST NOTICE lib.smarthome smarthome __init__ ln:326 -------------------- Init SmartHomeNG v1.9.4-master (c0cfb39c) -------------------- ---- Main
                        2023-03-31 11:59:13 CEST NOTICE lib.smarthome smarthome __init__ ln:327 Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome ---- Main
                        2023-03-31 11:59:13 CEST NOTICE lib.smarthome smarthome __init__ ln:329 - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=45387) ---- Main
                        2023-03-31 11:59:13 CEST NOTICE lib.smarthome smarthome __init__ ln:333 - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)' ---- Main
                        2023-03-31 11:59:14 CEST NOTICE lib.smarthome smarthome __init__ ln:414 - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert ---- Main
                        2023-03-31 11:59:16 CEST CRITICAL lib.module module _load_module ln:238 Module 'mqtt' (modules.mqtt) exception during import of __init__.py: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' ---- Main
                        Hier die warnings.log
                        2023-03-31 11:59:13 NOTICE lib.smarthome -------------------- Init SmartHomeNG v1.9.4-master (c0cfb39c) --------------------
                        2023-03-31 11:59:13 NOTICE lib.smarthome Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome
                        2023-03-31 11:59:13 NOTICE lib.smarthome - operating system 'Debian GNU/Linux 11 (bullseye)' (pid=45387)
                        2023-03-31 11:59:13 NOTICE lib.smarthome - on 'Raspberry Pi 4 v1.4, 8GB (Sony, UK)'
                        2023-03-31 11:59:14 NOTICE lib.smarthome - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert
                        2023-03-31 11:59:16 CRITICAL lib.module Module 'mqtt' (modules.mqtt) exception during import of __init__.py: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
                        2023-03-31 12:17:42 WARNING modules.admin.api_logics REST_dispatch_execute: None: (404, "The path '/api/logics/' was not found.")
                        2023-03-31 12:17:49 WARNING modules.admin.api_plugins REST_dispatch_execute: None: 'webif_pagelength'
                        2023-03-31 12:31:11 WARNING modules.admin.api_scenes REST_dispatch_execute: all: 'NoneType' object has no attribute 'reload_scenes'
                        2023-03-31 12:31:27 WARNING modules.admin.api_plugins REST_dispatch_execute: None: 'webif_pagelength'
                        2023-03-31 12:31:40 ERROR modules.admin.api_plugins PluginsInstalledController.read(): SmartHomeNG has not yet finished initialization
                        2023-03-31 12:32:47 WARNING modules.admin.api_logics REST_dispatch_execute: None: (404, "The path '/api/logics/' was not found.")

                        Das System hängt dauerhaft hier:

                        SHNG_STATE.Starting: Initializing plugins


                        ​​​​​​​

                        Kommentar


                          #13
                          Zitat von schloessl Beitrag anzeigen
                          Der zuvor angesprochene OWSERVER war natürlich der owserver v3.2p4​, sorry für die Großschreibung!
                          Es gibt in SmartHomeNG aber kein Plugin owserver (auch nicht klein geschrieben).
                          Meinst Du vielleicht das Plugin onewire? oder hast Du ein Plugin im Einsatz, welches nicht aus unserem Repository stammt?

                          Insgesamt hast Du eine Reihe von sehr merkwürdigen Fehlern. Ich würde im Moment vermuten, dass Deine Installation nicht sauber ist. Du solltest mal eine saubere neue Installation machen. Damit würde ich an Deiner Stelle nach auf das Bugfix Release warten, damit Du dann nicht auf das eine oder andere bekannte Problem triffst.
                          Zuletzt geändert von Msinn; 31.03.2023, 13:26.
                          Viele Grüße
                          Martin

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

                          Kommentar

                          Lädt...
                          X