Page 1 of 1

CMX Won't Run After Transferring Data Files

Posted: Tue 22 Dec 2015 1:43 pm
by randy52644
I've been running Cumulus 1 on a PC for a few years and recently changed to a RPi. CMX has been running fine on the RPi until I copied all of the files from my old /data directory to the new directory.
Now when I attempt to start CMX, I get these errors. CMX was not running when I moved the files and I have done a reboot of the RPi. What did I do wrong?

Current culture: English (United Kingdom)
Serial: 74FECEABEB2DA94ECB5EBA0CD11A7137
Cumulus MX v.3.0.0 build 3036
Today.ini = data/today.ini
Last update=12/20/2015 6:45:00 AM
[ERROR] FATAL UNHANDLED EXCEPTION: System.FormatException: String was not recognized as a valid DateTime.
at System.DateTime.Parse (System.String s, IFormatProvider provider, DateTimeStyles styles) [0x00000] in <filename unknown>:0
at System.DateTime.Parse (System.String s, IFormatProvider provider) [0x00000] in <filename unknown>:0
at System.DateTime.Parse (System.String s) [0x00000] in <filename unknown>:0
at îº.î () [0x00000] in <filename unknown>:0
at îº..ctor (CumulusMX.Cumulus î) [0x00000] in <filename unknown>:0
at î·..ctor (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: CMX Won't Run After Transferring Data Files

Posted: Tue 22 Dec 2015 2:07 pm
by steve
Your date format is different now to the one you were using with Cumulus 1 - you seem to be using UK settings now, but your today.ini file from Cumulus 1 has US date format. I suspect that you actually want to use US format on your Pi?

Re: CMX Won't Run After Transferring Data Files

Posted: Tue 22 Dec 2015 2:15 pm
by randy52644
Is the Current culture changed in CMX or RPi? I checked raspi-config and it "appears" to be set correctly.

Re: CMX Won't Run After Transferring Data Files

Posted: Tue 22 Dec 2015 2:27 pm
by randy52644
I just double checked my RPi and it is set to en_US.UTF-8

Re: CMX Won't Run After Transferring Data Files

Posted: Tue 22 Dec 2015 2:28 pm
by steve
Mono should pick it up from the system. I've just tried changing my locale to en_US.UTF-8 using raspi-config, and after a reboot, MX was using that by default:

pi@jessie:~ $ echo $LANG
en_US.UTF-8
pi@jessie:~ $ cd CumulusMX/
pi@jessie:~/CumulusMX $ sudo mono CumulusMX.exe
Current culture: English (United States)
Serial: 056F2914FD9A607D48F5491A53B4DEB5
Cumulus MX v.3.0.0 build 3036
Today.ini = data/today.ini
Last update=2015-12-22T14:26:16
WMR200 station not found!
Cumulus running at: http://*:8998/
(Replace * with any IP address on this machine, or localhost)
Starting web socket server on port 8002
12/22/2015 2:26:20 PM
Type Ctrl-C to terminate

If yours won't do that for whatever reason, you could supply the locale on the command line.

Re: CMX Won't Run After Transferring Data Files

Posted: Tue 22 Dec 2015 2:44 pm
by randy52644
(SOLVED) Silly me!! Isn't amazing what a reboot will do! Went back through raspi-config again and selected en_US.UTF-8 again. THEN after a reboot, current culture is now English United States.
Case closed.........thanks Steve!