FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: falkmann am 29 Januar 2019, 21:24:45

Titel: Fhem Connector immer noch Probleme
Beitrag von: falkmann am 29 Januar 2019, 21:24:45
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.....
Titel: Antw:Fhem Connector immer noch Probleme
Beitrag von: Paul am 29 Januar 2019, 22:01:40
da stimmt etwas mit den Rechten nicht.
error; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
Titel: Antw:Fhem Connector immer noch Probleme
Beitrag von: falkmann am 30 Januar 2019, 10:04:34
Hallo, vielen Dank.
Ja, Rechte wo?
in Alexa oder wo?
Danke
Titel: Antw:Fhem Connector immer noch Probleme
Beitrag von: Paul am 30 Januar 2019, 10:17:06
Vielleicht hilft dir das weiter:

https://forum.fhem.de/index.php/topic,96510.0.html
Titel: Antw:Fhem Connector immer noch Probleme
Beitrag von: amenomade am 30 Januar 2019, 11:09:17
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
Titel: Antw:Fhem Connector immer noch Probleme
Beitrag von: falkmann am 31 Januar 2019, 09:04:45
Manchmal sieht man halt den Wald...... :o
Titel: Antw:Fhem Connector immer noch Probleme
Beitrag von: falkmann am 04 Februar 2019, 08:51:45
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.