[Gelöst] Alexa, ständige Neustarts "read:end of file reached while sysread"

Begonnen von Gueco315, 25 März 2019, 10:06:00

Vorheriges Thema - Nächstes Thema

Gueco315

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
Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

justme1968

hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Gueco315

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


Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

Gueco315

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!   




Fhem 6.0, JeeLink, CUL 868 auf Raspi 4, Buster, IT-1500, 4x SB_Player, Squeezebox auf Raspi 4, 3x Fritzbox,  WIFI Light, EGPM2LAN, ENIGMA, Sec-SCO,CC-RT-DN,TC-IT-WM-W-EU,SEN-Wa-Od,ES-PMSw1-PW,HM-SE, Sonoff, Shelly,SMA

wolley

Hi,

Danke fuer den Tip , nach dem Update von Node ist wieder alles sauber.


Danke !

ReneR1986

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

ReneR1986

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.

dutzend

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

dutzend


justme1968

wild irgend etwas rekursiv nach /usr/local zu kopieren sollte niemand einfach so nach machen.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

dutzend

Hat wohl auch nur temporär geholfen Neustarts passieren immer noch...
Problem also nicht gelöst!

dutzend

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?