Page 1 of 2

Timed out trying to read data from the socket stream?

Posted: Wed 08 May 2019 2:05 am
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?

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

Posted: Wed 08 May 2019 2:15 am
by PaulMy
May not resolve your current issue but can't hurt... upgrade to latest MX.

Enjoy,
Paul

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

Posted: Wed 08 May 2019 11:24 am
by mcrossley
Post your MXdiags folder please, not a lot we can do without that.

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

Posted: Wed 08 May 2019 5:29 pm
by Mrc
Ok here's the folder.

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

Posted: Wed 08 May 2019 9:12 pm
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.

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

Posted: Wed 08 May 2019 10:11 pm
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"

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

Posted: Sun 12 May 2019 2:45 pm
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..

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

Posted: Mon 13 May 2019 8:14 am
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?

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

Posted: Mon 13 May 2019 9:30 pm
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?

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

Posted: Mon 13 May 2019 9:31 pm
by mcrossley
Mrc wrote: Sun 12 May 2019 2:45 pm Deleted everything in the web server
Did you actually delete the Saa/ folder?

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

Posted: Wed 15 May 2019 7:47 am
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..

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

Posted: Wed 15 May 2019 9:43 am
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.

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

Posted: Wed 15 May 2019 10:00 am
by freddie
Doesn't this happen when you have the FTP rename option ticked?

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

Posted: Wed 15 May 2019 2:28 pm
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"

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

Posted: Wed 15 May 2019 4:19 pm
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.