Fhem Connector immer noch Probleme

Begonnen von falkmann, 29 Januar 2019, 21:24:45

Vorheriges Thema - Nächstes Thema

falkmann

Hallo  und schönen guten Abend.
Leider muss ich das Thema :SSH Problem mit FHEM-Connector / Alexa-Fhem nochmal hochholen.
Auch ich habe das Problem das  SSH scheinbar nicht richtig läuft.
Auch ich bekomme  den bearer-token usw nicht angezeigt und es kommt wohl keine SSH Verbindung zustande.

Logeintrag:

[2019-1-29 21:06:15] [FHEM] got: 0 results
[2019-1-29 21:06:15] [FHEM] alexa device is alexa
[2019-1-29 21:06:15] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.14%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:15] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:15] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:15] Server listening on: http://127.0.0.1:34757 for proxy connections
[2019-1-29 21:06:15] *** SSH: checking proxy configuration
[2019-1-29 21:06:15] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-1-29 21:06:15] Passed config: {"connections":[{"name":"FHEM","filter":"alexaName=..*","port":"8083","webname":"fhem","server":"127.0.0.1","uid":999}],"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":34757}}
[2019-1-29 21:06:15] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[2019-1-29 21:06:15] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:15] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:16] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-1-29 21:06:16] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:16] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:24] Got SIGTERM, shutting down alexa-fhem...
[2019-1-29 21:06:24] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-1-29 21:06:24] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%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%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:25] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-29 21:06:25] os.homedir()=/opt/fhem
[2019-1-29 21:06:25] this is alexa-fhem 0.5.14
[2019-1-29 21:06:25] connecting to FHEM ...
[2019-1-29 21:06:26] [FHEM] trying longpoll to listen for fhem events
[2019-1-29 21:06:26] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1548792386192
[2019-1-29 21:06:26] [FHEM] got csrfToken:
[2019-1-29 21:06:26] [FHEM] Checking devices and attributes...
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-29 21:06:26] [FHEM] waiting for events ...
[2019-1-29 21:06:26] [FHEM] Fetching FHEM devices...
[2019-1-29 21:06:26] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-1-29 21:06:26] [FHEM] alexa device is alexa
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.14%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:26] Server listening on: http://127.0.0.1:41274 for proxy connections
[2019-1-29 21:06:26] *** SSH: checking proxy configuration
[2019-1-29 21:06:26] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-1-29 21:06:26] Passed config: {"connections":[{"name":"FHEM","filter":"alexaName=..*","port":"8083","webname":"fhem","server":"127.0.0.1","uid":999}],"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":41274}}
[2019-1-29 21:06:26] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[2019-1-29 21:06:26] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:26] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[2019-1-29 21:06:26] [FHEM] got: 0 results
[2019-1-29 21:06:26] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-1-29 21:06:27] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:27] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1


#
*** FHEM: connected
[2019-1-29 21:06:15] [FHEM] got: 0 results
[2019-1-29 21:06:15] [FHEM] alexa device is alexa
[2019-1-29 21:06:15] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.14%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:15] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:15] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:15] Server listening on: http://127.0.0.1:34757 for proxy connections
[2019-1-29 21:06:15] *** SSH: checking proxy configuration
[2019-1-29 21:06:15] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-1-29 21:06:15] Passed config: {"connections":[{"name":"FHEM","filter":"alexaName=..*","port":"8083","webname":"fhem","server":"127.0.0.1","uid":999}],"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":34757}}
[2019-1-29 21:06:15] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[2019-1-29 21:06:15] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:15] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:16] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-1-29 21:06:16] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:16] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:24] Got SIGTERM, shutting down alexa-fhem...
[2019-1-29 21:06:24] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[2019-1-29 21:06:24] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%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%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:25] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[2019-1-29 21:06:25] os.homedir()=/opt/fhem
[2019-1-29 21:06:25] this is alexa-fhem 0.5.14
[2019-1-29 21:06:25] connecting to FHEM ...
[2019-1-29 21:06:26] [FHEM] trying longpoll to listen for fhem events
[2019-1-29 21:06:26] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1548792386192
[2019-1-29 21:06:26] [FHEM] got csrfToken:
[2019-1-29 21:06:26] [FHEM] Checking devices and attributes...
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&XHR=1
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&XHR=1
[2019-1-29 21:06:26] [FHEM] waiting for events ...
[2019-1-29 21:06:26] [FHEM] Fetching FHEM devices...
[2019-1-29 21:06:26] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&XHR=1
[2019-1-29 21:06:26] [FHEM] alexa device is alexa
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.14%22%7D%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bget%20alexa%20proxyToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:26] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Blist%20alexa%20.eventToken%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1
[2019-1-29 21:06:26] Server listening on: http://127.0.0.1:41274 for proxy connections
[2019-1-29 21:06:26] *** SSH: checking proxy configuration
[2019-1-29 21:06:26] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[2019-1-29 21:06:26] Passed config: {"connections":[{"name":"FHEM","filter":"alexaName=..*","port":"8083","webname":"fhem","server":"127.0.0.1","uid":999}],"sshproxy":{"description":"FHEM Connector","ssh":"/usr/bin/ssh","options":["-i","/opt/fhem/.ssh/id_rsa","-p",58824,"fhem-va.fhem.de"],"bind-ip":"127.0.0.1","port":41274}}
[2019-1-29 21:06:26] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[2019-1-29 21:06:26] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:26] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[2019-1-29 21:06:26] [FHEM] got: 0 results
[2019-1-29 21:06:26] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[2019-1-29 21:06:27] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[2019-1-29 21:06:27] [FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%201%3B%3Bundef%7D%3Bsetreading%20alexa%20alexaFHEM.ProxyConnection%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7Balexa%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&XHR=1



Zusätzlich bekomme die fehlermeldung bei der Eingabe  im Attribut "alexaFHEM-Auth" Benutzername und Passwort eingetragen!

stored obfuscated auth data

Hier noch die Readings:

Readings
alexaFHEM
running /usr/local/bin/alexa-fhem
2019-01-29 21:22:39
alexaFHEM.ProxyConnection
error; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
2019-01-29 21:22:42



Könnt Ihr mir bitte weiterhelfen?

Vielen herzliche Dank, Gruß Falk


Warum der Beitrag 2x kommt.....
Raspberry Pi 3 auf Hutschiene mit Jessie, CUL USB 433MHz, Fhem 5.7,
FB_7490

Paul

da stimmt etwas mit den Rechten nicht.
error; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
Cubietruck, HM-USB, CUL, FS20, FHT, HUE, Keymatic

falkmann

Hallo, vielen Dank.
Ja, Rechte wo?
in Alexa oder wo?
Danke
Raspberry Pi 3 auf Hutschiene mit Jessie, CUL USB 433MHz, Fhem 5.7,
FB_7490

Paul

Cubietruck, HM-USB, CUL, FS20, FHT, HUE, Keymatic

amenomade

Zitat von: falkmann am 30 Januar 2019, 10:04:34
Hallo, vielen Dank.
Ja, Rechte wo?
in Alexa oder wo?
Danke
Steht aber ganz klar geschrieben:
'chmod 755 /opt/fhem' required
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

falkmann

Manchmal sieht man halt den Wald...... :o
Raspberry Pi 3 auf Hutschiene mit Jessie, CUL USB 433MHz, Fhem 5.7,
FB_7490

falkmann

So, Lösung war jetzt:
Raspi komplett neu aufgesetzt, Fhem Server neu aufgesetzt. Und als erstes Alexa eingerichtet, und siehe da, es funktioniert.
Da mein Server nun schon nahezu 2 Jahre am Stück läuft , war es sowieso mal notwendig eine saubere Installation zu machen.
Raspberry Pi 3 auf Hutschiene mit Jessie, CUL USB 433MHz, Fhem 5.7,
FB_7490