FHEM Forum

FHEM => Frontends => Sprachsteuerung => Thema gestartet von: PNinBB am 17 Oktober 2023, 10:18:00

Titel: [Gelöst]AlexaFhem Installation SSH-Probleme
Beitrag von: PNinBB am 17 Oktober 2023, 10:18:00
Aus diversen Gründen musste ich alexa und damit im Zusammenhang auch nodejs und npm neu aufsetzen. Ich habe alles nach diversen Anleitungen hier im Forum gelöscht und neu installiert.
Ergebnis:
root@PNinBBServer4 17.10.2023;08:43:54 / 58>node --version
v18.18.2
root@PNinBBServer4 17.10.2023;08:44:23 / 60>npm --version
10.2.0
Aus bestimmten Gründen habe ich FHEM nicht im Standardverzeichnis.
Das habe ich auch per Attribut in Alexa eingetragen.
Internals:
   .FhemMetaInternals 1
   FUUID      652d4fbf-f33f-9b26-faa7-d859498f1fc14375
   FVERSION   39_alexa.pm:0.238200/2021-02-24
   LAST_START 2023-10-17 09:59:17
   LAST_STOP  2023-10-17 09:59:17
   NAME       [url=https://m6qgckdmlv1rwxtu.myfritz.net:28083/fhem?detail=Alexa]Alexa[/url]
   NOTIFYDEV  [url=https://m6qgckdmlv1rwxtu.myfritz.net:28083/fhem?detail=global]global[/url],[url=https://m6qgckdmlv1rwxtu.myfritz.net:28083/fhem?detail=global]global[/url]:npmjs.*alexa-fhem.*
   NR         1071
   NTFY_ORDER 50-[url=https://m6qgckdmlv1rwxtu.myfritz.net:28083/fhem?detail=Alexa]Alexa[/url]
   PARTIAL   
   STARTS     121
   STATE      stopped#
   TYPE       alexa
   active     0
   alexa-fhem version 0.5.64
   eventCount 261
   logfile    ./log/alexa-%Y-%m-%d.log
   .attraggr:
   .attrminint:
   CoProcess:
     cmdFn      alexa_getCMD
     name       alexaFHEM
     state      stopped
   READINGS:
     2023-10-17 09:59:17   alexaFHEM       stopped
     2023-10-16 19:45:25   alexaFHEM.ProxyConnection stopped; Terminated with Host key verification failed.  , ssh will restart at 19:46:39
. . .
   helper:
Attributes:
   alexaFHEM-auth crypt:. . . . .
   alexaFHEM-config ./alexa-fhem.cfg
   alexaFHEM-home /var/www/GB/FH
Wenn ich mich nun am Skill-Server anmelden will, kommt es nun zu dieser Fehlermeldung.
root@PNinBBServer4 17.10.2023;08:44:49 / 61>sudo -u fhem ssh -p 58824 fhem-va.fhem.de status
Could not create directory '/opt/fhem/.ssh'.
The authenticity of host '[fhem-va.fhem.de]:58824 ([188.40.131.57]:58824)' can't be established.
Im FHEM-Log sieht es entsprechend aus.
[pre]2023.10.17 09:21:46.225 3: Alexa: using ssh cmd /usr/bin/ssh 192.168.2.244
Could not create directory '/opt/fhem/.ssh'.
Host key verification failed.
2023.10.17 09:21:46.338 2: Alexa: setting $HOME to /var/www/GB/FH
Could not create directory '/opt/fhem/.ssh'.
Host key verification failed.
2023.10.17 09:21:46.456 2: Alexa: starting alexa-fhem: /usr/bin/ssh 192.168.2.244  -c /tmp/alexa-fhem.cfg -a NurIchFHEM:fHe!ByRuG
2023.10.17 09:21:46.457 5: Alexa: using /usr/bin/ssh
2023.10.17 09:21:46.470 3: Alexa: starting
2023.10.17 09:21:46.490 3: Alexa: using logfile: ./log/alexa-2023-10-17.log
2023.10.17 09:21:46.597 5: Alexa: read: Unknown cipher type '/tmp/alexa-fhem.cfg'
2023.10.17 09:21:46.599 3: Alexa: read: end of file reached while sysread
2023.10.17 09:21:46.600 3: Alexa: stopped
2023.10.17 09:21:46.603 4: Alexa: last run duration was only 0 sec, restarting with delay[/pre]
Auch das Alexa-Log funktioniert seit heute nicht mehr; gestern nach dem Neuaufbau kann man alles lesen.
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Unknown cipher type '/tmp/alexa-fhem.cfg'
Die Kernfrage scheint mir: wie/wo kann ich das Verzeichnis .ssh für die sicheren Hosts einstellen; bzw. warum wird es nicht von "alexaFHEM-home" abgeleitet ?
Besten Dank im Voraus.
Peter
Titel: Aw: AlexaFhem Installation SSH-Problme
Beitrag von: Wernieman am 17 Oktober 2023, 10:22:08
Das richtige Home-Dir für der User fhem auf dem System setzen ....
Titel: (Erledigt): AlexaFhem Installation SSH-Probleme
Beitrag von: PNinBB am 18 Oktober 2023, 18:43:16
Danke für den Hinweis.