39_alexa.pm und alexa-fhem test version

Begonnen von justme1968, 03 Januar 2019, 22:43:10

Vorheriges Thema - Nächstes Thema

MadMax-FHEM

Zitat von: fireball am 21 Juli 2020, 18:30:45
Ok, ich habe mal auf 0.5.55 upgedatet und beobachte jetzt mal...
VG
René

Dann drücke ich mal die Daumen...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)

CatWeazle

Zitat von: fireball am 21 Juli 2020, 18:30:45
Ok, ich habe mal auf 0.5.55 upgedatet und beobachte jetzt mal...
VG
René

Die v0.5.55 hatte es bei mir auch gebracht, Joachim kanns bestätigen  :D

Grüße
Mike
Grüße, Mike

*****************************************
********  Wird Zeit für besser Wetter !  ********
*****************************************

Cobra206rc

#977
Hallo Zusammen,

ich kämpfe schon eine Woche mit alexa-fhem. Es startet bei mir alle 30 sekunden neu.

Im Fhem Log bekomme ich folgende Einträge:


2020.07.31 16:11:00 2: Alexa: starting alexa-fhem: /usr/bin/alexa-fhem -c ./alexa-fhem.cfg
2020.07.31 16:11:00 3: Alexa: starting
2020.07.31 16:11:00 3: Alexa: using logfile: ./log/alexa-2020-07-31.log
2020.07.31 16:11:15 3: Alexa: read: end of file reached while sysread
2020.07.31 16:11:15 3: Alexa: stopped
2020.07.31 16:11:35 2: Alexa: starting alexa-fhem: /usr/bin/alexa-fhem -c ./alexa-fhem.cfg
2020.07.31 16:11:35 3: Alexa: starting
2020.07.31 16:11:35 3: Alexa: using logfile: ./log/alexa-2020-07-31.log
2020.07.31 16:11:50 3: Alexa: read: end of file reached while sysread
2020.07.31 16:11:50 3: Alexa: stopped


Im Alexa Log folgende Einräge:


[7/31/2020, 4:12:58 PM] Server emitted error: {"code":"EADDRINUSE","errno":-98,"syscall":"listen","address":"127.0.0.1","port":45827}
[7/31/2020, 4:12:58 PM] Terminating - starting the listener not possible (another instance running?)


Der Port wird jedoch definitiv nicht verwendet.

Ich ab schon überall nach einer Lösung gesucht jedoch auch hier im Forum keine gefunden die das Problem behebt.

Ich habe es auf zwei virtuellen Maschinen mit Ubuntu 20.04 Desktop und Ubuntu 20.04 Server versucht immer das gleiche Ergebnis.

Ich habe es deinstalliert und erneut installiert keine Änderung.
Meine Node Version ist v14.7.0
Die alexa-fhem version ist 0.5.55

Fhem und Ubuntu sind auf dem aktuellsten Stand.

Ich hoffe mir kann irgendwer helfen es zum laufen zu bekommen.

Grüsse
Peer


amenomade

ZitatIm Alexa Log folgende Einräge:


[7/31/2020, 4:12:58 PM] Server emitted error: {"code":"EADDRINUSE","errno":-98,"syscall":"listen","address":"127.0.0.1","port":45827}
[7/31/2020, 4:12:58 PM] Terminating - starting the listener not possible (another instance running?)


Der Port wird jedoch definitiv nicht verwendet.

sudo netstat -tulpn |grep 45827
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Cobra206rc

#979
Der Port ändert sich ja bei jedem neustart. Ich hab es noch mal in den 30 Sekunden in der der Service läuft mit dem aktuellen Port probiert.

sudo netstat -tulpn |grep 58824 liefert hier kein Ergebnis


root@fhem3:~# ps -ef | egrep '(alexa|ssh)'
root         663       1  0 18:23 ?        00:00:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
root         848     663  0 18:24 ?        00:00:00 sshd: cobra [priv]
cobra       1175     848  0 18:24 ?        00:00:00 sshd: cobra@pts/0
fhem       16582     703 47 20:16 ?        00:00:00 node /usr/bin/alexa-fhem -c ./alexa-fhem.cfg
fhem       16595   16582  3 20:16 ?        00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:42291 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
root       16598   15670  0 20:16 pts/0    00:00:00 grep -E --color=auto (alexa|ssh)
root@fhem3:~# sudo netstat -tulpn |grep 42291
root@fhem3:~#

amenomade

Zitatsudo netstat -tulpn |grep 58824 liefert hier kein Ergebnis
Das ist normal, 58824 ist der Port auf dem fhem-va Server
In deinem Fall ist 42291 ja relevant.

Und er sagt dir immer EADDRINUSE, egal der Port?

Ein sudo lsof -i:42291 in den 30 Sek. würde vielleicht mehr zeigen?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Cobra206rc

sudo lsof -i:Port zeigt auch nichts.

Ja es ist egal welchen Port er nimmt ich bekomme immer EADDRINUSE

amenomade

Hmm. Mir fehlt nichts mehr ein.

Irgendein Firewall oder diese Art von Tools (piHole?), das "alle" Ports "absorbiert". Finde ich aber eher unwahrscheinlich.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Cobra206rc

ja Pihole hab ich aber auch wenn ich es umgehe ändert sich nichts.
Auf meiner Firewall sehe ich das die Packete durchgehen.
Ich  gehe da von einem lokalen Problem aus.

Es ist schon ein sehr komisches Verhalten.

amenomade

Und wenn Du z.B. ein
nc -zv 127.0.0.1 42280-42300machst, ist etwas offen?
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Cobra206rc


root@fhem3:~# nc -zv 127.0.0.1 42280-42300
nc: connect to 127.0.0.1 port 42280 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42281 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42282 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42283 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42284 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42285 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42286 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42287 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42288 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42289 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42290 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42291 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42292 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42293 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42294 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42295 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42296 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42297 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42298 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42299 (tcp) failed: Connection refused
nc: connect to 127.0.0.1 port 42300 (tcp) failed: Connection refused


amenomade

Dann könnte ich mir nur noch so ein Verhalten erklären, wenn node / alexa-fhem sich ins eigene Bein schiesst. Habe ich aber hier noch nie gesehen.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Burt_Gummer

Hallo in die Runde!

Nutze diesen Adapter schon seit Ewigkeiten.
Seit dem letzten FHEM Update bekomme ich allerdings bei den Echo Devices folgenden Fehler:

Zitatconnected but loginerror

Der FHEM Connector in der Alexa App lässt sich ohne Probleme verbinden und ist auch connected.

OK, dieses Thema hier ist 4 Jahre alt...

Arbeitet an dem Adapter überhaupt noch jemand?

Welche Alternative habe ich, um FHEM über ein ECHO Device sprechen zu lassen?

MadMax-FHEM

Ich denke du bist hier falsch!

Hier geht es um alexa-fhem, also Steuerung mittels Sprache...

Der genannte Fehler ist eher echodevice Modul!

Also eher hier: https://forum.fhem.de/index.php?topic=82631.msg747482#msg747482

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)