MyDomoAtHome
MyDomoAtHome copied to clipboard
MDAH crashes every night
I'm using MDAH on Synology (package 0.2.39, as far as I know the latest version for Synology).
I recently updated DSM (Synology firmware) to 6.2.3 and I made some changes to my VPN setup.
In mydomoathome.log I now see the following:
info: Domoticz server: http://127.0.0.1:8084/json.htm info: Node version: 12.14.0 info: MDAH version: MyDomoAtHome 0.2.39 info: OS version: Linux linux 3.2.40 info: Hostname: NAS 192.168.125.1 in /root /root info: Refreshing version cache: v0.2.41
The Hostname is incorrect. It's 192.168.2.201. 192.168.125.1 is the first address I defined in my OpenVPN IP range, so it's not the host name, but somehow MDAH picks it up somewhere. I suspect this is part of the issue.
In usage.log it says the following:
{"level":"info","message":"Refreshing version cache: v0.2.39","timestamp":"2020-02-09T14:40:48.501Z"} {"level":"info","message":"Domoticz server: http://127.0.0.1:8084/json.htm","timestamp":"2020-05-27T12:57:03.723Z"} {"level":"info","message":"Node version: 12.14.0","timestamp":"2020-05-27T12:57:03.816Z"} {"level":"info","message":"MDAH version: MyDomoAtHome 0.2.39","timestamp":"2020-05-27T12:57:03.816Z"} {"level":"info","message":"OS version: Linux linux 3.2.40","timestamp":"2020-05-27T12:57:03.818Z"} {"level":"info","message":"Hostname: NAS 192.168.2.201 in /root /root","timestamp":"2020-05-27T12:57:03.874Z"} {"level":"info","message":"Refreshing version cache: v0.2.41","timestamp":"2020-05-27T12:57:06.694Z"} {"level":"info","message":"Domoticz server: http://127.0.0.1:8084/json.htm","timestamp":"2020-05-28T07:18:22.463Z"} {"level":"info","message":"Node version: 12.14.0","timestamp":"2020-05-28T07:18:23.993Z"} {"level":"info","message":"MDAH version: MyDomoAtHome 0.2.39","timestamp":"2020-05-28T07:18:23.994Z"} {"level":"info","message":"OS version: Linux linux 3.2.40","timestamp":"2020-05-28T07:18:23.996Z"} {"level":"info","message":"Hostname: NAS 192.168.125.1 in /root /root","timestamp":"2020-05-28T07:18:24.108Z"}
So a similar reference to this incorrect host name.
Finally, the application landing page (:3002) also refers to 192.168.125.1:
`How to test your first installation Verify you can see your domoticz devices : /json.htm?type=devices
Then check this page so the gateway process is running: http://192.168.125.1:3002/
And finally check that the devices you have in Domoticz are well found by the Gateway: http://192.168.125.1:3002/devices
If that last list is empty, then you must use the 127.0.0.1 (if on the same machine) for the gateway configuration to access Domoticz and check again.`
I'm pretty sure this is the reason the application crashes. Therefore my questions:
- Can you have a look at the issue and see where that incorrect host name can come from?
- Since this probably is a Synology-specific issue (combined with the VPN package) and it may be hard to reproduce: is there a place in the application where I could hard-code the host name?
Thanks for your help!
Update: I disabled my VPN server, which solves the issue of the incorrect URL. However, MDAH still crashes at night.