Ankündigung

Einklappen
Keine Ankündigung bisher.

Module http exception: [Errno 101] Das Netzwerk ist nicht erreichbar

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

    Module http exception: [Errno 101] Das Netzwerk ist nicht erreichbar

    Hallo,

    ich habe gerade auf einem neuen Debian System SmartHomeNG nach Anleitung angelegt.
    Leider ist das Backend nicht erreichbar. Wo für ist die IP 10.10.10.10 ?

    File "/usr/local/smarthome/modules/http/__init__.py", line 314, in _get_local_ip_address
    s.connect(("10.10.10.10", 80))
    OSError: [Errno 101] Das Netzwerk ist nicht erreichbar


    Gruß JayKay

    PHP-Code:
      cat /usr/local/smarthome/var/log/smarthome.log                                                  
    018
    -05-01  07:03:45 INFO     Main         Using config dir: /usr/local/smarthome
    2018
    -05-01  07:03:45 INFO     Main         Loading '/usr/local/smarthome/etc/smarthome.yaml' to 'OrderedDict'
    2018-05-01  09:03:45 WARNING  Main         --------------------   Init SmartHomeNG 1.4.2.master (0dff0244)   --------------------
    2018-05-01  09:03:45 INFO     Main         Init Scheduler
    2018
    -05-01  09:03:45 INFO     Main         Init loadable Modules
    2018
    -05-01  09:03:45 INFO     Main         Loading '/usr/local/smarthome/etc/module.yaml' to 'OrderedDict'
    2018-05-01  09:03:45 INFO     Main         Loading '/usr/local/smarthome/modules/http/module.yaml' to 'OrderedDict'
    2018-05-01  09:03:45 INFO     Main         module 'http'Metadata paramlist '['user', 'password', 'hashed_password', 'service_user', 'service_password$
    2018-05-01  09:03:45 INFO     Main         Loading module 'http'args '{'module_name': "'http'", 'starturl': "'backend'"}'
    2018-05-01  09:03:45 INFO     Main         module 'http'value not found in plugin configuration file for parameter 'user' -> using default value 'admin$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'password' -> using default value ''$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'hashed_password' -> using default v$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'service_user' -> using default valu$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'service_password' -> using default $
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'service_hashed_password' -> using d$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'port' -> using default value '8383'$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'servicesport' -> using default valu$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'showpluginlist' -> using default va$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'showservicelist' -> using default v$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'threads' -> using default value '8'$
    2018-05-01  09:03:45 INFO     Main         module '
    http': value not found in plugin configuration file for parameter 'showtraceback' -> using default val$
    2018-05-01  09:03:45 ERROR    Main         Module http exception: [Errno 101] Das Netzwerk ist nicht erreichbar
    Traceback (most recent call last):
      File "/usr/local/smarthome/lib/module.py", line 94, in __init__
        self._load_module(module, classname, classpath, args)
      File "/usr/local/smarthome/lib/module.py", line 242, in _load_module
        exec("self.loadedmodule.__init__(self._sh{0}{1})".format("," if len(arglist) else "", argstring))
      File "<string>", line 1, in <module>
      File "/usr/local/smarthome/modules/http/__init__.py", line 127, in __init__
        self._ip = self._get_local_ip_address()
      File "/usr/local/smarthome/modules/http/__init__.py", line 314, in _get_local_ip_address
        s.connect(("10.10.10.10", 80))
    OSError: [Errno 101] Das Netzwerk ist nicht erreichbar
    2018-05-01  09:03:45 WARNING  Main         Loaded Modules: []
    2018-05-01  09:03:45 INFO     Main         Start Modules
    2018-05-01  09:03:45 INFO     Main         Init Plugins
    2018-05-01  09:03:45 INFO     Main         Loading '
    /usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
    2018-05-01  09:03:45 INFO     Main         Load plugins
    2018-05-01  09:03:45 INFO     Main         Loading '
    /usr/local/smarthome/plugins/backend/plugin.yaml' to 'OrderedDict'
    2018-05-01  09:03:45 INFO     Main         plugin '
    backend': Metadata paramlist = '['updates_allowed''developer_mode''pypi_timeout']'
    2018-05-01  09:03:45 INFO     Main         plugin '
    backend': value not found in plugin configuration file for parameter 'developer_mode' -> using default$
    2018-05-01  09:03:45 INFO     Main         plugin '
    backend': value not found in plugin configuration file for parameter 'pypi_timeout' -> using default v$
    2018-05-01  09:03:45 ERROR    Main         Module '
    http' not loaded
    2018-05-01  09:03:45 ERROR    Main         Plugin '
    backend': Not initializing the web interface
    2018-05-01  09:03:45 ERROR    Main         Plugins: Plugin '
    backend' initialization failed, plugin not loaded 

    #2
    Hatte ich auch ab und an. Kam meist wenn es beim Start Probleme mit dem Netzwerk bzw. der DHCP-Adresse gab. Nochmal neu starten und alles ist gut. Warum da ein Default 10.10.10.10 ist, k.A., kommt wohl aus der Routine zur Prüfung der NW-Verfügbarkeit.

    Kommentar


      #3
      Mh, habe jetzt schon auf Statische IP umgestellt und IPV6 deaktiviert :-(
      Was mich wundert das Monit das gleiche Verhalten zeigt und beides auf meinem alten Debian 8 Live System ohne Probleme läuft...

      Kommentar


        #4
        s.connect(("10.10.10.10", 80)) baut hierbei keine Verbindung auf, sondern bereitet dieses nur vor. Dadurch kann man im Anschluß die mit dem Netzwerk verbundene lokale IP Adresse abfragen.

        Häufig wird s.connect(("8.8.8.8", 80)) genutzt. Das ist die Adresse von Googles DNS Server. Um Verwirrungen zu vermeiden, haben wir bewusst eine IP Adresse eingetragen, die im Internet nicht geroutet wird.
        Viele Grüße
        Martin

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

        Kommentar


          #5
          Ich habe übrigens auch gerade einen neuen Rechner mit Debian Stretch aufgesetzt. Bei mir funktioniert SmartHomeNG ohne Probleme.
          Viele Grüße
          Martin

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

          Kommentar


            #6
            Bei mir läuft es jetzt nach dem ich auch eine statische IP verwende...

            Kommentar

            Lädt...
            X