FHEM Forum

FHEM => Frontends => Sprachsteuerung => Thema gestartet von: UweUwe am 25 Mai 2022, 23:37:11

Titel: [Erledigt] Fehler beim Update
Beitrag von: UweUwe am 25 Mai 2022, 23:37:11
Hallo,
hatte Alexa-FHEM schon länger nicht mehr upgedated...
Version war/ist 0.5.37
Habe mit sudo npm install -g alexa-FHEM versucht einen Update zu machen. Vorher habe ich Alexa gestoppt.

Fehlermeldung:


pi@vagabundi:~ $ sudo npm install -g alexa-fhem
(node:1029) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
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

Jetzt bekomme ich Alexa nicht mehr gestartet:

Infos aus dem Alexa Modul:

FUUID

5e354c0c-f33f-813e-cd43-4cfff2322decd464
FVERSION

39_alexa.pm:0.238200/2021-02-24
NAME

alexa
NOTIFYDEV

global,global:npmjs.*alexa-fhem.*
NR

76
NTFY_ORDER

50-alexa
STATE

stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.
TYPE

alexa
logfile

./log/alexa-%Y-%m-%d.log
Readings
alexaFHEM

stopped; alexa-fhem not installed. install with 'sudo npm install -g alexa-fhem'.

2022-05-25 23:13:00
alexaFHEM.ProxyConnection


error; Reverse Proxy replied with neither registered nor unregistered status: out:  err:ssh: connect to host fhem-va.fhem.de port 58824: Network is unreachable


2022-05-25 21:21:04
alexaFHEM.bearerToken

crypt:5c0501080304537e2200000508062057

2020-02-01 11:48:15
alexaFHEM.skillRegKey

crypt:5206010970055c00490b05700503555303060b0c03507254274c5b57050404555375770002005d0b200e

2020-02-01 11:48:15


Wie komme ich jetzt weiter?
Titel: Antw:Fehler beim Update
Beitrag von: MadMax-FHEM am 25 Mai 2022, 23:46:06
Welche OS-Version?

Welche Plattform?

node Version?

npm Version?

Gruß, Joachim
Titel: Antw:Fehler beim Update
Beitrag von: UweUwe am 26 Mai 2022, 09:55:47
Welche OS-Version?

~ $ cat /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"


Welche Platform?

Raspberry Pi 3 Model B Rev 1.2p

Welche Node Version:

~ $ node --version
v8.11.1


Welche npm Version:
npm: '1.4.21




Titel: Antw:Fehler beim Update
Beitrag von: MadMax-FHEM am 26 Mai 2022, 10:02:20
Stretch ist zu alt!

Mittlerweile ist Bullseye, davor war/ist ja Buster und Stretch ist ja schon EOL.

Entweder "manuell" nodejs/npm aktualisieren oder eben (besser) gleich das neueste OS...

(wie soll das gehen: immer die neuesten Featueres wollen aber auf altem OS? ;)  )

Gruß, Joachim
Titel: Antw:Fehler beim Update
Beitrag von: UweUwe am 26 Mai 2022, 10:29:26
Hallo Joachim,

das verstehe ich, kann ich wieder auf die ursprüngliche Alexa-FHEM Version zurück?
Mein Alexa kann ich ja aktuell nicht mehr starten.
Das neue System ziehe ich ja auch auch, da hast du ja recht.

Titel: Antw:Fehler beim Update
Beitrag von: MadMax-FHEM am 26 Mai 2022, 10:38:02
Ich weiß nicht genau, ob/wie man eine bestimmte Version installieren kann.

Bzw. u.U. so:


npm install [package-name]@[version-number]


Siehe z.B.: https://www.mend.io/free-developer-tools/blog/npm-how-to-install-a-specific-version-of-node-js-package/

Was ich nicht weiß, wie man "[package-name]@[version-number]" bzgl. alexa-fhem angeben muss.

Evtl.: alexa-fhem@0.5.37

Aber da bin ich dann raus...
...evtl. einen neuen Thread mit genau der Frage oder suchen, ob es sowas schon im Forum gab.

Gruß, Joachim
Titel: Antw:Fehler beim Update
Beitrag von: UweUwe am 26 Mai 2022, 11:04:27
Hallo Joachim,

ich hatte ja noch einen Clon meiner Flashkarte und springe jetzt wieder darauf zurück.
Die neuste Version von Alexa verwende ich dann mit dem neuen OS.
Danke für die Unterstützung.


Titel: Antw:Fehler beim Update
Beitrag von: MadMax-FHEM am 26 Mai 2022, 11:11:08
Gerne.

Packst du dann ein [erledigt] o.ä. vorne dran :)

Gruß, Joachim