Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.5 (build 3282) - 23 February 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 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

Swap increase and SFTP fails

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
User avatar
HansR
Posts: 5832
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Swap increase and SFTP fails

Post by HansR »

On the b3190 I get SFTP errors. See logfile.
The swap file consumption increases. The number of processes increases (as observed before).
You do not have the required permissions to view the files attached to this post.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5832
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Swap increase and SFTP fails

Post by HansR »

The SFTP fails have an hourly frequency, I will ask the provider first.

The swap increment may have to do with CUtils, a fix is out I regard it now as fixed unless otherwise reported.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Swap increase and SFTP fails

Post by mcrossley »

Thanks for the update - a regular hourly failure does sound like the server dropping connections after an hour even if they are still active. Just something you may have to live with
freddie
Posts: 2422
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Swap increase and SFTP fails

Post by freddie »

Could connection lifetime perhaps be made a settable parameter that defaults to whatever it is hardwired to currently?
Freddie
Image
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Swap increase and SFTP fails

Post by mcrossley »

There is nothing on the client side to disconnect, just the opposite it sends a keep-alive message every 15 seconds by default.
freddie
Posts: 2422
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Swap increase and SFTP fails

Post by freddie »

In java you have some sort of connection object that you can call disconnect on. I guess c# does it differently?
Freddie
Image
User avatar
mcrossley
Posts: 12641
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Swap increase and SFTP fails

Post by mcrossley »

Ah, I see, you're saying an in an option to force a disconnect/reconnect periodically?
But really that would no different from CMX being disconnected by the remote host and reconnecting as it is doing now would it?
freddie
Posts: 2422
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Swap increase and SFTP fails

Post by freddie »

There seems to be a resource issue when a remote disconnect occurs. This way it is controlled by MX so resources should be managed and not leak?
Freddie
Image
User avatar
HansR
Posts: 5832
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Swap increase and SFTP fails

Post by HansR »

The provider has confirmed that they disconnect all SSH processes a user has opened once per hour. So the reconnect by CMX is correct and works. I'll see if I can get some true monitoring on the system. The app is new to me so setting it up takes some time.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply