Page 1 of 1

Moving MX to a new computer

Posted: Thu 18 Aug 2016 12:17 am
by mzambo001
Hi people. I've been running MX on a Raspberry Pi for almost a year but want to move it to an Ubuntu computer. I moved the CumulusMX folder to it's new home and it starts to run but crashes after a few seconds. The new folder structure is a little different and I'm thinking that may be where my problem is but not sure. Here is the error.

Connected to station
8:05:00 PM Downloading Archive Data
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint local_end) <0xb3d8ac18 + 0x000c7> in <filename unknown>:0
at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) <0xb3d887b0 + 0x000ff> in <filename unknown>:0
at System.Net.EndPointManager.GetEPListener (System.String host, Int32 port, System.Net.HttpListener listener, Boolean secure) <0xb3d88388 + 0x00267> in <filename unknown>:0
at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) <0xb3d87ee0 + 0x000af> in <filename unknown>:0
at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) <0xb3d87aa8 + 0x000e3> in <filename unknown>:0

I also looked in the MXdiags folder at the log and I see this error.

2016-08-17 20:04:59.152 Reading archive data
2016-08-17 20:04:59.153 Loading last N hour data from data logs: 8/17/2016 7:47:00 PM
2016-08-17 20:04:59.521 Error at line 9516 of data/Aug16log.txt : Input string was not in a correct format.
2016-08-17 20:04:59.521 Please edit the file to correct the error
2016-08-17 20:04:59.522 Loaded 0 entries to last hour data list
2016-08-17 20:04:59.866 Error at line 9516 of data/Aug16log.txt : Input string was not in a correct format.
2016-08-17 20:04:59.866 Please edit the file to correct the error
2016-08-17 20:04:59.866 Loaded 0 entries to last 3 hour data list
2016-08-17 20:05:00.210 Error at line 9516 of data/Aug16log.txt : Input string was not in a correct format.
2016-08-17 20:05:00.210 Please edit the file to correct the error
2016-08-17 20:05:00.210 Loaded 0 entries to graph data list
2016-08-17 20:05:00.554 Error at line 9516 of data/Aug16log.txt : Input string was not in a correct format.
2016-08-17 20:05:00.554 Please edit the file to correct the error
2016-08-17 20:05:00.554 Loaded 0 entries to recent data list
2016-08-17 20:05:00.575 Loaded 100 entries to daily data list
2016-08-17 20:05:00.591 Get Archive Data

I looked at the file and can't see anything wrong with the data.

Anyone have any ideas?

Mike

Re: Moving MX to a new computer

Posted: Thu 18 Aug 2016 2:40 am
by mzambo001
Now I don't think it is a path issue. I did a fresh install meaning no old data. I just downloaded the latest zip and put it in a directory with my config file and I get the same address already in use error. The log in MXdiags has no errors.

Re: Moving MX to a new computer

Posted: Thu 18 Aug 2016 7:46 am
by steve
Something else is already using the port that Cumulus uses for its interface - 8998. It could be another program, in which case you need to use the port parameter to get Cumulus to use a different port, or (more likely, perhaps) you already have an instance of Cumulus running.

If you can't see the problem in the log file, zip it up and attach it. Are you using a good editor which shows control codes etc?

Re: Moving MX to a new computer

Posted: Fri 19 Aug 2016 1:28 am
by mzambo001
I got it working. Not sure why this would have helped but I move the USB connector to a different port and restarted the software and it started working. Weird. At least it works now.