FHEM Connector wird nicht installiert

Begonnen von pfeffi, 11 April 2025, 12:47:57

Vorheriges Thema - Nächstes Thema

pfeffi

Habe auf einer nagelneuen SD-Karte FHEM angelegt Allerdings bekomme ich nach der Installation von FHEM den Alexa connector überhaupt nicht installiert. Die Installation läuft durch und es werden auch keine Fehler angezeigt. FHEM deinstalliert und wieder neu installiert auch danach geht es nicht. Node neu installiert aber hilft alles nicht.
Hat jemand ein ähnliches Problem?

passibe

Fehlermeldungen? Log-Einträge? Wie versuchst du das zu installieren? Welche Kommandos? Was spuckt die Konsole aus, wenn du das Kommando zum installieren ausführst? Welche node-Version verwendest du? Welches Betriebssystem (bzw. Version)?

pfeffi

#2
Alles nach dem wiki gemacht. Verwende einen Raspi mit bookworm

Node- Version  v22.14.0

Alexa istallieren
sudo npm install -g alexa-fhem

changed 57 packages in 6s

2 packages are looking for funding
  run `npm fund` for details


npm fund
npm fund
pi

ls -l /opt/fhem/.ssh
ls -l /opt/fhem/.ssh
ls: Zugriff auf '/opt/fhem/.ssh' nicht möglich: Datei oder Verzeichnis nicht gefunden

sudo ps -ef | egrep '(alexa|ssh)'
root        710      1  0 10:18 ?        00:00:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
pi          1103    994  0 10:18 ?        00:00:00 /usr/bin/ssh-agent x-session-manager
pi          1147      1  0 10:18 ?        00:00:00 /usr/bin/ssh-agent -s
pi          2936    1974  0 13:33 pts/0    00:00:00 grep -E --color=auto (alexa|ssh)

log-file
[11.4.2025, 09:39:30] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11.4.2025, 09:39:30] os.homedir()=/opt/fhem
[11.4.2025, 09:39:30] this is alexa-fhem 0.5.65
[11.4.2025, 09:39:30] connecting to FHEM ...
[11.4.2025, 09:39:30] [FHEM] defaults to: will not send proactive events
[11.4.2025, 09:39:31] [FHEM] trying longpoll to listen for fhem events
[11.4.2025, 09:39:31] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1744357171166
[11.4.2025, 09:39:31] [FHEM] got csrfToken: csrf_753612358164729
[11.4.2025, 09:39:31] [FHEM] Checking devices and attributes...
[11.4.2025, 09:39:31] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [FHEM] waiting for events ...
[11.4.2025, 09:39:31] [FHEM] Fetching FHEM devices...
[11.4.2025, 09:39:31] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName%3D..*&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7B%20addToAttrList(%20%22homebridgeMapping%3AtextField-long%22%20)%20%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [FHEM] homebridgeMapping attribute created.
[11.4.2025, 09:39:31] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BaddToAttrList(%20%22genericDeviceType%3Asecurity%2Cignore%2Cswitch%2Coutlet%2Clight%2Cblind%2Cthermometer%2Cthermostat%2Ccontact%2Cgarage%2Cwindow%2Clock%2Cscene%22%20)%20%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [FHEM] alexa device is alexa
[11.4.2025, 09:39:31] [FHEM] alexa will not send proactive events
[11.4.2025, 09:39:31] [FHEM] alexa uses ID: 67f8c731-f33f-f494-c802-31da27f316c19353
[11.4.2025, 09:39:31] [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%24defs%7B%22alexa%22%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.65%22%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [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%3Bget%20alexa%20proxyToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] [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%3Blist%20alexa%20.eventToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:31] Server listening on: http://127.0.0.1:42121 for proxy connections
[11.4.2025, 09:39:31] *** SSH: checking proxy configuration
[11.4.2025, 09:39:31] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[11.4.2025, 09:39:31] sshautoconf: env={"LANG":"de_DE.UTF-8","LANGUAGE":"de_DE","PATH":"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin","HOME":"/opt/fhem","LOGNAME":"fhem","USER":"fhem","INVOCATION_ID":"75519b56046b477fbd41deae5811d016","JOURNAL_STREAM":"9:11427","SYSTEMD_EXEC_PID":"1998"}
[11.4.2025, 09:39:31] sshautoconf: Creating directory /opt/fhem/.alexa
[11.4.2025, 09:39:31] Passed config: {
  sshproxy: {
    ssh: '/usr/bin/ssh',
    description: 'FHEM Connector',
    options: [ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
    'bind-ip': '127.0.0.1',
    server: Server {
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      requestTimeout: 300000,
      headersTimeout: 60000,
      keepAliveTimeout: 5000,
      connectionsCheckingInterval: 30000,
      joinDuplicateHeaders: undefined,
      rejectNonStandardBodyWrites: false,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _connections: 0,
      _handle: [TCP],
      _usingWorkers: false,
      _workers: [],
      _unref: false,
      allowHalfOpen: true,
      pauseOnConnect: false,
      noDelay: true,
      keepAlive: false,
      keepAliveInitialDelay: 0,
      highWaterMark: 16384,
      httpAllowHalfOpen: false,
      timeout: 0,
      maxHeadersCount: null,
      maxRequestsPerSocket: 0,
      _connectionKey: '4:127.0.0.1:0',
      [Symbol(IncomingMessage)]: [Function: IncomingMessage],
      [Symbol(ServerResponse)]: [Function: ServerResponse],
      [Symbol(kCapture)]: false,
      [Symbol(async_id_symbol)]: 123,
      [Symbol(kUniqueHeaders)]: null,
      [Symbol(http.server.connections)]: ConnectionsList {},
      [Symbol(http.server.connectionsCheckingInterval)]: Timeout {
        _idleTimeout: 30000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 1797,
        _onTimeout: [Function: bound checkConnections],
        _timerArgs: undefined,
        _repeat: 30000,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 125,
        [Symbol(triggerId)]: 124
      }
    }
  },
  connections: [
    {
      name: 'FHEM',
      server: '127.0.0.1',
      filter: 'alexaName=..*',
      uid: 999,
      webname: 'fhem',
      port: '8083'
    }
  ]
}
[11.4.2025, 09:39:31] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[11.4.2025, 09:39:31] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:39:31] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[11.4.2025, 09:39:31] [FHEM] got: 0 results
[11.4.2025, 09:39:31] [FHEM] genericDeviceType attribute was not known. please restart.
[11.4.2025, 09:39:51] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11.4.2025, 09:39:51] os.homedir()=/opt/fhem
[11.4.2025, 09:39:51] this is alexa-fhem 0.5.65
[11.4.2025, 09:39:51] connecting to FHEM ...
[11.4.2025, 09:39:51] [FHEM] defaults to: will not send proactive events
[11.4.2025, 09:39:52] [FHEM] trying longpoll to listen for fhem events
[11.4.2025, 09:39:52] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1744357192561
[11.4.2025, 09:39:52] [FHEM] got csrfToken: csrf_753612358164729
[11.4.2025, 09:39:52] [FHEM] Checking devices and attributes...
[11.4.2025, 09:39:52] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:52] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:52] [FHEM] waiting for events ...
[11.4.2025, 09:39:52] [FHEM] Fetching FHEM devices...
[11.4.2025, 09:39:52] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName%3D..*&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:52] [FHEM] alexa device is alexa
[11.4.2025, 09:39:52] [FHEM] alexa will not send proactive events
[11.4.2025, 09:39:52] [FHEM] alexa uses ID: 67f8c731-f33f-f494-c802-31da27f316c19353
[11.4.2025, 09:39:52] [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%24defs%7B%22alexa%22%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.65%22%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:52] [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%3Bget%20alexa%20proxyToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:52] [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%3Blist%20alexa%20.eventToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:52] Server listening on: http://127.0.0.1:35439 for proxy connections
[11.4.2025, 09:39:52] *** SSH: checking proxy configuration
[11.4.2025, 09:39:52] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[11.4.2025, 09:39:52] Passed config: {
  sshproxy: {
    ssh: '/usr/bin/ssh',
    description: 'FHEM Connector',
    options: [ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
    'bind-ip': '127.0.0.1',
    server: Server {
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      requestTimeout: 300000,
      headersTimeout: 60000,
      keepAliveTimeout: 5000,
      connectionsCheckingInterval: 30000,
      joinDuplicateHeaders: undefined,
      rejectNonStandardBodyWrites: false,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _connections: 0,
      _handle: [TCP],
      _usingWorkers: false,
      _workers: [],
      _unref: false,
      allowHalfOpen: true,
      pauseOnConnect: false,
      noDelay: true,
      keepAlive: false,
      keepAliveInitialDelay: 0,
      highWaterMark: 16384,
      httpAllowHalfOpen: false,
      timeout: 0,
      maxHeadersCount: null,
      maxRequestsPerSocket: 0,
      _connectionKey: '4:127.0.0.1:0',
      [Symbol(IncomingMessage)]: [Function: IncomingMessage],
      [Symbol(ServerResponse)]: [Function: ServerResponse],
      [Symbol(kCapture)]: false,
      [Symbol(async_id_symbol)]: 120,
      [Symbol(kUniqueHeaders)]: null,
      [Symbol(http.server.connections)]: ConnectionsList {},
      [Symbol(http.server.connectionsCheckingInterval)]: Timeout {
        _idleTimeout: 30000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 1629,
        _onTimeout: [Function: bound checkConnections],
        _timerArgs: undefined,
        _repeat: 30000,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 122,
        [Symbol(triggerId)]: 121
      }
    }
  },
  connections: [
    {
      name: 'FHEM',
      server: '127.0.0.1',
      filter: 'alexaName=..*',
      uid: 999,
      webname: 'fhem',
      port: '8083'
    }
  ]
}
[11.4.2025, 09:39:52] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[11.4.2025, 09:39:52] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:39:52] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[11.4.2025, 09:39:52] [FHEM] got: 0 results
[11.4.2025, 09:39:52] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[11.4.2025, 09:39:53] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:39:53] [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%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_753612358164729&XHR=1
[11.4.2025, 09:39:58] Got SIGTERM, shutting down alexa-fhem...
[11.4.2025, 09:39:58] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11.4.2025, 09:39:58] [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_753612358164729&XHR=1
[11.4.2025, 09:41:00] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11.4.2025, 09:41:00] os.homedir()=/opt/fhem
[11.4.2025, 09:41:00] this is alexa-fhem 0.5.65
[11.4.2025, 09:41:00] connecting to FHEM ...
[11.4.2025, 09:41:00] [FHEM] defaults to: will not send proactive events
[11.4.2025, 09:41:02] [FHEM] trying longpoll to listen for fhem events
[11.4.2025, 09:41:02] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1744357262288
[11.4.2025, 09:41:02] [FHEM] got csrfToken: csrf_716886564860671
[11.4.2025, 09:41:02] [FHEM] Checking devices and attributes...
[11.4.2025, 09:41:02] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [FHEM] waiting for events ...
[11.4.2025, 09:41:02] [FHEM] Fetching FHEM devices...
[11.4.2025, 09:41:02] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName%3D..*&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7B%20addToAttrList(%20%22homebridgeMapping%3AtextField-long%22%20)%20%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [FHEM] homebridgeMapping attribute created.
[11.4.2025, 09:41:02] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BaddToAttrList(%20%22genericDeviceType%3Asecurity%2Cignore%2Cswitch%2Coutlet%2Clight%2Cblind%2Cthermometer%2Cthermostat%2Ccontact%2Cgarage%2Cwindow%2Clock%2Cscene%22%20)%20%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [FHEM] alexa device is alexa
[11.4.2025, 09:41:02] [FHEM] alexa will not send proactive events
[11.4.2025, 09:41:02] [FHEM] alexa uses ID: 67f8c731-f33f-f494-c802-31da27f316c19353
[11.4.2025, 09:41:02] [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%24defs%7B%22alexa%22%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.65%22%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [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%3Bget%20alexa%20proxyToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] [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%3Blist%20alexa%20.eventToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:02] Server listening on: http://127.0.0.1:45965 for proxy connections
[11.4.2025, 09:41:02] *** SSH: checking proxy configuration
[11.4.2025, 09:41:02] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[11.4.2025, 09:41:02] Passed config: {
  sshproxy: {
    ssh: '/usr/bin/ssh',
    description: 'FHEM Connector',
    options: [ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
    'bind-ip': '127.0.0.1',
    server: Server {
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      requestTimeout: 300000,
      headersTimeout: 60000,
      keepAliveTimeout: 5000,
      connectionsCheckingInterval: 30000,
      joinDuplicateHeaders: undefined,
      rejectNonStandardBodyWrites: false,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _connections: 0,
      _handle: [TCP],
      _usingWorkers: false,
      _workers: [],
      _unref: false,
      allowHalfOpen: true,
      pauseOnConnect: false,
      noDelay: true,
      keepAlive: false,
      keepAliveInitialDelay: 0,
      highWaterMark: 16384,
      httpAllowHalfOpen: false,
      timeout: 0,
      maxHeadersCount: null,
      maxRequestsPerSocket: 0,
      _connectionKey: '4:127.0.0.1:0',
      [Symbol(IncomingMessage)]: [Function: IncomingMessage],
      [Symbol(ServerResponse)]: [Function: ServerResponse],
      [Symbol(kCapture)]: false,
      [Symbol(async_id_symbol)]: 123,
      [Symbol(kUniqueHeaders)]: null,
      [Symbol(http.server.connections)]: ConnectionsList {},
      [Symbol(http.server.connectionsCheckingInterval)]: Timeout {
        _idleTimeout: 30000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 4033,
        _onTimeout: [Function: bound checkConnections],
        _timerArgs: undefined,
        _repeat: 30000,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 125,
        [Symbol(triggerId)]: 124
      }
    }
  },
  connections: [
    {
      name: 'FHEM',
      server: '127.0.0.1',
      filter: 'alexaName=..*',
      uid: 999,
      webname: 'fhem',
      port: '8083'
    }
  ]
}
[11.4.2025, 09:41:02] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[11.4.2025, 09:41:02] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:41:02] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[11.4.2025, 09:41:02] [FHEM] got: 0 results
[11.4.2025, 09:41:02] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[11.4.2025, 09:41:02] [FHEM] genericDeviceType attribute was not known. please restart.
[11.4.2025, 09:41:40] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11.4.2025, 09:41:40] os.homedir()=/opt/fhem
[11.4.2025, 09:41:40] this is alexa-fhem 0.5.65
[11.4.2025, 09:41:40] connecting to FHEM ...
[11.4.2025, 09:41:40] [FHEM] defaults to: will not send proactive events
[11.4.2025, 09:41:41] [FHEM] trying longpoll to listen for fhem events
[11.4.2025, 09:41:41] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1744357301668
[11.4.2025, 09:41:41] [FHEM] got csrfToken: csrf_716886564860671
[11.4.2025, 09:41:41] [FHEM] Checking devices and attributes...
[11.4.2025, 09:41:41] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:41] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:41] [FHEM] waiting for events ...
[11.4.2025, 09:41:41] [FHEM] Fetching FHEM devices...
[11.4.2025, 09:41:41] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName%3D..*&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:41] [FHEM] alexa device is alexa
[11.4.2025, 09:41:41] [FHEM] alexa will not send proactive events
[11.4.2025, 09:41:41] [FHEM] alexa uses ID: 67f8c731-f33f-f494-c802-31da27f316c19353
[11.4.2025, 09:41:41] [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%24defs%7B%22alexa%22%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.65%22%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:41] [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%3Bget%20alexa%20proxyToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:41] [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%3Blist%20alexa%20.eventToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:41:41] Server listening on: http://127.0.0.1:38121 for proxy connections
[11.4.2025, 09:41:41] *** SSH: checking proxy configuration
[11.4.2025, 09:41:41] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[11.4.2025, 09:41:41] Passed config: {
  sshproxy: {
    ssh: '/usr/bin/ssh',
    description: 'FHEM Connector',
    options: [ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
    'bind-ip': '127.0.0.1',
    server: Server {
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      requestTimeout: 300000,
      headersTimeout: 60000,
      keepAliveTimeout: 5000,
      connectionsCheckingInterval: 30000,
      joinDuplicateHeaders: undefined,
      rejectNonStandardBodyWrites: false,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _connections: 0,
      _handle: [TCP],
      _usingWorkers: false,
      _workers: [],
      _unref: false,
      allowHalfOpen: true,
      pauseOnConnect: false,
      noDelay: true,
      keepAlive: false,
      keepAliveInitialDelay: 0,
      highWaterMark: 16384,
      httpAllowHalfOpen: false,
      timeout: 0,
      maxHeadersCount: null,
      maxRequestsPerSocket: 0,
      _connectionKey: '4:127.0.0.1:0',
      [Symbol(IncomingMessage)]: [Function: IncomingMessage],
      [Symbol(ServerResponse)]: [Function: ServerResponse],
      [Symbol(kCapture)]: false,
      [Symbol(async_id_symbol)]: 120,
      [Symbol(kUniqueHeaders)]: null,
      [Symbol(http.server.connections)]: ConnectionsList {},
      [Symbol(http.server.connectionsCheckingInterval)]: Timeout {
        _idleTimeout: 30000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 1628,
        _onTimeout: [Function: bound checkConnections],
        _timerArgs: undefined,
        _repeat: 30000,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 122,
        [Symbol(triggerId)]: 121
      }
    }
  },
  connections: [
    {
      name: 'FHEM',
      server: '127.0.0.1',
      filter: 'alexaName=..*',
      uid: 999,
      webname: 'fhem',
      port: '8083'
    }
  ]
}
[11.4.2025, 09:41:41] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[11.4.2025, 09:41:41] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:41:41] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[11.4.2025, 09:41:41] [FHEM] got: 0 results
[11.4.2025, 09:41:41] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[11.4.2025, 09:41:42] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:41:42] [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%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_716886564860671&XHR=1
[11.4.2025, 09:46:54] Got SIGTERM, shutting down alexa-fhem...
[11.4.2025, 09:46:54] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11.4.2025, 09:46: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%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_716886564860671&XHR=1
[11.4.2025, 09:46:58] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11.4.2025, 09:46:58] os.homedir()=/opt/fhem
[11.4.2025, 09:46:58] this is alexa-fhem 0.5.65
[11.4.2025, 09:46:58] connecting to FHEM ...
[11.4.2025, 09:46:58] [FHEM] defaults to: will not send proactive events
[11.4.2025, 09:46:59] [FHEM] trying longpoll to listen for fhem events
[11.4.2025, 09:46:59] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1744357619286
[11.4.2025, 09:46:59] [FHEM] got csrfToken: csrf_843453941973896
[11.4.2025, 09:46:59] [FHEM] Checking devices and attributes...
[11.4.2025, 09:46:59] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:46:59] [FHEM]  executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:46:59] [FHEM] waiting for events ...
[11.4.2025, 09:46:59] [FHEM] Fetching FHEM devices...
[11.4.2025, 09:46:59] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName%3D..*&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:46:59] [FHEM] alexa device is alexa
[11.4.2025, 09:46:59] [FHEM] alexa will not send proactive events
[11.4.2025, 09:46:59] [FHEM] alexa uses ID: 67f8c731-f33f-f494-c802-31da27f316c19353
[11.4.2025, 09:46:59] [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%24defs%7B%22alexa%22%7D-%3E%7B%22alexa-fhem%20version%22%7D%20%3D%20%220.5.65%22%7D%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:46:59] [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%3Bget%20alexa%20proxyToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:46:59] [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%3Blist%20alexa%20.eventToken%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:46:59] Server listening on: http://127.0.0.1:34169 for proxy connections
[11.4.2025, 09:46:59] *** SSH: checking proxy configuration
[11.4.2025, 09:46:59] sshautoconf: home=/opt/fhem, spath=/opt/fhem/.alexa, cpath=./alexa-fhem.cfg, sshpath=/opt/fhem/.ssh
[11.4.2025, 09:46:59] Passed config: {
  sshproxy: {
    ssh: '/usr/bin/ssh',
    description: 'FHEM Connector',
    options: [ '-i', '/opt/fhem/.ssh/id_rsa', '-p', 58824, 'fhem-va.fhem.de' ],
    'bind-ip': '127.0.0.1',
    server: Server {
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      requestTimeout: 300000,
      headersTimeout: 60000,
      keepAliveTimeout: 5000,
      connectionsCheckingInterval: 30000,
      joinDuplicateHeaders: undefined,
      rejectNonStandardBodyWrites: false,
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _connections: 0,
      _handle: [TCP],
      _usingWorkers: false,
      _workers: [],
      _unref: false,
      allowHalfOpen: true,
      pauseOnConnect: false,
      noDelay: true,
      keepAlive: false,
      keepAliveInitialDelay: 0,
      highWaterMark: 16384,
      httpAllowHalfOpen: false,
      timeout: 0,
      maxHeadersCount: null,
      maxRequestsPerSocket: 0,
      _connectionKey: '4:127.0.0.1:0',
      [Symbol(IncomingMessage)]: [Function: IncomingMessage],
      [Symbol(ServerResponse)]: [Function: ServerResponse],
      [Symbol(kCapture)]: false,
      [Symbol(async_id_symbol)]: 120,
      [Symbol(kUniqueHeaders)]: null,
      [Symbol(http.server.connections)]: ConnectionsList {},
      [Symbol(http.server.connectionsCheckingInterval)]: Timeout {
        _idleTimeout: 30000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 1666,
        _onTimeout: [Function: bound checkConnections],
        _timerArgs: undefined,
        _repeat: 30000,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 122,
        [Symbol(triggerId)]: 121
      }
    }
  },
  connections: [
    {
      name: 'FHEM',
      server: '127.0.0.1',
      filter: 'alexaName=..*',
      uid: 999,
      webname: 'fhem',
      port: '8083'
    }
  ]
}
[11.4.2025, 09:46:59] sshautoconf: *** Error: Your Homedirectory is writable by group/other. This will not work with SSH
[11.4.2025, 09:46:59] sshautoconf: aborted with user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:46:59] *** SSH: proxy configuration failed: user homedir writable by group/other ('chmod 755 /opt/fhem' required)
*** FHEM: connected
[11.4.2025, 09:46:59] [FHEM] got: 0 results
[11.4.2025, 09:46:59] No reading "alexaFHEM.bearerToken" found in "alexa" - incoming Cloud requests cannot be validated.
[11.4.2025, 09:47:00] Reading alexaFHEM.ProxyConnection set to error;; user homedir writable by group/other ('chmod 755 /opt/fhem' required)
[11.4.2025, 09:47:00] [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%20error%3B%3B%20user%20homedir%20writable%20by%20group%2Fother%20('chmod%20755%20%2Fopt%2Ffhem'%20required)%3B%7B%24defs%7B%22alexa%22%7D-%3E%7B%22active%22%7D%20%3D%200%3B%3Bundef%7D&fwcsrf=csrf_843453941973896&XHR=1
[11.4.2025, 09:47:20] Got SIGTERM, shutting down alexa-fhem...
[11.4.2025, 09:47:20] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11.4.2025, 09:47:20] [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_843453941973896&XHR=1

Das einzige was ich im log gefunden habe ist      ('chmod 755 /opt/fhem' required)     habe ich gemacht aber ändert nichts

MadMax-FHEM

#3
Zitat von: pfeffi am 11 April 2025, 13:47:36Das einzige was ich im log gefunden habe ist      ('chmod 755 /opt/fhem' required)     habe ich gemacht aber ändert nichts

Was kommt bei:
ls -ls /opt/fhem

und was bei
ls -la /opt/fhem/.ssh

Ist das immer noch so?
Zitat von: pfeffi am 11 April 2025, 13:47:36ls: Zugriff auf '/opt/fhem/.ssh' nicht möglich: Datei oder Verzeichnis nicht gefunden
Dann hast du die Installation nicht vollständig laut Wiki durchgeführt...
Es fehlen die ssh-Schlüssel für die Verbindung zu fhem.de und da dann weiter zu Amazon...

Hast du nach dem hier:
Zitat von: pfeffi am 11 April 2025, 13:47:36Das einzige was ich im log gefunden habe ist      ('chmod 755 /opt/fhem' required)     habe ich gemacht aber ändert nichts
alexa-fhem noch mal gestartet?

Wie kommst du auf diese Unterforum?
Zitat von: help alexaModule: 39_alexa.pm Maintainer: justme1968 Forum: Frontends/Sprachsteuerung

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)

pfeffi

bin eine Schritt weiter, ist jetzt installiert, mit folgendem Fehler

alexaFHEM.ProxyConnection
error; Reverse Proxy replied with neither registered nor unregistered status: out:  err:fhem@fhem-va.fhem.de: Permission denied

pfeffi

ls -ls /opt/fhem
insgesamt 832
  4 -rw-r--r--  1 fhem dialout    311 11. Apr 17:06 alexa-fhem.cfg
  4 -rw-r--r--  1 fhem dialout    311 11. Apr 13:51 alexa-fhem.cfg.previous
436 -rw-rw-rw-  1 fhem dialout 443441 11. Apr 09:27 CHANGED
 48 -rw-rw-rw-  1 fhem dialout  47176 11. Apr 07:55 configDB.pm
 12 drwxrwxrwx 53 fhem dialout  12288 11. Apr 09:21 contrib
  4 drwxrwxrwx  3 fhem dialout   4096 11. Apr 09:21 demolog
  4 drwxrwxrwx  4 fhem dialout   4096 11. Apr 09:21 docs
 32 drwxrwxrwx  6 fhem dialout  32768 11. Apr 17:06 FHEM
  4 -rw-rw-rw-  1 fhem dialout   2720 11. Apr 17:17 fhem.cfg
 24 -rw-rw-rw-  1 fhem dialout  21936 11. Apr 07:55 fhem.cfg.demo
172 -rwxrwxrwx  1 fhem dialout 174974 11. Apr 07:55 fhem.pl
 20 -rw-rw-rw-  1 fhem dialout  18092 11. Apr 09:27 GPL_V2.txt
  4 drwxrwxrwx  3 fhem dialout   4096 11. Apr 09:21 lib
  4 drwxrwxrwx  2 fhem dialout   4096 11. Apr 09:39 log
 48 -rw-rw-rw-  1 fhem dialout  47157 11. Apr 07:55 MAINTAINER.txt
  4 -rw-rw-rw-  1 fhem dialout    935 11. Apr 07:55 README_DEMO.txt
  4 drwxrwxrwx  4 fhem dialout   4096 11. Apr 09:31 restoreDir
  4 drwxrwxrwx  8 fhem dialout   4096 11. Apr 09:21 www

sudo ls -la /opt/fhem/.ssh
insgesamt 20
drwx------  2 fhem dialout 4096 11. Apr 16:53 .
drwxr-xr-x 12 fhem dialout 4096 11. Apr 17:06 ..
-rw-------  1 fhem dialout 3381 11. Apr 16:53 id_rsa
-rw-r--r--  1 fhem dialout  742 11. Apr 16:53 id_rsa.pub
-rw-r--r--  1 fhem dialout  442 11. Apr 16:53 known_hosts

MadMax-FHEM

Hast du die Schlüssel unter /opt/fhem/.ssh von einem System übertragen oder neu angelegt?

Entweder wie im Wiki beschrieben deregistrieren und neu registrieren...
...oder evtl. das Problem von hier:
https://forum.fhem.de/index.php?topic=140213.15
https://forum.fhem.de/index.php?topic=141227.msg1337955#msg1337955

oder hier

https://forum.fhem.de/index.php?topic=137644.msg1308505#msg1308505

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)

passibe