Hallo zusammen,
Seit ich mein Fhem auf einen neun Raspi 4 umgezogen habe,,habe ich Probleme mit der Google Home Assistant Integration. Im Logfile steht. ###############################################################
Can't create PID file /tmp/gassistant-fhem.pid
Please check if gassistant-fhem is already running.
Delete PID file ONLY if gassistant-fhem is NOT running!
###############################################################
{ Error: EEXIST: file already exists, open '/tmp/gassistant-fhem.pid'
at Object.openSync (fs.js:443:3)
at Object.create (/usr/lib/node_modules/gassistant-fhem/node_modules/npid/lib/pid.js:33:17)
at Object.<anonymous> (/usr/lib/node_modules/gassistant-fhem/bin/gassistant-fhem:19:18)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
errno: -17,
syscall: 'open',
code: 'EEXIST',
path: '/tmp/gassistant-fhem.pid' }
Das Problem ist, dass die Datei vorhanden ist. Und wenn man sie über die Linux Kommandozeile löscht, klappt das Ganze auch.
Woran liegt das? Die Rechte der Datei sind rw-r-r, User ist fhem in der Gruppe dialout..
Das Listing vom Gassistant :Internals:
FD 47
FUUID 5cbc063d-f33f-ab72-21f7-8b62f63c5dda991a
LAST_START 2020-06-09 20:30:07
LAST_STOP 2020-06-09 20:29:47
NAME gassistant
NOTIFYDEV global,global:npmjs.*gassistant-fhem.*
NR 199
NTFY_ORDER 50-gassistant
PID 9367
STARTS 309
STATE running /usr/bin/gassistant-fhem
TYPE gassistant
currentlogfile ./log/gassistant-2020-23.log
logfile ./log/gassistant-%Y-%W.log
CoProcess:
cmdFn gassistant_getCMD
name gassistant-fhem
state running /usr/bin/gassistant-fhem
READINGS:
2020-06-09 20:30:07 gassistant-fhem running /usr/bin/gassistant-fhem
2020-06-09 20:30:15 gassistant-fhem-connection connected
2020-05-10 13:42:12 gassistant-fhem-googleSync Google SYNC finished
2020-06-09 20:30:10 gassistant-fhem-lastServerError none
2020-06-09 20:30:14 gassistant-fhem-lasterror none
2020-06-09 20:30:13 gassistant-fhem-localHome inactive
2019-04-21 07:58:26 gassistant-fhem-uid google-oauth2|#####
2020-05-10 13:42:12 gassistant-fhem-usedFeatureLevel 3
2020-06-09 20:30:10 gassistant-fhem-version 3.0.1
2020-06-09 20:30:11 gassistant-fhem-versionAvailable 3.0.2
2020-06-09 20:30:11 gassistantFHEM.loginURL <html><a href="https://fhemconnector.eu.auth0.com/authorize?audience=https://europe-west1-fhem-ga-connector.cloudfunctions.net/&scope=offline_access%20openid%20profile&response_type=code&client_id=EI0TI2Y0W1743Ico53Nvsg1FsmoZniCC&code_challenge=lLx2TsqrnbhhiukkF48dowp_6QfMFM6-GBfEaJTARTU&code_challenge_method=S256&redirect_uri=https://europe-west1-fhem-ga-connector.cloudfunctions.net/codelanding/start" target="_blank">Click here to login (new window/tab)</a><br></html>
2019-04-21 07:58:25 gassistantFHEM.refreshToken crypt:###
Attributes:
DbLogExclude .*
alias Google Home Assistant
devStateIcon stopped:control_home@red:start stopping:control_on_off@orange running.*:control_on_off@green:stop
gassistantFHEM-config ./gassistant-fhem.cfg
gassistantFHEM-log ./log/gassistant-%Y-%W.log
icon gassistant
room Funk & Kommunikation
stateFormat gassistant-fhem
verbose 1
Viele Grüße
Martin
Hatte auch das Problem. Lies bitte mal dies:
https://forum.fhem.de/index.php/topic,96696.msg1061884.html#msg1061884 (https://forum.fhem.de/index.php/topic,96696.msg1061884.html#msg1061884)
lg gho