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

Struggling with SFTP

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Struggling with SFTP

Post by ConligWX »

meteozusterhof wrote:If I type winscp.exe in the prompt, it opens the GUI of winscp.

So WinSCP appears to be properly installed. It is the scripting part that does not seem to work.
ok instead of using winscp.exe use winscp.com

Code: Select all

winscp.com /script="C:\Cumulus\sftp-cmds.txt" /log="C:\Cumulus\winscp.log" /loglevel=2
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Struggling with SFTP

Post by mcrossley »

I'd be interested to see the output from the command > dir c:\cumulus\sftp*
meteozusterhof
Posts: 13
Joined: Wed 13 Jul 2011 2:14 pm
Weather Station: Eurochron ECWS1080
Operating System: Windows 11
Location: Leiden, the Netherlands
Contact:

Re: Struggling with SFTP

Post by meteozusterhof »

If I use winSCP.com instead of .exe in the bat, I get a brief glimpse of a window syaing that a file was not found.
-----
Weatherstation Zusterhof, Leiden, the Netherlands
http://www.meteozusterhof.nl
meteozusterhof
Posts: 13
Joined: Wed 13 Jul 2011 2:14 pm
Weather Station: Eurochron ECWS1080
Operating System: Windows 11
Location: Leiden, the Netherlands
Contact:

Re: Struggling with SFTP

Post by meteozusterhof »

Mark, that results in:

Code: Select all

C:\Cumulus>dir c:\cumulus\sftp*
 
 Directory of c:\cumulus

08/14/2017  15:09             1,899 sftp-cmds.txt.txt
08/17/2017  23:33                97 sftp.bat
               2 File(s)          1,996 bytes
               0 Dir(s)  38,999,916,544 bytes free
-----
Weatherstation Zusterhof, Leiden, the Netherlands
http://www.meteozusterhof.nl
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Struggling with SFTP

Post by ConligWX »

meteozusterhof wrote:If I use winSCP.com instead of .exe in the bat, I get a brief glimpse of a window syaing that a file was not found.
because it doesnt find sftp-cmds.txt

you have named it sftp-cmds.txt.txt
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
meteozusterhof
Posts: 13
Joined: Wed 13 Jul 2011 2:14 pm
Weather Station: Eurochron ECWS1080
Operating System: Windows 11
Location: Leiden, the Netherlands
Contact:

Re: Struggling with SFTP

Post by meteozusterhof »

YAY!!!!!! IT WORKS!

The principle problem appears indeed to have been that I hadn't noticed the redundant .txt.txt

It does now connect, produce a winscp.log, and indeed files are transfered!

For the latter, after looking at the log, I had to solve a few things, more exactly, turns out the lines in the script had to be:

Code: Select all

put "C:\Cumulus\realtime.txt" WWW/weer/realtime.txt
put "C:\Cumulus\web\index.htm" WWW/weer/index.htm
etc...

Thank you all very much for your help!!!!
:D
-----
Weatherstation Zusterhof, Leiden, the Netherlands
http://www.meteozusterhof.nl
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Struggling with SFTP

Post by ConligWX »

glad it worked. you could now turn the logging off totally or lower the debug level. levels are

0 = normal
1 = debug 1
2 = debug 2
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Struggling with SFTP

Post by mcrossley »

Toxic17 wrote:
meteozusterhof wrote:If I use winSCP.com instead of .exe in the bat, I get a brief glimpse of a window syaing that a file was not found.
because it doesnt find sftp-cmds.txt

you have named it sftp-cmds.txt.txt
Thought it might be that!
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: Struggling with SFTP

Post by Altocumulus »

Just dropping by to ask a silly question.

Is this script instead of the extra settings in the Files Internet Configuration panel, or as well as?

You may :groan: or :bash: as appropriate :D
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Struggling with SFTP

Post by mcrossley »

Instead of, and as well as ;) If you your server is using SFTP which Cumulus doesn't support you will have to do the uploads via an external script, the processing is still done by Cumulus.
Last edited by mcrossley on Tue 13 Feb 2018 8:59 am, edited 1 time in total.
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: Struggling with SFTP

Post by Altocumulus »

Thanks Mark, I'm trying to follow wiki and threads like this one.

winSCP is loaded and I've checked that I can logon to the server correctly. Server requires FTP over TLS Explicit encryption. As of yesterday evening, I hadn't got the script file to work. I have an idea I'll check this morning. The script is written solely in lower case, whilst my viewing of the windows structure on my PC has some upper case characters, the C: drive and capital C for Cumulus - I'm hoping that's all it is.
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: Struggling with SFTP

Post by Altocumulus »

Altocumulus wrote:Thanks Mark, I'm trying to follow wiki and threads like this one.

winSCP is loaded and I've checked that I can logon to the server correctly. Server requires FTP over TLS Explicit encryption. As of yesterday evening, I hadn't got the script file to work. I have an idea I'll check this morning. The script is written solely in lower case, whilst my viewing of the windows structure on my PC has some upper case characters, the C: drive and capital C for Cumulus - I'm hoping that's all it is.
And it's not that, so back to some further reading!
Altocumulus
Posts: 136
Joined: Sat 18 May 2013 1:58 pm
Weather Station: Davis Vantage Pro2 with Solar
Operating System: Windows 10 Home
Location: NE Scotland
Contact:

Re: Struggling with SFTP

Post by Altocumulus »

Altocumulus wrote:
Altocumulus wrote:Thanks Mark, I'm trying to follow wiki and threads like this one.

winSCP is loaded and I've checked that I can logon to the server correctly. Server requires FTP over TLS Explicit encryption. As of yesterday evening, I hadn't got the script file to work. I have an idea I'll check this morning. The script is written solely in lower case, whilst my viewing of the windows structure on my PC has some upper case characters, the C: drive and capital C for Cumulus - I'm hoping that's all it is.
And it's not that, so back to some further reading!
Running manually shows a fleeting view at the console.

Log file suggests connection is made, but soon disconnected.
Post Reply