[Erledigt] Fehler beim Update

Begonnen von UweUwe, 25 Mai 2022, 23:37:11

Vorheriges Thema - Nächstes Thema

UweUwe

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?

MadMax-FHEM

Welche OS-Version?

Welche Plattform?

node Version?

npm Version?

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)

UweUwe

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





MadMax-FHEM

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
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)

UweUwe

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.


MadMax-FHEM

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
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)

UweUwe

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.



MadMax-FHEM

#7
Gerne.

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

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)