Re: [weewx-user] FTP upload Problem

2022-10-03 Thread PeterGill
Thought so. Thanks!!

On Thursday, September 29, 2022 at 8:00:59 PM UTC+2 tke...@gmail.com wrote:

> If you look a little further down the RFC 959 standard that your support 
> team linked to, you'll see:
>
>   The prior existence of a subdirectory with the same name is an
>   error, and the server must return an "access denied" error reply
>   in that case.
>
>  CWD /usr/dm
>  200 directory changed to /usr/dm
>  MKD pathname
>  521-"/usr/dm/pathname" directory already exists;
>  521 taking no action.
>
>   The failure replies for MKD are analogous to its file  creating
>   cousin, STOR.  Also, an "access denied" return is given if a file
>   name with the same name as the subdirectory will conflict with the
>   creation of the subdirectory (this is a problem on UNIX, but
>   shouldn't be one on TOPS-20).
>
>
> But it doesn't matter because WeeWX looks for either a 550 or 521.
>
> On Thu, Sep 29, 2022 at 9:16 AM PeterGill  wrote:
>
>> TK,
>>  if you have time I would just like to get your comment on the reply I 
>> got from my providers tech support quoted below. They claim a MKD command 
>> for an existing directory produces a 550 error, not a 521. If that´s true I 
>> assume WeeWX handles that as well. Anyway, the uploads suddenly started to 
>> work at 2pm the 27th of Sep without me doing anything at all. I have asked 
>> the tech support again if they have any idea on why.
>>
>> Here is the response from the support
>>
>> --
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *We actually got an update from our Technical Team. According to them, 
>> the relevant team tried to recheck this and they have even used Pure-FTPd 
>> and it's giving the same error message as we do and the old proxy:   
>> ```ftp> mkdir somefile 550 Can't create directory: File exists```   The RFC 
>> for FTP says the codes mkd can give is   MKD 257 500, 501, 502, 421, 530, 
>> 550 550 if it failed to create   Reference: 
>> https://datatracker.ietf.org/doc/html/rfc959 
>>    And just to make sure, 
>> they have  tested it in one of our server which still has the old setup*
>>
>> *---*
>>
>> As said, just look at this if you have time
>>
>> On Wednesday, September 28, 2022 at 2:09:35 PM UTC+2 tke...@gmail.com 
>> wrote:
>>
>>> Glad it ended well!
>>>
>>> On Wed, Sep 28, 2022 at 4:45 AM PeterGill  wrote:
>>>
 Thanks again TK and again you were right.  The problem was apparently 
 on the provider side. After reaching out to their support it suddenly 
 started to work again. I´ll see if I can get a response from them on the 
 reasons why. If so  I´ll post it here for reference.

 /PG

  

 On Tuesday, September 27, 2022 at 12:19:18 AM UTC+2 tke...@gmail.com 
 wrote:

> A MKD command for an existing subdirectory should simply produce a 521 
> error. WeeWX expects this and, if it occurs, moves on. If the FTP server 
> is 
> behaving properly, it certainly won't terminate the session.
>
> Besides, the error is occurring during a file upload, not while making 
> a directory.
>
> What FTP server is your host using?
>
> -tk
>
> On Mon, Sep 26, 2022 at 2:56 PM PeterGill  wrote:
>
>> Hi again,
>>
>> Now the problem is back but in a different way, Suddenly and again 
>> without any change from my side files are not uploaded with FTP to my 
>> provider. After a lengthy discussion with their support they claim: 
>>
>> " Our Tech Team was able to fetch the logs for FTP & SFTP yesterday 
>> and today. They found that you already have a 'weather'' subdirectory in 
>> your webspace and as per logs, you are doing "mkdir" for the 'weather' 
>> subdirectory and it fails due to it already exists."
>>
>> I have tried with deleting the "weather" subdirectory on my FTP site 
>> to enable a full rebuild. The directory is recreated and 
>> "celestial.html" 
>> is uploaded and present on the FTP-site but then it stops. 
>>
>> Error log is as follows:
>>
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 
>> Attempting connection to ftp.myftp.se
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 
>> Connected to ftp.myftp.se
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0 
>> ./celestial.html 
>> c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 
>> Uploaded file /var/www/html/weewx/celestial.html to /customers/d/4/7/
>> myftp.se/httpd.www/weather/celestial.html
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1 

Re: [weewx-user] FTP upload Problem

2022-09-29 Thread Tom Keffer
If you look a little further down the RFC 959 standard that your support
team linked to, you'll see:

  The prior existence of a subdirectory with the same name is an
  error, and the server must return an "access denied" error reply
  in that case.

 CWD /usr/dm
 200 directory changed to /usr/dm
 MKD pathname
 521-"/usr/dm/pathname" directory already exists;
 521 taking no action.

  The failure replies for MKD are analogous to its file  creating
  cousin, STOR.  Also, an "access denied" return is given if a file
  name with the same name as the subdirectory will conflict with the
  creation of the subdirectory (this is a problem on UNIX, but
  shouldn't be one on TOPS-20).


But it doesn't matter because WeeWX looks for either a 550 or 521.

On Thu, Sep 29, 2022 at 9:16 AM PeterGill  wrote:

> TK,
>  if you have time I would just like to get your comment on the reply I got
> from my providers tech support quoted below. They claim a MKD command for
> an existing directory produces a 550 error, not a 521. If that´s true I
> assume WeeWX handles that as well. Anyway, the uploads suddenly started to
> work at 2pm the 27th of Sep without me doing anything at all. I have asked
> the tech support again if they have any idea on why.
>
> Here is the response from the support
>
> --
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *We actually got an update from our Technical Team. According to them, the
> relevant team tried to recheck this and they have even used Pure-FTPd and
> it's giving the same error message as we do and the old proxy:   ```ftp>
> mkdir somefile 550 Can't create directory: File exists```   The RFC for FTP
> says the codes mkd can give is   MKD 257 500, 501, 502, 421, 530, 550 550
> if it failed to create   Reference:
> https://datatracker.ietf.org/doc/html/rfc959
>    And just to make sure,
> they have  tested it in one of our server which still has the old setup*
>
> *---*
>
> As said, just look at this if you have time
>
> On Wednesday, September 28, 2022 at 2:09:35 PM UTC+2 tke...@gmail.com
> wrote:
>
>> Glad it ended well!
>>
>> On Wed, Sep 28, 2022 at 4:45 AM PeterGill  wrote:
>>
>>> Thanks again TK and again you were right.  The problem was apparently on
>>> the provider side. After reaching out to their support it suddenly started
>>> to work again. I´ll see if I can get a response from them on the reasons
>>> why. If so  I´ll post it here for reference.
>>>
>>> /PG
>>>
>>>
>>>
>>> On Tuesday, September 27, 2022 at 12:19:18 AM UTC+2 tke...@gmail.com
>>> wrote:
>>>
 A MKD command for an existing subdirectory should simply produce a 521
 error. WeeWX expects this and, if it occurs, moves on. If the FTP server is
 behaving properly, it certainly won't terminate the session.

 Besides, the error is occurring during a file upload, not while making
 a directory.

 What FTP server is your host using?

 -tk

 On Mon, Sep 26, 2022 at 2:56 PM PeterGill  wrote:

> Hi again,
>
> Now the problem is back but in a different way, Suddenly and again
> without any change from my side files are not uploaded with FTP to my
> provider. After a lengthy discussion with their support they claim:
>
> " Our Tech Team was able to fetch the logs for FTP & SFTP yesterday
> and today. They found that you already have a 'weather'' subdirectory in
> your webspace and as per logs, you are doing "mkdir" for the 'weather'
> subdirectory and it fails due to it already exists."
>
> I have tried with deleting the "weather" subdirectory on my FTP site
> to enable a full rebuild. The directory is recreated and "celestial.html"
> is uploaded and present on the FTP-site but then it stops.
>
> Error log is as follows:
>
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload:
> Attempting connection to ftp.myftp.se
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload:
> Connected to ftp.myftp.se
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0
> ./celestial.html
> c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload:
> Uploaded file /var/www/html/weewx/celestial.html to /customers/d/4/7/
> myftp.se/httpd.www/weather/celestial.html
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1
> ./weekvolt.png
> 3de9d29fe23433bab4b9e084292883e5ac2914786a3d8673b78125d757266714
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/weekvolt.png to server ftp.myftp.se.
> Reason: ''
> Sep 26 23:30:28 Homeserver 

Re: [weewx-user] FTP upload Problem

2022-09-29 Thread PeterGill
TK,
 if you have time I would just like to get your comment on the reply I got 
from my providers tech support quoted below. They claim a MKD command for 
an existing directory produces a 550 error, not a 521. If that´s true I 
assume WeeWX handles that as well. Anyway, the uploads suddenly started to 
work at 2pm the 27th of Sep without me doing anything at all. I have asked 
the tech support again if they have any idea on why.

Here is the response from the support
--














*We actually got an update from our Technical Team. According to them, the 
relevant team tried to recheck this and they have even used Pure-FTPd and 
it's giving the same error message as we do and the old proxy:   ```ftp> 
mkdir somefile 550 Can't create directory: File exists```   The RFC for FTP 
says the codes mkd can give is   MKD 257 500, 501, 502, 421, 530, 550 550 
if it failed to create   Reference: 
https://datatracker.ietf.org/doc/html/rfc959 
   And just to make sure, 
they have  tested it in one of our server which still has the old setup*
*---*

As said, just look at this if you have time

On Wednesday, September 28, 2022 at 2:09:35 PM UTC+2 tke...@gmail.com wrote:

> Glad it ended well!
>
> On Wed, Sep 28, 2022 at 4:45 AM PeterGill  wrote:
>
>> Thanks again TK and again you were right.  The problem was apparently on 
>> the provider side. After reaching out to their support it suddenly started 
>> to work again. I´ll see if I can get a response from them on the reasons 
>> why. If so  I´ll post it here for reference.
>>
>> /PG
>>
>>  
>>
>> On Tuesday, September 27, 2022 at 12:19:18 AM UTC+2 tke...@gmail.com 
>> wrote:
>>
>>> A MKD command for an existing subdirectory should simply produce a 521 
>>> error. WeeWX expects this and, if it occurs, moves on. If the FTP server is 
>>> behaving properly, it certainly won't terminate the session.
>>>
>>> Besides, the error is occurring during a file upload, not while making a 
>>> directory.
>>>
>>> What FTP server is your host using?
>>>
>>> -tk
>>>
>>> On Mon, Sep 26, 2022 at 2:56 PM PeterGill  wrote:
>>>
 Hi again,

 Now the problem is back but in a different way, Suddenly and again 
 without any change from my side files are not uploaded with FTP to my 
 provider. After a lengthy discussion with their support they claim: 

 " Our Tech Team was able to fetch the logs for FTP & SFTP yesterday and 
 today. They found that you already have a 'weather'' subdirectory in your 
 webspace and as per logs, you are doing "mkdir" for the 'weather' 
 subdirectory and it fails due to it already exists."

 I have tried with deleting the "weather" subdirectory on my FTP site to 
 enable a full rebuild. The directory is recreated and "celestial.html" is 
 uploaded and present on the FTP-site but then it stops. 

 Error log is as follows:

 Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 
 Attempting connection to ftp.myftp.se
 Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 
 Connected to ftp.myftp.se
 Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0 
 ./celestial.html 
 c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
 Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Uploaded 
 file /var/www/html/weewx/celestial.html to /customers/d/4/7/
 myftp.se/httpd.www/weather/celestial.html
 Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1 
 ./weekvolt.png 
 3de9d29fe23433bab4b9e084292883e5ac2914786a3d8673b78125d757266714
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weeutil.ftpupload: Failed 
 uploading /var/www/html/weewx/weekvolt.png to server ftp.myftp.se. 
 Reason: ''
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
 ftpgenerator: (2): caught exception '': 
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
   Traceback (most recent call last):
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
   n = ftp_data.run()
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
 File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
   ftp_server.storbinary(stor_cmd, fd)
 Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 503, in storbinary
 Sep 26 23:30:28 Homeserver weewx[568] ERROR 

Re: [weewx-user] FTP upload Problem

2022-09-28 Thread Tom Keffer
Glad it ended well!

On Wed, Sep 28, 2022 at 4:45 AM PeterGill  wrote:

> Thanks again TK and again you were right.  The problem was apparently on
> the provider side. After reaching out to their support it suddenly started
> to work again. I´ll see if I can get a response from them on the reasons
> why. If so  I´ll post it here for reference.
>
> /PG
>
>
>
> On Tuesday, September 27, 2022 at 12:19:18 AM UTC+2 tke...@gmail.com
> wrote:
>
>> A MKD command for an existing subdirectory should simply produce a 521
>> error. WeeWX expects this and, if it occurs, moves on. If the FTP server is
>> behaving properly, it certainly won't terminate the session.
>>
>> Besides, the error is occurring during a file upload, not while making a
>> directory.
>>
>> What FTP server is your host using?
>>
>> -tk
>>
>> On Mon, Sep 26, 2022 at 2:56 PM PeterGill  wrote:
>>
>>> Hi again,
>>>
>>> Now the problem is back but in a different way, Suddenly and again
>>> without any change from my side files are not uploaded with FTP to my
>>> provider. After a lengthy discussion with their support they claim:
>>>
>>> " Our Tech Team was able to fetch the logs for FTP & SFTP yesterday and
>>> today. They found that you already have a 'weather'' subdirectory in your
>>> webspace and as per logs, you are doing "mkdir" for the 'weather'
>>> subdirectory and it fails due to it already exists."
>>>
>>> I have tried with deleting the "weather" subdirectory on my FTP site to
>>> enable a full rebuild. The directory is recreated and "celestial.html" is
>>> uploaded and present on the FTP-site but then it stops.
>>>
>>> Error log is as follows:
>>>
>>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload:
>>> Attempting connection to ftp.myftp.se
>>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Connected
>>> to ftp.myftp.se
>>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0
>>> ./celestial.html
>>> c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
>>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Uploaded
>>> file /var/www/html/weewx/celestial.html to /customers/d/4/7/
>>> myftp.se/httpd.www/weather/celestial.html
>>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1
>>> ./weekvolt.png
>>> 3de9d29fe23433bab4b9e084292883e5ac2914786a3d8673b78125d757266714
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weeutil.ftpupload: Failed
>>> uploading /var/www/html/weewx/weekvolt.png to server ftp.myftp.se.
>>> Reason: ''
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> ftpgenerator: (2): caught exception '':
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   Traceback (most recent call last):
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   n = ftp_data.run()
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   ftp_server.storbinary(stor_cmd, fd)
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> File "/usr/lib/python3.7/ftplib.py", line 503, in storbinary
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   self.voidcmd('TYPE I')
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   return self.voidresp()
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   resp = self.getresp()
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> File "/usr/lib/python3.7/ftplib.py", line 247, in getresp
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   raise error_proto(resp)
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>>   ftplib.error_proto
>>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>>> ftpgenerator: Upload failed
>>>
>>> Any help would be highly appreciated!
>>> On Saturday, September 17, 2022 at 3:16:25 AM UTC+2 Steve2Q wrote:
>>>
 Peter..you are very welcome. I hope I saved you saved some time and
 aggrevation.

 On Friday, September 16, 2022 at 3:58:52 AM UTC-4 PeterGill wrote:

> Steve, it turned out you were right, the problem was at my provider
> side. Problem solved. Thanks for engaging!
>
> On Thursday, September 15, 2022 at 9:56:04 PM UTC+2 PeterGill wrote:
>
>> Thanks Steve, I´m talking to my provider right now and I´ll update
>> 

Re: [weewx-user] FTP upload Problem

2022-09-28 Thread PeterGill
Thanks again TK and again you were right.  The problem was apparently on 
the provider side. After reaching out to their support it suddenly started 
to work again. I´ll see if I can get a response from them on the reasons 
why. If so  I´ll post it here for reference.

/PG

 

On Tuesday, September 27, 2022 at 12:19:18 AM UTC+2 tke...@gmail.com wrote:

> A MKD command for an existing subdirectory should simply produce a 521 
> error. WeeWX expects this and, if it occurs, moves on. If the FTP server is 
> behaving properly, it certainly won't terminate the session.
>
> Besides, the error is occurring during a file upload, not while making a 
> directory.
>
> What FTP server is your host using?
>
> -tk
>
> On Mon, Sep 26, 2022 at 2:56 PM PeterGill  wrote:
>
>> Hi again,
>>
>> Now the problem is back but in a different way, Suddenly and again 
>> without any change from my side files are not uploaded with FTP to my 
>> provider. After a lengthy discussion with their support they claim: 
>>
>> " Our Tech Team was able to fetch the logs for FTP & SFTP yesterday and 
>> today. They found that you already have a 'weather'' subdirectory in your 
>> webspace and as per logs, you are doing "mkdir" for the 'weather' 
>> subdirectory and it fails due to it already exists."
>>
>> I have tried with deleting the "weather" subdirectory on my FTP site to 
>> enable a full rebuild. The directory is recreated and "celestial.html" is 
>> uploaded and present on the FTP-site but then it stops. 
>>
>> Error log is as follows:
>>
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Attempting 
>> connection to ftp.myftp.se
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Connected 
>> to ftp.myftp.se
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0 
>> ./celestial.html 
>> c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Uploaded 
>> file /var/www/html/weewx/celestial.html to /customers/d/4/7/
>> myftp.se/httpd.www/weather/celestial.html
>> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1 
>> ./weekvolt.png 
>> 3de9d29fe23433bab4b9e084292883e5ac2914786a3d8673b78125d757266714
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/weekvolt.png to server ftp.myftp.se. 
>> Reason: ''
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': 
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   Traceback (most recent call last):
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   n = ftp_data.run()
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   ftp_server.storbinary(stor_cmd, fd)
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 503, in storbinary
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   self.voidcmd('TYPE I')
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   return self.voidresp()
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   resp = self.getresp()
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 247, in getresp
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   raise error_proto(resp)
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>>   ftplib.error_proto
>> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
>> ftpgenerator: Upload failed
>>
>> Any help would be highly appreciated!
>> On Saturday, September 17, 2022 at 3:16:25 AM UTC+2 Steve2Q wrote:
>>
>>> Peter..you are very welcome. I hope I saved you saved some time and 
>>> aggrevation. 
>>>
>>> On Friday, September 16, 2022 at 3:58:52 AM UTC-4 PeterGill wrote:
>>>
 Steve, it turned out you were right, the problem was at my provider 
 side. Problem solved. Thanks for engaging!

 On Thursday, September 15, 2022 at 9:56:04 PM UTC+2 PeterGill wrote:

> Thanks Steve, I´m talking to my provider right now and I´ll update 
> here if the problem is with 

Re: [weewx-user] FTP upload Problem

2022-09-26 Thread Tom Keffer
A MKD command for an existing subdirectory should simply produce a 521
error. WeeWX expects this and, if it occurs, moves on. If the FTP server is
behaving properly, it certainly won't terminate the session.

Besides, the error is occurring during a file upload, not while making a
directory.

What FTP server is your host using?

-tk

On Mon, Sep 26, 2022 at 2:56 PM PeterGill  wrote:

> Hi again,
>
> Now the problem is back but in a different way, Suddenly and again without
> any change from my side files are not uploaded with FTP to my provider.
> After a lengthy discussion with their support they claim:
>
> " Our Tech Team was able to fetch the logs for FTP & SFTP yesterday and
> today. They found that you already have a 'weather'' subdirectory in your
> webspace and as per logs, you are doing "mkdir" for the 'weather'
> subdirectory and it fails due to it already exists."
>
> I have tried with deleting the "weather" subdirectory on my FTP site to
> enable a full rebuild. The directory is recreated and "celestial.html" is
> uploaded and present on the FTP-site but then it stops.
>
> Error log is as follows:
>
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Attempting
> connection to ftp.myftp.se
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Connected
> to ftp.myftp.se
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0
> ./celestial.html
> c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Uploaded
> file /var/www/html/weewx/celestial.html to /customers/d/4/7/
> myftp.se/httpd.www/weather/celestial.html
> Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1
> ./weekvolt.png
> 3de9d29fe23433bab4b9e084292883e5ac2914786a3d8673b78125d757266714
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/weekvolt.png to server ftp.myftp.se.
> Reason: ''
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> ftpgenerator: (2): caught exception '':
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   Traceback (most recent call last):
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   n = ftp_data.run()
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   ftp_server.storbinary(stor_cmd, fd)
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 503, in storbinary
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   self.voidcmd('TYPE I')
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   return self.voidresp()
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   resp = self.getresp()
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 247, in getresp
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   raise error_proto(resp)
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
>   ftplib.error_proto
> Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine:
> ftpgenerator: Upload failed
>
> Any help would be highly appreciated!
> On Saturday, September 17, 2022 at 3:16:25 AM UTC+2 Steve2Q wrote:
>
>> Peter..you are very welcome. I hope I saved you saved some time and
>> aggrevation.
>>
>> On Friday, September 16, 2022 at 3:58:52 AM UTC-4 PeterGill wrote:
>>
>>> Steve, it turned out you were right, the problem was at my provider
>>> side. Problem solved. Thanks for engaging!
>>>
>>> On Thursday, September 15, 2022 at 9:56:04 PM UTC+2 PeterGill wrote:
>>>
 Thanks Steve, I´m talking to my provider right now and I´ll update here
 if the problem is with them


 On Thursday, September 15, 2022 at 7:11:29 PM UTC+2 Steve2Q wrote:

> Peter..I had the exact same problem with DreamHost. For some reason
> they blocked my IP. They unblocked it yesterday afternoon, and FTP started
> working a few hours later.
>
>
> On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:
>
>> Thanks for the quick answer. Sorry for a stupid follow up question -
>> how do I make sure the right access permissions are set?
>>
>>
>> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com
>> 

Re: [weewx-user] FTP upload Problem

2022-09-26 Thread PeterGill
Hi again,

Now the problem is back but in a different way, Suddenly and again without 
any change from my side files are not uploaded with FTP to my provider. 
After a lengthy discussion with their support they claim: 

" Our Tech Team was able to fetch the logs for FTP & SFTP yesterday and 
today. They found that you already have a 'weather'' subdirectory in your 
webspace and as per logs, you are doing "mkdir" for the 'weather' 
subdirectory and it fails due to it already exists."

I have tried with deleting the "weather" subdirectory on my FTP site to 
enable a full rebuild. The directory is recreated and "celestial.html" is 
uploaded and present on the FTP-site but then it stops. 

Error log is as follows:

Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Attempting 
connection to ftp.myftp.se
Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Connected to 
ftp.myftp.se
Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 0 
./celestial.html 
c006bdaaa5145a308e2b5a1904f810fda268f86b0518f179d1f15f05f56b4526
Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: Uploaded 
file /var/www/html/weewx/celestial.html to 
/customers/d/4/7/myftp.se/httpd.www/weather/celestial.html
Sep 26 23:30:28 Homeserver weewx[568] DEBUG weeutil.ftpupload: 1 
./weekvolt.png 
3de9d29fe23433bab4b9e084292883e5ac2914786a3d8673b78125d757266714
Sep 26 23:30:28 Homeserver weewx[568] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/weekvolt.png to server ftp.myftp.se. Reason: 
''
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': 
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  n = ftp_data.run()
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 503, in storbinary
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  self.voidcmd('TYPE I')
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  return self.voidresp()
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  resp = self.getresp()
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 247, in getresp
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  raise error_proto(resp)
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
  ftplib.error_proto
Sep 26 23:30:28 Homeserver weewx[568] ERROR weewx.reportengine: 
ftpgenerator: Upload failed

Any help would be highly appreciated!
On Saturday, September 17, 2022 at 3:16:25 AM UTC+2 Steve2Q wrote:

> Peter..you are very welcome. I hope I saved you saved some time and 
> aggrevation. 
>
> On Friday, September 16, 2022 at 3:58:52 AM UTC-4 PeterGill wrote:
>
>> Steve, it turned out you were right, the problem was at my provider side. 
>> Problem solved. Thanks for engaging!
>>
>> On Thursday, September 15, 2022 at 9:56:04 PM UTC+2 PeterGill wrote:
>>
>>> Thanks Steve, I´m talking to my provider right now and I´ll update here 
>>> if the problem is with them
>>>
>>>
>>> On Thursday, September 15, 2022 at 7:11:29 PM UTC+2 Steve2Q wrote:
>>>
 Peter..I had the exact same problem with DreamHost. For some reason 
 they blocked my IP. They unblocked it yesterday afternoon, and FTP started 
 working a few hours later.


 On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:

> Thanks for the quick answer. Sorry for a stupid follow up question - 
> how do I make sure the right access permissions are set?
>
>
> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
> wrote:
>
>> I don't know why it would have changed, but make sure you have access 
>> permissions to whatever directory you are trying to upload to. 
>>
>> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>>
>>> Hi,
>>>
>>> Suddenly and out of the blue my ftp upload stopped working. The html 
>>> files are generated as expected in /var/www/html/weewx 

Re: [weewx-user] FTP upload problem just started... "no access"

2022-09-20 Thread Messy Potamia
I have commented out the FTP lines in both weewx.conf and am now using
the scp utility. It is working, as I told it to recursively take
everything under  public_html, and I don't think that leaves anything
out.
The provider has obviously hosed legacy FTP.



On Tue, Sep 20, 2022 at 2:38 PM Tom Keffer  wrote:
>
> There was another thread with just this same problem last week (FTP "550" 
> error). Take a look at it and see if it helps. If not, come back and we'll 
> try again.
>
> If the provider of your web server supports it, I would also recommend 
> switching to  rsync. Much faster and more reliable than FTP.
>
> On Tue, Sep 20, 2022 at 4:36 AM messyp...@gmail.com  
> wrote:
>>
>> This just started, nothing changed, I restarted weewx on the server just in 
>> case, but...
>> Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20 
>> 06:30:00 CDT (1663673400) to database 'weewx.sdb'
>> Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20 
>> 06:30:00 CDT (1663673400) to daily summary in 'weewx.sdb'
>> Sep 20 06:30:23 PI3BUSB weewx[9261]: cheetahgenerator: Generated 8 files for 
>> report SeasonsReport in 2.32 seconds
>> Sep 20 06:30:24 PI3BUSB weewx[9261]: imagegenerator: Generated 13 images for 
>> SeasonsReport in 0.90 seconds
>> Sep 20 06:30:24 PI3BUSB weewx[9261]: copygenerator: copied 0 files to 
>> /home/weewx/public_html
>> Sep 20 06:30:25 PI3BUSB weewx[9261]: ftpupload: Attempt #1. Failed uploading 
>> /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested action not 
>> taken. File unavailable (e.g., file not found, no access).
>> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #2. Failed uploading 
>> /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested action not 
>> taken. File unavailable (e.g., file not found, no access).
>> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #3. Failed uploading 
>> /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested action not 
>> taken. File unavailable (e.g., file not found, no access).
>> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Failed to upload file 
>> /daytempfeel.png
>> And it repeats this for every file in public_html. Started 3 days ago. I 
>> verified in public_html no file permissions have changed, and the files 
>> there are the current ones generated.
>> Anyone have any ideas?
>> Thanks  --"MP"
>>
>> --
>> 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 weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/4b65e1e2-2ede-4839-ba4e-d03903750905n%40googlegroups.com.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/P3BsOTgqq_c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEC5QxD8CvW4VAhg%3DAK-ACAjiNTB8-xEg9r2jjCuoOYyrg%40mail.gmail.com.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAB7-S77CrL7eSQJGjM7ZmysX%3Ds5Dpmzj3yDKN%2BUY03qX9ytS5w%40mail.gmail.com.


Re: [weewx-user] FTP upload problem just started... "no access"

2022-09-20 Thread Messy Potamia
The problem is that my website provider, one.com, changed their root
configuration and the way they handle ftp vs sftp and they don't know
the ramifications of it all just yet. It's obvious they broke it for
"scripted users using an automated path"... here's his response which
I think is boiler plate:
"In order to be able to show the same files as in SFTP, the file
structure changes so that / is no longer the webspace document root.
This might affect customers using an absolut path for
scripted/automated FTP up/downloads."
Last time I tried to use sftp in weewx 3.9.1 and 3.9.2, it wouldn't
work at all.

On Tue, Sep 20, 2022 at 2:38 PM Tom Keffer  wrote:
>
> There was another thread with just this same problem last week (FTP "550" 
> error). Take a look at it and see if it helps. If not, come back and we'll 
> try again.
>
> If the provider of your web server supports it, I would also recommend 
> switching to  rsync. Much faster and more reliable than FTP.
>
> On Tue, Sep 20, 2022 at 4:36 AM messyp...@gmail.com  
> wrote:
>>
>> This just started, nothing changed, I restarted weewx on the server just in 
>> case, but...
>> Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20 
>> 06:30:00 CDT (1663673400) to database 'weewx.sdb'
>> Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20 
>> 06:30:00 CDT (1663673400) to daily summary in 'weewx.sdb'
>> Sep 20 06:30:23 PI3BUSB weewx[9261]: cheetahgenerator: Generated 8 files for 
>> report SeasonsReport in 2.32 seconds
>> Sep 20 06:30:24 PI3BUSB weewx[9261]: imagegenerator: Generated 13 images for 
>> SeasonsReport in 0.90 seconds
>> Sep 20 06:30:24 PI3BUSB weewx[9261]: copygenerator: copied 0 files to 
>> /home/weewx/public_html
>> Sep 20 06:30:25 PI3BUSB weewx[9261]: ftpupload: Attempt #1. Failed uploading 
>> /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested action not 
>> taken. File unavailable (e.g., file not found, no access).
>> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #2. Failed uploading 
>> /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested action not 
>> taken. File unavailable (e.g., file not found, no access).
>> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #3. Failed uploading 
>> /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested action not 
>> taken. File unavailable (e.g., file not found, no access).
>> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Failed to upload file 
>> /daytempfeel.png
>> And it repeats this for every file in public_html. Started 3 days ago. I 
>> verified in public_html no file permissions have changed, and the files 
>> there are the current ones generated.
>> Anyone have any ideas?
>> Thanks  --"MP"
>>
>> --
>> 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 weewx-user+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/4b65e1e2-2ede-4839-ba4e-d03903750905n%40googlegroups.com.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/P3BsOTgqq_c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEC5QxD8CvW4VAhg%3DAK-ACAjiNTB8-xEg9r2jjCuoOYyrg%40mail.gmail.com.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAB7-S75mxxhTbROaPp2n0NjdNGmxb6h7Pw9Gz9Gm9BLvhejNTw%40mail.gmail.com.


Re: [weewx-user] FTP upload problem just started... "no access"

2022-09-20 Thread Tom Keffer
There was another thread
 with
just this same problem last week (FTP "550" error). Take a look at it and
see if it helps. If not, come back and we'll try again.

If the provider of your web server supports it, I would also recommend
switching to  rsync. Much faster and more reliable than FTP.

On Tue, Sep 20, 2022 at 4:36 AM messyp...@gmail.com 
wrote:

> This just started, nothing changed, I restarted weewx on the server just
> in case, but...
> Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20
> 06:30:00 CDT (1663673400) to database 'weewx.sdb'
> Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20
> 06:30:00 CDT (1663673400) to daily summary in 'weewx.sdb'
> Sep 20 06:30:23 PI3BUSB weewx[9261]: cheetahgenerator: Generated 8 files
> for report SeasonsReport in 2.32 seconds
> Sep 20 06:30:24 PI3BUSB weewx[9261]: imagegenerator: Generated 13 images
> for SeasonsReport in 0.90 seconds
> Sep 20 06:30:24 PI3BUSB weewx[9261]: copygenerator: copied 0 files to
> /home/weewx/public_html
> Sep 20 06:30:25 PI3BUSB weewx[9261]: ftpupload: Attempt #1. Failed
> uploading /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested
> action not taken. File unavailable (e.g., file not found, no access).
> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #2. Failed
> uploading /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested
> action not taken. File unavailable (e.g., file not found, no access).
> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #3. Failed
> uploading /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested
> action not taken. File unavailable (e.g., file not found, no access).
> Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Failed to upload file
> /daytempfeel.png
> And it repeats this for every file in public_html. Started 3 days ago. I
> verified in public_html no file permissions have changed, and the files
> there are the current ones generated.
> Anyone have any ideas?
> Thanks  --"MP"
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/4b65e1e2-2ede-4839-ba4e-d03903750905n%40googlegroups.com
> 
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEC5QxD8CvW4VAhg%3DAK-ACAjiNTB8-xEg9r2jjCuoOYyrg%40mail.gmail.com.


[weewx-user] FTP upload problem just started... "no access"

2022-09-20 Thread messyp...@gmail.com
This just started, nothing changed, I restarted weewx on the server just in 
case, but...
Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20 
06:30:00 CDT (1663673400) to database 'weewx.sdb'
Sep 20 06:30:20 PI3BUSB weewx[9261]: manager: Added record 2022-09-20 
06:30:00 CDT (1663673400) to daily summary in 'weewx.sdb'
Sep 20 06:30:23 PI3BUSB weewx[9261]: cheetahgenerator: Generated 8 files 
for report SeasonsReport in 2.32 seconds
Sep 20 06:30:24 PI3BUSB weewx[9261]: imagegenerator: Generated 13 images 
for SeasonsReport in 0.90 seconds
Sep 20 06:30:24 PI3BUSB weewx[9261]: copygenerator: copied 0 files to 
/home/weewx/public_html
Sep 20 06:30:25 PI3BUSB weewx[9261]: ftpupload: Attempt #1. Failed 
uploading /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested 
action not taken. File unavailable (e.g., file not found, no access).
Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #2. Failed 
uploading /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested 
action not taken. File unavailable (e.g., file not found, no access).
Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Attempt #3. Failed 
uploading /daytempfeel.png to ftp.cafebardeli.net. Reason: 550 Requested 
action not taken. File unavailable (e.g., file not found, no access).
Sep 20 06:30:26 PI3BUSB weewx[9261]: ftpupload: Failed to upload file 
/daytempfeel.png
And it repeats this for every file in public_html. Started 3 days ago. I 
verified in public_html no file permissions have changed, and the files 
there are the current ones generated. 
Anyone have any ideas?
Thanks  --"MP"

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4b65e1e2-2ede-4839-ba4e-d03903750905n%40googlegroups.com.


Re: [weewx-user] FTP upload Problem

2022-09-16 Thread Steve2Q
Peter..you are very welcome. I hope I saved you saved some time and 
aggrevation. 

On Friday, September 16, 2022 at 3:58:52 AM UTC-4 PeterGill wrote:

> Steve, it turned out you were right, the problem was at my provider side. 
> Problem solved. Thanks for engaging!
>
> On Thursday, September 15, 2022 at 9:56:04 PM UTC+2 PeterGill wrote:
>
>> Thanks Steve, I´m talking to my provider right now and I´ll update here 
>> if the problem is with them
>>
>>
>> On Thursday, September 15, 2022 at 7:11:29 PM UTC+2 Steve2Q wrote:
>>
>>> Peter..I had the exact same problem with DreamHost. For some reason they 
>>> blocked my IP. They unblocked it yesterday afternoon, and FTP started 
>>> working a few hours later.
>>>
>>>
>>> On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:
>>>
 Thanks for the quick answer. Sorry for a stupid follow up question - 
 how do I make sure the right access permissions are set?


 On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
 wrote:

> I don't know why it would have changed, but make sure you have access 
> permissions to whatever directory you are trying to upload to. 
>
> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>
>> Hi,
>>
>> Suddenly and out of the blue my ftp upload stopped working. The html 
>> files are generated as expected in /var/www/html/weewx and the file 
>> "celestial.html" referenced in the log extract below certainly exist in 
>> the 
>> library and opens correctly in Chrome.
>>
>> Of course reboot has been tried.
>>
>> Any help would be highly appreciated!
>>
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
>> Reason: '550 Requested action not taken. File unavailable (e.g., file 
>> not 
>> found, no access).'
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': 550 
>> Requested action not taken. File unavailable (e.g., file not found, no 
>> access).
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     Traceback (most recent call last):
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     n = ftp_data.run()
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     ftp_server.storbinary(stor_cmd, fd)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     with self.transfercmd(cmd, rest) as conn:
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     return self.ntransfercmd(cmd, rest)[0]
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     resp = self.sendcmd(cmd)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     return self.getresp()
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     raise error_perm(resp)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>>     ftplib.error_perm: 550 Requested action not taken. File 
>> unavailable 
>> (e.g., file not found, no access).
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> ftpgenerator: Upload failed
>> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: 
>> Report 'RSYNC' not enabled. Skipping.
>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
>> (Service) MessageCallbackProvider data-> incoming topic: 
>> Jettystation/Watertemp, QOS: 0, retain: 0, payload: b'14.50'
>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
>> (Service) 

Re: [weewx-user] FTP upload Problem

2022-09-16 Thread PeterGill
Steve, it turned out you were right, the problem was at my provider side. 
Problem solved. Thanks for engaging!

On Thursday, September 15, 2022 at 9:56:04 PM UTC+2 PeterGill wrote:

> Thanks Steve, I´m talking to my provider right now and I´ll update here if 
> the problem is with them
>
>
> On Thursday, September 15, 2022 at 7:11:29 PM UTC+2 Steve2Q wrote:
>
>> Peter..I had the exact same problem with DreamHost. For some reason they 
>> blocked my IP. They unblocked it yesterday afternoon, and FTP started 
>> working a few hours later.
>>
>>
>> On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:
>>
>>> Thanks for the quick answer. Sorry for a stupid follow up question - how 
>>> do I make sure the right access permissions are set?
>>>
>>>
>>> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
>>> wrote:
>>>
 I don't know why it would have changed, but make sure you have access 
 permissions to whatever directory you are trying to upload to. 

 On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:

> Hi,
>
> Suddenly and out of the blue my ftp upload stopped working. The html 
> files are generated as expected in /var/www/html/weewx and the file 
> "celestial.html" referenced in the log extract below certainly exist in 
> the 
> library and opens correctly in Chrome.
>
> Of course reboot has been tried.
>
> Any help would be highly appreciated!
>
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
> Reason: '550 Requested action not taken. File unavailable (e.g., file not 
> found, no access).'
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
> ftpgenerator: (2): caught exception '': 550 
> Requested action not taken. File unavailable (e.g., file not found, no 
> access).
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     Traceback (most recent call last):
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     n = ftp_data.run()
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     ftp_server.storbinary(stor_cmd, fd)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     with self.transfercmd(cmd, rest) as conn:
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     return self.ntransfercmd(cmd, rest)[0]
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     resp = self.sendcmd(cmd)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     return self.getresp()
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>   File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     raise error_perm(resp)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:   
>     ftplib.error_perm: 550 Requested action not taken. File 
> unavailable 
> (e.g., file not found, no access).
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
> ftpgenerator: Upload failed
> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
> 'RSYNC' not enabled. Skipping.
> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
> (Service) MessageCallbackProvider data-> incoming topic: 
> Jettystation/Watertemp, QOS: 0, retain: 0, payload: b'14.50'
> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
> (Service) TopicManager data-> incoming Jettystation/Watertemp: 
> extraTemp1: 
> 14.5
>
>
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "weewx-user" group.
> To unsubscribe from this group and 

Re: [weewx-user] FTP upload Problem

2022-09-15 Thread PeterGill
Thanks Steve, I´m talking to my provider right now and I´ll update here if 
the problem is with them


On Thursday, September 15, 2022 at 7:11:29 PM UTC+2 Steve2Q wrote:

> Peter..I had the exact same problem with DreamHost. For some reason they 
> blocked my IP. They unblocked it yesterday afternoon, and FTP started 
> working a few hours later.
>
>
> On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:
>
>> Thanks for the quick answer. Sorry for a stupid follow up question - how 
>> do I make sure the right access permissions are set?
>>
>>
>> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
>> wrote:
>>
>>> I don't know why it would have changed, but make sure you have access 
>>> permissions to whatever directory you are trying to upload to. 
>>>
>>> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>>>
 Hi,

 Suddenly and out of the blue my ftp upload stopped working. The html 
 files are generated as expected in /var/www/html/weewx and the file 
 "celestial.html" referenced in the log extract below certainly exist in 
 the 
 library and opens correctly in Chrome.

 Of course reboot has been tried.

 Any help would be highly appreciated!

 Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
 uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
 Reason: '550 Requested action not taken. File unavailable (e.g., file not 
 found, no access).'
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 ftpgenerator: (2): caught exception '': 550 
 Requested action not taken. File unavailable (e.g., file not found, no 
 access).
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   Traceback (most recent call last):
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   n = ftp_data.run()
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   ftp_server.storbinary(stor_cmd, fd)
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   with self.transfercmd(cmd, rest) as conn:
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   return self.ntransfercmd(cmd, rest)[0]
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   resp = self.sendcmd(cmd)
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   return self.getresp()
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   raise error_perm(resp)
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   ftplib.error_perm: 550 Requested action not taken. File unavailable 
 (e.g., file not found, no access).
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 ftpgenerator: Upload failed
 Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
 'RSYNC' not enabled. Skipping.
 Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
 (Service) MessageCallbackProvider data-> incoming topic: 
 Jettystation/Watertemp, QOS: 0, retain: 0, payload: b'14.50'
 Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
 (Service) TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 
 14.5



 -- 
 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 weewx-user+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com
  
 

Re: [weewx-user] FTP upload Problem

2022-09-15 Thread Steve2Q
Peter..I had the exact same problem with DreamHost. For some reason they 
blocked my IP. They unblocked it yesterday afternoon, and FTP started 
working a few hours later.


On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:

> Thanks for the quick answer. Sorry for a stupid follow up question - how 
> do I make sure the right access permissions are set?
>
>
> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
> wrote:
>
>> I don't know why it would have changed, but make sure you have access 
>> permissions to whatever directory you are trying to upload to. 
>>
>> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>>
>>> Hi,
>>>
>>> Suddenly and out of the blue my ftp upload stopped working. The html 
>>> files are generated as expected in /var/www/html/weewx and the file 
>>> "celestial.html" referenced in the log extract below certainly exist in the 
>>> library and opens correctly in Chrome.
>>>
>>> Of course reboot has been tried.
>>>
>>> Any help would be highly appreciated!
>>>
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
>>> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
>>> Reason: '550 Requested action not taken. File unavailable (e.g., file not 
>>> found, no access).'
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> ftpgenerator: (2): caught exception '': 550 
>>> Requested action not taken. File unavailable (e.g., file not found, no 
>>> access).
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   Traceback (most recent call last):
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   n = ftp_data.run()
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   ftp_server.storbinary(stor_cmd, fd)
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   with self.transfercmd(cmd, rest) as conn:
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   return self.ntransfercmd(cmd, rest)[0]
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   resp = self.sendcmd(cmd)
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   return self.getresp()
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   raise error_perm(resp)
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   ftplib.error_perm: 550 Requested action not taken. File unavailable 
>>> (e.g., file not found, no access).
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> ftpgenerator: Upload failed
>>> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
>>> 'RSYNC' not enabled. Skipping.
>>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
>>> (Service) MessageCallbackProvider data-> incoming topic: 
>>> Jettystation/Watertemp, QOS: 0, retain: 0, payload: b'14.50'
>>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
>>> (Service) TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 
>>> 14.5
>>>
>>>
>>>
>>> -- 
>>> 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 weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
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, 

Re: [weewx-user] FTP upload Problem

2022-09-15 Thread PeterGill
Thanks for the quick answer. Sorry for a stupid follow up question - how do 
I make sure the right access permissions are set?


On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com wrote:

> I don't know why it would have changed, but make sure you have access 
> permissions to whatever directory you are trying to upload to. 
>
> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>
>> Hi,
>>
>> Suddenly and out of the blue my ftp upload stopped working. The html 
>> files are generated as expected in /var/www/html/weewx and the file 
>> "celestial.html" referenced in the log extract below certainly exist in the 
>> library and opens correctly in Chrome.
>>
>> Of course reboot has been tried.
>>
>> Any help would be highly appreciated!
>>
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
>> Reason: '550 Requested action not taken. File unavailable (e.g., file not 
>> found, no access).'
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': 550 
>> Requested action not taken. File unavailable (e.g., file not found, no 
>> access).
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   Traceback (most recent call last):
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   n = ftp_data.run()
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   ftp_server.storbinary(stor_cmd, fd)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   with self.transfercmd(cmd, rest) as conn:
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   return self.ntransfercmd(cmd, rest)[0]
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   resp = self.sendcmd(cmd)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   return self.getresp()
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   raise error_perm(resp)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   ftplib.error_perm: 550 Requested action not taken. File unavailable 
>> (e.g., file not found, no access).
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> ftpgenerator: Upload failed
>> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
>> 'RSYNC' not enabled. Skipping.
>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
>> MessageCallbackProvider data-> incoming topic: Jettystation/Watertemp, QOS: 
>> 0, retain: 0, payload: b'14.50'
>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
>> TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 14.5
>>
>>
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ad135206-305b-409d-85c8-c9570351c25an%40googlegroups.com.


Re: [weewx-user] FTP upload Problem

2022-09-15 Thread Tom Keffer
I don't know why it would have changed, but make sure you have access
permissions to whatever directory you are trying to upload to.

On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:

> Hi,
>
> Suddenly and out of the blue my ftp upload stopped working. The html files
> are generated as expected in /var/www/html/weewx and the file
> "celestial.html" referenced in the log extract below certainly exist in the
> library and opens correctly in Chrome.
>
> Of course reboot has been tried.
>
> Any help would be highly appreciated!
>
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se.
> Reason: '550 Requested action not taken. File unavailable (e.g., file not
> found, no access).'
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> ftpgenerator: (2): caught exception '': 550
> Requested action not taken. File unavailable (e.g., file not found, no
> access).
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   Traceback (most recent call last):
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   n = ftp_data.run()
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   ftp_server.storbinary(stor_cmd, fd)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   with self.transfercmd(cmd, rest) as conn:
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   return self.ntransfercmd(cmd, rest)[0]
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   resp = self.sendcmd(cmd)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   return self.getresp()
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   raise error_perm(resp)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   ftplib.error_perm: 550 Requested action not taken. File unavailable
> (e.g., file not found, no access).
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> ftpgenerator: Upload failed
> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report
> 'RSYNC' not enabled. Skipping.
> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service)
> MessageCallbackProvider data-> incoming topic: Jettystation/Watertemp, QOS:
> 0, retain: 0, payload: b'14.50'
> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service)
> TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 14.5
>
>
>
> --
> 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 weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com
> 
> .
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBPHYTohOpDQ7YzJqe%3DbKyhXDNjS7u3ne%3DxnMRQXCTd0w%40mail.gmail.com.


[weewx-user] FTP upload Problem

2022-09-15 Thread PeterGill
Hi,

Suddenly and out of the blue my ftp upload stopped working. The html files 
are generated as expected in /var/www/html/weewx and the file 
"celestial.html" referenced in the log extract below certainly exist in the 
library and opens correctly in Chrome.

Of course reboot has been tried.

Any help would be highly appreciated!

Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
Reason: '550 Requested action not taken. File unavailable (e.g., file not 
found, no access).'
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': 550 
Requested action not taken. File unavailable (e.g., file not found, no 
access).
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  n = ftp_data.run()
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  with self.transfercmd(cmd, rest) as conn:
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  return self.ntransfercmd(cmd, rest)[0]
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  resp = self.sendcmd(cmd)
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  return self.getresp()
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  raise error_perm(resp)
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  ftplib.error_perm: 550 Requested action not taken. File unavailable 
(e.g., file not found, no access).
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
ftpgenerator: Upload failed
Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.
Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
MessageCallbackProvider data-> incoming topic: Jettystation/Watertemp, QOS: 
0, retain: 0, payload: b'14.50'
Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 14.5



-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com.


Re: [weewx-user] ftp upload problem; Errno 0 Error; ftplib problem?

2017-10-27 Thread Thomas Keffer
Fixed (I think) in commit ae7c2fb

.

Download the patched file ftpupload.py

and give it a try. You can now set whether to use a secure FTP data
connection separately from the authentication. By default, it is True, but
you can set it to False:

[[FTP]]
...
secure_ftp = True
secure_data = False

Should appear in V3.8.0, due RSN.

-tk

On Fri, Oct 27, 2017 at 5:40 AM, Thomas Keffer  wrote:

> I suspect you're right. Good sleuthing!
>
> This is difficult to debug, because I need a broken server/client
> connection, and mine is working fine!
>
> Created issue #284  to track
> this problem.
>
> -tk
>
>
> On Thu, Oct 26, 2017 at 9:23 PM, Kip Kennedy  wrote:
>
>> It looks like others are seeing this Errno 0 problem in ftplib with TLS:
>>
>> https://bugs.python.org/issue31727
>> https://bugs.python.org/issue25278
>>
>> It could be caused by the server enforcing session reuse which isn't
>> supported yet:
>>
>> https://bugs.python.org/issue19500
>>
>> In any case, I found that if I skip enabling data encryption the ftp
>> works with just control encryption.  That is, just AUTH TLS but no PROT P.
>> I commented out line 103 in ftpupload.py:
>>
>> if self.secure:
>>  #ftp_server.prot_p()
>>
>> At least the login won't be sent in the clear with this change.  Maybe we
>> could have a new option in weewx.conf that enables data security separately?
>>
>>
>> On Thursday, October 26, 2017 at 6:58:04 PM UTC-7, Tom Keffer wrote:
>>>
>>> OK, you've got me stumped.
>>>
>>> If you're comfortable around source code, perhaps you could instrument
>>> the ftplib code and see what's going on.
>>>
>>> -tk
>>>
>>> On Thu, Oct 26, 2017 at 4:52 PM, Kip Kennedy  wrote:
>>>
 The FTP server at GoDaddy is Pure-FTPd.

 WinSCP can use FTPS. I chose explicit TLS and was able to connect and
 upload a file.  In the resulting log I see AUTH TLS and PROT P being
 enabled before the transfer. So, I'm not sure Pure-FTPd is at fault (at
 least when used with WinSCP).


 On Thursday, October 26, 2017 at 3:58:55 PM UTC-7, Tom Keffer wrote:
>
> Couple of questions:
>
> Do you know what kind of server you're using on the other end? One of
> my FTP accounts has a Microsoft server and it doesn't handle FTPS very 
> well.
>
> You mentioned you can get FTP to work with the Mac FTP and with
> WinSCP. Do these use FTPS?
>
> -tk
>
>
> On Thu, Oct 26, 2017 at 3:47 PM, Kip Kennedy  wrote:
>
>> Thanks for the quick response Tom. I just tried regular FTP and it
>> works fine. So something amiss with FTPS? Maybe just a problem with 
>> PROT_P
>> (encrypted data)? I only really care about AUTH_TLS (encrypted login).
>> Maybe I will delve into the ftplib.py source and give it a try, I don't
>> want plain text logins with write access flying around.
>>
>>
>> On Thursday, October 26, 2017 at 3:21:26 PM UTC-7, Tom Keffer wrote:
>>>
>>> Hi, Kip
>>>
>>> I also use GoDaddy. What it normally does is before every file it
>>> sets TYPE I and PASV, then does the file transfer, all synchronously. 
>>> So, I
>>> don't think it's a race condition within either FTP, or the log.
>>>
>>> Did this work before and now it's not? Or, has it never worked?
>>>
>>> The PROT_P command suggests that you're trying to use FTPS (option
>>> secure_FTP=True). Have you tried just regular FTP?
>>>
>>> Take a look in the HTML directory (probably /var/www/html/weewx)
>>> and see if all looks normal. Are the file sizes zero?
>>>
>>> It's a Hail Mary, but you can try deleting the file #FTP.last in
>>> that subdirectory. This file holds the last time a file was uploaded, so
>>> deleting it will force all files to be uploaded.
>>>
>>> -tk
>>>
>>>
>>>
>>> On Thu, Oct 26, 2017 at 2:28 PM, Kip Kennedy 
>>> wrote:
>>>
 Hi,

 I'm having trouble getting ftp uploads to work.  I'm using Weewx
 3.7.1 on a Raspberry Pi and uploading to a GoDaddy host.  I can 
 connect and
 upload fine interactively (MacOS ftp, Windows WinSCP). I've also double
 checked my settings in weewx.conf. Here is syslog during the ftp:


 Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Running
 report FTP
 Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Found
 configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
 Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Attempting
 secure connection to ftp.xxx.com
 Oct 26 13:08:57 PiWeather 

Re: [weewx-user] ftp upload problem; Errno 0 Error; ftplib problem?

2017-10-27 Thread Thomas Keffer
I suspect you're right. Good sleuthing!

This is difficult to debug, because I need a broken server/client
connection, and mine is working fine!

Created issue #284  to track
this problem.

-tk


On Thu, Oct 26, 2017 at 9:23 PM, Kip Kennedy  wrote:

> It looks like others are seeing this Errno 0 problem in ftplib with TLS:
>
> https://bugs.python.org/issue31727
> https://bugs.python.org/issue25278
>
> It could be caused by the server enforcing session reuse which isn't
> supported yet:
>
> https://bugs.python.org/issue19500
>
> In any case, I found that if I skip enabling data encryption the ftp works
> with just control encryption.  That is, just AUTH TLS but no PROT P.  I
> commented out line 103 in ftpupload.py:
>
> if self.secure:
>  #ftp_server.prot_p()
>
> At least the login won't be sent in the clear with this change.  Maybe we
> could have a new option in weewx.conf that enables data security separately?
>
>
> On Thursday, October 26, 2017 at 6:58:04 PM UTC-7, Tom Keffer wrote:
>>
>> OK, you've got me stumped.
>>
>> If you're comfortable around source code, perhaps you could instrument
>> the ftplib code and see what's going on.
>>
>> -tk
>>
>> On Thu, Oct 26, 2017 at 4:52 PM, Kip Kennedy  wrote:
>>
>>> The FTP server at GoDaddy is Pure-FTPd.
>>>
>>> WinSCP can use FTPS. I chose explicit TLS and was able to connect and
>>> upload a file.  In the resulting log I see AUTH TLS and PROT P being
>>> enabled before the transfer. So, I'm not sure Pure-FTPd is at fault (at
>>> least when used with WinSCP).
>>>
>>>
>>> On Thursday, October 26, 2017 at 3:58:55 PM UTC-7, Tom Keffer wrote:

 Couple of questions:

 Do you know what kind of server you're using on the other end? One of
 my FTP accounts has a Microsoft server and it doesn't handle FTPS very 
 well.

 You mentioned you can get FTP to work with the Mac FTP and with WinSCP.
 Do these use FTPS?

 -tk


 On Thu, Oct 26, 2017 at 3:47 PM, Kip Kennedy  wrote:

> Thanks for the quick response Tom. I just tried regular FTP and it
> works fine. So something amiss with FTPS? Maybe just a problem with PROT_P
> (encrypted data)? I only really care about AUTH_TLS (encrypted login).
> Maybe I will delve into the ftplib.py source and give it a try, I don't
> want plain text logins with write access flying around.
>
>
> On Thursday, October 26, 2017 at 3:21:26 PM UTC-7, Tom Keffer wrote:
>>
>> Hi, Kip
>>
>> I also use GoDaddy. What it normally does is before every file it
>> sets TYPE I and PASV, then does the file transfer, all synchronously. 
>> So, I
>> don't think it's a race condition within either FTP, or the log.
>>
>> Did this work before and now it's not? Or, has it never worked?
>>
>> The PROT_P command suggests that you're trying to use FTPS (option
>> secure_FTP=True). Have you tried just regular FTP?
>>
>> Take a look in the HTML directory (probably /var/www/html/weewx) and
>> see if all looks normal. Are the file sizes zero?
>>
>> It's a Hail Mary, but you can try deleting the file #FTP.last in
>> that subdirectory. This file holds the last time a file was uploaded, so
>> deleting it will force all files to be uploaded.
>>
>> -tk
>>
>>
>>
>> On Thu, Oct 26, 2017 at 2:28 PM, Kip Kennedy 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm having trouble getting ftp uploads to work.  I'm using Weewx
>>> 3.7.1 on a Raspberry Pi and uploading to a GoDaddy host.  I can connect 
>>> and
>>> upload fine interactively (MacOS ftp, Windows WinSCP). I've also double
>>> checked my settings in weewx.conf. Here is syslog during the ftp:
>>>
>>>
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Running
>>> report FTP
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Found
>>> configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Attempting
>>> secure connection to ftp.xxx.com
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Secure
>>> connection to ftp.xxx.com
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
>>> Failed uploading /daywind.png to ftp.xxx.com. Reason: [Errno 0]
>>> Error
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
>>> Failed uploading /daywind.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
>>> Failed uploading /daywind.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
>>> upload file /daywind.png
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
>>> Failed 

Re: [weewx-user] ftp upload problem; Errno 0 Error; ftplib problem?

2017-10-26 Thread Thomas Keffer
OK, you've got me stumped.

If you're comfortable around source code, perhaps you could instrument the
ftplib code and see what's going on.

-tk

On Thu, Oct 26, 2017 at 4:52 PM, Kip Kennedy  wrote:

> The FTP server at GoDaddy is Pure-FTPd.
>
> WinSCP can use FTPS. I chose explicit TLS and was able to connect and
> upload a file.  In the resulting log I see AUTH TLS and PROT P being
> enabled before the transfer. So, I'm not sure Pure-FTPd is at fault (at
> least when used with WinSCP).
>
>
> On Thursday, October 26, 2017 at 3:58:55 PM UTC-7, Tom Keffer wrote:
>>
>> Couple of questions:
>>
>> Do you know what kind of server you're using on the other end? One of my
>> FTP accounts has a Microsoft server and it doesn't handle FTPS very well.
>>
>> You mentioned you can get FTP to work with the Mac FTP and with WinSCP.
>> Do these use FTPS?
>>
>> -tk
>>
>>
>> On Thu, Oct 26, 2017 at 3:47 PM, Kip Kennedy  wrote:
>>
>>> Thanks for the quick response Tom. I just tried regular FTP and it works
>>> fine. So something amiss with FTPS? Maybe just a problem with PROT_P
>>> (encrypted data)? I only really care about AUTH_TLS (encrypted login).
>>> Maybe I will delve into the ftplib.py source and give it a try, I don't
>>> want plain text logins with write access flying around.
>>>
>>>
>>> On Thursday, October 26, 2017 at 3:21:26 PM UTC-7, Tom Keffer wrote:

 Hi, Kip

 I also use GoDaddy. What it normally does is before every file it sets
 TYPE I and PASV, then does the file transfer, all synchronously. So, I
 don't think it's a race condition within either FTP, or the log.

 Did this work before and now it's not? Or, has it never worked?

 The PROT_P command suggests that you're trying to use FTPS (option
 secure_FTP=True). Have you tried just regular FTP?

 Take a look in the HTML directory (probably /var/www/html/weewx) and
 see if all looks normal. Are the file sizes zero?

 It's a Hail Mary, but you can try deleting the file #FTP.last in that
 subdirectory. This file holds the last time a file was uploaded, so
 deleting it will force all files to be uploaded.

 -tk



 On Thu, Oct 26, 2017 at 2:28 PM, Kip Kennedy  wrote:

> Hi,
>
> I'm having trouble getting ftp uploads to work.  I'm using Weewx 3.7.1
> on a Raspberry Pi and uploading to a GoDaddy host.  I can connect and
> upload fine interactively (MacOS ftp, Windows WinSCP). I've also double
> checked my settings in weewx.conf. Here is syslog during the ftp:
>
>
> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Running
> report FTP
> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Found
> configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Attempting
> secure connection to ftp.xxx.com
> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Secure
> connection to ftp.xxx.com
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /daywind.png to ftp.xxx.com. Reason: [Errno 0] Error
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /daywind.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /daywind.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
> upload file /daywind.png
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
> upload file /daytemp.png
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /index.html to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /index.html to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /index.html to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
> upload file /index.html
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /dayrain.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /dayrain.png to ftp.xxx.com. Reason: [Errno 32]
> Broken pipe
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt 

Re: [weewx-user] ftp upload problem; Errno 0 Error; ftplib problem?

2017-10-26 Thread Thomas Keffer
Couple of questions:

Do you know what kind of server you're using on the other end? One of my
FTP accounts has a Microsoft server and it doesn't handle FTPS very well.

You mentioned you can get FTP to work with the Mac FTP and with WinSCP. Do
these use FTPS?

-tk


On Thu, Oct 26, 2017 at 3:47 PM, Kip Kennedy  wrote:

> Thanks for the quick response Tom. I just tried regular FTP and it works
> fine. So something amiss with FTPS? Maybe just a problem with PROT_P
> (encrypted data)? I only really care about AUTH_TLS (encrypted login).
> Maybe I will delve into the ftplib.py source and give it a try, I don't
> want plain text logins with write access flying around.
>
>
> On Thursday, October 26, 2017 at 3:21:26 PM UTC-7, Tom Keffer wrote:
>>
>> Hi, Kip
>>
>> I also use GoDaddy. What it normally does is before every file it sets
>> TYPE I and PASV, then does the file transfer, all synchronously. So, I
>> don't think it's a race condition within either FTP, or the log.
>>
>> Did this work before and now it's not? Or, has it never worked?
>>
>> The PROT_P command suggests that you're trying to use FTPS (option
>> secure_FTP=True). Have you tried just regular FTP?
>>
>> Take a look in the HTML directory (probably /var/www/html/weewx) and see
>> if all looks normal. Are the file sizes zero?
>>
>> It's a Hail Mary, but you can try deleting the file #FTP.last in that
>> subdirectory. This file holds the last time a file was uploaded, so
>> deleting it will force all files to be uploaded.
>>
>> -tk
>>
>>
>>
>> On Thu, Oct 26, 2017 at 2:28 PM, Kip Kennedy  wrote:
>>
>>> Hi,
>>>
>>> I'm having trouble getting ftp uploads to work.  I'm using Weewx 3.7.1
>>> on a Raspberry Pi and uploading to a GoDaddy host.  I can connect and
>>> upload fine interactively (MacOS ftp, Windows WinSCP). I've also double
>>> checked my settings in weewx.conf. Here is syslog during the ftp:
>>>
>>>
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Running
>>> report FTP
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Found
>>> configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Attempting
>>> secure connection to ftp.xxx.com
>>> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Secure
>>> connection to ftp.xxx.com
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
>>> Failed uploading /daywind.png to ftp.xxx.com. Reason: [Errno 0] Error
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
>>> Failed uploading /daywind.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
>>> Failed uploading /daywind.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
>>> upload file /daywind.png
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
>>> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
>>> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
>>> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
>>> upload file /daytemp.png
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
>>> Failed uploading /index.html to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
>>> Failed uploading /index.html to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
>>> Failed uploading /index.html to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
>>> upload file /index.html
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
>>> Failed uploading /dayrain.png to ftp.xxx.com. Reason:
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
>>> Failed uploading /dayrain.png to ftp.xxx.com. Reason: [Errno 32] Broken
>>> pipe
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
>>> Failed uploading /dayrain.png to ftp.xxx.com. Reason: [Errno 32] Broken
>>> pipe
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to
>>> upload file /dayrain.png
>>> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpgenerator: ftp'd 0
>>> files in 1.75 seconds
>>>
>>>
>>> I also turned on extra logging for ftp (debug = 2 in [[Ftp]] in
>>> weewx.conf) and got the following on stdout when I ran wee_reports. It
>>> looks like the STOR is started before the TYPE I? Maybe a race condition?
>>> In ftplib.py, the storbinary routine should handle the TYPE I before the
>>> transfer but the log shows the TYPE I issue after the STOR. Maybe just a
>>> logging race?
>>>
>>>
>>> Generating for all time
>>> *cmd* 'AUTH TLS'
>>> *put* 'AUTH TLS\r\n'
>>> *get* 

Re: [weewx-user] ftp upload problem; Errno 0 Error; ftplib problem?

2017-10-26 Thread Thomas Keffer
Hi, Kip

I also use GoDaddy. What it normally does is before every file it sets TYPE
I and PASV, then does the file transfer, all synchronously. So, I don't
think it's a race condition within either FTP, or the log.

Did this work before and now it's not? Or, has it never worked?

The PROT_P command suggests that you're trying to use FTPS (option
secure_FTP=True). Have you tried just regular FTP?

Take a look in the HTML directory (probably /var/www/html/weewx) and see if
all looks normal. Are the file sizes zero?

It's a Hail Mary, but you can try deleting the file #FTP.last in that
subdirectory. This file holds the last time a file was uploaded, so
deleting it will force all files to be uploaded.

-tk



On Thu, Oct 26, 2017 at 2:28 PM, Kip Kennedy  wrote:

> Hi,
>
> I'm having trouble getting ftp uploads to work.  I'm using Weewx 3.7.1 on
> a Raspberry Pi and uploading to a GoDaddy host.  I can connect and upload
> fine interactively (MacOS ftp, Windows WinSCP). I've also double checked my
> settings in weewx.conf. Here is syslog during the ftp:
>
>
> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Running report
> FTP
> Oct 26 13:08:57 PiWeather wee_reports[15450]: reportengine: Found
> configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Attempting secure
> connection to ftp.xxx.com
> Oct 26 13:08:57 PiWeather wee_reports[15450]: ftpupload: Secure connection
> to ftp.xxx.com
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /daywind.png to ftp.xxx.com. Reason: [Errno 0] Error
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /daywind.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /daywind.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to upload
> file /daywind.png
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /daytemp.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to upload
> file /daytemp.png
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /index.html to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /index.html to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /index.html to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to upload
> file /index.html
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #1.
> Failed uploading /dayrain.png to ftp.xxx.com. Reason:
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #2.
> Failed uploading /dayrain.png to ftp.xxx.com. Reason: [Errno 32] Broken
> pipe
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Attempt #3.
> Failed uploading /dayrain.png to ftp.xxx.com. Reason: [Errno 32] Broken
> pipe
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpupload: Failed to upload
> file /dayrain.png
> Oct 26 13:08:58 PiWeather wee_reports[15450]: ftpgenerator: ftp'd 0 files
> in 1.75 seconds
>
>
> I also turned on extra logging for ftp (debug = 2 in [[Ftp]] in
> weewx.conf) and got the following on stdout when I ran wee_reports. It
> looks like the STOR is started before the TYPE I? Maybe a race condition?
> In ftplib.py, the storbinary routine should handle the TYPE I before the
> transfer but the log shows the TYPE I issue after the STOR. Maybe just a
> logging race?
>
>
> Generating for all time
> *cmd* 'AUTH TLS'
> *put* 'AUTH TLS\r\n'
> *get* '234 AUTH TLS OK.\r\n'
> *resp* '234 AUTH TLS OK.'
> *cmd* 'USER x...@xxx.com'
> *put* 'USER x...@xxx.com\r\n'
> *get* '331 User x...@xxx.com OK. Password required\r\n'
> *resp* '331 User x...@xxx.com 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'
> *get* '230 0 Kbytes used (0%) - authorized: 204800 Kb\r\n'
> *resp* '230-Your bandwidth usage is restricted\n230-OK. Current restricted
> directory is /\n230 0 Kbytes used (0%) - authorized: 204800 Kb'
> *cmd* 'PBSZ 0'
> *put* 'PBSZ 0\r\n'
> *get* '200 PBSZ=0\r\n'
> *resp* '200 PBSZ=0'
> *cmd* 'PROT P'
> *put* 'PROT P\r\n'
> *get* '200 Data protection level set to "private"\r\n'
> *resp* '200 Data protection level set to "private"'
> *cmd* 'MKD /'
> *put* 'MKD /\r\n'
> *get* "550-Can't create directory: File exists\r\n"
> *get* '550 0 Kbytes used (0%) -