Page 2 of 2
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 1:15 pm
by The Dalek Hunter
With debugging enabled the only files that turn up in in the MXdiags folder are attached
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 1:24 pm
by mcrossley
It doesn't look like there is any network connectivity when CMX starting up...
Code: Select all
Failed to get the latest build version from Github: No such host is known
Shows it cannot resolve github in DNS.
Then the crash happens when it tries to connect to
your WLL IP address weatherlink.com.
Did you reboot the server and let CMX autostart for this log file?
I see you have no start-up delay configured.
You could try adding 30 seconds or a minute delay in there to give the host time to get things sorted out.
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 1:27 pm
by The Dalek Hunter
I added the debug option in the ini file and then rebooted.
I have been running it with a 30 second startup delay and with this it is fine.
I removed the startup delay for this test - I have now reinstated it and all is well
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 1:28 pm
by mcrossley
Yeah - sorry, I'd forgotten this history on this thread - I'll add a catch for the crash connecting to weatherlink.com.
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 1:29 pm
by The Dalek Hunter
Many thanks
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 1:38 pm
by mcrossley
Looks like I already did it! Also looking more closely it was the code that connected to a service that provides status information ABOUT weatherlink.com that was causing the problem.
Re: Problems Starting As A service
Posted: Fri 30 Apr 2021 9:48 pm
by Cortmalaw
The Dalek Hunter wrote: ↑Mon 26 Apr 2021 11:05 am
As the start by Cron has a delay of 30 seconds I tried that and it now starts perfectly.
I will leave it at that without any further meddling
I can confirm that the 30 sec delay when started as a cron job was intended to allow time for the network to come up and stabilise. Time was found empirically.