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

"Too many open files" exception

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:

"Too many open files" exception

Post by freddie »

Caused MX to have problems seconds after the 0900 rollover this morning - although it appeared to keep running. Diags file (truncated to show output from 0700 this morning) and program stdout/stderr attached. MX restarted around 0943 to clear up remaining problems.
NB: MX is the only user program running on this box.
mxdiags.txt
stop-error.txt
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: "Too many open files" exception

Post by steve »

It could just be that you need to increase the max number of file handles (note that this isn't just for disk files) if yours is still at the default of 1024; Google found this for me - http://stackoverflow.com/questions/8988 ... -on-ubuntu

It could be that there's a leak somewhere - perhaps the FTP component leaves files and/or TCP connections open when it gets timeouts.
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: "Too many open files" exception

Post by freddie »

steve wrote:It could just be that you need to increase the max number of file handles
I'm reluctant to do that, as I have had MX running for 12 months now without this error occurring. I will keep my eye on it for the moment, and may take action if there is a recurrence.
steve wrote:It could be that there's a leak somewhere - perhaps the FTP component leaves files and/or TCP connections open when it gets timeouts.
You would certainly hope this isn't the case!

Thanks for taking a look.
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: "Too many open files" exception

Post by steve »

Apparently 'lsof' (may need installing) is good for investigating what files are open by what. It produces rather a lot of output, though, so you really need to be quite good at sed and awk and things like that, although lsof does have some useful options itself to limit the output.
Steve
Locked