Page 1 of 1

Regular Linux Mint failures with latest MX build

Posted: Fri 17 Nov 2017 1:57 pm
by fury88
Hi all,

Curious if anyone has run into this problem. It seems that my Cumulus MX crashes about every few weeks on Linux Mint. It probably doesn’t have anything to do with the OS itself but not sure. Unfortunately when it dies it locks up the serial port and if I try to restart via script it says it can’t connect to the port. I usually do a quick shutdown and run the script again. I’ll consider writing a script to monitor it but if I could figure out how to unlock the serial port that would be the best. Anyway if anyone has experienced this please let me know. Otherwise it’s off to the search engines to piece together a script!

Thanks.

-Matt

Re: Regular Linux Mint failures with latest MX build

Posted: Fri 17 Nov 2017 3:35 pm
by steve
What exactly do you mean by “crashes”? Does it exit abnormally and print an exception to the console? What does the end of the diags file look like? Hopefully you have debug logging turned on?

Re: Regular Linux Mint failures with latest MX build

Posted: Fri 17 Nov 2017 3:39 pm
by fury88
Hey Steve,

I thought I read you were on vacation! No need to reply if you are!

Yes, it abnormally exits Cumulus MX back to the command line. I SHOULD have debugging turned on due to some issues you helped me with in the spring. It does tell me to zip up the log files and send them in. I can do that at your convenience.

-Matt

Re: Regular Linux Mint failures with latest MX build

Posted: Fri 17 Nov 2017 3:57 pm
by steve
I’m on permanent vacation now :lol:

Yes, the log files would be good. I think they may just show an exception accessing the serial port, and MX has no recovery from that.

Re: Regular Linux Mint failures with latest MX build

Posted: Tue 28 Nov 2017 7:22 pm
by fury88
Ok, Steve, finally got the log files! They are attached. LOL It crashed again this morning. Strange, Weather Underground used to send me emails when I stopped reporting but I've noticed they are cutting back on a lot since TWC bought them. I haven't had an email in months.

Re: Regular Linux Mint failures with latest MX build

Posted: Tue 28 Nov 2017 7:32 pm
by steve
There was an I/O exception accessing the serial port, MX doesn’t handle this I’m afraid.

Re: Regular Linux Mint failures with latest MX build

Posted: Wed 29 Nov 2017 2:17 am
by fury88
Which is what you expected, right? Can a recovery timeout be increased or is there any clue as to what might be causing it?

Re: Regular Linux Mint failures with latest MX build

Posted: Wed 29 Nov 2017 10:36 am
by steve
I’m afraid there’s no information as to the cause.

Re: Regular Linux Mint failures with latest MX build

Posted: Wed 29 Nov 2017 7:06 pm
by fury88
Ok. It's likely the driver or something. I'll see if there are any updates. Would this be something you might address in a future build? Thanks for all your help!

Re: Regular Linux Mint failures with latest MX build

Posted: Wed 29 Nov 2017 7:13 pm
by steve
If there are any future builds, handling the exception is something I could add. Whether just handling the exception would help much, I couldn’t say.

Re: Regular Linux Mint failures with latest MX build

Posted: Wed 29 Nov 2017 7:18 pm
by fury88
Understood! Right now it seems to keep hold of the port. I can't connect once it crashes. I have to restart the system. If I could figure out what port it is connecting to I might be able to kill the process but I haven't been able to find it. ;-) It's emulating serial through USB.

Re: Regular Linux Mint failures with latest MX build

Posted: Thu 30 Nov 2017 2:06 am
by jlmr731
you can try searching for your usb by running lsusb this will show all usb devices you can also add -v to get more details.
There is a program you can try called usbreset more info here https://unix.stackexchange.com/question ... rt-via-cli
It would be worth a try instead of rebooting

Re: Regular Linux Mint failures with latest MX build

Posted: Thu 30 Nov 2017 3:17 am
by fury88
jlmr731 wrote:you can try searching for your usb by running lsusb this will show all usb devices you can also add -v to get more details.
There is a program you can try called usbreset more info here https://unix.stackexchange.com/question ... rt-via-cli
It would be worth a try instead of rebooting
Thanks much! Great find. I compiled and tested and it works great. I’ll have to script a cron job to check for the crash and reset and restart. Should be fun little project. :D