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 4017) - 17 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

Timed out trying to read data from the socket 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

Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Timed out trying to read data from the socket stream?

Post by Mrc »

Hello. Simple question: Had a blackout, after that cumulus isn't uploading anything. Otherwise it works normal. Log says: Timed out trying to read data from the socket stream.
Restart won't help. Windows 10 Cumulus build 3043. I tried cumulus 1 and it works.
Any idea what to do?
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Timed out trying to read data from the socket stream?

Post by PaulMy »

May not resolve your current issue but can't hurt... upgrade to latest MX.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

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

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

Post your MXdiags folder please, not a lot we can do without that.
Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Re: Timed out trying to read data from the socket stream?

Post by Mrc »

Ok here's the folder.
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

It would be a good idea to upgrade to the latest version as I added more logging and resilience to the FTP process. Once you have upgraded, turn on FTP logging and post that log please.
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

First though you need to delete the file "/public_html/Saa/.in.realtimegauges.txttmp" off your web server. That is preventing further uploads of that file. Same problem with.. "/public_html/Saa/.in.realtime.txttmp"

The logs says they are hidden files, I've never seen them before, the usual files to remove are /public_html/Saa/realtimegauges.txttmp" and "/public_html/Saa/realtime.txttmp"
Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Re: Timed out trying to read data from the socket stream?

Post by Mrc »

Well, tried updating, still doesn't work. Tried these things:

Updated to build 3050
Deleted old folder, installed build 3050
Deleted old folder and tried old backup version
Deleted everything in the web server

None of these helped. Noticed that /public_html/Saa/realtimegauges.txttmp" and "/public_html/Saa/realtime.txttmp keep appearing in the web server. Deleted them many times but they are always back. Quite pissed off right now.. :(

Edit. The gauges.htm doesn't work anymore..
You do not have the required permissions to view the files attached to this post.
Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Re: Timed out trying to read data from the socket stream?

Post by Mrc »

Ftplog says:

STOR Saa/realtime.txttmp
550 Saa/realtime.txttmp: Temporary hidden file /public_html/Saa/.in.realtime.txttmp. already exists
2019-05-13 11.04.56.809 Uploading C:\CumulusMX\web\realtimegaugesT.txttmp to Saa/realtimegauges.txt
TYPE I
200 Type set to I
SIZE Saa/realtimegauges.txttmp
550 Saa/realtimegauges.txttmp: No such file or directory
PORT 192,168,1,177,197,132
200 PORT command successful
STOR Saa/realtimegauges.txttmp
550 Saa/realtimegauges.txttmp: Temporary hidden file /public_html/Saa/.in.realtimegauges.txttmp. already exists
Disposing FtpSocketStream...
Disposing FtpSocketStream...
2019-05-13 11.05.08.172 Uploading web\pressdata.json to /public_html/Saa/pressdata.json

Does anyone have any idea what to do? Reinstall windows?
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

The problem is here...

STOR Saa/realtimegauges.txttmp
550 Saa/realtimegauges.txttmp: Temporary hidden file /public_html/Saa/.in.realtimegauges.txttmp. already exists

Cumulus is asking the FTP server to save file " Saa/realtimegauges.txttmp".
The FTP server is erroring saying the file "Saa/.in.realtimegauges.txttmp" already exists and fails.

I have no idea where that file ".in.realtimegauges.txttmp" is coming from. The FTP server must be generating it.

You could try disabling the "FTP Rename" option, if that does not work then try enabling "Delete before upload". Neither of these ideal solutions though.

But it looks to me like the problem is not at your weather PC end, it is with the FTP server. Can you ask your web hoster to look into this?
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

Mrc wrote: Sun 12 May 2019 2:45 pm Deleted everything in the web server
Did you actually delete the Saa/ folder?
Mrc
Posts: 57
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Ecowitt hp2551
Operating System: Windows 10
Location: Finland

Re: Timed out trying to read data from the socket stream?

Post by Mrc »

mcrossley wrote: Mon 13 May 2019 9:31 pm
Mrc wrote: Sun 12 May 2019 2:45 pm Deleted everything in the web server
Did you actually delete the Saa/ folder?
Yes i deleted whole folder. Didn't help. Tried another folder also, didn't help either..
I noticed that Mx creates .in.realtimegauges.txttmp, .in.index.htmtmp, .in.today.htmtmp, .in.tempdata.jsontmp... and many other files like those and then removes them.

I tried cumulus 1 again and it works normally. Quite strange case..
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

Stumped, I had a look at the FTP component source and I cannot find where it would create those files. And the snippet of FTPlog shows it is uploading a different file (STOR command) from the filename that the FTP server reports the error on.

Please post the FTPlog file.
freddie
Posts: 2434
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: Timed out trying to read data from the socket stream?

Post by freddie »

Doesn't this happen when you have the FTP rename option ticked?
Freddie
Image
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Timed out trying to read data from the socket stream?

Post by mcrossley »

The rename option uploads the "<filename>tmp" file and renames it to "<filename>"

The FTP server *is* being told to store "STOR <filename>tmp" but errors on a file called ".in.<filename>tmp"
freddie
Posts: 2434
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: Timed out trying to read data from the socket stream?

Post by freddie »

Sorry, I didn't spot that you had already mentioned FTP rename setting.

I concur - it looks as if the FTP server is at fault. Possibly not deleting its own tmp file from a previous uploàd.
Freddie
Image
Post Reply