Page 3 of 3

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 8:33 am
by Rylands
From MXdiags folder...

2021-03-30 19:01:41.620 FTP[73]: Attempting realtime FTP connect to host eyesontheweather.com.au on port 21
2021-03-30 19:01:50.369 FTP[73]: Realtime FTP connected
2021-03-30 19:01:50.575 Realtime[73]: Uploading - realtime.txt
2021-03-30 19:01:52.141 FTP[73]: Error renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt :
2021-03-30 19:01:52.165 Realtime[73]: Uploading - realtimegauges.txt
2021-03-30 19:01:52.175 FTP[73]: Error uploading web/realtimegauges.txt to /cumulus//realtimegauges.txt : Object reference not set to an instance of an object.
2021-03-30 19:02:11.141 LOOP: 33 - Expected data not received, expected 99 bytes, got 0
2021-03-30 19:02:11.620 FTP[74]: Attempting realtime FTP connect to host eyesontheweather.com.au on port 21
2021-03-30 19:02:14.143 SendLoopCommand: Starting - LPS 2 1
2021-03-30 19:02:14.144 SendLoopCommand: Error sending LOOP command [LPS 2 1]: Unable to write data to the transport connection: The socket has been shut down.
2021-03-30 19:02:14.144 InitTCP: Connecting to the station
2021-03-30 19:02:15.155 InitTCP: Flushing input stream
2021-03-30 19:02:17.778 FTP[74]: Realtime FTP connected
2021-03-30 19:02:17.896 Realtime[74]: Uploading - realtime.txt
2021-03-30 19:02:18.810 FTP[74]: Error renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt :
2021-03-30 19:02:18.836 Realtime[74]: Uploading - realtimegauges.txt
2021-03-30 19:02:18.847 FTP[74]: Error uploading web/realtimegauges.txt to /cumulus//realtimegauges.txt : Unable to read data from the transport connection: The socket has been shut down.

Chain of information from ftplog.txt is long, however this part appears relevant:

# GetWorkingDirectory()
Command: PWD
Response: 257 "/" is your current location
2021-03-30 19:26:14.418 Realtime[122]: Uploading - realtime.txt

# OpenWrite("/cumulus//realtime.txttmp", Binary)
Command: TYPE I
Response: 200 TYPE is now 8-bit binary

# GetFileSize("/cumulus//realtime.txttmp")
Command: SIZE /cumulus/realtime.txttmp
Response: 213 0

# OpenPassiveDataStream(AutoPassive, "STOR /cumulus/realtime.txttmp", 0)
Command: EPSV
Response: 229 Extended Passive mode OK (|||34638|)
Status: Connecting to 35.213.210.37:34638
Command: STOR /cumulus/realtime.txttmp
Response: 150 Accepted data connection
Status: FTPS Authentication Successful
Status: Time to activate encryption: 0h 0m 0s. Total Seconds: 0.186024.
2021-03-30 19:26:14.990 FTP[122]: Uploading realtime.txt to /cumulus//realtime.txttmp2021-03-30 19:26:14.995 FTP[122]: Uploaded realtime.txtStatus: Disposing FtpSocketStream...
Status: Disposing FtpSocketStream...
2021-03-30 19:26:15.012 FTP[122]: Renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt
# Rename("/cumulus//realtime.txttmp", "/cumulus//realtime.txt")
Command: RNFR /cumulus/realtime.txttmp
2021-03-30 19:26:15.027 FTP[122]: Error renaming /cumulus//realtime.txttmp to /cumulus//realtime.txt :

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 8:51 am
by billy
Rylands wrote: Tue 30 Mar 2021 4:39 am My advice - if anybody is looking for a new host, stay away from siteground.
I have been with siteground for 5 years or so and not had any ftp problems. But their plans aren't cheap - although the introductory offer was - so I am not advocating for them!

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 8:57 am
by billy
... have you set up an ftp account? - it will give you a username probably something like yourusername_XXXXX@yoursite

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 9:42 am
by billy
OK, I have gone back and quickly read some of the earlier posts. I hope I am not telling you how to suck eggs but for what it's worth these are my key cumulus settings for web/ftp site - which works for my siteground hosted site:

Host name: tillyspaws.com
Ftp port: 21
Remote ftp directory: /vp2weather (Note the leading "/". And my "standard" cumulus site is in "vp2weather", which is a subdirectory of public_html. If yours is in the root of your website you may only need a "/" for this)
Username: "mysitegroundusername_randomletters&numbers@tillyspaws.com" (the bit before the @ is generated in siteground's ftp accounts page which you must setup before anything will work :))

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 9:57 am
by HansR
Rylands wrote: Tue 30 Mar 2021 8:33 am Status: FTPS Authentication Successful
Well, at least now it is clear you are using FTPS (which was not clear from the responses to freddie's questions.
That at least seems a bit different from my issue.

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 10:03 am
by billy
and I use plain old vanilla ftp - ie "0"

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 10:26 am
by Rylands
Billy,
Host name: tillyspaws.com
Ftp port: 21
Remote ftp directory: /vp2weather (Note the leading "/". And my "standard" cumulus site is in "vp2weather", which is a subdirectory of public_html. If yours is in the root of your website you may only need a "/" for this)
When setting up an ftp account with Siteground, the home path defaults to /

Is this what you have?

I am creating a subdirectory weather in public_html, and will have my remote ftp directory set to /weather.

Let's see what happens....

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 11:06 am
by mcrossley
My view is the first thing to sort out is what path to use.
Then if you are still getting timeouts, try disabling Extended Passive mode under advanced settings. That will take effect at the next interval update, but does affect the real time FTP until you restart CMX, or the real time connection is aborted and re-opened.

Re: Uploading of realtime.txt via ftp

Posted: Tue 30 Mar 2021 11:26 am
by billy
Rylands wrote: Tue 30 Mar 2021 10:26 am When setting up an ftp account with Siteground, the home path defaults to /

Is this what you have?
Mine is “/tillyspaws.com/public_html/“

Re: Uploading of realtime.txt via ftp

Posted: Wed 31 Mar 2021 2:04 am
by Rylands
A thousand thanks, and lifetime of gratitude to @billy.

Due to some strange setup at my host site, there was an issue with the ftp path that is now resolved.

I am happily getting my realtime.txt file, and can now start ironing out the other issues I am having with my site.

Thanks to all who have contributed to assisting me with this problem.