Page 1 of 1

Problem starting CumulusMX

Posted: Thu 14 May 2015 3:22 pm
by Jovla
Hi!

I had CumulusMX up and running on my rpi, but after a reboot it wouldn't start again.
This is the output when trying to start:

Code: Select all

Current culture: English (United Kingdom)
Serial: CFC341CCC3D155241608CA50F5014E51
Cumulus MX v.3.0.0 build 3024
This is pre-release beta software
System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
  at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus. (DateTime ) [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus.DoSunriseAndSunset () [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0
  at .Main (System.String[] args) [0x00000] in <filename unknown>:0
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate
This is the content of the latest MXdiags file:

Code: Select all

2015-05-14 17:14:44.235  ========================== Cumulus MX starting ==========================
2015-05-14 17:14:44.285 Command line: /CumulusMX/CumulusMX.exe -port 9999
2015-05-14 17:14:44.289 Cumulus MX v.3.0.0 build 3024
2015-05-14 17:14:44.317 Platform: Unix
2015-05-14 17:14:44.323 OS version: Unix 3.18.11.0
2015-05-14 17:14:44.324 Current culture: English (United Kingdom)
2015-05-14 17:14:44.325 Standard time zone name:   CET
2015-05-14 17:14:44.326 Daylight saving time name: CEST
2015-05-14 17:14:44.328 Daylight saving time? True
2015-05-14 17:14:44.335 14/05/2015 17:14:44
2015-05-14 17:14:44.345 Data path = data/
2015-05-14 17:14:44.370 Creating backup folder backup/20150514171444/
2015-05-14 17:14:44.622 Reading Cumulus.ini file
2015-05-14 17:14:44.894 ASM=10 AST=00:10:00
2015-05-14 17:14:44.915 Cumulus start date: 14 May 2015
2015-05-14 17:14:45.007 Debug logging is disabled
2015-05-14 17:14:45.008 Logging interval = 10
2015-05-14 17:14:45.193 Sunrise: 02:36:00
2015-05-14 17:14:45.194 Sunset : 23:07:20
System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0 
  at CumulusMX.Cumulus. (DateTime ) [0x00000] in <filename unknown>:0 
  at CumulusMX.Cumulus.DoSunriseAndSunset () [0x00000] in <filename unknown>:0 
  at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0 
  at .Main (System.String[] args) [0x00000] in <filename unknown>:0 
Will upload the Cumulus.ini file

Re: Problem starting CumulusMX

Posted: Thu 14 May 2015 4:49 pm
by steve
It's something to do with calculating the day length or the dawn and dusk time. It may be that your dusk is after midnight? Could you turn on debug logging please, and see if there is any more output in the diags file?

Re: Problem starting CumulusMX

Posted: Thu 14 May 2015 8:50 pm
by Jovla
Content of the logfile after enabing debug:

Code: Select all

2015-05-14 22:48:13.381  ========================== Cumulus MX starting ==========================
2015-05-14 22:48:13.429 Command line: /CumulusMX/CumulusMX.exe -port 9999
2015-05-14 22:48:13.433 Cumulus MX v.3.0.0 build 3024
2015-05-14 22:48:13.460 Platform: Unix
2015-05-14 22:48:13.466 OS version: Unix 3.18.11.0
2015-05-14 22:48:13.467 Current culture: English (United Kingdom)
2015-05-14 22:48:13.468 Standard time zone name:   CET
2015-05-14 22:48:13.469 Daylight saving time name: CEST
2015-05-14 22:48:13.471 Daylight saving time? True
2015-05-14 22:48:13.479 14/05/2015 22:48:13
2015-05-14 22:48:13.488 Data path = data/
2015-05-14 22:48:13.512 Creating backup folder backup/20150514224813/
2015-05-14 22:48:13.747 Reading Cumulus.ini file
2015-05-14 22:48:14.011 ASM=10 AST=00:10:00
2015-05-14 22:48:14.032 Cumulus start date: 14 May 2015
2015-05-14 22:48:14.123 Debug logging is enabled
2015-05-14 22:48:14.124 Logging interval = 10
2015-05-14 22:48:14.302 Sunrise: 02:36:00
2015-05-14 22:48:14.303 Sunset : 23:07:20
2015-05-14 22:48:14.309 Tomorrow Sunrise: 02:30:00
2015-05-14 22:48:14.310 Tomorrow Sunset : 23:13:54
2015-05-14 22:48:14.311 Tomorrow length diff: 754
System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0 
  at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0 
  at CumulusMX.Cumulus. (DateTime ) [0x00000] in <filename unknown>:0 
  at CumulusMX.Cumulus.DoSunriseAndSunset () [0x00000] in <filename unknown>:0 
  at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0 
  at .Main (System.String[] args) [0x00000] in <filename unknown>:0 
System.ApplicationException: Mutex is not owned
  at System.Threading.Mutex.ReleaseMutex () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Threading.Mutex:ReleaseMutex ()
  at System.Net.FtpClient.FtpClient.Dispose () [0x00000] in <filename unknown>:0 
  at System.Net.FtpClient.FtpClient.Finalize () [0x00000] in <filename unknown>:0 

Re: Problem starting CumulusMX

Posted: Thu 14 May 2015 9:05 pm
by mcrossley
Looking at those rise/set times, I suspect there is no end to dawn/dusk - ie twilight lasts all night.

Re: Problem starting CumulusMX

Posted: Fri 15 May 2015 7:51 am
by steve
I'll see if I can handle that in the next build.

Re: Problem starting CumulusMX

Posted: Fri 22 May 2015 9:39 pm
by Jovla
I've installed build 3025, and this works fine with that build.

Re: Problem starting CumulusMX

Posted: Sat 23 May 2015 8:14 am
by steve
Thanks.

Re: Problem starting CumulusMX

Posted: Thu 28 May 2015 5:07 pm
by Jovla
I got some errors while starting CumulusMX today:
This is the log:

Code: Select all

2015-05-28 19:05:06.318  ========================== Cumulus MX starting ==========================
2015-05-28 19:05:06.364 Command line: /CumulusMX/CumulusMX.exe -port 9999
2015-05-28 19:05:06.368 Cumulus MX v.3.0.0 build 3025
2015-05-28 19:05:06.393 Platform: Unix
2015-05-28 19:05:06.399 OS version: Unix 3.18.11.0
2015-05-28 19:05:06.400 Current culture: English (United Kingdom)
2015-05-28 19:05:06.401 Standard time zone name:   CET
2015-05-28 19:05:06.402 Daylight saving time name: CEST
2015-05-28 19:05:06.404 Daylight saving time? True
2015-05-28 19:05:06.412 28/05/2015 19:05:06
2015-05-28 19:05:06.420 Data path = data/
2015-05-28 19:05:06.461 Creating backup folder backup/20150528190506/
2015-05-28 19:05:06.759 Reading Cumulus.ini file
2015-05-28 19:05:07.029 ASM=10 AST=00:10:00
2015-05-28 19:05:07.049 Cumulus start date: 14 May 2015
2015-05-28 19:05:07.147 Debug logging is enabled
2015-05-28 19:05:07.148 Logging interval = 10
System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s) [0x00000] in <filename unknown>:0
  at System.Convert.ToInt32 (System.String value) [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus. (DateTime ) [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus. () [0x00000] in <filename unknown>:0
  at CumulusMX.Cumulus..ctor (Int32 HTTPport, Int32 WSport) [0x00000] in <filename unknown>:0
  at .Main (System.String[] args) [0x00000] in <filename unknown>:0

Re: Problem starting CumulusMX

Posted: Thu 28 May 2015 5:25 pm
by steve
For some reason the stack trace won't decode. It looks like a similar problem - what are your sunrise and sunset times now? Can you give me your latitude and longitude, please?

Re: Problem starting CumulusMX

Posted: Thu 28 May 2015 5:32 pm
by Jovla
Latitude=68.5113888888889
Longitude=16.7502777777778

Re: Problem starting CumulusMX

Posted: Thu 28 May 2015 5:37 pm
by steve
The sun is always up (according to the routines I use) and the code doesn't cope with that yet. I'll see if I can fix that.

Re: Problem starting CumulusMX

Posted: Thu 28 May 2015 5:55 pm
by Jovla
steve wrote:The sun is always up
;) Yep, that's right.