Hallo zusammen,
ich habe ein kleines Problem. Leider schaltet meine Visu nicht, obwohl der groupswrite funktioniert. Aus dem Debug Log werde ich leider nicht all zu schlau.
Anbei mal alle Angaben, die hoffentlich zur Fehlerbehebung führen.
Debuglog:
netstat -tulpen (2424 wird nicht gestartet)
plugin.conf
eibd
Wie gesagt groupswrite geht ganz gut aber die Visu meldet den Web Socket Error, dass es eben den smarthome.py server nicht erreichen kann. Was ja klar ist, wenn 2424 nicht listent. Aber warum startet der Service und öffnet das Socket nicht? Die Zeit stimmt auch. Die habe ich von Hand gesetzt.
Wenn Ihr irgendwelche Ideen habt, dann bitte her damit.
Grüße Patrick
ich habe ein kleines Problem. Leider schaltet meine Visu nicht, obwohl der groupswrite funktioniert. Aus dem Debug Log werde ich leider nicht all zu schlau.
Anbei mal alle Angaben, die hoffentlich zur Fehlerbehebung führen.
Debuglog:
Code:
2014-06-16 23:20:46,767 INFO Main Start SmartHome.py 1.0-35-gf62db45 -- smarthome.py:__init__:231 2014-06-16 23:20:46,772 DEBUG Main Python 3.2.3 -- smarthome.py:__init__:232 2014-06-16 23:20:46,779 INFO Main Init Scheduler -- scheduler.py:__init__:86 2014-06-16 23:20:46,785 INFO Main Init Plugins -- smarthome.py:start:274 2014-06-16 23:20:46,792 DEBUG Scheduler creating 5 workers -- scheduler.py:run:93 2014-06-16 23:20:46,809 DEBUG Main Plugin: knx -- plugin.py:__init__:43 2014-06-16 23:20:46,826 ERROR Main Plugin knx exception: EOF read where not expected -- plugin.py:__init__:57 Traceback (most recent call last): File "/usr/smarthome/lib/plugin.py", line 53, in __init__ plugin_thread = Plugin(smarthome, plugin, classname, classpath, args) File "/usr/smarthome/lib/plugin.py", line 79, in __init__ exec("import {0}".format(classpath)) File "<string>", line 1, in <module> EOFError: EOF read where not expected 2014-06-16 23:20:46,855 DEBUG Main Plugin: visu -- plugin.py:__init__:43 2014-06-16 23:20:46,933 ERROR Main Plugin visu exception: EOF read where not expected -- plugin.py:__init__:57 Traceback (most recent call last): File "/usr/smarthome/lib/plugin.py", line 53, in __init__ plugin_thread = Plugin(smarthome, plugin, classname, classpath, args) File "/usr/smarthome/lib/plugin.py", line 79, in __init__ exec("import {0}".format(classpath)) File "<string>", line 1, in <module> EOFError: EOF read where not expected 2014-06-16 23:20:46,946 DEBUG Main Plugin: cli -- plugin.py:__init__:43 2014-06-16 23:20:46,975 ERROR Main Plugin cli exception: EOF read where not expected -- plugin.py:__init__:57 Traceback (most recent call last): File "/usr/smarthome/lib/plugin.py", line 53, in __init__ plugin_thread = Plugin(smarthome, plugin, classname, classpath, args) File "/usr/smarthome/lib/plugin.py", line 79, in __init__ exec("import {0}".format(classpath)) File "<string>", line 1, in <module> EOFError: EOF read where not expected 2014-06-16 23:20:46,989 DEBUG Main Plugin: sql -- plugin.py:__init__:43 2014-06-16 23:20:47,047 ERROR Main Plugin sql exception: EOF read where not expected -- plugin.py:__init__:57 Traceback (most recent call last): File "/usr/smarthome/lib/plugin.py", line 53, in __init__ plugin_thread = Plugin(smarthome, plugin, classname, classpath, args) File "/usr/smarthome/lib/plugin.py", line 79, in __init__ exec("import {0}".format(classpath)) File "<string>", line 1, in <module> EOFError: EOF read where not expected 2014-06-16 23:20:47,060 INFO Main Init Items -- smarthome.py:start:280 2014-06-16 23:20:47,316 DEBUG Main Item env.core: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,372 DEBUG Main Item env.location: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,398 DEBUG Main Item env.system: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,402 DEBUG Main Item env: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,423 DEBUG Main Item Heizung.Buero.Regelung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,432 DEBUG Main Item Heizung.Buero.Zwansstellung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,437 DEBUG Main Item Heizung.Buero: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,452 DEBUG Main Item Heizung.Gaestebad.Regelung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,461 DEBUG Main Item Heizung.Gaestebad.Display1: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,474 DEBUG Main Item Heizung.Gaestebad.Display2: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,484 DEBUG Main Item Heizung.Gaestebad.Display3: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,488 DEBUG Main Item Heizung.Gaestebad: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,503 DEBUG Main Item Heizung.Diele.Regelung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,513 DEBUG Main Item Heizung.Diele.Zwangsstellung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,523 DEBUG Main Item Heizung.Diele.Display1: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,533 DEBUG Main Item Heizung.Diele.Display2: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,542 DEBUG Main Item Heizung.Diele.Display3: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,547 DEBUG Main Item Heizung.Diele: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,562 DEBUG Main Item Heizung.Gaestezimmer.Regelung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,573 DEBUG Main Item Heizung.Gaestezimmer.Zwansstellung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,578 DEBUG Main Item Heizung.Gaestezimmer: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,594 DEBUG Main Item Heizung.Wohnzimmer.Regelung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,604 DEBUG Main Item Heizung.Wohnzimmer.DisplaySoll: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,615 DEBUG Main Item Heizung.Wohnzimmer.DisplayIst: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,625 DEBUG Main Item Heizung.Wohnzimmer.DisplayStellgroesse: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,629 DEBUG Main Item Heizung.Wohnzimmer: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,646 DEBUG Main Item Heizung.Abstellraum.Zwangsstellung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,656 DEBUG Main Item Heizung.Abstellraum.Heizen: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,660 DEBUG Main Item Heizung.Abstellraum: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,676 DEBUG Main Item Heizung.Bad.Zwangsstellung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,686 DEBUG Main Item Heizung.Bad.Heizen: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,691 DEBUG Main Item Heizung.Bad: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,707 DEBUG Main Item Heizung.Schlafen.Zwangsstellung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,717 DEBUG Main Item Heizung.Schlafen.Heizen: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,722 DEBUG Main Item Heizung.Schlafen: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,726 DEBUG Main Item Heizung: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,769 DEBUG Main Item Licht.Buero: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,805 DEBUG Main Item Licht.Haustuere: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,830 DEBUG Main Item Licht.Gaestebad: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,849 DEBUG Main Item Licht.Diele: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,942 DEBUG Main Item Licht.Wohnzimmer: no type specified. -- item.py:__init__:242 2014-06-16 23:20:47,978 DEBUG Main Item Licht.Treppenhaus: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,018 DEBUG Main Item Licht.Schlafzimmer: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,023 DEBUG Main Item Licht: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,050 DEBUG Main Item first.hallway: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,065 DEBUG Main Item first.living.light: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,175 DEBUG Main Item first.living.blind: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,207 DEBUG Main Item first.living: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,211 DEBUG Main Item first: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,307 DEBUG Main Item second.sleeping.blind: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,318 DEBUG Main Item second.sleeping: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,410 DEBUG Main Item second.bath.blind: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,414 DEBUG Main Item second.bath: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,419 DEBUG Main Item second: no type specified. -- item.py:__init__:242 2014-06-16 23:20:48,433 INFO Main Start Plugins -- plugin.py:start:65 2014-06-16 23:20:48,437 INFO Main Start Logics -- logic.py:__init__:33 2014-06-16 23:20:48,441 DEBUG Main Reading Logics from /usr/smarthome/lib/env/logic_conf -- logic.py:_read_logics:64 2014-06-16 23:20:48,455 DEBUG Main Reading Logics from /usr/smarthome/etc/logic.conf -- logic.py:_read_logics:64 2014-06-16 23:20:48,465 DEBUG Main Logic: dummy -- logic.py:__init__:44 2014-06-16 23:20:48,508 DEBUG Main dummy next time: 2014-06-16 23:21:03+02:00 -- scheduler.py:_next_time:289 2014-06-16 23:20:48,512 DEBUG Main Logic: hello -- logic.py:__init__:44 2014-06-16 23:20:48,522 DEBUG Main Logic: env_init -- logic.py:__init__:44 2014-06-16 23:20:48,534 DEBUG Main Logic: env_stat -- logic.py:__init__:44 2014-06-16 23:20:48,550 DEBUG Main env_stat next time: 2014-06-16 23:21:03+02:00 -- scheduler.py:_next_time:289 2014-06-16 23:20:48,554 DEBUG Main Logic: env_loc -- logic.py:__init__:44 2014-06-16 23:20:53,978 INFO hello Hello World! -- hello.py:<module>:3 2014-06-16 23:20:53,980 DEBUG sh.gc Garbage collector: collected 0 objects. -- smarthome.py:_garbage_collection:498 2014-06-16 23:20:53,987 DEBUG env_init Item env.core.version = 1.0-35-gf62db45 via Logic None None -- item.py:__update:363 2014-06-16 23:20:54,002 DEBUG env_loc Item env.location.sunrise = 2014-06-17 05:01:51.034246+02:00 via Logic None None -- item.py:__update:363 2014-06-16 23:20:54,538 DEBUG Scheduler env_loc next time: 2014-06-16 23:50:54+02:00 -- scheduler.py:_next_time:289 2014-06-16 23:20:54,914 DEBUG env_init Item env.core.start = 2014-06-16 23:20:54.902988+02:00 via Logic None None -- item.py:__update:363 2014-06-16 23:20:54,969 DEBUG Scheduler sh.gc next time: 2014-06-17 02:04:00+02:00 -- scheduler.py:_next_time:289 2014-06-16 23:20:54,975 DEBUG env_init Item env.system.name = smarthome.local via Logic None None -- item.py:__update:363 2014-06-16 23:20:54,990 DEBUG env_loc Item env.location.sunset = 2014-06-17 21:36:28.636179+02:00 via Logic None None -- item.py:__update:363 2014-06-16 23:20:55,004 DEBUG env_init Item env.system.start = 2014-06-16 22:00:33.999175+02:00 via Logic None None -- item.py:__update:363 2014-06-16 23:20:55,093 DEBUG env_loc Item env.location.moonrise = 2014-06-16 23:48:37.760516+02:00 via Logic None None -- item.py:__update:363 2014-06-16 23:20:55,176 DEBUG env_loc Item env.location.moonset = 2014-06-17 10:27:47.409790+02:00 via Logic None None -- item.py:__update:363 2014-06-16 23:20:55,207 DEBUG env_loc Item env.location.moonphase = 5 via Logic None None -- item.py:__update:363 2014-06-16 23:20:55,262 DEBUG sh.gc Object references: 8351 -- smarthome.py:_maintenance:490 2014-06-16 23:20:55,277 DEBUG env_loc Item env.location.night = True via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,043 DEBUG dummy Item first.living.temperature = 20 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,108 DEBUG dummy Item first.living.humidity = 48 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,121 DEBUG dummy Item second.sleeping.temperature = 21 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,113 DEBUG env_stat Item env.core.threads = 7 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,142 DEBUG env_stat Item env.core.memory = 11833344 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,144 DEBUG dummy Item second.bath.temperature = 23 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,158 DEBUG env_stat Item env.system.load = 0.16 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,167 DEBUG env_stat Item env.location.moonlight = 81 via Logic None None -- item.py:__update:363 2014-06-16 23:21:03,557 DEBUG Scheduler dummy next time: 2014-06-16 23:26:03+02:00 -- scheduler.py:_next_time:289 2014-06-16 23:21:03,564 DEBUG Scheduler env_stat next time: 2014-06-16 23:26:03+02:00 -- scheduler.py:_next_time:289
Code:
(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 0 2101 - tcp 0 0 0.0.0.0:6720 0.0.0.0:* LISTEN 1000 6411 2685/eibd tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 0 2103 - tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 0 2382 - tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 0 2380 - tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 2435 - tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 0 2381 - tcp6 0 0 :::445 :::* LISTEN 0 2097 - tcp6 0 0 :::139 :::* LISTEN 0 2099 - tcp6 0 0 :::80 :::* LISTEN 0 2383 - tcp6 0 0 :::22 :::* LISTEN 0 2437 - udp 0 0 0.0.0.0:5353 0.0.0.0:* 104 2213 - udp 0 0 0.0.0.0:3671 0.0.0.0:* 1000 6412 2685/eibd udp 0 0 192.168.2.100:3672 0.0.0.0:* 1000 6410 2685/eibd udp 0 0 192.168.2.255:137 0.0.0.0:* 0 2050 - udp 0 0 192.168.2.100:137 0.0.0.0:* 0 2049 - udp 0 0 0.0.0.0:137 0.0.0.0:* 0 2046 - udp 0 0 192.168.2.255:138 0.0.0.0:* 0 2052 - udp 0 0 192.168.2.100:138 0.0.0.0:* 0 2051 - udp 0 0 0.0.0.0:138 0.0.0.0:* 0 2047 - udp 0 0 0.0.0.0:48540 0.0.0.0:* 104 2215 - udp6 0 0 :::5353 :::* 104 2214 - udp6 0 0 :::50418 :::* 104 2216 -
Code:
# plugin.conf [knx] class_name = KNX class_path = plugins.knx host = 192.168.2.100 port = 6720 # send_time = 600 # update date/time every 600 seconds, default none # time_ga = 1/1/1 # default none # date_ga = 1/1/2 # default none [visu] class_name = WebSocket class_path = plugins.visu ip=192.168.2.100 port=2424 acl = rw smartvisu_dir = /var/www/smartvisu [cli] class_name = CLI class_path = plugins.cli ip = 0.0.0.0 update = True [sql] class_name = SQL class_path = plugins.sqlite #[ow] # class_name = OneWire # class_path = plugins.onewire # host = 127.0.0.1 # port = 4304
Code:
EIB_ARGS="--daemon --Server --Tunnelling --Discovery --GroupCache --listen-tcp" #EIB_ADDR="0.0.1" EIB_IF="ipt:192.168.2.105" EIB_UID="1000"
Wenn Ihr irgendwelche Ideen habt, dann bitte her damit.
Grüße Patrick
Kommentar