FHEM Connector: process.env.PWD nach Reboot auf undefined

Begonnen von smmmo, 06 Februar 2019, 22:32:48

Vorheriges Thema - Nächstes Thema

smmmo

Hallo,

heute bin ich auf den FHEM Connector umgestiegen. Es hat auch alles gut funktioniert, nur nach einem reboot bekomme ich folgende Ausgabe im log:

[6.2.2019, 21:59:04] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[6.2.2019, 21:59:04] os.homedir()=/root
[6.2.2019, 21:59:04] os.homedir() set to /root, but this is not writable
[6.2.2019, 21:59:04] process.env.HOME=/root
[6.2.2019, 21:59:04] process.env.HOME set to /root, but this is not writable
[6.2.2019, 21:59:04] process.env.HOMEPATH=undefined
[6.2.2019, 21:59:04] process.env.USERPROFILE=undefined
[6.2.2019, 21:59:04] process.env.PWD=undefined
[6.2.2019, 21:59:04] No suitable, writable users home directory found
Startup rejected. Reason: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined


Danach habe ich nach einigem Herumprobieren nochmal alles neu eingerichtet und nun funktioniert es wieder, vermutlich bis zum nächsten Neustart:

[6.2.2019, 22:02:14] using config from /opt/fhem/alexa-fhem.cfg
*** CONFIG: parsed completely
[6.2.2019, 22:02:14] os.homedir()=/root
[6.2.2019, 22:02:14] os.homedir() set to /root, but this is not writable
[6.2.2019, 22:02:14] process.env.HOME=/root
[6.2.2019, 22:02:14] process.env.HOME set to /root, but this is not writable
[6.2.2019, 22:02:14] process.env.HOMEPATH=undefined
[6.2.2019, 22:02:14] process.env.USERPROFILE=undefined
[6.2.2019, 22:02:14] process.env.PWD=/opt/fhem
[6.2.2019, 22:02:14] this is alexa-fhem 0.5.15
[6.2.2019, 22:02:14] connecting to FHEM ...


Hat jemand eine Idee, wohin process.env.PWD nach dem Reboot verschwindet bzw. was ich tun muss, damit es gesetzt bleibt?

Viele Grüße
smmmo