Hallo,
habe mir wieder mal das Logging angeschaut und diese Alexa Meldungen tauchen ständig auf:
2019.03.25 09:44:43 3: MyAlexa: starting
2019.03.25 09:44:43 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:44:43 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:44:43 3: MyAlexa: stopped
2019.03.25 09:45:03 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:45:03 3: MyAlexa: starting
2019.03.25 09:45:03 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:45:03 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:45:03 3: MyAlexa: stopped
2019.03.25 09:45:23 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:45:23 3: MyAlexa: starting
2019.03.25 09:45:23 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:45:23 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:45:23 3: MyAlexa: stopped
2019.03.25 09:45:43 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:45:43 3: MyAlexa: starting
2019.03.25 09:45:43 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:45:43 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:45:43 3: MyAlexa: stopped
2019.03.25 09:46:03 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:46:03 3: MyAlexa: starting
2019.03.25 09:46:03 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:46:03 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:46:03 3: MyAlexa: stopped
2019.03.25 09:46:23 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:46:23 3: MyAlexa: starting
2019.03.25 09:46:23 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:46:23 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:46:23 3: MyAlexa: stopped
2019.03.25 09:46:38 1: Perfmon: possible freeze starting at 09:46:37, delay is 1.275
2019.03.25 09:46:43 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:46:43 3: MyAlexa: starting
2019.03.25 09:46:43 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:46:43 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:46:43 3: MyAlexa: stopped
2019.03.25 09:47:03 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
2019.03.25 09:47:03 3: MyAlexa: starting
2019.03.25 09:47:03 3: MyAlexa: using logfile: ./log/alexa-2019-03-25.log
2019.03.25 09:47:03 3: MyAlexa: read: end of file reached while sysread
2019.03.25 09:47:03 3: MyAlexa: stopped
2019.03.25 09:47:23 2: MyAlexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
Alexa-Log sagt:
/usr/local/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
/usr/local/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
/usr/local/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/alexa-fhem/bin/alexa:17:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
/usr/local/lib/node_modules/alexa-fhem/lib/cli.js:15
let startupPromise = new Promise(function (resolve) {
^^^
Alexa funktioniert dennoch. Ich habe an der Alexa keinerlei bewusste Änderungen vorgenommen ..
Woran könnte das liegen?
Gruß Günter
schaut nach zu alter node version aus.
Hallo Andre,
danke für die schnelle Rückmeldung. Ja das stimmt, ich habe noch eine v4.5.0 (Jessie)installiert.
Nach Anleitung:
https://wiki.fhem.de/wiki/Alexa-Fhem#node.js_installieren
habe ich versucht die alte durch eine 8er Version zu ersetzten.
Leider schlagen alle Updates, Upgrades, Removes fehl, die alte Version 4.5.0 bleibt auf dem PI 3+ beharrlich und lässt sich weder löschen noch updaten .
Hast du noch eine Idee? Im Netz finde ich dazu nichts, will mir auch nicht alles zerschießen.
Im AWS habe ich unter Runtime die neue Version (8.1) setzen können.
Gruß Günter
Hallo Zusammen,
wieder einmal einen Schritt weiter. Hatte nicht Jessie(das war ein älterer Raspi) sondern Raspian installiert. Die Node-Version habe ich wie folgt aktualisiert:
pi@raspberrypi:~ $ mkdir Downloads
pi@raspberrypi:~ $ cd Downloads/
pi@raspberrypi:~/Downloads $ wget https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-armv6l.tar.xz
--2017-11-05 11:57:20-- https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-armv6l.tar.xz
...
Length: 10272460 (9.8M) [application/x-xz]
Saving to: 'node-v8.9.0-linux-armv6l.tar.xz'
node-v8.9.0-linux-a 100%[===================>] 9.80M 1.20MB/s in 7.7s
...
pi@raspberrypi:~/Downloads $ tar -xvf node-v8.9.0-linux-armv6l.tar.xz
pi@raspberrypi:~/Downloads $ cd node-v8.9.0-linux-armv6l/
pi@raspberrypi:~/Downloads/node-v8.9.0-linux-armv6l $ sudo cp -R * /usr/local/
pi@raspberrypi:~/Downloads/node-v8.9.0-linux-armv6l $ cd
pi@raspberrypi:~ $ node -v
v8.9.0
Vor Ausfühuung des Befehls: sudo cp -R * /usr/local/
unbeingt Homebridge und Alexa stoppen!
Dann kommt die richtige Node-Version und Alexa läuft wieder störungsfrei und müllt die Logs nicht mehr voll.
Danke Andre!
Hi,
Danke fuer den Tip , nach dem Update von Node ist wieder alles sauber.
Danke !
Hallo zusammen,
FHEM läuft bei mir in einer Docker Umgebung.
Node Version ist 10.19.0.
Leider habe ich weiterhin alle 5 Minuten einen Neustart.
Könnte das noch eine andere Ursache haben?
VG
Bevor alexa neustartet scheint es ein Problem zu geben:
[3/28/2020, 1:10:18 PM] Server emitted error: {"code":"EADDRINUSE","errno":"EADDRINUSE","syscall":"listen","address":"127.0.0.1","port":39901}
[3/28/2020, 1:10:18 PM] Terminating - starting the listener not possible (another instance running?)
Ich kann jedoch bisher nicht erkennen, dass dieser Port schon verwendet wird.
Hallo,
bei mir unter Raspian das selbe Problem:
node.js v8.11.1
Stündlich fast auf die Sekunde genau:
2020.04.03 01:00:10 3: ALEXA: read: end of file reached while sysread
2020.04.03 01:00:10 3: ALEXA: stopped
2020.04.03 01:00:10 2: ALEXA: starting alexa-fhem: /usr/bin/alexa-fhem -c ./alexa-fhem.cfg
2020.04.03 01:00:10 3: ALEXA: starting
2020.04.03 01:00:10 3: ALEXA: using logfile: ./log/alexa-2020-04-03.log
2020.04.03 02:00:11 3: ALEXA: read: end of file reached while sysread
2020.04.03 02:00:11 3: ALEXA: stopped
2020.04.03 02:00:11 2: ALEXA: starting alexa-fhem: /usr/bin/alexa-fhem -c ./alexa-fhem.cfg
2020.04.03 02:00:11 3: ALEXA: starting
2020.04.03 02:00:11 3: ALEXA: using logfile: ./log/alexa-2020-04-03.log
VG
sudo cp -R * /usr/local/
Hat bei mir geholfen...
wild irgend etwas rekursiv nach /usr/local zu kopieren sollte niemand einfach so nach machen.
Hat wohl auch nur temporär geholfen Neustarts passieren immer noch...
Problem also nicht gelöst!
Bei mir passieren die Neustarts jetzt nur noch von 0:00 Uhr bis zur ersten Alexa-Funktion am Morgen...
Kann es sein, dass es am leeren Log-File liegt?
Ich muss jetzt mal dieses alte Thema kapern ;-)
Ich habe seit ein paar Tagen das gleiche Problem mit Terminating - starting the listener not possible (another instance running?)
Kann mir jemand sagen, was die Lösung war? Liegt es dann an der Node-Version, oder war es etwas anderes?
Da es anscheinend nach einem FHEM-Update begonnen hat, nehme ich an, dass es ein Versionsproblem ist.
Grüße,
Hugo
Zitat von: hugomckinley am 16 Juli 2025, 09:18:04Da es anscheinend nach einem FHEM-Update begonnen hat, nehme ich an, dass es ein Versionsproblem ist.
Klingt eher so, als hätte alexa-fhem nach dem Update neugestartet und irgendwie hat es nicht geklappt, einen Port freizugeben bzw. ein Port, der jetzt vom neuen alexa-fhem-Prozess genutzt werden soll, ist noch belegt. Deshalb ja auch der Hinweis in der Fehlermeldung:
Zitat von: hugomckinley am 16 Juli 2025, 09:18:04another instance running?
Wenn du dein ganzes System neustartest, dürfte es wieder gehen. Alternativ auch nach einer gewissen Zeit einfach nochmal probieren alexa-fhem zu starten, oder mal schauen, ob him Hintergrund noch irgendein verwaister alexa-fhem-Prozess läuft und den beenden. Dann kurz warten und dann versuchen, wieder zu starten. Reboot ist aber vermutlich einfacher.
Leider nein, das war einer der ersten Versuche.
Alexa-fhem funktioniert auch ganz normal, aber es müllt mir das Log zu und startet eben immer neu.
Alles klar. Dann poste mal bitte Infos zu Betriebssystem, Art der Installation (Docker?) usw. auch node bzw. npm-Version.
Und bitte einmal die Ausgabe vonps -aux | grep -E '(alexa|ssh)'
Und poste mal die entsprechenden Log-Auszüge, sowohl vom FHEM-Log als auch vom alexa-fhem-Log, mehr als nur eine Zeile, vielleicht auch mit etwas Kontext. Zum Beispiel so, dass man anhand der Timestamps sieht, in was für einem Intervall/wie oft das neustartet, usw.
Und bitte noch ein list vom alexa Device.
Danke!
Danke für deine Hilfe. Bitte keine Zeit investieren, denn das System wird in den nächsten 2 Monaten auf eine Linux-Basis (TrueNAS Scale) umgestellt, dann ist wieder alles anders. Ich hoffte nur, dass das vielleicht wer aus dem Stehgreif beantworten könnte.
FHEM läuft in einer FreeBSD Jail (TrueNAS-13.0-U6.7)
node --version
v18.12.1
Neuer geht bei diesem antiken System nicht mehr. Drum ist ja der Umstieg nötig.
Hier die Daten:
root 28657 0.0 0.4 311376 96700 - SJ 07:29 0:01.73 node: /usr/local/bin/node /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s (node)
root 28666 0.0 0.0 18632 7924 - IJ 07:29 0:00.03 /usr/bin/ssh -R 1234:127.0.0.1:28172 -oServerAliveInterval=90 -i /root/.ssh/id_rsa -p 58824 fhem-va.fhem.de
root 28807 0.0 0.0 21544 9840 - SsJ 07:34 0:00.02 sshd: root@pts/15 (sshd)
root 65045 0.0 0.0 21104 8260 - IsJ Tue23 0:00.01 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups (sshd)
root 28840 0.0 0.0 12840 2304 15 S+J 07:35 0:00.00 grep -E (alexa|ssh)
(Der User root ist einer Eigenheit meiner FreeBSD-Installation geschuldet.)
Logauszug(vollständig in diesem Zeitraum):
2025.07.17 06:00:02 3: alexa: read: end of file reached while sysread
2025.07.17 06:00:02 3: alexa: stopped
2025.07.17 06:00:02 2: alexa: setting $HOME to /root/
2025.07.17 06:00:02 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 06:00:02 3: alexa: starting
2025.07.17 06:00:02 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 06:04:26 3: alexa: read: end of file reached while sysread
2025.07.17 06:04:26 3: alexa: stopped
2025.07.17 06:04:26 2: alexa: setting $HOME to /root/
2025.07.17 06:04:26 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 06:04:26 3: alexa: starting
2025.07.17 06:04:26 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 06:18:37 3: alexa: read: end of file reached while sysread
2025.07.17 06:18:37 3: alexa: stopped
2025.07.17 06:18:37 2: alexa: setting $HOME to /root/
2025.07.17 06:18:37 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 06:18:37 3: alexa: starting
2025.07.17 06:18:37 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 06:32:48 3: alexa: read: end of file reached while sysread
2025.07.17 06:32:48 3: alexa: stopped
2025.07.17 06:32:48 2: alexa: setting $HOME to /root/
2025.07.17 06:32:48 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 06:32:48 3: alexa: starting
2025.07.17 06:32:48 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 06:46:59 3: alexa: read: end of file reached while sysread
2025.07.17 06:46:59 3: alexa: stopped
2025.07.17 06:46:59 2: alexa: setting $HOME to /root/
2025.07.17 06:46:59 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 06:46:59 3: alexa: starting
2025.07.17 06:46:59 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 07:00:03 3: alexa: read: end of file reached while sysread
2025.07.17 07:00:03 3: alexa: stopped
2025.07.17 07:00:03 2: alexa: setting $HOME to /root/
2025.07.17 07:00:03 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 07:00:03 3: alexa: starting
2025.07.17 07:00:03 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 07:01:10 3: alexa: read: end of file reached while sysread
2025.07.17 07:01:10 3: alexa: stopped
2025.07.17 07:01:10 2: alexa: setting $HOME to /root/
2025.07.17 07:01:10 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 07:01:11 3: alexa: starting
2025.07.17 07:01:11 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 07:15:21 3: alexa: read: end of file reached while sysread
2025.07.17 07:15:21 3: alexa: stopped
2025.07.17 07:15:21 2: alexa: setting $HOME to /root/
2025.07.17 07:15:21 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 07:15:21 3: alexa: starting
2025.07.17 07:15:21 3: alexa: using logfile: ./log/alexa-2025-07-17.log
2025.07.17 07:29:32 3: alexa: read: end of file reached while sysread
2025.07.17 07:29:32 3: alexa: stopped
2025.07.17 07:29:32 2: alexa: setting $HOME to /root/
2025.07.17 07:29:32 2: alexa: starting alexa-fhem: /usr/local/bin/alexa-fhem -c /opt/fhem/alexa-fhem.cfg -a xx:xx -s
2025.07.17 07:29:32 3: alexa: starting
2025.07.17 07:29:32 3: alexa: using logfile: ./log/alexa-2025-07-17.log
Alexa-Log (zeitlicher Auszug, immer das gleiche):
[7/17/2025, 6:04:16 AM] [FHEM] caching: CurrentAmbientLightLevel: 12808.679245283018 (as number; from '3394.3')
[7/17/2025, 6:04:25 AM] [FHEM] longpoll ended, reconnect in: 200msec
[7/17/2025, 6:04:25 AM] [FHEM] trying longpoll to listen for fhem events
[7/17/2025, 6:04:25 AM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=1752725056.943;fmt=JSON×tamp=1752725065776
[7/17/2025, 6:04:25 AM] [FHEM] got csrfToken: xxxxxxxxxxxxxx
[7/17/2025, 6:04:25 AM] [FHEM] Checking devices and attributes...
[7/17/2025, 6:04:25 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:25 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20TYPE%3Dalexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:25 AM] [FHEM] waiting for events ...
[7/17/2025, 6:04:25 AM] [FHEM] Fetching FHEM devices...
[7/17/2025, 6:04:25 AM] [FHEM] fetching: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=xxxxxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:26 AM] [FHEM] alexa device is alexa
[7/17/2025, 6:04:26 AM] [FHEM] alexa will not send proactive events
[7/17/2025, 6:04:26 AM] [FHEM] alexa uses ID: 5df5481f-f33f-faac-f394-cd6f1c0bb5e4bb7a
[7/17/2025, 6:04:26 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.51%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:26 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:26 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:26 AM] Server emitted error: {"code":"EADDRINUSE","errno":-48,"syscall":"listen","address":"127.0.0.1","port":34262}
[7/17/2025, 6:04:26 AM] Terminating - starting the listener not possible (another instance running?)
[7/17/2025, 6:04:26 AM] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[7/17/2025, 6:04:26 AM] os.homedir()=/root/
[7/17/2025, 6:04:26 AM] this is alexa-fhem 0.5.51
[7/17/2025, 6:04:26 AM] connecting to FHEM ...
[7/17/2025, 6:04:26 AM] [FHEM] defaults to: will not send proactive events
[7/17/2025, 6:04:26 AM] [FHEM] trying longpoll to listen for fhem events
[7/17/2025, 6:04:26 AM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1752725066750
[7/17/2025, 6:04:26 AM] [FHEM] got csrfToken: xxxxxxxxxxxxxxxxxxxx
[7/17/2025, 6:04:26 AM] [FHEM] Checking devices and attributes...
[7/17/2025, 6:04:26 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=xxxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:26 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=xxxxxxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:26 AM] [FHEM] waiting for events ...
[7/17/2025, 6:04:26 AM] [FHEM] Fetching FHEM devices...
[7/17/2025, 6:04:26 AM] [FHEM] fetching: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=xxxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:27 AM] [FHEM] alexa device is alexa
[7/17/2025, 6:04:27 AM] [FHEM] alexa will not send proactive events
[7/17/2025, 6:04:27 AM] [FHEM] alexa uses ID: 5df5481f-f33f-faac-f394-cd6f1c0bb5e4bb7a
[7/17/2025, 6:04:27 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.51%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:27 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:27 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxxxxxxxxxx&XHR=1
[7/17/2025, 6:04:27 AM] Server listening on: http://127.0.0.1:27404 for proxy connections
[7/17/2025, 6:04:27 AM] *** SSH: checking proxy configuration
[7/17/2025, 6:04:27 AM] sshautoconf: home=/root/, spath=/root/.alexa, cpath=/opt/fhem/alexa-fhem.cfg, sshpath=/root/.ssh
[7/17/2025, 6:04:27 AM] Passed config: {"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/root/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":27404},"connections":[{"server":"127.0.0.1","filter":"alexaName=..*","name":"FHEM","port":8083,"webname":"fhem","uid":0}]}
[7/17/2025, 6:04:27 AM] sshautoconf: SSH key seems to exist
[7/17/2025, 6:04:27 AM] sshautoconf: Our SSH key is known at the reverse proxy, good!
[7/17/2025, 6:04:27 AM] [FHEM] executing: https://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bjsonlist2%20alexa%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=xxxxxxxxxxxxxxxx&XHR=1
*** FHEM: connected
list alexa:
Internals:
FD 20
FUUID 5df5481f-f33f-faac-f394-cd6f1c0bb5e4bb7a
FVERSION 39_alexa.pm:0.238200/2021-02-24
LAST_START 2025-07-17 07:45:05
LAST_STOP 2025-07-17 07:45:05
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 410
NTFY_ORDER 50-alexa
PARTIAL
PID 29088
STARTS 144
STATE running /usr/local/bin/alexa-fhem
TYPE alexa
active 0
alexa-fhem version 0.5.51
currentlogfile ./log/alexa-2025-07-17.log
eventCount 575
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/local/bin/alexa-fhem
Helper:
DBLOG:
alexaFHEM:
LogSQL:
TIME 1752731105.8429
VALUE running /usr/local/bin/alexa-fhem
alexaFHEM.ProxyConnection:
LogSQL:
TIME 1752731108.17162
VALUE running; SSH connected
READINGS:
2025-07-17 07:45:05 alexaFHEM running /usr/local/bin/alexa-fhem
2025-07-17 07:45:08 alexaFHEM.ProxyConnection running; SSH connected
2020-03-21 15:10:02 alexaFHEM.bearerToken crypt:xxx
2020-03-21 15:10:02 alexaFHEM.skillRegKey crypt:xxx
helper:
Attributes:
alexaFHEM-auth crypt:0509040b0f5e5d015c4756534d1242085e51
alexaFHEM-cmd /usr/local/bin/alexa-fhem
alexaFHEM-config /opt/fhem/alexa-fhem.cfg
alexaFHEM-home /root/
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaFHEM-sshUser fhem
alexaMapping #Characteristic=<name>=<value>,...
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um
Brightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
Hue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200
Hue=verb=färbe,values=rot:0;grün:120;blau:220
Saturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER
Saturation=verb=sättige,values=AMAZON.NUMBER
TargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0
TargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
TargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad
Volume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
persons #<personId>=<name>
room System->Alexa
stateFormat alexaFHEM
verbose 3
Ok, ne, ist mir jetzt nicht sofort offensichtlich, was da das Problem ist.
Ein bisschen komisch ist, dass der longpoll einfach so endet ...
Zitat von: hugomckinley am 17 Juli 2025, 08:05:08[7/17/2025, 6:04:25 AM] [FHEM] longpoll ended, reconnect in: 200msec
Vielleicht müsstest du im Fehlerfall auch mal mit
sudo lsof -i :34262
checken, welcher Prozess da noch läuft/den Port belegt (ggfs. Port je nach EADDRINUSE-Fehlermeldung anpassen). Geht vermutlich auch mit
netstat -tlnp
Aber, wenn du eh das System umziehst, dann hoffe ich mal, dass der Fehler sich einfach damit erledigt :D