Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Existing connection was forcibly closed by the remote host

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
stephenord
Posts: 5
Joined: Sat 23 Oct 2010 6:15 pm
Weather Station: Davis Vantage Pro2 FARS
Operating System: Windows 10
Location: Milton Keynes

Existing connection was forcibly closed by the remote host

Post by stephenord »

I have only just taken the plunge with CumulusMX but got everything setup quite easily, thanks to some excellent posts on here! However I seem to be getting a problem with:

2016-02-23 21:58:07.416 System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at .(TcpClient , String ) in C:\Users\steve\Documents\Visual Studio 2015\Projects\CumulusMX\CumulusMX\DavisStation.cs:line 660
at .() in C:\Users\steve\Documents\Visual Studio 2015\Projects\CumulusMX\CumulusMX\DavisStation.cs:line 552
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Then everything stops with *** Data input appears to have stopped

Am I missing something obvious, what could be causing this, I assume the remote host is my Davis Vantage Pro2 with IP data logger itself?? MXDiag log attached.

Stephen
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Existing connection was forcibly closed by the remote ho

Post by steve »

stephenord wrote:I assume the remote host is my Davis Vantage Pro2 with IP data logger itself?
Yes, the logger is apparently closing the connection. Is Cumulus talking to the logger directly (via a router) or is there some other software or hardware involved?

Is your logger uploading to weatherlink.com?

Is there any other software communicating with the logger at the same time as MX?
Steve
stephenord
Posts: 5
Joined: Sat 23 Oct 2010 6:15 pm
Weather Station: Davis Vantage Pro2 FARS
Operating System: Windows 10
Location: Milton Keynes

Re: Existing connection was forcibly closed by the remote ho

Post by stephenord »

Is Cumulus talking to the logger directly (via a router) or is there some other software or hardware involved?
Connected directly, nothing else involved.
Is your logger uploading to weatherlink.com?
Ah, yes, I had forgotten all about that, I'm pretty sure it does. I will turn that off tonight and give it another go.

Thanks!

Stephen
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Existing connection was forcibly closed by the remote ho

Post by steve »

Do you have a 'periodic disconnect' set to allow for the uploads to weatherlink.com? You could try setting that, or if you already have it set, try adjusting the disconnect period.
Steve
stephenord
Posts: 5
Joined: Sat 23 Oct 2010 6:15 pm
Weather Station: Davis Vantage Pro2 FARS
Operating System: Windows 10
Location: Milton Keynes

Re: Existing connection was forcibly closed by the remote ho

Post by stephenord »

Have turned off the Weatherlink option and all has been OK for a few days now. Thanks for the advice.

Stephen
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Existing connection was forcibly closed by the remote ho

Post by steve »

There's a possibility that my check is wrong for whether the connection is re-established after the periodic disconnect (i.e. the station may not actually have finished uploading to weatherlink.com) - see this thread https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=14974

When I've changed my code, it may fix this problem.
Steve
Locked