Re: Uploading of realtime.txt via ftp
Posted: Tue 30 Mar 2021 8:33 am
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 :
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 :