Hallo,
nun bin ichs noch mal. Der Umzug ist heute nach dem Testlauf geschehen. Das FHEM startet auf der neuen Maschine und die Geräte lassen sich schalten der MQTT Server stellt dem Display die Daten zur verfügung. Das ist prima.
Was nicht so richtig klappen will ist die Anbindung von "Alexa". Eigentlich hätte ich erwartet dass nach dem Kopieren der selbe Token und Key wie im alten System ist. Aber es wird ein neuer generiert. Soweit sogut. Wenn ich den proxyKey aber im Smarthomeskill eingebe wird folgendes angezeigt: Status ActivationKey: Good Key
Status SSH: NOT online - no SSH session established
aber in den Readings steht etwas anderes:
alexaFHEM
running /usr/local/bin/alexa-fhem
2022-11-22 21:19:13
alexaFHEM.ProxyConnection
running; SSH connected
Der Prozess läuft:
ps -ef | egrep '(alexa|ssh)'
fhem 16231 1 0 20:59 ? 00:00:00 /usr/bin/node ./cache/alexa-cookie/1688refresh-cookie.js
fhem 16463 135 0 21:19 ? 00:00:00 node /usr/local/bin/alexa-fhem -c ./alexa-fhem.cfg
fhem 16476 16463 0 21:19 ? 00:00:00 /usr/bin/ssh -R 1234:127.0.0.1:37431 -oServerAliveInterval=90 -i /opt/fhem/.ssh/id_rsa -p 58824 fhem-va.fhem.de
root 16591 16567 0 21:27 pts/1 00:00:00 grep -E --color=auto (alexa|ssh)
nur warum wird ein neuer rsa key erstellt?
[22.11.2022, 20:41:53] sshautoconf: No SSH public key found, we have to generate one.
[22.11.2022, 20:41:53] sshautoconf: Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa
[22.11.2022, 20:41:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bset%20Alexa%20proxyKey%20171D14C9-A89B2FB60CDACAD2-86542BCFC8BFBF3F%3B%7B%24defs%7B%22Alexa
%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_822795785057484&XHR=1
[22.11.2022, 20:41:54] sshautoconf: completed successfully
[22.11.2022, 20:41:54] *** SSH: proxy configuration set up done
[22.11.2022, 20:41:54] Reading alexaFHEM.ProxyConnection set to starting;; starting SSH
[22.11.2022, 20:41:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20starting%3B%3B%20starting%20SSH%3B%7B%24de
fs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_822795785057484&XHR=1
[22.11.2022, 20:41:54] Starting SSH with -R 1234:127.0.0.1:36175 -oServerAliveInterval=90 -i /root/.ssh/id_rsa -p 58824 fhem-va.fhem.de
[22.11.2022, 20:41:54] SSH setup completed with new bearer token
[22.11.2022, 20:41:54] got fresh token
[22.11.2022, 20:41:54] Reading alexaFHEM.ProxyConnection set to running;; SSH connected
[22.11.2022, 20:41:54] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20running%3B%3B%20SSH%20connected%3B%7B%24de
fs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_822795785057484&XHR=1
[22.11.2022, 20:41:54] *** SSH: proxy connection established
[22.11.2022, 20:41:54] SSH: Welcome at the reverse proxy! This pseudoshell does not react to any input - do not get irritated.
[22.11.2022, 20:41:55] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%20FW_directNotify(%22%23FHEMWEB%3AWEB%22%2C%20%22location.reload('true')%22%2C%20%22%22
)%20%7D%3B%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_822795785057484&XHR=1
[22.11.2022, 20:42:27] [FHEM] not sending proactive event for: sh_RGB_Erik2:state:Error
[22.11.2022, 20:42:27] [FHEM] not sending proactive event for: sh_RGB_Erik1:state:Error
[22.11.2022, 20:42:37] Got SIGINT, shutting down alexa-fhem...
[22.11.2022, 20:42:37] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[22.11.2022, 20:42:37] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20stopping%3B%3B%20alexa-fhem%20terminating%
3B%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_822795785057484&XHR=1
[22.11.2022, 20:42:37] Stopping SSH ...
[22.11.2022, 20:42:37] Reading alexaFHEM.ProxyConnection set to stopped
[22.11.2022, 20:42:37] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7B%22Alexa%22%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20Alexa%20alexaFHEM.ProxyConnection%20stopped%3B%7B%24defs%7B%22Alexa%22%7D-%3E%
7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_822795785057484&XHR=1
Ich bin etwas ratlos. Kann ich nicht den Key vom alten System rüberkopieren?
Gruß Jochen