Moin!
Meine Alexa erklärt mir neuerdings ständig, das entsprechende Gerät würde nicht mehr reagieren..
Ein list des devices...
Internals:
FD 14
FUUID 5dddc92e-f33f-b7ca-5493-38c1fc1a76463fbb
FVERSION 39_alexa.pm:0.216510/2020-04-12
LAST_START 2020-11-26 16:25:53
LAST_STOP 2020-11-26 16:22:44
NAME alexa
NOTIFYDEV global,global:npmjs.*alexa-fhem.*
NR 70
NTFY_ORDER 50-alexa
PARTIAL
PID 21728
STARTS 5
STATE running /usr/bin/alexa-fhem
TYPE alexa
currentlogfile ./log/alexa-2020-11-26.log
logfile ./log/alexa-%Y-%m-%d.log
CoProcess:
cmdFn alexa_getCMD
name alexaFHEM
state running /usr/bin/alexa-fhem
Helper:
DBLOG:
alexaFHEM:
DbLog:
TIME 1606404353.08699
VALUE running /usr/bin/alexa-fhem
state:
DbLog:
TIME 1606465158.66264
VALUE skillId
READINGS:
2020-11-26 16:25:53 alexaFHEM running /usr/bin/alexa-fhem
2020-06-18 04:36:50 alexaFHEM.ProxyConnection running; SSH connected
2019-12-31 00:30:34 alexaFHEM.bearerToken crypt:xxxxxxxxxxxxxxxxxxxxx
2019-12-31 00:30:34 alexaFHEM.skillRegKey crypt:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
helper:
Attributes:
alexaFHEM-config ./alexa-fhem.cfg
alexaFHEM-log ./log/alexa-%Y-%m-%d.log
alexaFHEM-params -D
alexaMapping #Characteristic=<name>=<value>,...
On=verb=schalte,valueOn=an;ein,valueOff=aus,valueToggle=um
Brightness=verb=stelle,property=helligkeit,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
Hue=verb=stelle,valuePrefix=auf,values=rot:0;grün:128;blau:200
Hue=verb=färbe,values=rot:0;grün:120;blau:220
Saturation=verb=stelle,property=sättigung,valuePrefix=auf,values=AMAZON.NUMBER
Saturation=verb=sättige,values=AMAZON.NUMBER
TargetPosition=verb=mach,articles=den;die,values=auf:100;zu:0
TargetPosition=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
TargetTemperature=verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=grad
Volume:verb=stelle,valuePrefix=auf,values=AMAZON.NUMBER,valueSuffix=prozent
#Weckzeit=verb=stelle,valuePrefix=auf;für,values=AMAZON.TIME,valueSuffix=uhr
alexaTypes #Type=<alias>[,<alias2>[,...]]
light=licht,lampen
blind=rolladen,rolläden,jalousie,jalousien,rollo,rollos
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
echoRooms #<deviceId>=<room>
fhemIntents #IntentName=<sample utterance>
gutenMorgen=guten morgen
guteNacht=gute nacht
persons #<personId>=<name>
room 99_System
skillId
stateFormat alexaFHEM
verbose 5
Das Logfile:
[11/26/2020, 12:35:12 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/26/2020, 12:35:12 PM] os.homedir()=/
[11/26/2020, 12:35:12 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 12:35:12 PM] process.env.HOME=/
[11/26/2020, 12:35:12 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 12:35:12 PM] process.env.HOMEPATH=undefined
[11/26/2020, 12:35:12 PM] process.env.USERPROFILE=undefined
[11/26/2020, 12:35:12 PM] process.env.PWD=/opt/fhem
[11/26/2020, 12:35:12 PM] this is alexa-fhem 0.5.35
[11/26/2020, 12:35:12 PM] connecting to FHEM ...
[11/26/2020, 12:35:14 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:35:14 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390514265
[11/26/2020, 12:37:40 PM] Got SIGTERM, shutting down alexa-fhem...
[11/26/2020, 12:37:40 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/26/2020, 12:38:38 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/26/2020, 12:38:38 PM] os.homedir()=/
[11/26/2020, 12:38:38 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 12:38:38 PM] process.env.HOME=/
[11/26/2020, 12:38:38 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 12:38:38 PM] process.env.HOMEPATH=undefined
[11/26/2020, 12:38:38 PM] process.env.USERPROFILE=undefined
[11/26/2020, 12:38:38 PM] process.env.PWD=/opt/fhem
[11/26/2020, 12:38:38 PM] this is alexa-fhem 0.5.57
[11/26/2020, 12:38:38 PM] connecting to FHEM ...
[11/26/2020, 12:38:38 PM] [FHEM] defaults to: will not send proactive events
[11/26/2020, 12:38:40 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:38:40 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390720966
[11/26/2020, 12:41:21 PM] Got SIGTERM, shutting down alexa-fhem...
[11/26/2020, 12:41:21 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/26/2020, 12:41:22 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/26/2020, 12:41:22 PM] os.homedir()=/
[11/26/2020, 12:41:22 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 12:41:22 PM] process.env.HOME=/
[11/26/2020, 12:41:22 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 12:41:22 PM] process.env.HOMEPATH=undefined
[11/26/2020, 12:41:22 PM] process.env.USERPROFILE=undefined
[11/26/2020, 12:41:22 PM] process.env.PWD=/opt/fhem
[11/26/2020, 12:41:22 PM] this is alexa-fhem 0.5.57
[11/26/2020, 12:41:22 PM] connecting to FHEM ...
[11/26/2020, 12:41:22 PM] [FHEM] defaults to: will not send proactive events
[11/26/2020, 12:41:24 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:41:24 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390884950
[11/26/2020, 12:42:49 PM] Got SIGTERM, shutting down alexa-fhem...
[11/26/2020, 12:42:49 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/26/2020, 12:42:53 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/26/2020, 12:42:53 PM] os.homedir()=/
[11/26/2020, 12:42:53 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 12:42:53 PM] process.env.HOME=/
[11/26/2020, 12:42:53 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 12:42:53 PM] process.env.HOMEPATH=undefined
[11/26/2020, 12:42:53 PM] process.env.USERPROFILE=undefined
[11/26/2020, 12:42:53 PM] process.env.PWD=/opt/fhem
[11/26/2020, 12:42:53 PM] this is alexa-fhem 0.5.57
[11/26/2020, 12:42:53 PM] connecting to FHEM ...
[11/26/2020, 12:42:53 PM] [FHEM] defaults to: will not send proactive events
[11/26/2020, 12:42:55 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:42:55 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390975227
[11/26/2020, 4:22:43 PM] Got SIGTERM, shutting down alexa-fhem...
[11/26/2020, 4:22:43 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/26/2020, 4:25:55 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/26/2020, 4:25:55 PM] os.homedir()=/
[11/26/2020, 4:25:55 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 4:25:55 PM] process.env.HOME=/
[11/26/2020, 4:25:55 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 4:25:55 PM] process.env.HOMEPATH=undefined
[11/26/2020, 4:25:55 PM] process.env.USERPROFILE=undefined
[11/26/2020, 4:25:55 PM] process.env.PWD=/opt/fhem
[11/26/2020, 4:25:55 PM] this is alexa-fhem 0.5.57
[11/26/2020, 4:25:55 PM] connecting to FHEM ...
[11/26/2020, 4:25:55 PM] [FHEM] defaults to: will not send proactive events
[11/26/2020, 4:25:57 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 4:25:57 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606404357194
Danke für vorschläge...
Grüße
anfichtn
Hallo,
Zitat
Meine Alexa erklärt mir neuerdings ständig, das entsprechende Gerät würde nicht mehr reagieren..
Neuerdings?
Also ging es schon?
Hast du etwas geändert?
EDIT: ok der Update von 0.5.35 auf die aktuelle Version 0.5.57 gestern Mittag. Aber auch davor sieht es so aus als ob eben bei der "Abfrage" von fhem "nichts zurück kommt"...
Zitat
[11/26/2020, 12:42:55 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:42:55 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390975227
[11/26/2020, 4:22:43 PM] Got SIGTERM, shutting down alexa-fhem...
[11/26/2020, 4:22:43 PM] Reading alexaFHEM.ProxyConnection set to stopping;; alexa-fhem terminating
[11/26/2020, 4:25:55 PM] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[11/26/2020, 4:25:55 PM] os.homedir()=/
[11/26/2020, 4:25:55 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 4:25:55 PM] process.env.HOME=/
[11/26/2020, 4:25:55 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 4:25:55 PM] process.env.HOMEPATH=undefined
[11/26/2020, 4:25:55 PM] process.env.USERPROFILE=undefined
[11/26/2020, 4:25:55 PM] process.env.PWD=/opt/fhem
[11/26/2020, 4:25:55 PM] this is alexa-fhem 0.5.57
[11/26/2020, 4:25:55 PM] connecting to FHEM ...
Hast du hier alexa-fhem neu gestartet, also:
Zitat
[11/26/2020, 4:22:43 PM] Got SIGTERM, shutting down alexa-fhem...
Allerdings ist nach dem bzw. bei dem Abfragen von fhem immer Schluss.
Also über die Abfrage von fhem kommt alexa-fhem nie hinaus und bekommt auch nichts zurück von fhem:
Zitat
[11/26/2020, 12:35:14 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:35:14 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390514265
Zitat
[11/26/2020, 12:38:38 PM] connecting to FHEM ...
[11/26/2020, 12:38:38 PM] [FHEM] defaults to: will not send proactive events
[11/26/2020, 12:38:40 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 12:38:40 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606390720966
Zitat
[11/26/2020, 4:25:55 PM] connecting to FHEM ...
[11/26/2020, 4:25:55 PM] [FHEM] defaults to: will not send proactive events
[11/26/2020, 4:25:57 PM] [FHEM] trying longpoll to listen for fhem events
[11/26/2020, 4:25:57 PM] [FHEM] starting longpoll: https://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606404357194
Danach sehe ich nie "Antwort" von fhem...
Gruß, Joachim
Zitat von: MadMax-FHEM am 27 November 2020, 10:09:01
Hallo,
Neuerdings?
Also ging es schon?
Hast du etwas geändert?
Ich habe irgendwann den reverse Proxy eingerichtet... danach dächte ich, funktionierte der spass allerdings noch
Zitat
EDIT: ok der Update von 0.5.35 auf die aktuelle Version 0.5.57 gestern Mittag. Aber auch davor sieht es so aus als ob eben bei der "Abfrage" von fhem "nichts zurück kommt"...
Hast du hier alexa-fhem neu gestartet, also:
Ja, da erfolgte ein Neustart
Zitat
Allerdings ist nach dem bzw. bei dem Abfragen von fhem immer Schluss.
Also über die Abfrage von fhem kommt alexa-fhem nie hinaus und bekommt auch nichts zurück von fhem:
Danach sehe ich nie "Antwort" von fhem...
Gruß, Joachim
Ich hab die alten Logs auch nie wirklich gelesen... funktionierte ja.
grüße
anfichtn
Ich sag mal so: was soll ich mit deinen Antworten anfangen? Helfen kann ich damit nicht...
Was klar zu sehen ist, wenn das tatsächlich das ganze Log ist: alexa-fhem hört beim Abfragen von fhem auf. Wenn das nicht weiter läuft, dann ist klar, warum die Meldung "reagiert nicht" kommt...
Normalerweise sieht das so aus (eben mal [für dich ;) ] alexa-fhem neu gestartet):
[27/11/2020, 15:08:41] connecting to FHEM ...
[27/11/2020, 15:08:41] [FHEM] defaults to: will not send proactive events
[27/11/2020, 15:08:42] [FHEM] trying longpoll to listen for fhem events
[27/11/2020, 15:08:42] [FHEM] starting longpoll: http://127.0.0.1:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON×tamp=1606486122797
[27/11/2020, 15:08:42] [FHEM] got csrfToken: csrf_123456789
[27/11/2020, 15:08:42] [FHEM] Checking devices and attributes...
[27/11/2020, 15:08:42] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22%2C%22userattr%22%2C%22%22)%7D&fwcsrf=csrf_123456789&XHR=1
[27/11/2020, 15:08:42] [FHEM] executing: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20TYPE%3Dalexa&fwcsrf=csrf_123456789&XHR=1
[27/11/2020, 15:08:42] [FHEM] waiting for events ...
[27/11/2020, 15:08:42] [FHEM] Fetching FHEM devices...
[27/11/2020, 15:08:42] [FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20alexaName=..*&fwcsrf=csrf_123456789&XHR=1
[27/11/2020, 15:08:43] [FHEM] alexa device is Alexa
[27/11/2020, 15:08:43] [FHEM] Alexa will not send proactive events
Also wenn es alexa-fhem nicht schafft auf fhem zuzugreifen, wird es auch nicht funktionieren können.
Warum das (aktuell nicht [mehr]) geht kann ich anhand der Infos nicht sagen...
EDIT: gerade ist mir noch folgendes aufgefallen
Zitat
[11/26/2020, 4:25:55 PM] os.homedir()=/
[11/26/2020, 4:25:55 PM] os.homedir() set to /, but this is not writable
[11/26/2020, 4:25:55 PM] process.env.HOME=/
[11/26/2020, 4:25:55 PM] process.env.HOME set to /, but this is not writable
[11/26/2020, 4:25:55 PM] process.env.HOMEPATH=undefined
[11/26/2020, 4:25:55 PM] process.env.USERPROFILE=undefined
Das sieht bei mir auch ganz anders aus:
[27/11/2020, 15:08:41] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[27/11/2020, 15:08:41] os.homedir()=/opt/fhem
[27/11/2020, 15:08:41] this is alexa-fhem 0.5.55
[27/11/2020, 15:08:41] connecting to FHEM ...
(jaja, ich habe noch die 0.5.55 aber das sollte egal sein)
Das "homedir" von fhem sieht eigenartig aus. Und dass fhem nicht in / schreiben darf ist klar, da darf nur "root".
Also irgendwas ist bei dir da eigenartig...
Auf welchem System läuft fhem?
HW / OS
Wie installiert?
Wie wird es gestartet: initd / systemd? (evtl. wenn ich wüsste welches System, könnte ich das selbst "beantworten" bzw. "erraten")
Gruß, Joachim
Zitat von: MadMax-FHEM am 27 November 2020, 15:13:11
Ich sag mal so: was soll ich mit deinen Antworten anfangen? Helfen kann ich damit nicht...
Was klar zu sehen ist, wenn das tatsächlich das ganze Log ist: alexa-fhem hört beim Abfragen von fhem auf. Wenn das nicht weiter läuft, dann ist klar, warum die Meldung "reagiert nicht" kommt...
Normalerweise sieht das so aus (eben mal [für dich ;) ] alexa-fhem neu gestartet):
Vielen Dank dafür....
Ich sehe das als Ansatzpunkt, die Thematik mit dem Reverse Proxy aufzugreifen...
Zitat
Also wenn es alexa-fhem nicht schafft auf fhem zuzugreifen, wird es auch nicht funktionieren können.
Warum das (aktuell nicht [mehr]) geht kann ich anhand der Infos nicht sagen...
EDIT: gerade ist mir noch folgendes aufgefallen
Das sieht bei mir auch ganz anders aus:
[27/11/2020, 15:08:41] using config from ./alexa-fhem.cfg
*** CONFIG: parsed completely
[27/11/2020, 15:08:41] os.homedir()=/opt/fhem
[27/11/2020, 15:08:41] this is alexa-fhem 0.5.55
[27/11/2020, 15:08:41] connecting to FHEM ...
(jaja, ich habe noch die 0.5.55 aber das sollte egal sein)
Das "homedir" von fhem sieht eigenartig aus. Und dass fhem nicht in / schreiben darf ist klar, da darf nur "root".
Also irgendwas ist bei dir da eigenartig...
Um das homedir hab ich mir die Tage auch schon mal Gedanken gemacht, aber keine Möglichkeit gefunden, auch nur eine der Variablen in der Config zu setzen.
Zitat
Auf welchem System läuft fhem?
HW / OS
Wie installiert?
Wie wird es gestartet: initd / systemd? (evtl. wenn ich wüsste welches System, könnte ich das selbst "beantworten" bzw. "erraten")
Gruß, Joachim
HW und OS stehen in der Sig.. BananaPro mit Bananian 16.04 r01
fhem via apt installiert, alexa-fhem via npm.
alexa-fhem wird durch fhem gestartet.
grüße
anfichtn
Hmm, das Banana-PI-Zeugs kenne ich leider nicht ;)
Homedir (zumindest das von fhem) wird in dem Startscript "gesetzt"...
Jetzt eben die Frage: initd oder systemd ;)
Was kommt bei:
ls -la /etc/init.d
bzw.
ls -la /etc/systemd/system
Bzw. wo kommt was mit fhem?
Je nachdem sollte dort sowas wie das homedir/workingdir gesetzt werden...
Bzw. steht das Homedir auch in:
/etc/passwd
Also das alles zumindest auf Raspbian/Debian...
Und das Home-Dir-Problem (sofern das an dem "Nicht-Funktionieren" Schuld hat) hat (verm.) nichts mit dem ReverseProxy zu tun...
Eher schon der evtl. "Nicht-Zugriff" auf fhem.
Wobei eigenartig ist (und bleibt), dass eben danach GAR NICHTS MEHR kommt.
Also nicht mal: "verboten", "timeout", ...
Steht etwas im fhem-Log zu der Zeit wo alexa-fhem neu gestartet wird und ja versucht wird auf fhem zuzugreifen?
Oder in irgendeinem Reverse-Proxy-Log?
Ansonsten bin ich ehrlich gesagt etwas ratlos :-\
Gruß, Joachim
Zitat von: MadMax-FHEM am 27 November 2020, 22:05:59
Hmm, das Banana-PI-Zeugs kenne ich leider nicht ;)
Homedir (zumindest das von fhem) wird in dem Startscript "gesetzt"...
Jetzt eben die Frage: initd oder systemd ;)
Was kommt bei:
ls -la /etc/init.d
root@bananapi /opt/fhem # ls -la /etc/init.d
insgesamt 300
drwxr-xr-x 2 root root 4096 Jun 17 13:23 .
drwxr-xr-x 81 root root 4096 Nov 28 23:14 ..
-rwxr-xr-x 1 root root 10184 Sep 30 2019 apache2
-rwxr-xr-x 1 root root 1758 Apr 18 2016 bananian-settings
-rwxr-xr-x 1 root root 1276 Apr 6 2015 bootlogs
-rwxr-xr-x 1 root root 1248 Apr 6 2015 bootmisc.sh
-rwxr-xr-x 1 root root 3807 Apr 6 2015 checkfs.sh
-rwxr-xr-x 1 root root 1072 Apr 6 2015 checkroot-bootclean.sh
-rwxr-xr-x 1 root root 9290 Apr 6 2015 checkroot.sh
-rwxr-xr-x 1 root root 1379 Dez 9 2011 console-setup
-rwxr-xr-x 1 root root 2489 Mai 6 2012 cpufrequtils
-rwxr-xr-x 1 root root 3049 Okt 26 2014 cron
-rw-r--r-- 1 root root 1605 Jun 17 13:23 .depend.boot
-rw-r--r-- 1 root root 779 Jun 17 13:23 .depend.start
-rw-r--r-- 1 root root 588 Jun 17 13:23 .depend.stop
-rwxr-xr-x 1 root root 6383 Mär 19 2014 fail2ban
-rwxr-xr-x 1 root root 824 Sep 5 2014 fake-hwclock
-rwxr-xr-x 1 root root 1442 Sep 12 2019 fhem
-rwxr-xr-x 1 root root 1336 Apr 6 2015 halt
-rwxr-xr-x 1 root root 2363 Feb 26 2014 haveged
-rwxr-xr-x 1 root root 10704 Feb 24 2015 hdparm
-rwxr-xr-x 1 root root 1423 Apr 6 2015 hostname.sh
-rwxr-xr-x 1 root root 3916 Mär 30 2015 hwclock.sh
-rwxr-xr-x 1 root root 8189 Okt 25 2014 kbd
-rwxr-xr-x 1 root root 1591 Okt 1 2012 keyboard-setup
-rwxr-xr-x 1 root root 1300 Apr 6 2015 killprocs
-rwxr-xr-x 1 root root 1990 Sep 23 2014 kmod
-rwxr-xr-x 1 root root 6912 Mai 6 2012 loadcpufreq
-rwxr-xr-x 1 root root 995 Apr 6 2015 motd
-rwxr-xr-x 1 root root 677 Apr 6 2015 mountall-bootclean.sh
-rwxr-xr-x 1 root root 2138 Apr 6 2015 mountall.sh
-rwxr-xr-x 1 root root 1461 Apr 6 2015 mountdevsubfs.sh
-rwxr-xr-x 1 root root 1564 Apr 6 2015 mountkernfs.sh
-rwxr-xr-x 1 root root 685 Apr 6 2015 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root 2456 Apr 6 2015 mountnfs.sh
-rwxr-xr-x 1 root root 5485 Nov 1 2018 mysql
-rwxr-xr-x 1 root root 4760 Dez 14 2014 networking
-rwxr-xr-x 1 root root 1814 Dez 26 2009 ntp
-rwxr-xr-x 1 root root 1192 Mär 6 2015 procps
-rwxr-xr-x 1 root root 6228 Apr 6 2015 rc
-rwxr-xr-x 1 root root 820 Apr 6 2015 rc.local
-rwxr-xr-x 1 root root 117 Apr 6 2015 rcS
-rw-r--r-- 1 root root 2427 Apr 6 2015 README
-rwxr-xr-x 1 root root 661 Apr 6 2015 reboot
-rwxr-xr-x 1 root root 1042 Apr 6 2015 rmnologin
-rwxr-xr-x 1 root root 4355 Jul 10 2014 rsync
-rwxr-xr-x 1 root root 2796 Okt 2 2014 rsyslog
-rwxr-xr-x 1 root root 1226 Jul 26 2014 screen-cleanup
-rwxr-xr-x 1 root root 3207 Apr 6 2015 sendsigs
-rwxr-xr-x 1 root root 597 Apr 6 2015 single
-rw-r--r-- 1 root root 1087 Apr 6 2015 skeleton
-rwxr-xr-x 1 root root 4077 Mär 23 2015 ssh
-rwxr-xr-x 1 root root 731 Aug 8 2017 sudo
-rwxr-xr-x 1 root root 6581 Mai 26 2015 udev
-rwxr-xr-x 1 root root 461 Mai 26 2015 udev-finish
-rwxr-xr-x 1 root root 2737 Apr 6 2015 umountfs
-rwxr-xr-x 1 root root 2202 Apr 6 2015 umountnfs.sh
-rwxr-xr-x 1 root root 1129 Apr 6 2015 umountroot
-rwxr-xr-x 1 root root 3111 Apr 6 2015 urandom
-rwxr-xr-x 1 root root 2031 Aug 20 2014 vsftpd
-rwxr-xr-x 1 root root 2666 Sep 26 2013 x11-common
Zitat
bzw.
ls -la /etc/systemd/system
root@bananapi /opt/fhem # ls -la /etc/systemd/system :(
insgesamt 36
drwxr-xr-x 9 root root 4096 Jan 4 2020 .
drwxr-xr-x 3 root root 4096 Jul 12 2015 ..
drwxr-xr-x 2 root root 4096 Jul 12 2015 default.target.wants
drwxr-xr-x 2 root root 4096 Jul 12 2015 getty.target.wants
drwxr-xr-x 2 root root 4096 Jul 12 2015 halt.target.wants
drwxr-xr-x 2 root root 4096 Sep 12 2019 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Jul 12 2015 poweroff.target.wants
drwxr-xr-x 2 root root 4096 Jul 12 2015 reboot.target.wants
lrwxrwxrwx 1 root root 31 Jul 12 2015 sshd.service -> /lib/systemd/system/ssh.service
drwxr-xr-x 2 root root 4096 Jul 12 2015 sysinit.target.wants
lrwxrwxrwx 1 root root 35 Jul 12 2015 syslog.service -> /lib/systemd/system/rsyslog.service
Zitat
Bzw. wo kommt was mit fhem?
Je nachdem sollte dort sowas wie das homedir/workingdir gesetzt werden...
Bzw. steht das Homedir auch in:
/etc/passwd
da steht es auch bei bananian.. und ist auf '/opt/fhem' gesetzt.
Zitat
Also das alles zumindest auf Raspbian/Debian...
Und das Home-Dir-Problem (sofern das an dem "Nicht-Funktionieren" Schuld hat) hat (verm.) nichts mit dem ReverseProxy zu tun...
Eher schon der evtl. "Nicht-Zugriff" auf fhem.
Wobei eigenartig ist (und bleibt), dass eben danach GAR NICHTS MEHR kommt.
Also nicht mal: "verboten", "timeout", ...
Steht etwas im fhem-Log zu der Zeit wo alexa-fhem neu gestartet wird und ja versucht wird auf fhem zuzugreifen?
Oder in irgendeinem Reverse-Proxy-Log?
Ansonsten bin ich ehrlich gesagt etwas ratlos :-\
Gruß, Joachim
Moin!
Auch im reverse-Proxy log kann ich keinen Zugriff finden...
ich hab jetzt in der alexa-config mal die 127.0.0.1 durch die IP die die Kiste vom Router bekommt ersetzt, ändert aber nichts.
Grüße
anfichtn
Letzte Idee: wie sieht dein initd-Startscript aus?
Also
sudo cat /etc/init.d/fhem
Auf "neueren" Systemen wird mittlerweile über systemd gestartet...
Welche node bzw. npm Version hast du?
EDIT: bzw. es gibt ja auch im Wiki einen trouble shooting Teil. Wo alexa-fhem manuell mit Debug gestartet wird etc. Vielleicht hilft dort was...
EDIT: wozu hast du fail2ban laufen? Nicht, dass das blockt...
Gruß, Joachim
root@bananapi ~ # node -v
v10.18.0
root@bananapi ~ # npm -v
6.13.4
Zitat von: MadMax-FHEM am 30 November 2020, 12:27:29
Letzte Idee: wie sieht dein initd-Startscript aus?
Also
sudo cat /etc/init.d/fhem
1 root@bananapi ~ # sudo cat /etc/init.d/fhem :(
#!/bin/sh
# description: Start or stop the fhem server
# Added by Alex Peuchert
### BEGIN INIT INFO
# Provides: fhem.pl
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FHEM server
### END INIT INFO
set -e
cd /opt/fhem
port=7072
if test "$2" != "noaptmark"; then
apt-mark hold fhem > /dev/null
fi
case "$1" in
'start')
echo "Starting fhem..."
# if you need to start hmland for use with
# Homematic, please start the hmland daemon
# like this (please use correct path and port,
# depending on your installation!)
#
# /opt/hmcfgusb/hmland -d -p 1234 -r 0
#
perl fhem.pl fhem.cfg
# if you want to use configDB for configuration,
# use this command to start fhem:
#
# perl fhem.pl configDB
#
# and remove/comment the above line including fhem.cfg
RETVAL=$?
;;
'stop')
echo "Stopping fhem..."
# if you want to stop hmland during fhem stop:
# pkill hmland
pkill -U fhem perl
RETVAL=$?
;;
'status')
cnt=`ps -ef | grep "fhem.pl" | grep -v grep | wc -l`
if [ "$cnt" -eq "0" ] ; then
echo "fhem is not running"
else
echo "fhem is running"
fi
;;
*)
echo "Usage: $0 { start | stop | status }"
RETVAL=1
;;
esac
exit $RETVAL
Zitat
Auf "neueren" Systemen wird mittlerweile über systemd gestartet...
Welche node bzw. npm Version hast du?
EDIT: bzw. es gibt ja auch im Wiki einen trouble shooting Teil. Wo alexa-fhem manuell mit Debug gestartet wird etc. Vielleicht hilft dort was...
Ich zumindest kam damit nicht weiter...
Zitat
Gruß, Joachim