Switch to desktop version  
PUTFTP not terminating - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: PUTFTP not terminating (/thread-2748.html)



PUTFTP not terminating - pem199 - 16-05-2025

Hello all,

So i have a problem with the PUTFTP function,

I'm trying to put a file on the server hosted by my laptop.
I created the server with Filezilla. Disabled the SSL requirement etc.

I'm using the following script for the put ftp function:

Rem --- eWON start section: Init Section
eWON_init_section:
Rem --- eWON user (start)
Tset 1, 10
OnTimer 1, "goto sendFTP"
Rem --- eWON user (end)
End
Rem --- eWON end section: Init Section
Rem --- eWON start section: SendFTP
Rem --- eWON user (start)
sendFTP:
  // Post a file containing a custom text
  a$ = "/MyFile.txt"
  b$ = "this is the text of the file"
  c$ = "xxx:xxx@xxx.xxx.xxx.xxx:21,1"
  PUTFTP a$, b$, c$
 
End

On the filezilla side i can see connections being made (but not closed?). However the file never ends up in the FTP. 
And when i check "Scheduled Actions" on the Ewon i can see actions with:
Action type: "FTP Put", Status code: "-1", Status text: "In Progress", with a start time but no end time.
On the filezilla side i can also see multiple session ID's that keep muliplying.
When i rebout the ewon i can see "FTP Session 29 xxx.xxx.xxx.xxx [Status] Client did not properly shut down TLS connection" and 
"FTP Session 29 xxx.xxx.xxx.xxx [Error] GnuTLS error -110: The TLS connection was non-properly terminated"

I've tried several things, active vs passive, adding the port / removing the port, adding the c$/ removing it.
Stopping the script execution also seems to not close the connection. It either get closed by timeout or rebooting the Ewon.

Thanks in advance for any help!

Alright found the problem.

The protocol on the Filezilla Server side should be "Explicit FTP over TLS and insecure plain FTP".
I had it on "Implicit FTP over TLS (deprecated)".

My bad


RE: PUTFTP not terminating - simon - 05-06-2025

Thx for the edit and the solution :-)