Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Connection closed error

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
beeman
Posts: 119
Joined: Sat 14 Mar 2009 1:04 pm
Weather Station: Davis Vantage Vue
Operating System: Raspbian
Location: South Oxfordshire, UK

Connection closed error

Post by beeman »

I'm running Cumulus MX 3.0.0 b3043 on a Pi Zero. Sometimes when I connect to Cumulus from my laptop with http://192.168.1.94:8998/index.html the page never loads. Sometimes I get a small box with Connection closed, sometimes nothing at all just the spinny wheel. If I leave the page trying to connect it sometimes does after 30 - 60 minutes. Other times it connects first time.

I've tried Firefox 68.0.1 and IE 11.239. I can still PuTTY into the pi from the laptop. Router is the same one I've always had and the Pi has not been upgraded since it was built :shock: .

[Edit] Forgot to mention that the Pi is connected via wireless as is the laptop.

Any suggestions as to where to start with sorting this problem?

Many thanks,
Dave
Image
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Connection closed error

Post by water01 »

Not sure, but my personal guess is it would depend on the processor load on the Pi Zero. It is a very low powered Pi so if you try to make a browser connection when the processor is heavily loaded the connection will either take a long time or time out. And vice versa if it is lightly loaded it will connect right away.
David
Image
beeman
Posts: 119
Joined: Sat 14 Mar 2009 1:04 pm
Weather Station: Davis Vantage Vue
Operating System: Raspbian
Location: South Oxfordshire, UK

Re: Connection closed error

Post by beeman »

Hi David, thanks for your response.

The Pi Zero is used for Cumulus only. "top" shows the load average is around 0.15 to 0.2. CPU is running at 10%.

I'm not familiar with Linux but doing a few searches pointed me to netstat. Looks like port 8998 is open on the Pi

Code: Select all

pi@pi_zero:~ $ sudo netstat --tcp --listening --programs --numeric
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8998            0.0.0.0:*               LISTEN      678/mono
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      655/sshd
tcp        0      0 0.0.0.0:8002            0.0.0.0:*               LISTEN      678/mono
tcp6       0      0 :::22                   :::*                    LISTEN      655/sshd
Are there any log files I can look at which might help?
I'll reboot the Pi and the router and report back.

Thanks, Dave
Image
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Connection closed error

Post by PaulMy »

Are there any log files I can look at which might help?
MXdiags folder has the logs. Having Debug and Data logging ticked may be helpful.

Updating to latest MX version would also be a recommendation.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
beeman
Posts: 119
Joined: Sat 14 Mar 2009 1:04 pm
Weather Station: Davis Vantage Vue
Operating System: Raspbian
Location: South Oxfordshire, UK

Re: Connection closed error

Post by beeman »

Thanks Paul.

I thought I'd go the whole hog and update to Buster. I've read that there is a bit of a problem with getting the correct version of Mono to work with Cumulus.

What are your recommendations?

Dave
Image
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Connection closed error

Post by PaulMy »

Sorry, I've only used CumulusMX with Windows and can't suggest anything for other systems.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
beeman
Posts: 119
Joined: Sat 14 Mar 2009 1:04 pm
Weather Station: Davis Vantage Vue
Operating System: Raspbian
Location: South Oxfordshire, UK

Re: Connection closed error

Post by beeman »

No problem. I've followed the install instructions by ExperiMentor viewtopic.php?f=27&t=16931 and I seem to have a working system. What files do I need to copy over from my old system? I've done /data /web /webfiles /interface and Cumulus.ini

Thanks,
Dave
Image
User avatar
PaulMy
Posts: 3777
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Connection closed error

Post by PaulMy »

Mark, who is maintaining CumulusMX, has been adding the list of files updated at each build update so you would need to check each update post from b.3043 to current. However, I usually install the full new download and copy in the most current \data folder, Cumulus.ini, and any \web files that I may have edited.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
beeman
Posts: 119
Joined: Sat 14 Mar 2009 1:04 pm
Weather Station: Davis Vantage Vue
Operating System: Raspbian
Location: South Oxfordshire, UK

Re: Connection closed error

Post by beeman »

Hi Paul, I have CumulusMX 3050 working without the "Connection closed" error and with all my old data! It is running Raspbian Buster on a Pi 3 B+. Next to try a Pi zero W as I need the Pi3 for something else. I'll report back.

Thanks for your support,
Dave
Image
Post Reply