Ich hatte unter der letzten SmarthomeNG 1.9..2 ein Plugin laufen an dem ich noch einige Verbesserungen vornehmen wollte. Die neue Smarthome 1.9.3 erschien gerade zum richtigen Zeitpunkt. Also frisch aufgesetzt mit dem IMG auf einem Raspberry.
Jetzt komme ich leider durch den Dauerfehler 8383 bereits belegt nicht meht weiter. Ich habe hier einmal unter dem Punkt Problem1 die modul.yaml angehängt. Steckt hier noch der Fehler?
Außerdem habe ich immer eine Unzahl von laufenden smarthomes nach dem Neustart mit /usr/local/smarthome/bin/smarthome.py -r.
Unter Problem 2 sind meine Versuche dargestellt!
Ich sitze zur Zeit auf dem Schlauch und finde das Problem und die Lösung nicht!
Ich bitte um Unterstützung!
Meine IP des Raspi ist 192.xxx.xxx.54 , falls ich in der yaml die IP falsch interpretiert haben sollte.
[smarthome@SmartHomeNG93 ~]$ python -V
Python 3.9.2
Problem 1
Die Einrückunge passen, das Testfile hat sie leiden verschluckt! Sorry
#Modul.yaml
%YAML 1.1
---
# etc/module.yaml
# support for web server
http:
module_name: http
starturl: admin
# support for graphical admin interface
user: admin
port: 8383
tls_port: 8385
use_tls: false
servicesport: 8384
showpluginlist: true
threads: 4
ip: 0.0.0.0
showservicelist: true
showtraceback: true
hashed_password: 46460de0afbb4f85bdfe1d00cfef64fd6a544a9a5c6270cb0b e830cc151685d3d274d75c778a532f2cfc35729d4c551e21f7 f580d09b3a998b215fe180a4eb18
admin:
module_name: admin
websocket_host: 127.0.0.1
click_dropdown_header: true
login_expiration: 168
login_autorenew: true
pypi_timeout: 5
itemtree_fullpath: true
itemtree_searchstart: 2
websocket_port: 2424
log_chunksize: 1000
websocket:
module_name: websocket
#port: 2424
#tls_port: 2425
#tls_key: myprivate.key
#tls_cert: myprivate.pem
#use_tls: true
#enable, if mqtt protocol is going to be used
mqtt:
module_name: mqtt
ip: 127.0.0.1
port: 2424
tls_port: 2425
Problem 2
start
#hier sind immer viele smarthomes unterwegs
[smarthome@SmartHomeNG93 ~]$ /usr/local/smarthome/bin/smarthome.py -r
Stopping SmartHomeNG, please wait...
Daemon PID 43881
[smarthome@SmartHomeNG93 ~]$ ps -ef|grep smarthome|grep bin
smartho+ 36446 1 0 12:45 ? 00:02:08 /usr/local/bin/python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 37368 1 0 13:11 ? 00:00:57 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 38575 1 0 13:48 ? 00:00:49 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 43695 1 15 16:39 ? 00:00:12 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 43881 1 81 16:40 ? 00:00:11 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 43907 1 99 16:40 ? 00:00:10 /usr/bin/python /usr/local/smarthome/bin/smarthome.py
#alle gekillt !!
[smarthome@SmartHomeNG93 ~]$ kill -9 37368
[smarthome@SmartHomeNG93 ~]$ kill -9 38575
[smarthome@SmartHomeNG93 ~]$ kill -9 43695
[smarthome@SmartHomeNG93 ~]$ kill -9 43881
[smarthome@SmartHomeNG93 ~]$ kill -9 43907
[smarthome@SmartHomeNG93 ~]$ kill -9 44105
[smarthome@SmartHomeNG93 ~]$ ps -ef|grep smarthome|grep bin
smartho+ 44401 1 8 16:55 ? 00:00:13 /usr/bin/python /usr/local/smarthome/bin/smarthome.py
###Neuer Start
/usr/local/smarthome/bin/smarthome.py -r
Stopping SmartHomeNG, please wait...
Daemon PID 44577
[smarthome@SmartHomeNG93 ~]$
[smarthome@SmartHomeNG93 ~]$ ps -ef|grep smarthome|grep bin
smartho+ 44577 1 7 17:01 ? 00:00:13 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 44615 1 6 17:01 ? 00:00:12 /usr/bin/python /usr/local/smarthome/bin/smarthome.py
[smarthome@SmartHomeNG93 ~]$
17:01:18 CET NOTICE lib.smarthome smarthome __init__ ln:315 -------------------- Init SmartHomeNG v1.9.3-master (aa143b82) -------------------- ---- Main
2022-11-24 17:01:18 CET NOTICE lib.smarthome smarthome __init__ ln:316 Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome ---- Main
2022-11-24 17:01:18 CET NOTICE lib.smarthome smarthome __init__ ln:317 - on Linux-5.15.76-v8+-aarch64-with-glibc2.31 (pid=44615) ---- Main
2022-11-24 17:01:20 CET NOTICE lib.smarthome smarthome __init__ ln:378 - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert ---- Main ok bis hier !!
2022-11-24 17:01:21 CET CRITICAL modules.http __init__ __init__ ln:142 Error starting http module: port 8383 is already in use ---- Main
2022-11-24 17:01:21 CET ERROR lib.module module _load_module ln:292 Modules: Module 'http' initialization failed, module not loaded ---- Main
2022-11-24 17:01:21 CET WARNING lib.plugin plugin _test_duplicate_pluginconfiguration ln:330 Plugin section 'smartvisu_pages' uses same class 'SmartVisu' and instance 'default' as plugin section 'smartvisu' ---- Main ?????
2022-11-24 17:01:21 CET ERROR modules.admin __init__ __init__ ln:93 Module 'admin': Not initializing - Module 'http' has to be loaded BEFORE this module ---- Main
2022-11-24 17:01:21 CET ERROR lib.module module _load_module ln:292 Modules: Module 'admin' initialization failed, module not loaded ---- Main
2022-11-24 17:01:22 CET 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
2022-11-24 17:01:23 CET WARNING plugins.database smartplugin init_webinterface ln:751 Module 'http' not loaded. Not initializing the web interface for the plugin ---- Main
Jetzt komme ich leider durch den Dauerfehler 8383 bereits belegt nicht meht weiter. Ich habe hier einmal unter dem Punkt Problem1 die modul.yaml angehängt. Steckt hier noch der Fehler?
Außerdem habe ich immer eine Unzahl von laufenden smarthomes nach dem Neustart mit /usr/local/smarthome/bin/smarthome.py -r.
Unter Problem 2 sind meine Versuche dargestellt!
Ich sitze zur Zeit auf dem Schlauch und finde das Problem und die Lösung nicht!
Ich bitte um Unterstützung!
Meine IP des Raspi ist 192.xxx.xxx.54 , falls ich in der yaml die IP falsch interpretiert haben sollte.
[smarthome@SmartHomeNG93 ~]$ python -V
Python 3.9.2
Problem 1
Die Einrückunge passen, das Testfile hat sie leiden verschluckt! Sorry
#Modul.yaml
%YAML 1.1
---
# etc/module.yaml
# support for web server
http:
module_name: http
starturl: admin
# support for graphical admin interface
user: admin
port: 8383
tls_port: 8385
use_tls: false
servicesport: 8384
showpluginlist: true
threads: 4
ip: 0.0.0.0
showservicelist: true
showtraceback: true
hashed_password: 46460de0afbb4f85bdfe1d00cfef64fd6a544a9a5c6270cb0b e830cc151685d3d274d75c778a532f2cfc35729d4c551e21f7 f580d09b3a998b215fe180a4eb18
admin:
module_name: admin
websocket_host: 127.0.0.1
click_dropdown_header: true
login_expiration: 168
login_autorenew: true
pypi_timeout: 5
itemtree_fullpath: true
itemtree_searchstart: 2
websocket_port: 2424
log_chunksize: 1000
websocket:
module_name: websocket
#port: 2424
#tls_port: 2425
#tls_key: myprivate.key
#tls_cert: myprivate.pem
#use_tls: true
#enable, if mqtt protocol is going to be used
mqtt:
module_name: mqtt
ip: 127.0.0.1
port: 2424
tls_port: 2425
Problem 2
start
#hier sind immer viele smarthomes unterwegs
[smarthome@SmartHomeNG93 ~]$ /usr/local/smarthome/bin/smarthome.py -r
Stopping SmartHomeNG, please wait...
Daemon PID 43881
[smarthome@SmartHomeNG93 ~]$ ps -ef|grep smarthome|grep bin
smartho+ 36446 1 0 12:45 ? 00:02:08 /usr/local/bin/python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 37368 1 0 13:11 ? 00:00:57 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 38575 1 0 13:48 ? 00:00:49 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 43695 1 15 16:39 ? 00:00:12 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 43881 1 81 16:40 ? 00:00:11 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 43907 1 99 16:40 ? 00:00:10 /usr/bin/python /usr/local/smarthome/bin/smarthome.py
#alle gekillt !!
[smarthome@SmartHomeNG93 ~]$ kill -9 37368
[smarthome@SmartHomeNG93 ~]$ kill -9 38575
[smarthome@SmartHomeNG93 ~]$ kill -9 43695
[smarthome@SmartHomeNG93 ~]$ kill -9 43881
[smarthome@SmartHomeNG93 ~]$ kill -9 43907
[smarthome@SmartHomeNG93 ~]$ kill -9 44105
[smarthome@SmartHomeNG93 ~]$ ps -ef|grep smarthome|grep bin
smartho+ 44401 1 8 16:55 ? 00:00:13 /usr/bin/python /usr/local/smarthome/bin/smarthome.py
###Neuer Start
/usr/local/smarthome/bin/smarthome.py -r
Stopping SmartHomeNG, please wait...
Daemon PID 44577
[smarthome@SmartHomeNG93 ~]$
[smarthome@SmartHomeNG93 ~]$ ps -ef|grep smarthome|grep bin
smartho+ 44577 1 7 17:01 ? 00:00:13 python3 /usr/local/smarthome/bin/smarthome.py -r
smartho+ 44615 1 6 17:01 ? 00:00:12 /usr/bin/python /usr/local/smarthome/bin/smarthome.py
[smarthome@SmartHomeNG93 ~]$
17:01:18 CET NOTICE lib.smarthome smarthome __init__ ln:315 -------------------- Init SmartHomeNG v1.9.3-master (aa143b82) -------------------- ---- Main
2022-11-24 17:01:18 CET NOTICE lib.smarthome smarthome __init__ ln:316 Running in Python interpreter 'v3.9.2 final', from directory /usr/local/smarthome ---- Main
2022-11-24 17:01:18 CET NOTICE lib.smarthome smarthome __init__ ln:317 - on Linux-5.15.76-v8+-aarch64-with-glibc2.31 (pid=44615) ---- Main
2022-11-24 17:01:20 CET NOTICE lib.smarthome smarthome __init__ ln:378 - Nutze Feiertage für Land 'DE', Provinz 'BY', 3 benutzerdefinierte(r) Feiertag(e) definiert ---- Main ok bis hier !!
2022-11-24 17:01:21 CET CRITICAL modules.http __init__ __init__ ln:142 Error starting http module: port 8383 is already in use ---- Main
2022-11-24 17:01:21 CET ERROR lib.module module _load_module ln:292 Modules: Module 'http' initialization failed, module not loaded ---- Main
2022-11-24 17:01:21 CET WARNING lib.plugin plugin _test_duplicate_pluginconfiguration ln:330 Plugin section 'smartvisu_pages' uses same class 'SmartVisu' and instance 'default' as plugin section 'smartvisu' ---- Main ?????
2022-11-24 17:01:21 CET ERROR modules.admin __init__ __init__ ln:93 Module 'admin': Not initializing - Module 'http' has to be loaded BEFORE this module ---- Main
2022-11-24 17:01:21 CET ERROR lib.module module _load_module ln:292 Modules: Module 'admin' initialization failed, module not loaded ---- Main
2022-11-24 17:01:22 CET 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
2022-11-24 17:01:23 CET WARNING plugins.database smartplugin init_webinterface ln:751 Module 'http' not loaded. Not initializing the web interface for the plugin ---- Main
Kommentar