Thanks for your really quick reply Andrew. I agree with your suspicion about the web host which is why I tried uploading to a completely different one - with exactly the same result ! Also, this has been going on for nearly a week now so I'm not sure its going to just resolve itself sadly. I wonder if other weewx users are also experiencing this problem recently....? Regards, Paul
On Wednesday, September 19, 2018 at 2:47:38 PM UTC+1, Andrew Milner wrote: > > I had something similar the other day. I had only recently created a web > copy on an external host which ran fine for a few days then started to give > 'TYPE 200 now binary' errrors in my weewx log. I only saw this the next > day in my logwatch report. > > Interestengly it only lasted for a few hours. I did nothing and it has > not done it since. > > My suspicion it is something to do with some update applied by the web > host which either hiccups or is wrong and has to be backed out again. > > Whatever the cause, I did nothing and it seems to have corrected itself > > > > On Wednesday, 19 September 2018 16:08:17 UTC+3, Paul_N wrote: >> >> Hi all, for a number of months now, I've been successfully uploading (via >> FTP) the output of my weather station to my webspace - and until now, its >> worked perfectly. However, I'm now finding that, to varying degrees, the >> FTP process fails to upload some of the files. I've attached below the >> output from the system log and also the first part of the output obtained >> by running wee_reports with "debug = 2" turned on in the [[FTP]] section >> of weewx.conf. >> It looks like some kind of network/timing/timeout issue to me and so I've >> tried: >> >> 1/ cold-starting my RPi >> 2/ uploading to a completely different webserver >> 3/ rebooting my broadband router and checking my upload speed (running >> reliably at about 15 Mbps) >> 4/ increasing socket_timeout from 20 to 200 in weewx.conf >> >> >> ....and none of these seems to make any difference. Most times only the >> NOAA text files seem to fail to upload but there are occasions when other >> png and html files randomly fail to get uploaded. >> >> All suggestions gratefully received, thanks >> Paul >> >> ==================================================================== >> System Log output >> ------------------- >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: **** Error: 227 >> Entering Passive Mode (185,27,134,11,107,164) >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Attempt #1. >> Failed uploading /htdocs/Weather/NOAA/NOAA-2018.txt to ftp.byethost.com. >> Reason: 550 Can't create directory: File exists >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Attempt #2. >> Failed uploading /htdocs/Weather/NOAA/NOAA-2018.txt to ftp.byethost.com. >> Reason: 200 TYPE is now 8-bit binary >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Attempt #3. >> Failed uploading /htdocs/Weather/NOAA/NOAA-2018.txt to ftp.byethost.com. >> Reason: 200 TYPE is now 8-bit binary >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Failed to >> upload file /htdocs/Weather/NOAA/NOAA-2018.txt >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Attempt #1. >> Failed uploading /htdocs/Weather/NOAA/NOAA-2018-09.txt to >> ftp.byethost.com. Reason: 200 TYPE is now 8-bit binary >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Attempt #2. >> Failed uploading /htdocs/Weather/NOAA/NOAA-2018-09.txt to >> ftp.byethost.com. Reason: 200 TYPE is now 8-bit binary >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Attempt #3. >> Failed uploading /htdocs/Weather/NOAA/NOAA-2018-09.txt to >> ftp.byethost.com. Reason: 200 TYPE is now 8-bit binary >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpupload: Failed to >> upload file /htdocs/Weather/NOAA/NOAA-2018-09.txt >> Sep 19 13:46:15 raspberrypi wee_reports[2794]: ftpgenerator: ftp'd 1 >> files in 27.01 seconds >> >> ...and another example taken a few minutes later >> >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: ftpupload: Unable to >> create remote directory /htdocs/Weather/backgrounds >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: ftpgenerator: Caught >> exception <type 'exceptions.IOError'>: Unable to create remote directory >> /htdocs/Weather/backgrounds >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** Traceback >> (most recent call last): >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 325, in run >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** n = >> ftp_data.run() >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** File >> "/usr/share/weewx/weeutil/ftpupload.py", line 137, in run >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** >> self._make_remote_dir(ftp_server, remote_dir_path) >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** File >> "/usr/share/weewx/weeutil/ftpupload.py", line 240, in _make_remote_dir >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** raise >> IOError, "Unable to create remote directory %s" % remote_dir_path >> Sep 19 13:55:04 raspberrypi wee_reports[2835]: **** IOError: >> Unable to create remote directory /htdocs/Weather/backgrounds >> >> >> >> ====================================================================== >> Running wee_reports with debug=2 in [[FTP]] >> ------------------------------------------- >> Using configuration file /etc/weewx/weewx.conf >> Generating for all time >> *cmd* 'USER ******' >> *put* 'USER *******' >> *get* '331 *******OK. Password required\r\n' >> *resp* '331 ******OK. Password required' >> *cmd* 'PASS ************' >> *put* 'PASS ************\r\n' >> *get* '230-Your bandwidth usage is restricted\r\n' >> *get* '230 OK. Current restricted directory is /\r\n' >> *resp* '230-Your bandwidth usage is restricted\n230 OK. Current >> restricted directory is /' >> *cmd* 'MKD /htdocs/Weather' >> *put* 'MKD /htdocs/Weather\r\n' >> *get* "550 Can't create directory: File exists\r\n" >> *resp* "550 Can't create directory: File exists" >> *cmd* 'TYPE I' >> *put* 'TYPE I\r\n' >> *get* '200 TYPE is now 8-bit binary\r\n' >> *resp* '200 TYPE is now 8-bit binary' >> *cmd* 'PASV' >> *put* 'PASV\r\n' >> *get* '227 Entering Passive Mode (185,27,134,11,231,144)\r\n' >> *resp* '227 Entering Passive Mode (185,27,134,11,231,144)' >> *cmd* 'STOR /htdocs/Weather/daytempdew.png' >> *put* 'STOR /htdocs/Weather/daytempdew.png\r\n' >> *get* '150 Accepted data connection\r\n' >> *resp* '150 Accepted data connection' >> *get* '226-File successfully transferred\r\n' >> *get* '226 0.112 seconds (measured here), 54.25 Kbytes per second\r\n' >> *resp* '226-File successfully transferred\n226 0.112 seconds (measured >> here), 54.25 Kbytes per second' >> *cmd* 'TYPE I' >> *put* 'TYPE I\r\n' >> *get* '200 TYPE is now 8-bit binary\r\n' >> *resp* '200 TYPE is now 8-bit binary' >> *cmd* 'PASV' >> *put* 'PASV\r\n' >> *get* '227 Entering Passive Mode (185,27,134,11,153,58)\r\n' >> *resp* '227 Entering Passive Mode (185,27,134,11,153,58)' >> *cmd* 'STOR /htdocs/Weather/mobile.html' >> *put* 'STOR /htdocs/Weather/mobile.html\r\n' >> *get* '150 Accepted data connection\r\n' >> *resp* '150 Accepted data connection' >> *cmd* 'TYPE I' >> etc etc etc etc ................ >> >> =========================================================================== >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
