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

No non-realtime ftp if the log file is too large.

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
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

No non-realtime ftp if the log file is too large.

Post by hvd51 »

Strange problem !

If the log file (MXdiags) becomes larger than 20,000 kb, Cumulusmx will stop the FTP upload of the non-realtime files.
This has happened twice so far.
With a restart everything is back to normal.
A new log file is created in the MXdiags directory and the old log file is deleted.

Realtime upload 30 sec
Web Interval 10 min

Last time, before performing a reboot, I made a copy of this file.
This file is 21,342 kb in size

After the time of no more uploading, there is no more mention of the standard Data file

last upload time 2021-05-01 08:00

What could be going on?

Harm
You do not have the required permissions to view the files attached to this post.
freddie
Posts: 2434
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: No non-realtime ftp if the log file is too large.

Post by freddie »

The log file rolls over when it gets to that size - which is a mighty coincidence. It shouldn't be deleted. Do you have sufficient disk space?
Freddie
Image
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: No non-realtime ftp if the log file is too large.

Post by hvd51 »

freddie

The log file did not roll over and it was deleted when i restarted CMX. (i made first a copy if it)

Diskspace enough 110 GB and in use 16,6 GB

The realtime uploads continued teh non realtime (10min) stopped.
Harm
freddie
Posts: 2434
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: No non-realtime ftp if the log file is too large.

Post by freddie »

It's a strange one. There must be many other users with the same setup as you - yet no reports of this. I think I'll leave this one to @mcrossley.
Freddie
Image
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: No non-realtime ftp if the log file is too large.

Post by hvd51 »

I turned on debug and ftp logging to get to 20,000 earlier.
Harm
User avatar
mcrossley
Posts: 12695
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: No non-realtime ftp if the log file is too large.

Post by mcrossley »

Odd one, there is nothing in the code to delete the last file, it deletes the oldest one if there are more than 10.

Log rollover is working for others as I've seen the log files posted.

Let's see what happens on the next rollover with debug logging enabled.
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: No non-realtime ftp if the log file is too large.

Post by hvd51 »

@Mark

There were 11 created missing log files with a date younger than the log file in the MXdiags directory.

Harm
freddie
Posts: 2434
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: No non-realtime ftp if the log file is too large.

Post by freddie »

Have you changed permissions on the MXdiags folder recently?
Freddie
Image
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: No non-realtime ftp if the log file is too large.

Post by hvd51 »

@Freddie

No change of permissions and CMX runs as administrator

Harm
hvd51
Posts: 41
Joined: Fri 13 Jul 2012 5:05 pm
Weather Station: Davis VP2 + Weatherlink IP
Operating System: Pi 4 / Linux 6.1.21-v8+ aarch64
Location: 't Zandt, The Netherlands
Contact:

Re: No non-realtime ftp if the log file is too large.

Post by hvd51 »

The last rollover went normally with a size of 20,520 kb and the uploads continued as usual.
So I cannot reproduce the "error".
I will keep an eye on the progress.

But it remains a strange phenomenon why the realtime FTP just continued and the 10 min FTP stopped.

Harm
Post Reply