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

FTP permissions upload problem

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

User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

FTP permissions upload problem

Post by Carbonara »

HI ! i need an help :)
I use vsftp and the latest version of CMX 3. I have a problem with uploading files to my FTP server. With each update, the files are uploaded, but the read/write permissions (755) that I need to display the data on my website are reset. So, every 60 seconds, I have to restore them using FileZilla. The issue appeared from a certain version of CMX onwards, where, if I remember correctly, some libraries for FTP uploading were updated.
Can you suggest a solution?
Thanks in advance!
SamiS
Posts: 510
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: FTP permissions upload problem

Post by SamiS »

I think your issue is basically related to your ftp server configuration and what permissions it grants to a new file.

If you don’t find the solution from the server end, you could try to experiment different combinations of CMX FTP settings found in Settings -> Internet Settings -> Web / Upload site -> General Settings.

I probably would try to disable both ”ftp rename” and ”delete before upload”.
User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

Re: FTP permissions upload problem

Post by Carbonara »

Yes, I have already disabled those options. I have no issues with version 3.17.0 b3184; I have about 50 weather station online with this older version. The problem appeared with the later versions. I remember that at some point, something was changed in the FTP libraries, and since then it hasn't worked anymore. However, I don't remember the version number.
User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

Re: FTP permissions upload problem

Post by Carbonara »

same problem on altervista hosting, in testing now...
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: FTP permissions upload problem

Post by freddie »

You shouldn't need execute permission on data files. Or are you uploading php files?
Freddie
Image
User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

Re: FTP permissions upload problem

Post by Carbonara »

freddie wrote: Sat 15 Jun 2024 12:33 pm You shouldn't need execute permission on data files. Or are you uploading php files?
no, no php used, I need 755 permissions for my website. The files I upload are just.. some json for the graphs, the realtime.txt file, and a custom txt file generated with webtags
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: FTP permissions upload problem

Post by broadstairs »

If it is on the server that you need to change the permissions then the issue is on the server, it sets the permissions on the files when it receives them.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

Re: FTP permissions upload problem

Post by Carbonara »

broadstairs wrote: Sat 15 Jun 2024 1:34 pm If it is on the server that you need to change the permissions then the issue is on the server, it sets the permissions on the files when it receives them.

Stuart
ok, but why with older version of cumulus this don't happen?
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: FTP permissions upload problem

Post by broadstairs »

What are the file permissions on the server following an upload but prior to you updating them? Also what type of FTP are you using plain FTP or FTPS etc?

Also perhaps an extract from the MXDiags log file which shows an FTP of the relevant files with FTP logging turned on, just remember to turn FTP logging on and then off again when you have captured the data and before any restart of CMX.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

Re: FTP permissions upload problem

Post by Carbonara »

broadstairs wrote: Sat 15 Jun 2024 2:06 pm What are the file permissions on the server following an upload but prior to you updating them? Also what type of FTP are you using plain FTP or FTPS etc?

Also perhaps an extract from the MXDiags log file which shows an FTP of the relevant files with FTP logging turned on, just remember to turn FTP logging on and then off again when you have captured the data and before any restart of CMX.

Stuart
I use the standard FTP upload (not SFTP). The first upload it performs (by cumulus) is with 644 permissions. Subsequently, I log in into my FTP server via FileZilla and set the permissions to 755 on the files. When Cumulus performs the subsequent uploads (every 60 seconds for the realtime files), with the older versions of Cumulus, the permissions stayed fixed at 755. With the new version of CMX, they revert back to 644. I use vsftpd on the server.
i checked the mx diag file, but there isn't any of relevant
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: FTP permissions upload problem

Post by broadstairs »

I am puzzled by this. Just checked my uploaded website files on my hosting company and they are all 644. I suspect the issue is your server's web server and why it needs 755. Looks to me that 644 is normal and should work with the web server.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
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: FTP permissions upload problem

Post by freddie »

Carbonara wrote: Sat 15 Jun 2024 1:13 pm
freddie wrote: Sat 15 Jun 2024 12:33 pm You shouldn't need execute permission on data files. Or are you uploading php files?
no, no php used, I need 755 permissions for my website. The files I upload are just.. some json for the graphs, the realtime.txt file, and a custom txt file generated with webtags
You shouldn't need 755 - 644 will be enough. The difference between the two is that you are setting the permissions to executable, which isn't necessary if you are not executing them.
Freddie
Image
broadstairs
Posts: 1184
Joined: Thu 14 Aug 2008 7:17 am
Weather Station: Ecowitt GW2000/GW3000
Operating System: Linux openSUSE LEAP
Location: Broadstairs, Kent, UK
Contact:

Re: FTP permissions upload problem

Post by broadstairs »

When you think about it having executables on a Web server is a VERY bad idea from a security perspective.

Stuart
Currently running CMX V4.4.2 4085 on Linux openSUSE Leap
User avatar
Carbonara
Posts: 53
Joined: Mon 16 Nov 2020 10:27 pm
Weather Station: Davis and Ecowitt
Operating System: DietPi 7.5.2 ( debian bullseye)

Re: FTP permissions upload problem

Post by Carbonara »

yes, i need them because i've a custom cms who need to read the file and generation a template to display online the data. I've other settings for the security, 755 is not a problem. Why 3.17.0 b3184 version works ok ?
SamiS
Posts: 510
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: FTP permissions upload problem

Post by SamiS »

Maybe it is an unexpected behaviour of your server when communicating with the newer ftp libraries, who knows. I’m quite sure that CMX does not intentionally change remote file permissions, but of course this is only a guess since I haven’t examined the source code. Mark as the code writer could tell this, but he is more or less away for several weeks.

You could get some more info by enabling ftp log and debug log in CMX.
Post Reply