Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Arrgh! Network keeps randomly dropping when I run MX

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sat Sep 26, 2015 1:12 am

This is driving me nuts. MX running on a Raspberry Pi. Works great. For a while... Then randomly the network goes out. I can ping it but can not ssh into it. It quits updating weather underground and my web site. Could be 30 minutes to a day and a half when it drops.

I don't see anything weird in the syslog or in the MX log. I even tried to set it up on a different Pi. It does the same thing. I'm running 3.0.0 b3028 on a Raspberry Pi 2Model B and moved it to a Raspberry Pi 1Model B. Running rasbian wheezy 2015-05-05.

If anyone has any ideas, please help.

water01
Posts: 1419
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby water01 » Sat Sep 26, 2015 7:19 am

Power supply not 2amp rated so it goes into sleep mode and shuts down certain peripherals including network card?

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby rogerthn » Sat Sep 26, 2015 2:06 pm

water01 wrote:Power supply not 2amp rated so it goes into sleep mode and shuts down certain peripherals including network card?

AND
Wired or wireless network?
There are "some" to read regarding Raspberry WiFi drops out after ...
Image

mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sat Sep 26, 2015 4:32 pm

Yep, I just verified that the power supply is a 2A unit. The network is the wired connection. That gives me an idea though, maybe I'll put it on wireless next time it goes South. Shouldn't be a long wait...

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby rogerthn » Sat Sep 26, 2015 4:57 pm

If two different PIs has the same problem I would check elsewhere and if you have GOOD wireless access, try WiFi.
But, wired is normally always better than wireless and maybe you could start with

Code: Select all

sudo apt-get install ethtool
ethtool eth0
and check lines like Speed: and Duplex:
Image

mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sat Sep 26, 2015 5:55 pm

One would think that I would have thought of that... I will do that. I just did a top and see that mono is using anywhere from 13% to 96% of processor. Wondering if that's normal? Ok, off to install ethtool.

User avatar
steve
Cumulus Author
Posts: 26423
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby steve » Sat Sep 26, 2015 8:11 pm

MX/mono uses 5% or less on my Pi 2, occasionally going a bit higher. It will use more when it's creating the files for uploading to the web, mine briefly touches 40%. It will use more on a model B, but I can't remember how much it used when I had it running on one of those.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sun Sep 27, 2015 12:28 am

I'm doing a clean install on the raspi 2 and reinstall of everything. Hopefully a fresh start will yield better results. If it starts dying again, I will go wireless and see if that works. If not, I'm going to a real sized computer. I love that the pi is so small and uses so little power but if I can't get it to work reliable, then what good is it.

mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sun Sep 27, 2015 2:53 pm

Ok, got everything freshly installed. Did a new install of Raspian and updated. Installed mono the downloaded the latest beta of MX and got it running last night. Well the good news is that the network did not drop out overnight :D The bad news is that Cumulus crashed at 9:40am ish this morning. I could find nothing in the /CumulusMX/MXdiags logs or syslog. Not sure where else to look. I restarted it this morning. Let's see how it goes...

One good note is that the cpu usage is not as high as it was on the older raspi. It stays about 10~15% but will jump to 60% occasionally. I also turned up debug and turned on ftp logging although I don't think the ftp logging will tell me anything.

User avatar
steve
Cumulus Author
Posts: 26423
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby steve » Sun Sep 27, 2015 3:19 pm

If it actually crashed, there should be an exception report on the command line and in the diags file. But it depends what you mean by "crashed".
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sun Sep 27, 2015 3:37 pm

Nothing in the diag report. I have no command line because it starts via script in rc.local which redirects output to null. If it crashes again, I will log on with a monitor and keyboard and start it that way so I can see what happens.

When I said crash, I mean that mono is no longer running, nothing is updating and I can't see the gui at x.x.x.x:8998. Maybe it has something with the way I start it? Here is what I have. In rc.local a call a script.

Code: Select all

sudo /home/pi/startTheWX >> /dev/null 2>&1


in the script it is just this

Code: Select all

screen -amds bash mono /home/pi/CumulusMX/CumulusMX.exe

User avatar
steve
Cumulus Author
Posts: 26423
Joined: Mon Jun 02, 2008 6:49 pm
Weather Station: None
Operating System: None
Location: On tour in France
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby steve » Sun Sep 27, 2015 4:38 pm

Perhaps it's mono which is crashing, which might explain why there's no exception report in the diags log. It would perhaps be useful to be able to see the command line output.
Steve
-----
Hosting available for Cumulus web sites. See http://sandaysoft.com/forum/viewtopic.php?f=2&t=11876

Please read the posts in the Announcements section about the current status of Cumulus development since I have retired from my day job

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby rogerthn » Sun Sep 27, 2015 7:01 pm

Something like this might help
Remove screen from the script and in rc.local
/usr/bin/screen -fa -d -m -S cumulus sudo /home/pi/startTheWX

There might be other adjustments needed as well but the idea is to be able to see the command line output using screen -r cumulus
Image

mzambo001
Posts: 21
Joined: Tue Aug 18, 2015 2:29 am
Weather Station: Davis
Operating System: Linux
Location: Pittsburgh, PA

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby mzambo001 » Sun Sep 27, 2015 8:40 pm

Good idea but I can't get it to work correctly. I decided to just take the batch out of it and try to start it up via command line. It runs but I can't get to the screen session. Here is what I entered.

Code: Select all

screen -fa -d -m -S cumulus1 sudo mono /home/pi/CumulusMX/CumulusMX.exe


And when I do a ps aux, I get

Code: Select all

pi        2393  1.6  0.4   6248  4472 pts/0    Ss   16:36   0:00 -bash
pi        2410  0.0  0.2   4560  1972 ?        Ss   16:36   0:00 SCREEN -fa -d -m -S cumulus1 sudo mono /home/pi/CumulusMX/CumulusMX.exe
root      2411  0.1  0.2   4812  2752 pts/1    Ss+  16:36   0:00 sudo mono /home/pi/CumulusMX/CumulusMX.exe
root      2415  7.4  2.2  40160 21260 pts/1    Sl+  16:36   0:01 mono /home/pi/CumulusMX/CumulusMX.exe


And I can't access it to see what the output is.

User avatar
rogerthn
Posts: 141
Joined: Thu Apr 11, 2013 6:31 pm
Weather Station: Oregon Scientific WMR88
Operating System: Raspbian GNU/Linux 8
Location: Trollhättan Sweden
Contact:

Re: Arrgh! Network keeps randomly dropping when I run MX

Postby rogerthn » Sun Sep 27, 2015 8:49 pm

Try screen -ls as pi and as root to check where the "screen" is
Image


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 6 guests