Welcome to the Cumulus Support forum.

Latest Cumulus MX release v3.0.0 build 3050 - 1 May 2019.
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014

See the Wiki for downloading either version.

Timed out trying to read data from the socket stream?

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.

Moderator: mcrossley

Mrc
Posts: 32
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Weatherwise WS-1090
Operating System: Windows 10
Location: Finland

Timed out trying to read data from the socket stream?

Post by Mrc » Wed 08 May 2019 2:05 am

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: 1891
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis Vantage Pro 2+ w/Envoy USB
Operating System: Windows-8
Location: Komoka, ON Canada
Contact:

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

Post by PaulMy » Wed 08 May 2019 2:15 am

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

Enjoy,
Paul

User avatar
mcrossley
Posts: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » Wed 08 May 2019 11:24 am

Post your MXdiags folder please, not a lot we can do without that.

Mrc
Posts: 32
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Weatherwise WS-1090
Operating System: Windows 10
Location: Finland

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

Post by Mrc » Wed 08 May 2019 5:29 pm

Ok here's the folder.
You do not have the required permissions to view the files attached to this post.

User avatar
mcrossley
Posts: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » Wed 08 May 2019 9:12 pm

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: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » Wed 08 May 2019 10:11 pm

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: 32
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Weatherwise WS-1090
Operating System: Windows 10
Location: Finland

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

Post by Mrc » Sun 12 May 2019 2:45 pm

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: 32
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Weatherwise WS-1090
Operating System: Windows 10
Location: Finland

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

Post by Mrc » Mon 13 May 2019 8:14 am

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: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » Mon 13 May 2019 9:30 pm

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: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » 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?

Mrc
Posts: 32
Joined: Mon 11 Apr 2016 12:39 pm
Weather Station: Weatherwise WS-1090
Operating System: Windows 10
Location: Finland

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

Post by Mrc » Wed 15 May 2019 7:47 am

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: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » Wed 15 May 2019 9:43 am

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: 437
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Dorrington, Shropshire
Contact:

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

Post by freddie » Wed 15 May 2019 10:00 am

Doesn't this happen when you have the FTP rename option ticked?
Freddie
Image

User avatar
mcrossley
Posts: 5572
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley » Wed 15 May 2019 2:28 pm

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: 437
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: GNU/Linux (Ubuntu 18.04)
Location: Dorrington, Shropshire
Contact:

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

Post by freddie » Wed 15 May 2019 4:19 pm

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