FHEM Forum

FHEM => Frontends => Sprachsteuerung => Thema gestartet von: rlehnert am 11 März 2020, 22:28:18

Titel: Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: rlehnert am 11 März 2020, 22:28:18
Hallo Zusammen,

ich versuche gerade nach dieser Anleitung mein alexa-fhem zu updaten:
https://wiki.fhem.de/wiki/FHEM_Connector_f%C3%BCr_Amazon_Alexa .
Aktuell ist bei mir die Version 0.5.26 installiert.

Da das Update nicht durchlief habe ich, wie in der Anleitung beschrieben, versucht die neue Version mit sudo npm install -g alexa-fhem über die alte Version drüber zu installieren. Aber auch dies schlägt fehl.
Das Installation Log hänge ich dem Post an.
Vielleicht kann mir einer von euch hier weiterhelfen.

Viele Grüße
Rolf
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: justme1968 am 12 März 2020, 18:42:47
ich denke du hast ein rechte problem. sudo vergessen ?

es wäre hilfreich wenn du genau postest was du eingeben hast. nicht noch mal tippen sonder per copy&paste in einen code block.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: rlehnert am 12 März 2020, 20:51:57
Danke für Deine Antwort.
Sudo hatte ich benutzt, ich habe mal ein Video auf meinen Server hochgeladen das meine Eingaben zeigt.
http://ds.lehnert-online.de/alexa-fhem-update.mp4

Beim ersten Mal, bevor ich den Post geschrieben habe, hatte auch das Update einen Fehler gemeldet.
Jetzt scheint es durch zulaufen, es wird aber kein Update installiert.
Das install wirft aber noch immer den Fehler, zu dem ich das Log hochgeladen hatte.

Viele Grüße
Rolf
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: justme1968 am 12 März 2020, 21:21:56
ich möchte weder ein video noch irgendwelchen anderen files runterladen sondern nur deine eingaben und die ausgaben und fehlermeldungen per cops&paste in eine code block.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: rlehnert am 13 März 2020, 09:00:19
Sorry, war nicht böse gemeint  :-[

Also zunächst versuchte ich das Update auszuführen.
Beim ersten Mal, bevor ich den Post angelegt habe, kam da noch eine Fehlermeldung.
Jetzt sieht es so aus:

Web-Interface:
set alexa stop

Shell:
pi@PC-RaspBerry-3:~ $ sudo npm update -g alexa-fhem
(node:8996) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
pi@PC-RaspBerry-3:~ $


Wenn ich dann aus FHEM Alexa wieder starte, ist die Version unverändert.
Deshalb versuchte ich ein Install:

Web-Interface:
set alexa stop

Shell:
pi@PC-RaspBerry-3:~ $ sudo npm install -g alexa-fhem
(node:9019) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert'
npm ERR! error rolling back  alexa-fhem@0.5.50 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/alexa-fhem/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert' }
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm WARN optional dep failed, continuing ws@6.2.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@PC-RaspBerry-3:~ $


Das in der Meldung angesprochene Log habe ich im ersten Post angehängt.

Viele Grüße
Rolf

Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: justme1968 am 13 März 2020, 09:04:58
lösch /usr/local/lib/node_modules/alexa-fhem komplett und installiere noch mal.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: rlehnert am 13 März 2020, 22:13:07
Hat leider nichts gebracht.
Ich habe daraufhin alle Verzeichnisse mit Namen alexa-fhem gesucht und gelöscht.
Dann nodejs und npm deinstalliert, PI neu gestartet und beides neu installiert.

npm install -g alexa-fhem bringt aber noch immer den gleichen Fehler.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: justme1968 am 14 März 2020, 07:49:14
zumindest erst in dem beitrag fehlt wieder das sudo. es hatte einen grund warum ich oben von copy&paste geschrieben habe.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: Muk.s am 19 März 2020, 17:34:18
Bei mir gibt es ähnliche Probleme:


pi@SmartHome:~ $ sudo npm install -g alexa-fhem
(node:29418) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm WARN optional dep failed, continuing ws@6.2.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@SmartHome:~ $



pi@SmartHome:~ $ sudo npm install -g alexa-fhem
(node:970) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! tar.unpack untar error /root/.npm/ansi-styles/3.2.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/supports-color/5.5.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/escape-string-regexp/1.0.5/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/ws/node_modules'
npm ERR! error rolling back  alexa-fhem@0.5.51 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/ws/node_modules'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/alexa-fhem/node_modules/ws/node_modules' }
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm WARN optional dep failed, continuing ws@6.2.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@SmartHome:~ $




pi@SmartHome:~ $ sudo npm install -g alexa-fhem
(node:3754) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@SmartHome:~ $



Löschen von /usr/local/lib/node_modules/alexa-fhem und Neuinstallation hat auch nichts gebracht

Nachtrag: Möglicherweise hängt das Problem mit der neueren alexa-fhem Version zusammen. Die Version 0.5.48 ließ sich installieren, die 0.5.49 hingegen schon nicht mehr.

/Micha
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: piet_pit am 20 März 2020, 20:59:01
Hallo Zusammen,

ich habe ebenfalls ein Problem beim Update von alexa-fhem. Ich wollte ein Update von der Version von 0.5.48 auf die aktuelle Version machen. Leider klappt sowohl der Update als auch der Install Weg aus dem Wiki nicht.

Ein Rechteproblem vermute ich nicht, denn ich habe auf diesem im Wiki beschriebenen Weg schon mehrfach ein Update gemacht, hat bisher immer einwandfrei geklappt.

Hier die Fehlermeldung:


pi@FHEM_2:~ $ sudo npm install -g alexa-fhem
(node:3479) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0


Bin mir nicht sicher, ob löschen und Neuinstallation hier zielführend ist...

Kann das Problem an der neuen Version von alexa-fhem liegen? Auf jeden Fall ist alexa gestoppt, hat bisher immer toll geklappt... :)
Danke an dieser Stelle für das tolle Modul...

VG
Pit
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: justme1968 am 20 März 2020, 21:10:43
ich glaube bei euch allen ist das problem eine zu alte npm version.

versucht mal ein sudo npm install -g npm und wenn das funktioniert hat den normalen alexa-fhem update.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: piet_pit am 20 März 2020, 21:29:37
Hallo Andre,

vielen Dank für den Tip, das war es, jetzt klappt es wieder einwandfrei :) :)

Vielen Dank und bleib virenfrei... ;D

Pit
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: markukug am 11 November 2020, 07:10:03
Zitat von: justme1968 am 20 März 2020, 21:10:43
ich glaube bei euch allen ist das problem eine zu alte npm version.

versucht mal ein sudo npm install -g npm und wenn das funktioniert hat den normalen alexa-fhem update.

Das war auch bei mir die Lösung. Danke  :).
Also:

Und jetzt geht es weiter nach https://wiki.fhem.de/wiki/FHEM_Connector_f%C3%BCr_Amazon_Alexa (https://wiki.fhem.de/wiki/FHEM_Connector_f%C3%BCr_Amazon_Alexa)

[Update] ... und das funktioniert auch. Echt super. Einizg beim erneuten Einlesen der Geräte auf https://alexa.amazon.de/spa/index.html#appliances (https://alexa.amazon.de/spa/index.html#appliances) musste ich ein paar Minuten warten.

LG
Markus
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: fireball am 02 Februar 2023, 20:15:56
Hi,

ich muss den Fred hier nochmal ausgraben... ich wollte jetzt auch Alex-Fhem mal wieder updaten... und bekomme einen Fehler.
Alexa-Fhem habe ich in Version 0.5.61.

Ich bin auf
pi@raspberrypi:~ $ more /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

Das OS habe ich auf dem aktuellen Stand.
node Version ist
pi@raspberrypi:~ $ node --version
v10.24.0

Ich habe jetzt versucht der Anleitung zu folgen und auch ein paar Hinweisen im Netz, aber ich bekomme immer wieder diesen Fehler:

pi@raspberrypi:~ $ sudo npm update -g alexa-fhem
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
  #unloaded = false
  ^

SyntaxError: Invalid or unexpected token
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
    at Module._compile (internal/modules/cjs/loader.js:778:30)


Hat jemand noch eine Idee?
VG+Danke
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: MadMax-FHEM am 02 Februar 2023, 21:52:28
Buster ist doch nicht aktuell: Bullseye...

Gruß, Joachim
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: justme1968 am 02 Februar 2023, 21:53:32
deine npm und node versionen passen nicht zusammen.
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: fireball am 03 Februar 2023, 07:32:04
Hi,

danke, das wars... dachte mit apt-get update/upgrade bin ich immer up2date. Habe jetzt node.js und npm auf den neusten Stand gebracht und Schwups ging auch die Aktualisierung von FHEM.
War mein Fehler. Aber danke für den Hinweis.

Ein Upgrade auf Bullseye ist kein Problem? Ich habe schon drüber nachgedacht... Einfach das BS updaten oder gibts Komplikationen?

VG
René
Titel: Antw:Poblem beim Updaten von FHEM Connector for alexa
Beitrag von: MadMax-FHEM am 03 Februar 2023, 07:42:48
Bei mir läuft fhem und alexa-fhem schon lange auf Bullseye...

Allerdings installiere ich immer frisch und spiele ein Backup ein...

Achtung: /opt/fhem/.ssh ist im "normalen" fhem Backup nicht enthalten, das wird aber von alexa-fhem für die Verbindung zum fhem Vereinsserver/Amazon genutzt...

Daher: mit umziehen...
(falls Neuinstallation mit Einspielen Backup)

Gruß, Joachim