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

Authentication failed because the remote party has closed the transport stream

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Dinant
Posts: 93
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Authentication failed because the remote party has closed the transport stream

Post by Dinant »

Yesterday morning June 11 05:48 AM suddenly the FTPS upload has stopped with an error saying:
Authentication failed because the remote party has closed the transport stream
I've contacted my provider Antagonist but they say it is an local firewall issue.
Strange because every port for this host is open in the firewall and at that time I was a sleep!
So nothing has changed.
I've tried to change the Advanced FTPS settings to active because Antogonist told me to do so but that also doesn't work.

Anyone an idea what is causing this error?

Dinant
You do not have the required permissions to view the files attached to this post.
User avatar
HansR
Posts: 5874
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Authentication failed because the remote party has closed the transport stream

Post by HansR »

I had the same problem with Antagonist and said goodbye to FTP[ S ] and switched to SFTP which works fine.

The problem is somewhere between the server they use and the library used by CMX (FluentFTP). It is about re-use of secure connection.
Spending time trying to get to the root cause is not well spend unless you are trying to become an FTP specialist.

So my advise: switch to SFTP which is btw also the advise Antagonist gave me. They should update the info in their database.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
freddie
Posts: 2435
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Authentication failed because the remote party has closed the transport stream

Post by freddie »

HansR wrote: Sat 12 Jun 2021 4:06 pmswitch to SFTP which is btw also the advise Antagonist gave me.
And me ;)
Freddie
Image
Dinant
Posts: 93
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Re: Authentication failed because the remote party has closed the transport stream

Post by Dinant »

HansR wrote: Sat 12 Jun 2021 4:06 pm So my advise: switch to SFTP which is btw also the advise Antagonist gave me. They should update the info in their database.
Question about the SFTP configuration in CumulusMX.
First you choose 2 - Use SSH for FTP, Port 22
And then SFTP authentication method: Pre-shared key?
Then the Pre-shared Private Key file for SFTP. I understand. Remark: The Private/Public is only valid for max of 1 year!
Did you also enter the username in the username field?
Dinant
Posts: 93
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Re: Authentication failed because the remote party has closed the transport stream

Post by Dinant »

@Mark:

Last night CumulusMX was running with a lot of SFTP errors.
Today there is another error saying: Too many open files. The upload to the third party sites has stopped.

Code: Select all

2021-06-12 11:36:00.132 DoLogFile: Writing log entry for 6/12/2021 11:36:00 AM
2021-06-12 11:36:00.132 DoLogFile: Written log entry for 6/12/2021 11:36:00 AM
2021-06-12 11:36:00.132 Writing today.ini, LastUpdateTime = 6/12/2021 11:36:00 AM raindaystart = 251.8 rain counter = 251.8
2021-06-12 11:36:20.746 Realtime[181]: Uploading - realtime.txt
2021-06-12 11:36:20.791 FTP[181]: Error uploading realtime.txt to /weer/cumulus/realtime.txt : Authentication failed because the remote ...
2021-06-12 11:36:48.723 GetWllCurrent: Error processing WLL response
2021-06-12 11:36:48.723 GetWllCurrent: Error: Too many open files
2021-06-12 11:36:49.723 GetWllCurrent: Error processing WLL response
2021-06-12 11:36:49.723 GetWllCurrent: Error: Too many open files
2021-06-12 11:37:00.136 DoLogFile: Writing log entry for 6/12/2021 11:37:00 AM
2021-06-12 11:37:18.723 GetWllCurrent: Error processing WLL response
2021-06-12 11:37:18.723 GetWllCurrent: Error: Too many open files
2021-06-12 11:37:19.723 GetWllCurrent: Error processing WLL response
2021-06-12 11:37:19.723 GetWllCurrent: Error: Too many open files
2021-06-12 11:37:19.740 Error encountered during Realtime file update.
2021-06-12 11:37:19.740 Too many open files
Normally CumulusMX is running very steady without errors,
Because of the SFTP errors I think some files were not closed.
This probably produces those errors.
Dinant
Posts: 93
Joined: Sat 17 Aug 2013 9:11 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 2012 R2
Location: Markelo
Contact:

Re: Authentication failed because the remote party has closed the transport stream

Post by Dinant »

@Hans R:

Yes! Now it works with SFTP.

For the Dutch provider Antagonist you have to enter the following Internet settings :
  • Hostname: <hostname of the web server>
  • FTP protocol: 2 - Use SSH for FTP (SFTP)
  • FTP port: 22
  • SFTP Authentication method: Pre-shared key
  • Pre-shared private key file: private in the format which starts with the line "-----BEGIN RSA PRIVATE KEY-----"
    In Putty Key Generator under conversions choose "Export OPENSSH key" to export the public key in the right format.
  • Remote FTP directory: <directory where the Cumulus website is located> Starts with /home/deb123456/domains/<domain>/public_html/...
  • Username: deb123456 username. Important: It only works with the main user account for the domain
  • Password: password of the deb123456 user. The password is not needed for Antogonist but in CumulusMX it is a mandatory field.
Add the public key to Antagonist in DirectAdmin:
https://www.antagonist.nl/help/nl/webho ... _verbinden
User avatar
HansR
Posts: 5874
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Authentication failed because the remote party has closed the transport stream

Post by HansR »

Good it works for you.
Dinant wrote: Sat 12 Jun 2021 5:40 pm Remark: The Private/Public is only valid for max of 1 year!
I was told you could renew the same key...
We'll see.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply