please help - SFTP problems for 2nd server

Dear guys,
when changing to SFTP there are some problems:

WD connects to the first server, but does not start uploading files.
After more than one minute that error 301 interruped appers.

Here is the FTP Log protocol

[i]actual messages from upload session*
Start Time/date:11:30:05 06.05.2016
Checking for what else to do…
there are 1 more things to do
Starting FTP transfer Now to 2nd server
Logging onto :213.164.7.5
Logging onto FTP server…213.164.7.5
Connecting to FTP server.
Connected.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4
Disconnected.
301: Interrupted.

Connecting to FTP server.
Connected.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4
Finshed email agenda
Finshed email agenda, and more Internet agenda items to do (FTP)…
Time/date:11:32:30 06.05.2016
Logging onto FTP server…02.websrv.eu
101: You cannot change the RemoteHost at this time. A connection is in progress.
Aprs error count= 1
Trying next server
Trying next server, first.aprs.net
SFTP Connected to 02.websrv.eu 0
Remote directory =public
Checking for next FTP agenda…
there are 1 more things to do
Checking there are files to upload
There are more files to upload
Uploading file to SFTP now C:\wdisplay\webfiles\customtextout3.txttemp →
publictawes.txt
SFTP stage complete

Changing back to original dir for this file
Checking for next FTP agenda…
All Agenda complete, doing FTP log off…
FTP logoff
Doing abort procedure/program close…
Will stay connected…[/i]

Could anybody help please…

Thanks a lot!

do you have set to use passive mode in the connections setup?

yes, passive mode is ticked (in connections as well as in general FTP functions)

that problem still persists when transfering to 2nd server.

I tried to figuere out as follows:

  • When using port 21: the sftp is used for the first server, the 2nd server seems connected by normal FTP
  • when using port 22 : sftp is hanging at the 2nd server, followed by 301: interrupted

so any ideas?

here the protocols:

PORT 21

[size=66][color=blue]Start Time/date:15:00:05 13.05.2016
Checking for what else to do…
there are 2 more things to do
Awekas connected status: OK
Awekas complete
Checking for what else to do…
there are 1 more things to do
Starting FTP transfer Now to 2nd server
Logging onto :213.164.7.5
Logging onto FTP server…213.164.7.5
Connecting to FTP server.
Connected.
220 ProFTPD 1.3.4a Server (UBIMET GmbH) [::ffff:213.164.7.5]
USER=****
331 Password required for ftp*****
PASSWORD=****
230 User ftp***** logged in
TYPE I
200 Type set to I
TYPE I
200 Type set to I

PASV
227 Entering Passive Mode (213,164,7,5,240,64).
STOR tawes.txt
150 Opening BINARY mode data connection for tawes.txt
226 Transfer complete
Logging off from 2nd server grouped
QUIT
221 Goodbye.
Disconnected.
Finshed email agenda
Finshed email agenda, and more Internet agenda items to do (FTP)…
Time/date:15:00:08 13.05.2016
Logging onto FTP server…02.websrv.eu
SFTP Connected to 02.websrv.eu 0
Remote directory =public
Checking for next FTP agenda…
there are 1 more things to do
Checking there are files to upload
There are more files to upload
Uploading file to SFTP now C:\wdisplay\webfiles\customtextout3.txttemp →
publictawes.txt
SFTP stage complete

Changing back to original dir for this file
Checking for next FTP agenda…
All Agenda complete, doing FTP log off…
FTP logoff
Doing abort procedure/program close…
Will stay connected…[/color][/size]

PORT 22:
[size=66][color=blue][i]Start Time/date:14:10:06 13.05.2016
Checking for what else to do…
there are 1 more things to do
Starting FTP transfer Now to 2nd server
Logging onto :213.164.7.5
Logging onto FTP server…213.164.7.5
Connecting to FTP server.
Connected.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4
Disconnected.
301: Interrupted.

Connecting to FTP server.
Connected.
SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4
Finshed email agenda
Finshed email agenda, and more Internet agenda items to do (FTP)…
Time/date:14:13:54 13.05.2016
Logging onto FTP server…02.websrv.eu
101: You cannot change the RemoteHost at this time. A connection is in progress.
Aprs error count= 1
Trying next server
Trying next server, first.aprs.net
SFTP Connected to 02.websrv.eu 0
Remote directory =public
Checking for next FTP agenda…
there are 1 more things to do
Checking there are files to upload
There are more files to upload
Uploading file to SFTP now C:\wdisplay\webfiles\customtextout3.txttemp →
publictawes.txt
SFTP stage complete

Changing back to original dir for this file
Checking for next FTP agenda…
All Agenda complete, doing FTP log off…
FTP logoff
Doing abort procedure/program close…
Will stay connected…
[/i][/color][/size]

I am confused
if port 21 is working, why do you then need to use port 22?

because of normally port 21 is used for FTP, whereas port 22 is for SFTP.

but if you are able to use port 21, why are you wanting to use port 22 (and SFTP) ?

Brian, the main issue is, that SFTP does not work properly for the 2nd server (as reported: WD connects, but does not start upload). Either by using port 21 nor port 22.

Actually 1st server connects per SFTP, whereas 2nd server connects by FTP.

At the moment that both 2nd servers, where data are uploaded to from my station are accepting FTP.
But whats happening, when that servers will accept SFTP only in the near future?

why are you wanting to use a 2nd server upload?

have you tried setting a different time to upload to 2nd server than normal upload?

Cause upload to the servers of the national weather service and that of the universitary meteorological institute

No, did not, because of fixed, defined times based on WMO conventions.

BTW: I would be interested to know, how to set upload only to one of that 2nd servers used, without uploading to my own server at same time. I did not have any idea how to set that in WD til now when using costumtext2.txt and remote name of the file

Thanks for supporting!

I would be interested to know, how to set upload only to one of that 2nd servers used, without uploading to my own server at same time.
that is not possible, sorry

you could though maybe use another FTP program that supports secure FTP to upload the file to the other ftp server?