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

FTP issue

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
sv1iw
Posts: 10
Joined: Mon 23 Apr 2018 8:52 pm
Weather Station: WX-200
Operating System: Raspbian stretch

FTP issue

Post by sv1iw »

Hello everyone
I am using lately CumulusMX on a raspberry pi 2 Model B. Everything seems to be working in order except some ftp issues. To be more specific. I use ftp to upload data to another Raspberry pi on my local network which serves as a Web Server. The only file that seems to be uploaded successfully is realtime.txt. All others from "/web" folder as you can see in the diagnostic file attached, say that cannot be created. Another clue from the ftplog.txt file is these messages (for every single file not uploaded) " Could not get file size" and "Could not create file".
I have checked file permissions on both ftp servers although I use /home/user folder which the user can use with read/write permissions and all seems fine. Finally I used a Windows ftp client with the same credentials like Cumulus MX and it is working fine as well.
Any suggestions /ideas why CumulusMX is not making it?
Below are my ftp settings, and mxdiags file...

Regards
Manos SV1IW
mxdiags.rar

[FTP site]
Host=10.0.0.54
Port=21
Username=sv1iw
Password=xxxxxxxx
Directory=
AutoUpdate=1
ActiveFTP=0
Sslftp=0
FTPlogging=1
UTF8encode=1
EnableRealtime=1
RealtimeFTPEnabled=1
RealtimeTxtFTP=1
RealtimeGaugesTxtFTP=0
RealtimeInterval=30000
UpdateInterval=15
IncludeSTD=1
IncludeGraphDataFiles=1
FTPRename=0
DeleteBeforeUpload=0
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: FTP issue

Post by mcrossley »

It is attempting to FTP to /index.htm, which depending on the filesystem visibility to your FTP user can mean either the root of the FTP home directory, or the root of the file system. In your case I suspect the latter, try putting the full path to the home directory in the Cumulus Directory setting.

You could investigate how you limit an FTP user to only see their own folders in FTP and not back out into the filesystem they shouldn't be using.
sv1iw
Posts: 10
Joined: Mon 23 Apr 2018 8:52 pm
Weather Station: WX-200
Operating System: Raspbian stretch

Re: FTP issue

Post by sv1iw »

Hi Mark and thanks for the reply. I used the full path for the destination and now the system has stopped uploading the reltime.txt which was successfully uploaded before.
Regards
Manos SV1IW

From the MXdiags:
2018-04-26 20:15:02.388 Error uploading web/index.htm to /home/ftpupload/index.htm : Could not create file.
2018-04-26 20:15:02.425 Error uploading web/today.htm to /home/ftpupload/today.htm : Could not create file.
2018-04-26 20:15:02.463 Error uploading web/yesterday.htm to /home/ftpupload/yesterday.htm : Could not create file.
2018-04-26 20:15:02.504 Error uploading web/record.htm to /home/ftpupload/record.htm : Could not create file.

and from ftp log after the change:
Text encoding: System.Text.UTF8Encoding
OPTS UTF8 ON
200 Always in UTF8 mode.
Testing connectivity using Socket.Poll()...
2018-04-26 20:08:41.277 Uploading realtime.txt to /home/ftpupload/realtime.txt
Testing connectivity using Socket.Poll()...
TYPE I
200 Switching to Binary mode.
SIZE /home/ftpupload/realtime.txt
550 Could not get file size.
EPSV
229 Entering Extended Passive Mode (|||51185|).
STOR /home/ftpupload/realtime.txt
553 Could not create file.
Image
sv1iw
Posts: 10
Joined: Mon 23 Apr 2018 8:52 pm
Weather Station: WX-200
Operating System: Raspbian stretch

Re: FTP issue

Post by sv1iw »

Mark disregard my previous message. I had changed the normal ftp server address and left another one which I didn't check.
I can still see that can't get the file size from source but it stores files ok. So is about time to move on to the next issue.
Thank you very much for the suggestion....

Regards Manos SV1IW :clap:
Image
Locked