Hi
Using Cumulus 1.9.4 build 1094 on my old XP machine I was successfully uploading dayfile.txt using the daily section of the external programs configuration. However I recently moved Cumulus to a Windows 7 machine and the upload is not working.
It seems to remove the contents of dayfile.txt and leave an empty file. However when I run the batch file from a cmd window the file is correctly uploading.
Attached are a screen shot of the configuration window and of the successful running of the batch file.
What am I doing wrong?
Thanks
Graham
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 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Dayfile.txt upload
-
- Posts: 74
- Joined: Mon 23 Aug 2010 5:04 pm
- Weather Station: Davis Vantage Pro 2
- Operating System: Windows XP
- Location: Cornwall, England
- Contact:
Dayfile.txt upload
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Dayfile.txt upload
I don't think you can be doing anything wrong, because the configuration in Cumulus is to simply put the command in the box, and you've done that. Perhaps you could redirect the output to a file, and then you would see what's happening when the command is run, as you do when it's run from the command line.
Steve
-
- Posts: 74
- Joined: Mon 23 Aug 2010 5:04 pm
- Weather Station: Davis Vantage Pro 2
- Operating System: Windows XP
- Location: Cornwall, England
- Contact:
Re: Dayfile.txt upload
Steve
Thanks. I've redirected the output to a log file and this is what is recorded when the batch file is run by Cumulus at midnight:-
I'm afraid that I do not understand why there is an error 425 when the batch file is run by Cumulus but it is Ok when I run it from the cmd window.
Do you have any suggestions?
Thanks
Graham
Thanks. I've redirected the output to a log file and this is what is recorded when the batch file is run by Cumulus at midnight:-
Code: Select all
onnected to poundstockpacket.org.uk.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 4 of 50 allowed.
220-Local time is now 23:59. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 30 minutes of inactivity.
User (poundstockpacket.org.uk:(none)):
331 User packet_ftp2@poundstockpacket.org.uk OK. Password required
230 OK. Current restricted directory is /
ftp> cd /weather
250 OK. Current directory is /weather
ftp> put c:\cumulus\data\dayfile.txt
200 PORT command successful
425 Could not open data connection to port 23954: Connection timed out
ftp> quit
221-Goodbye. You uploaded 0 and downloaded 0 kbytes.
221 Logout.
Do you have any suggestions?
Thanks
Graham
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Dayfile.txt upload
A firewall issue? Perhaps Cumulus needs a firewall rule (for port 21), as its the program that launches the batch file. The batch file is using active ftp mode, but Cumulus is using passive mode for its own ftp, so the batch file needs different ports to be open.
I don't think Windows ftp supports passive mode, otherwise a solution might be to enable that. Other ftp programs such as WinSCP do.
I don't think Windows ftp supports passive mode, otherwise a solution might be to enable that. Other ftp programs such as WinSCP do.
Steve
- rogerthn
- Posts: 518
- Joined: Thu 11 Apr 2013 6:31 pm
- Weather Station: Ecowitt GW1000/GW1003
- Operating System: Raspberry Pi OS bullseye aarch64
- Location: Trollhättan Sweden
- Contact:
Re: Dayfile.txt upload
hmmm, maybeGraham64 wrote:I'm afraid that I do not understand why there is an error 425 when the batch file is run by Cumulus but it is Ok when I run it from the cmd window.Code: Select all
... ftp> put c:\cumulus\data\dayfile.txt ...
Do you have any suggestions?
Thanks
Graham
Code: Select all
put c:\cumulus\data\dayfile.txt dayfile.txt
-
- Posts: 74
- Joined: Mon 23 Aug 2010 5:04 pm
- Weather Station: Davis Vantage Pro 2
- Operating System: Windows XP
- Location: Cornwall, England
- Contact:
Re: Dayfile.txt upload
Steve
Problem now solved.
I have set WinSCP up to do the daily upload of dayfile.txt as suggested in the Wiki.
Thanks for your help
Problem now solved.
I have set WinSCP up to do the daily upload of dayfile.txt as suggested in the Wiki.
Thanks for your help