Wenn dies dein erster Besuch hier ist, lies bitte zuerst die Hilfe - Häufig gestellte Fragen durch. Du musst dich vermutlich registrieren, bevor du Beiträge verfassen kannst. Klicke oben auf 'Registrieren', um den Registrierungsprozess zu starten. Du kannst auch jetzt schon Beiträge lesen. Suche dir einfach das Forum aus, das dich am meisten interessiert.
nun melde ich mich nochmal, nachdem ich gerade smarthomeNG mit smartVISU auf meinem APU2C4 installiert habe. Hier tritt exakt dasselbe Problem auf. Das Backend ist nach Neustart nicht erreichbar.
Im Log steht "module http not loaded". Die module.yaml habe ich unten auch reinkopiert.
Was muss ich denn machen, damit das http-Modul läuft?
HTML-Code:
2018-06-29 20:21:47 INFO Main Using config dir: /usr/local/smarthome
2018-06-29 20:21:47 INFO Main Loading '/usr/local/smarthome/etc/smarthome.yaml' to 'OrderedDict'
2018-06-29 22:21:47 WARNING Main -------------------- Init SmartHomeNG 1.4.2.master (0dff0244) --------------------
2018-06-29 22:21:47 INFO Main Init Scheduler
2018-06-29 22:21:47 INFO Main Init loadable Modules
2018-06-29 22:21:47 INFO Main Loading '/usr/local/smarthome/etc/module.yaml' to 'OrderedDict'
2018-06-29 22:21:47 INFO Main Loading '/usr/local/smarthome/modules/http/module.yaml' to 'OrderedDict'
2018-06-29 22:21:48 INFO Main module 'http': Metadata paramlist = '['user', 'password', 'hashed_password', 'service_user', 'service_password', 'service_hashed_password', 'port', 'servicesport', 'showpluginlist', 'showservicelist', 'starturl', 'threads', 'showtraceback']'
2018-06-29 22:21:48 INFO Main Loading module 'http': args = '{'starturl': "'backend'", 'module_name': "'http'"}'
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'user' -> using default value 'admin' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'password' -> using default value '' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'hashed_password' -> using default value '' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_user' -> using default value 'serviceuser' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_password' -> using default value '' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_hashed_password' -> using default value '' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'port' -> using default value '8383' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'servicesport' -> using default value '8384' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'showpluginlist' -> using default value 'True' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'showservicelist' -> using default value 'False' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'threads' -> using default value '8' instead
2018-06-29 22:21:50 INFO Main module 'http': value not found in plugin configuration file for parameter 'showtraceback' -> using default value 'False' instead
2018-06-29 22:21:50 ERROR Main Module http exception: [Errno 101] Network is unreachable
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] Network is unreachable
2018-06-29 22:21:50 WARNING Main Loaded Modules: []
2018-06-29 22:21:50 INFO Main Start Modules
2018-06-29 22:21:50 INFO Main Init Plugins
2018-06-29 22:21:50 INFO Main Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:50 INFO Main Load plugins
2018-06-29 22:21:50 INFO Main Loading '/usr/local/smarthome/plugins/backend/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:50 INFO Main plugin 'backend': Metadata paramlist = '['updates_allowed', 'developer_mode', 'pypi_timeout']'
2018-06-29 22:21:50 INFO Main plugin 'backend': value not found in plugin configuration file for parameter 'developer_mode' -> using default value 'False' instead
2018-06-29 22:21:50 INFO Main plugin 'backend': value not found in plugin configuration file for parameter 'pypi_timeout' -> using default value '5' instead
2018-06-29 22:21:50 ERROR Main Module 'http' not loaded
2018-06-29 22:21:50 ERROR Main Plugin 'backend': Not initializing the web interface
2018-06-29 22:21:50 ERROR Main Plugins: Plugin 'backend' initialization failed, plugin not loaded
2018-06-29 22:21:50 INFO Main Loading '/usr/local/smarthome/plugins/cli/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:51 INFO Main plugin 'cli': Metadata paramlist = '['update', 'ip', 'port', 'hashed_password']'
2018-06-29 22:21:51 INFO Main plugin 'cli': value not found in plugin configuration file for parameter 'port' -> using default value '2323.0' instead
2018-06-29 22:21:51 INFO Main plugin 'cli': value not found in plugin configuration file for parameter 'hashed_password' -> using default value '' instead
2018-06-29 22:21:51 WARNING Main CLI: You should set a password for this plugin.
2018-06-29 22:21:51 INFO Main Initialized plugin 'cli' from from section 'cli'
2018-06-29 22:21:51 INFO Main Loading '/usr/local/smarthome/plugins/knx/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:51 INFO Main plugin 'knx': No parameter definitions found in metadata
2018-06-29 22:21:51 INFO Main Initialized plugin 'knx' from from section 'knx'
2018-06-29 22:21:51 INFO Main Loading '/usr/local/smarthome/plugins/visu_websocket/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:51 INFO Main plugin 'visu_websocket': Metadata paramlist = '['ip', 'port', 'tls', 'acl', 'wsproto', 'querydef']'
2018-06-29 22:21:51 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'ip' -> using default value '0.0.0.0' instead
2018-06-29 22:21:51 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'port' -> using default value '2424' instead
2018-06-29 22:21:51 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'tls' -> using default value 'False' instead
2018-06-29 22:21:51 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'querydef' -> using default value 'False' instead
2018-06-29 22:21:51 INFO Main Initialized plugin 'visu_websocket' from from section 'visu'
2018-06-29 22:21:51 INFO Main Loading '/usr/local/smarthome/plugins/visu_smartvisu/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:51 INFO Main plugin 'visu_smartvisu': Metadata paramlist = '['smartvisu_dir', 'generate_pages', 'overwrite_templates', 'visu_style', 'handle_widgets']'
2018-06-29 22:21:51 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'generate_pages' -> using default value 'True' instead
2018-06-29 22:21:51 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'overwrite_templates' -> using default value 'True' instead
2018-06-29 22:21:51 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'visu_style' -> using default value 'std' instead
2018-06-29 22:21:51 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'handle_widgets' -> using default value 'True' instead
2018-06-29 22:21:51 INFO Main Initialized plugin 'visu_smartvisu' from from section 'smartvisu'
2018-06-29 22:21:51 INFO Main Loading '/usr/local/smarthome/plugins/sqlite/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO Main plugin 'sqlite': No parameter definitions found in metadata
2018-06-29 22:21:52 ERROR Main plugin 'sqlite' version differs between Python code (1.3.1) and metadata (1.3.1.2)
2018-06-29 22:21:52 INFO Main Initialized plugin 'sqlite' from from section 'sql'
2018-06-29 22:21:52 INFO Main Load of plugins finished
2018-06-29 22:21:52 INFO Main Start initialization of items
2018-06-29 22:21:52 INFO Main Loading '/usr/local/smarthome/lib/env/core.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO Main Loading '/usr/local/smarthome/lib/env/location.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO Main config.parse_itemsdir: skipping logic definition file = /usr/local/smarthome/lib/env/logic.yaml
2018-06-29 22:21:52 INFO Main Loading '/usr/local/smarthome/lib/env/system.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO Main Items initialization finished, 45 items loaded
2018-06-29 22:21:52 INFO Main Start Logics
2018-06-29 22:21:52 INFO Main Loading '/usr/local/smarthome/lib/env/logic.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO Main Loading '/usr/local/smarthome/etc/logic.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO Main Start plugins
2018-06-29 22:21:52 INFO Main Start of plugins finished
2018-06-29 22:21:52 INFO smartvisu Starting smartVISU v2.8 handling
2018-06-29 22:21:52 INFO smartvisu Installing widgets into smartVISU v2.8
2018-06-29 22:21:52 INFO smartvisu Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-06-29 22:21:52 INFO smartvisu Adding import statements to root.html
2018-06-29 22:21:52 INFO smartvisu Generating pages for smartVISU v2.8
2018-06-29 22:21:52 INFO smartvisu Generating pages for smartVISU v2.8 End
2018-06-29 22:21:52 INFO smartvisu Finished smartVISU v2.8 handling
2018-06-29 22:22:45 INFO Main VISU: Websocket handler uses protocol version 4
Au einigen Systemen tritt das Problem auf, dass die eigene IP Adresse nicht ermittelt werden kann. (Network not reachable Fehler). Dann musst Du die IP Adresse auf der das http Modul lauschen soll per Hand konfiguriert werden. Das geht aber erst in der develop Version.
Alternativ kannst Du Dein Betriebssystem umkonfigurieren. Mein System bezieht die IP Adresse per dhcp und ich habe im dhcp Server konfiguriert, dass das System immer die slbe IP Adresse erhält.
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Danke für Eure Tipps. Eben habe ich den Rechner wieder angemacht und das Backend funktionierte direkt nach dem Hochfahren. Die APU bekommt vom DHCP (Fritzbox) immer dieselbe IP zugewiesen. Hier das Logfile von eben, als es funktioniert hat:
HTML-Code:
2018-06-30 19:11:35 INFO Main Using config dir: /usr/local/smarthome
2018-06-30 19:11:35 INFO Main Loading '/usr/local/smarthome/etc/smarthome.yaml' to 'OrderedDict'
2018-06-30 21:11:35 WARNING Main -------------------- Init SmartHomeNG 1.4.2.master (0dff0244) --------------------
2018-06-30 21:11:35 INFO Main Init Scheduler
2018-06-30 21:11:35 INFO Main Init loadable Modules
2018-06-30 21:11:35 INFO Main Loading '/usr/local/smarthome/etc/module.yaml' to 'OrderedDict'
2018-06-30 21:11:35 INFO Main Loading '/usr/local/smarthome/modules/http/module.yaml' to 'OrderedDict'
2018-06-30 21:11:36 INFO Main module 'http': Metadata paramlist = '['user', 'password', 'hashed_password', 'service_user', 'service_password', 'service_hashed_password', 'port', 'servicesport', 'showpluginlist', 'showservicelist', 'starturl', 'threads', 'showtraceback']'
2018-06-30 21:11:36 INFO Main Loading module 'http': args = '{'starturl': "'backend'", 'module_name': "'http'"}'
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'user' -> using default value 'admin' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'password' -> using default value '' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'hashed_password' -> using default value '' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_user' -> using default value 'serviceuser' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_password' -> using default value '' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_hashed_password' -> using default value '' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'port' -> using default value '8383' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'servicesport' -> using default value '8384' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'showpluginlist' -> using default value 'True' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'showservicelist' -> using default value 'False' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'threads' -> using default value '8' instead
2018-06-30 21:11:38 INFO Main module 'http': value not found in plugin configuration file for parameter 'showtraceback' -> using default value 'False' instead
2018-06-30 21:11:38 INFO Main Module 'http': ip address = 192.168.99.59, hostname = 'smarthomeNG.fritz.box'
2018-06-30 21:11:38 INFO Main _hostmap_webifs = {'smarthomeNG.fritz.box:8383': '/msg', '192.168.99.59:8383': '/msg', 'smarthomeNG.local:8383': '/msg'}
2018-06-30 21:11:38 INFO Main _hostmap_services = {'smarthomeNG.fritz.box:8384': '/msg', '192.168.99.59:8384': '/msg', 'smarthomeNG.local:8384': '/msg'}
2018-06-30 21:11:38 INFO Main module_conf = {'/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}, '/': {'tools.trailing_slash.on': False, 'request.dispatch': <function VirtualHost.<locals>.vhost_dispatch at 0x7fdc1ef57e18>, 'log.screen': False, 'tools.staticdir.debug': True, 'tools.staticdir.root': '/usr/local/smarthome/modules/http/webif'}}
2018-06-30 21:11:38 INFO Main [30/Jun/2018:21:11:38] ENGINE Bus STARTING
2018-06-30 21:11:38 INFO Main [30/Jun/2018:21:11:38] ENGINE Serving on http://192.168.99.59:8384
2018-06-30 21:11:38 INFO Main [30/Jun/2018:21:11:38] ENGINE Serving on http://192.168.99.59:8383
2018-06-30 21:11:38 INFO Main [30/Jun/2018:21:11:38] ENGINE Bus STARTED
2018-06-30 21:11:38 INFO Main mount '/plugins' - webif_dir = '/usr/local/smarthome/modules/http/webif'
2018-06-30 21:11:38 INFO Main Module http: config dict: '{'/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}, '/': {'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x7fdc1ef5b3c8>>, 'tools.staticdir.root': '/usr/local/smarthome/modules/http/webif', 'tools.auth_basic.on': False, 'tools.auth_basic.realm': 'shng_http_webif'}}'
2018-06-30 21:11:38 INFO Main - user 'admin', password '', hashed_password ''
2018-06-30 21:11:38 INFO Main Module http: Registering webinterface 'plugins' of plugin 'plugins' from pluginclass '' instance ''
2018-06-30 21:11:38 INFO Main - conf dict: '{'/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}, '/': {'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x7fdc1ef5b3c8>>, 'tools.staticdir.root': '/usr/local/smarthome/modules/http/webif', 'tools.auth_basic.on': False, 'tools.auth_basic.realm': 'shng_http_webif'}}'
2018-06-30 21:11:38 INFO Main Modules: Loaded module 'http' (class 'Http') v1.4.5: Modul zur Implementierung von Backend-Webinterfaces für Plugins
2018-06-30 21:11:38 WARNING Main Loaded Modules: ['http']
2018-06-30 21:11:38 INFO Main Start Modules
2018-06-30 21:11:38 INFO Main Init Plugins
2018-06-30 21:11:38 INFO Main Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:39 INFO Main Load plugins
2018-06-30 21:11:39 INFO Main Loading '/usr/local/smarthome/plugins/backend/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:39 INFO Main plugin 'backend': Metadata paramlist = '['updates_allowed', 'developer_mode', 'pypi_timeout']'
2018-06-30 21:11:39 INFO Main plugin 'backend': value not found in plugin configuration file for parameter 'developer_mode' -> using default value 'False' instead
2018-06-30 21:11:39 INFO Main plugin 'backend': value not found in plugin configuration file for parameter 'pypi_timeout' -> using default value '5' instead
2018-06-30 21:11:39 INFO Main Using module 'http'
2018-06-30 21:11:39 INFO Main WebInterface: Running from '/usr/local/smarthome/plugins/backend/webif'
2018-06-30 21:11:39 INFO Main Module http: Registering webinterface 'backend' of plugin 'backend' from pluginclass 'BackendServer' instance ''
2018-06-30 21:11:39 INFO Main - conf dict: '{'/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}, '/': {'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x7fdc1ef5b3c8>>, 'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.on': False, 'tools.staticdir.root': '/usr/local/smarthome/plugins/backend/webif'}}'
2018-06-30 21:11:39 INFO Main self._applications['backend'] = {'Conf': {'/static': {'tools.staticdir.on': True, 'tools.staticdir.dir': 'static'}, '/': {'tools.auth_basic.checkpassword': <bound method Http.validate_password of <modules.http.Http object at 0x7fdc1ef5b3c8>>, 'tools.auth_basic.realm': 'shng_http_webif', 'tools.auth_basic.on': False, 'tools.staticdir.root': '/usr/local/smarthome/plugins/backend/webif'}}, 'Pluginclass': 'BackendServer', 'Webifname': 'backend', 'Description': 'Administrationsoberfläche für SmartHomeNG', 'Mount': '/backend', 'Pluginname': 'backend', 'Instance': ''}
2018-06-30 21:11:39 INFO Main Initialized plugin 'backend' from from section 'BackendServer'
2018-06-30 21:11:39 INFO Main Loading '/usr/local/smarthome/plugins/cli/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:39 INFO Main plugin 'cli': Metadata paramlist = '['update', 'ip', 'port', 'hashed_password']'
2018-06-30 21:11:39 INFO Main plugin 'cli': value not found in plugin configuration file for parameter 'port' -> using default value '2323.0' instead
2018-06-30 21:11:39 INFO Main plugin 'cli': value not found in plugin configuration file for parameter 'hashed_password' -> using default value '' instead
2018-06-30 21:11:39 WARNING Main CLI: You should set a password for this plugin.
2018-06-30 21:11:39 INFO Main Initialized plugin 'cli' from from section 'cli'
2018-06-30 21:11:39 INFO Main Loading '/usr/local/smarthome/plugins/knx/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:39 INFO Main plugin 'knx': No parameter definitions found in metadata
2018-06-30 21:11:39 INFO Main Initialized plugin 'knx' from from section 'knx'
2018-06-30 21:11:39 INFO Main Loading '/usr/local/smarthome/plugins/visu_websocket/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main plugin 'visu_websocket': Metadata paramlist = '['ip', 'port', 'tls', 'acl', 'wsproto', 'querydef']'
2018-06-30 21:11:40 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'ip' -> using default value '0.0.0.0' instead
2018-06-30 21:11:40 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'port' -> using default value '2424' instead
2018-06-30 21:11:40 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'tls' -> using default value 'False' instead
2018-06-30 21:11:40 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'querydef' -> using default value 'False' instead
2018-06-30 21:11:40 INFO Main Initialized plugin 'visu_websocket' from from section 'visu'
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/plugins/visu_smartvisu/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main plugin 'visu_smartvisu': Metadata paramlist = '['smartvisu_dir', 'generate_pages', 'overwrite_templates', 'visu_style', 'handle_widgets']'
2018-06-30 21:11:40 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'generate_pages' -> using default value 'True' instead
2018-06-30 21:11:40 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'overwrite_templates' -> using default value 'True' instead
2018-06-30 21:11:40 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'visu_style' -> using default value 'std' instead
2018-06-30 21:11:40 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'handle_widgets' -> using default value 'True' instead
2018-06-30 21:11:40 INFO Main Initialized plugin 'visu_smartvisu' from from section 'smartvisu'
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/plugins/sqlite/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main plugin 'sqlite': No parameter definitions found in metadata
2018-06-30 21:11:40 ERROR Main plugin 'sqlite' version differs between Python code (1.3.1) and metadata (1.3.1.2)
2018-06-30 21:11:40 INFO Main Initialized plugin 'sqlite' from from section 'sql'
2018-06-30 21:11:40 INFO Main Load of plugins finished
2018-06-30 21:11:40 INFO Main Start initialization of items
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/lib/env/core.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/lib/env/location.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main config.parse_itemsdir: skipping logic definition file = /usr/local/smarthome/lib/env/logic.yaml
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/lib/env/system.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main Items initialization finished, 45 items loaded
2018-06-30 21:11:40 INFO Main Start Logics
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/lib/env/logic.yaml' to 'OrderedDict'
2018-06-30 21:11:40 INFO Main Loading '/usr/local/smarthome/etc/logic.yaml' to 'OrderedDict'
2018-06-30 21:11:41 INFO Main Start plugins
2018-06-30 21:11:41 INFO Main Start of plugins finished
2018-06-30 21:11:41 INFO smartvisu Starting smartVISU v2.8 handling
2018-06-30 21:11:41 INFO smartvisu Installing widgets into smartVISU v2.8
2018-06-30 21:11:41 INFO smartvisu Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-06-30 21:11:41 INFO smartvisu Adding import statements to root.html
2018-06-30 21:11:41 ERROR smartvisu SmartVisuInstallWidgets v2.8: Exception: [Errno 13] Permission denied: '/var/www/html/smartVISU/pages/base/root.html'
Traceback (most recent call last):
File "/usr/local/smarthome/plugins/visu_smartvisu/__init__.py", line 87, in run
sv_iwdg = SmartVisuInstallWidgets(self._sh, self.smartvisu_dir, self.smartvisu_version)
File "/usr/local/smarthome/plugins/visu_smartvisu/__init__.py", line 479, in __init__
self.install_widgets(self._sh)
File "/usr/local/smarthome/plugins/visu_smartvisu/__init__.py", line 528, in install_widgets
f_root = open(self.pgbdir + '/root.html', "w")
PermissionError: [Errno 13] Permission denied: '/var/www/html/smartVISU/pages/base/root.html'
2018-06-30 21:11:41 INFO smartvisu Generating pages for smartVISU v2.8
2018-06-30 21:11:41 INFO smartvisu Generating pages for smartVISU v2.8 End
2018-06-30 21:11:41 INFO smartvisu Finished smartVISU v2.8 handling
2018-06-30 21:12:29 INFO CP Server Thread-17 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/main.html HTTP/1.1" 200 4722 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-17 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/fontawesome/svg-with-js/css/fa-svg-with-js.css HTTP/1.1" 200 7336 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-19 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/jquery-3.2.1.min.js HTTP/1.1" 200 86659 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-18 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/css/bootstrap.min.css HTTP/1.1" 200 121200 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-20 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/css/bootstrap-treeview.min.css HTTP/1.1" 200 204 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-21 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/css/backend.css HTTP/1.1" 200 273 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-22 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/css/bootstrap-reload.css HTTP/1.1" 200 292 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-17 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/bootstrap.min.js HTTP/1.1" 200 37045 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-20 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/bootstrap-treeview.min.js HTTP/1.1" 200 16735 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-21 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/bootstrap-reload.min.js HTTP/1.1" 200 1217 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-19 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/google-prettify/run_prettify.js HTTP/1.1" 200 81590 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-18 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/backend.js HTTP/1.1" 200 - "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-22 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/js/fontawesome/svg-with-js/js/fontawesome-all.min.js HTTP/1.1" 304 - "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-18 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/img/logo_long.png HTTP/1.1" 200 3508 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-17 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/img/logo_big.png HTTP/1.1" 200 19632 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:29 INFO CP Server Thread-18 192.168.99.50 - - [30/Jun/2018:21:12:29] "GET /backend/static/img/favicon.ico HTTP/1.1" 200 26166 "" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-19 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/services.html HTTP/1.1" 200 8946 "http://192.168.99.59:8383/backend/main.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-19 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/js/fontawesome/svg-with-js/css/fa-svg-with-js.css HTTP/1.1" 200 7336 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-17 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/css/bootstrap.min.css HTTP/1.1" 200 121200 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-22 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/css/backend.css HTTP/1.1" 200 273 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-20 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/css/bootstrap-treeview.min.css HTTP/1.1" 200 204 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-21 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/css/bootstrap-reload.css HTTP/1.1" 200 292 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-23 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/db_backup.svg HTTP/1.1" 200 17736 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-25 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/cache.svg HTTP/1.1" 200 3386 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-24 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/languages.svg HTTP/1.1" 200 89805 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-19 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/gateway.svg HTTP/1.1" 304 - "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-16 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/tree.png HTTP/1.1" 200 156342 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-17 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/password.svg HTTP/1.1" 200 4560 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
2018-06-30 21:12:38 INFO CP Server Thread-23 192.168.99.50 - - [30/Jun/2018:21:12:38] "GET /backend/static/img/eval.svg HTTP/1.1" 200 4630 "http://192.168.99.59:8383/backend/services.html" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0"
So. Jetzt nochmal neu gestartet und wieder ist das Backend nicht erreichbar. Unten Logfile.
Msinn : wie löse ich denn das Problem, wenn ich die IP in meiner Version nicht einstellen kann? Die feste IP-Adresse ist offenbar nicht die Lösung.
HTML-Code:
2018-06-30 19:18:26 INFO Main Using config dir: /usr/local/smarthome
2018-06-30 19:18:26 INFO Main Loading '/usr/local/smarthome/etc/smarthome.yaml' to 'OrderedDict'
2018-06-30 21:18:26 WARNING Main -------------------- Init SmartHomeNG 1.4.2.master (0dff0244) --------------------
2018-06-30 21:18:26 INFO Main Init Scheduler
2018-06-30 21:18:26 INFO Main Init loadable Modules
2018-06-30 21:18:26 INFO Main Loading '/usr/local/smarthome/etc/module.yaml' to 'OrderedDict'
2018-06-30 21:18:26 INFO Main Loading '/usr/local/smarthome/modules/http/module.yaml' to 'OrderedDict'
2018-06-30 21:18:27 INFO Main module 'http': Metadata paramlist = '['user', 'password', 'hashed_password', 'service_user', 'service_password', 'service_hashed_password', 'port', 'servicesport', 'showpluginlist', 'showservicelist', 'starturl', 'threads', 'showtraceback']'
2018-06-30 21:18:27 INFO Main Loading module 'http': args = '{'module_name': "'http'", 'starturl': "'backend'"}'
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'user' -> using default value 'admin' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'password' -> using default value '' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'hashed_password' -> using default value '' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_user' -> using default value 'serviceuser' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_password' -> using default value '' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'service_hashed_password' -> using default value '' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'port' -> using default value '8383' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'servicesport' -> using default value '8384' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'showpluginlist' -> using default value 'True' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'showservicelist' -> using default value 'False' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'threads' -> using default value '8' instead
2018-06-30 21:18:29 INFO Main module 'http': value not found in plugin configuration file for parameter 'showtraceback' -> using default value 'False' instead
2018-06-30 21:18:29 ERROR Main Module http exception: [Errno 101] Network is unreachable
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] Network is unreachable
2018-06-30 21:18:29 WARNING Main Loaded Modules: []
2018-06-30 21:18:29 INFO Main Start Modules
2018-06-30 21:18:29 INFO Main Init Plugins
2018-06-30 21:18:29 INFO Main Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:29 INFO Main Load plugins
2018-06-30 21:18:29 INFO Main Loading '/usr/local/smarthome/plugins/backend/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:29 INFO Main plugin 'backend': Metadata paramlist = '['updates_allowed', 'developer_mode', 'pypi_timeout']'
2018-06-30 21:18:29 INFO Main plugin 'backend': value not found in plugin configuration file for parameter 'developer_mode' -> using default value 'False' instead
2018-06-30 21:18:29 INFO Main plugin 'backend': value not found in plugin configuration file for parameter 'pypi_timeout' -> using default value '5' instead
2018-06-30 21:18:29 ERROR Main Module 'http' not loaded
2018-06-30 21:18:29 ERROR Main Plugin 'backend': Not initializing the web interface
2018-06-30 21:18:29 ERROR Main Plugins: Plugin 'backend' initialization failed, plugin not loaded
2018-06-30 21:18:29 INFO Main Loading '/usr/local/smarthome/plugins/cli/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:30 INFO Main plugin 'cli': Metadata paramlist = '['update', 'ip', 'port', 'hashed_password']'
2018-06-30 21:18:30 INFO Main plugin 'cli': value not found in plugin configuration file for parameter 'port' -> using default value '2323.0' instead
2018-06-30 21:18:30 INFO Main plugin 'cli': value not found in plugin configuration file for parameter 'hashed_password' -> using default value '' instead
2018-06-30 21:18:30 WARNING Main CLI: You should set a password for this plugin.
2018-06-30 21:18:30 INFO Main Initialized plugin 'cli' from from section 'cli'
2018-06-30 21:18:30 INFO Main Loading '/usr/local/smarthome/plugins/knx/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:30 INFO Main plugin 'knx': No parameter definitions found in metadata
2018-06-30 21:18:30 INFO Main Initialized plugin 'knx' from from section 'knx'
2018-06-30 21:18:30 INFO Main Loading '/usr/local/smarthome/plugins/visu_websocket/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:30 INFO Main plugin 'visu_websocket': Metadata paramlist = '['ip', 'port', 'tls', 'acl', 'wsproto', 'querydef']'
2018-06-30 21:18:30 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'ip' -> using default value '0.0.0.0' instead
2018-06-30 21:18:30 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'port' -> using default value '2424' instead
2018-06-30 21:18:30 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'tls' -> using default value 'False' instead
2018-06-30 21:18:30 INFO Main plugin 'visu_websocket': value not found in plugin configuration file for parameter 'querydef' -> using default value 'False' instead
2018-06-30 21:18:30 INFO Main Initialized plugin 'visu_websocket' from from section 'visu'
2018-06-30 21:18:30 INFO Main Loading '/usr/local/smarthome/plugins/visu_smartvisu/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:30 INFO Main plugin 'visu_smartvisu': Metadata paramlist = '['smartvisu_dir', 'generate_pages', 'overwrite_templates', 'visu_style', 'handle_widgets']'
2018-06-30 21:18:30 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'generate_pages' -> using default value 'True' instead
2018-06-30 21:18:30 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'overwrite_templates' -> using default value 'True' instead
2018-06-30 21:18:30 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'visu_style' -> using default value 'std' instead
2018-06-30 21:18:30 INFO Main plugin 'visu_smartvisu': value not found in plugin configuration file for parameter 'handle_widgets' -> using default value 'True' instead
2018-06-30 21:18:30 INFO Main Initialized plugin 'visu_smartvisu' from from section 'smartvisu'
2018-06-30 21:18:30 INFO Main Loading '/usr/local/smarthome/plugins/sqlite/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:30 INFO Main plugin 'sqlite': No parameter definitions found in metadata
2018-06-30 21:18:30 ERROR Main plugin 'sqlite' version differs between Python code (1.3.1) and metadata (1.3.1.2)
2018-06-30 21:18:30 INFO Main Initialized plugin 'sqlite' from from section 'sql'
2018-06-30 21:18:30 INFO Main Load of plugins finished
2018-06-30 21:18:30 INFO Main Start initialization of items
2018-06-30 21:18:30 INFO Main Loading '/usr/local/smarthome/lib/env/core.yaml' to 'OrderedDict'
2018-06-30 21:18:30 INFO Main Loading '/usr/local/smarthome/lib/env/location.yaml' to 'OrderedDict'
2018-06-30 21:18:31 INFO Main config.parse_itemsdir: skipping logic definition file = /usr/local/smarthome/lib/env/logic.yaml
2018-06-30 21:18:31 INFO Main Loading '/usr/local/smarthome/lib/env/system.yaml' to 'OrderedDict'
2018-06-30 21:18:31 INFO Main Items initialization finished, 45 items loaded
2018-06-30 21:18:31 INFO Main Start Logics
2018-06-30 21:18:31 INFO Main Loading '/usr/local/smarthome/lib/env/logic.yaml' to 'OrderedDict'
2018-06-30 21:18:31 INFO Main Loading '/usr/local/smarthome/etc/logic.yaml' to 'OrderedDict'
2018-06-30 21:18:31 INFO Main Start plugins
2018-06-30 21:18:31 INFO Main Start of plugins finished
2018-06-30 21:18:31 INFO smartvisu Starting smartVISU v2.8 handling
2018-06-30 21:18:31 INFO smartvisu Installing widgets into smartVISU v2.8
2018-06-30 21:18:31 INFO smartvisu Loading '/usr/local/smarthome/etc/plugin.yaml' to 'OrderedDict'
2018-06-30 21:18:31 INFO smartvisu Adding import statements to root.html
2018-06-30 21:18:31 ERROR smartvisu SmartVisuInstallWidgets v2.8: Exception: [Errno 13] Permission denied: '/var/www/html/smartVISU/pages/base/root.html'
Traceback (most recent call last):
File "/usr/local/smarthome/plugins/visu_smartvisu/__init__.py", line 87, in run
sv_iwdg = SmartVisuInstallWidgets(self._sh, self.smartvisu_dir, self.smartvisu_version)
File "/usr/local/smarthome/plugins/visu_smartvisu/__init__.py", line 479, in __init__
self.install_widgets(self._sh)
File "/usr/local/smarthome/plugins/visu_smartvisu/__init__.py", line 528, in install_widgets
f_root = open(self.pgbdir + '/root.html', "w")
PermissionError: [Errno 13] Permission denied: '/var/www/html/smartVISU/pages/base/root.html'
2018-06-30 21:18:31 INFO smartvisu Generating pages for smartVISU v2.8
2018-06-30 21:18:31 INFO smartvisu Generating pages for smartVISU v2.8 End
2018-06-30 21:18:31 INFO smartvisu Finished smartVISU v2.8 handling
Ich habe es bisher nicht geschafft mein Linux so zu konfigurieren, dass ich das Problem nachstellen konnte. Ich kann Dir also nicht sagen, woran es bei der Linux Konfiguration liegt. Ich hätte im Moment nur zwei Tipps:
1. Das Linux so konfigurieren, wie in der Komplettanleitung beschrieben
2. Warten bis SmartHomeNG v1.5 ca. Mitte Juli released wird. dann kannst Du fest die für SmartHomeNG zu verwendende IP Adresse (die im Linux natürlich funktionsfähig sein muss) in der Konfiguration des http Moduls angeben.
Viele Grüße
Martin
There is no cloud. It's only someone else's computer.
Ok, danke. Ich habe die Komplettanleitung benutzt. Interessant ist aus meiner Sicht
1. dass das Problem sowohl bei dem Raspi als auch jetzt beim APU in gleicher Art auftritt, und
2. dass es sich nur bei einem Reboot zeigt, nicht wenn ich den Rechner ausmache und komplett neu starte.
Das deutet doch darauf hin, dass es an irgendeinem Merkmal meines Netzwerks liegt, das nicht in der Hardware oder Linuxdistri besteht. Vielleicht die Fritzbox 7590... keine Ahnung.
Naja, wenn das nächste Release im Juli kommt, kann ich es ja evtl. lösen.
Hallo,
habe auch Probleme mit dem Backendserver. Habe alles neu aufgesetz nach der Installationsanleitung. Wenn ich die IP:8383 aufrufe kommt nichts.
Hier die Meldung:
HTML-Code:
root@smarthomeng:/usr/local/smarthome# python3 bin/smarthome.py -d
SmartHomeNG should not run as root
sh.start()
[12/Oct/2018:17:37:51] ENGINE Bus STARTING
[12/Oct/2018:17:37:51] ENGINE Serving on http://192.168.10.252:8384
[12/Oct/2018:17:37:51] ENGINE Serving on http://192.168.10.252:8383
[12/Oct/2018:17:37:51] ENGINE Bus STARTED
[12/Oct/2018:17:38:09] ENGINE AttributeError("module 'six.moves.urllib_parse' has no attribute 'unquote_to_bytes'",)
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 1219, in communicate
req.parse_request()
File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 689, in parse_request
success = self.read_request_line()
File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 889, in read_request_line
for x in QUOTED_SLASH_REGEX.split(path)
File "/usr/local/lib/python3.5/dist-packages/cheroot/server.py", line 889, in <listcomp>
for x in QUOTED_SLASH_REGEX.split(path)
AttributeError: module 'six.moves.urllib_parse' has no attribute 'unquote_to_bytes'
^C[12/Oct/2018:17:38:38] ENGINE Bus STOPPING
[12/Oct/2018:17:38:38] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.10.252', 8384)) shut down
[12/Oct/2018:17:38:38] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('192.168.10.252', 8383)) shut down
[12/Oct/2018:17:38:38] ENGINE Bus STOPPED
[12/Oct/2018:17:38:38] ENGINE Bus EXITING
[12/Oct/2018:17:38:38] ENGINE Bus EXITED
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar