Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

MX - FTP failures causing resources (inodes) to be exhausted

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

MX - FTP failures causing resources (inodes) to be exhausted

Post by freddie »

As mentioned in earlier threads - problems with FTP stopping updating files (not all of them, just some), which now appears to be a trigger for exhaustion of system resources.

Attached is the FTP log and the appropriate diags file. It looks like the problems started overnight last night, and the exhaustion of resources occurred shortly afterwards (around 0300?).
ftplog.zip
mxdiags.zip
You do not have the required permissions to view the files attached to this post.
Freddie
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: MX - FTP failures causing resources (inodes) to be exhau

Post by steve »

I get occasional ftp timeouts, and recently there was a problem with my phone line which caused my internet connection to be very poor, resulting in lots of timeouts, but I have never had the same resource problems (on my Raspberry Pi) that you are having.

Perhaps you could investigate the reasons for you having quite so many timeouts - it seems to be almost permanent, and consider increasing your system limits.
Steve
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: MX - FTP failures causing resources (inodes) to be exhau

Post by steve »

You could try replacing the ftp client dll with the one in the attached zip, it's later than the one included win MX build 3036 and may have some bug fixes. I think it should work with build 3036, but keep the original one just in case you have to replace it.

I'll have a look to see if there's anything I can do to make sure files are closed after a timeout.
You do not have the required permissions to view the files attached to this post.
Steve
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: MX - FTP failures causing resources (inodes) to be exhau

Post by freddie »

steve wrote:Perhaps you could investigate the reasons for you having quite so many timeouts - it seems to be almost permanent
When I look at my systems when the "timeout" stage is reached, I have often seen the scenario where the file that times out is zero bytes long on the destination system. Deleting this zero-length file sometimes causes the FTP updates to recommence. This doesn't happen every time, though, which suggests to me that there may be more than one reason behind the timeouts.
Regarding the timeouts - I have a fibre internet connection, with no data limits. The destination server has no data limits either, so we can rule out ISP or hosting companies using some sort of control. I do very occasionally get timeouts on the IP address checking function on my home server (which triggers DNS updates if there is a change in public IP) so I know the connection isn't completely perfect.
steve wrote:consider increasing your system limits.
I'm reluctant to do this as (a) you don't have a problem, and (b) MX is the only active service on the host.
steve wrote:You could try replacing the ftp client dll with the one in the attached zip
I will try that, thank you. It may be a week or so before I get a recurrence of the problem (last occurrence was on 11/02/16).
Thanks again for the swift response.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: MX - FTP failures causing resources (inodes) to be exhau

Post by freddie »

Not sure if it is related but I am seeing a lot of these log messages in MXdiags:

Code: Select all

2016-02-16 20:48:09.550 Error uploading dailytemp.json to /var/www/weather/dailytemp.json : Failed to get the EPSV port from: 5529
Freddie
Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: MX - FTP failures causing resources (inodes) to be exhau

Post by steve »

I don't know what the error message means, I suppose it could be the result of another timeout.

I've changed my exception handling code slightly, it might help ensure that files aren't left open when a timeout occurs.
Steve
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: MX - FTP failures causing resources (inodes) to be exhau

Post by freddie »

steve wrote:I don't know what the error message means
After 21000 instances of this error in 36 hours I have re-instated the original FTP dll. The errors have now stopped.
Also - and this may be coincidental - my web site was getting badly behind with its updates. It is now up-to-date again.

FWIW I haven't seen any errors in the FTP server log on the website.
Freddie
Image
Locked