[weewx-user] FTP upload fail

2023-12-09 Thread BORIS
Hi,
I have not used  Weewx for some time and installed it again on a Ubuntu 14 
Laptop.
I can collect the data from my Klimalogg pro and the files are stored 
correctly.
Only the FTP transfer is not working to my server at ONE.com
I have other programs written in Python that can upload files correctly to 
the server.

My weewx.conf file, FTP part:
   [[kl]]
skin = kl
HTML_ROOT = /var/www/html/weewx/kl

[[FTP]]
# FTP'ing the results to a webserver is treated as just another 
report,
# albeit one with an unusual report generator!
skin = Ftp

# If you wish to use FTP, set "enable" to "true", then
# fill out the next four lines.
# Use quotes around passwords to guard against parsing errors.
enable = true
user = smeds.eu
password = "**"
server = ftp.smeds.eu# The ftp server name, e.g, 
www.myserver.org
path = /new# The destination directory, e.g., /weather

# Set to True for an FTP over TLS (FTPS) connection. Not all servers
# support this.
secure_ftp = False

# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = /var/www/html/weewx

# Most FTP servers use port 21
port = 21

# Set to 1 to use passive mode, zero for active mode
passive = 1

Part of the log looks like this with debug on: 

Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] INFO weewx.imagegenerator: 
Generated 11 images for report kl in 1.68 seconds
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weewx.reportengine: 
Running report 'FTP'
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weewx.reportengine: 
Found configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weewx.reportengine: 
Cannot read localization file /etc/weewx/skins/Ftp/lang/en.conf for report 
'FTP': Config file not found: "/etc/weewx/skins/Ftp/lang/en.conf".
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weewx.reportengine: 
 Using defaults instead.
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weeutil.ftpupload: 
Attempting connection to ftp.smeds.eu
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weeutil.ftpupload: 
FTP encoding not supported, ignoring.
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weeutil.ftpupload: 
Connected to ftp.smeds.eu
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] DEBUG weeutil.ftpupload: 0 
./weektempdew.png 
d253e64a3a43c3e5f585744b6a7f73c6fbbf28a04f014eb0139b9fb587a627ac
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weeutil.ftpupload: 
Failed uploading /var/www/html/weewx/weektempdew.png to server 
ftp.smeds.eu. Reason: '550 Requested action not taken. File unavailable 
(e.g., file not found, no access).'
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine: 
ftpgenerator: (0): caught exception '': 550 
Requested action not taken. File unavailable (e.g., file not found, no 
access).
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    Traceback (most recent call last):
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
  File "/usr/share/weewx/weewx/reportengine.py", line 437, in 
run
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    n = ftp_data.run()
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
  File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    ftp_server.storbinary(stor_cmd, fd)
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 471, in storbinary
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    conn = self.transfercmd(cmd, rest)
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 376, in transfercmd
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    return self.ntransfercmd(cmd, rest)[0]
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 339, in ntransfercmd
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    resp = self.sendcmd(cmd)
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 249, in sendcmd
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   
    return self.getresp()
Dec  9 18:40:30 boris-TOSHIBA-NB100 weewx[5753] ERROR weewx.reportengine:   

[weewx-user] FTP upload to server suddenly stopped

2023-12-08 Thread bgra...@umw.edu
Hello,
My weewx 4.10.2 with python 3.10.12 seems to be running fine but stopped 
FTPing files to the server on godaddy.com. I only noticed this today as I 
usually just look at the local weewx computer. Upload is to grattans.org/wx
I uploaded some files with filezilla today so I'm sure the password hasn't 
changes.
Below are some sections of the log. I can send more if needed.  Thanks in 
advance.
Bob

from weewx.conf

 [[FTP]]
# FTP'ing the results to a webserver is treated as just another 
report,
# albeit one with an unusual report generator!
skin = Ftp

# Set to True for a secure FTP (SFTP) connection. Not all servers
# support this.
secure_ftp = False#True

# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = public_html

# Most FTP servers use port 21
port = 21

# Set to 1 to use passive mode, zero for active mode
passive = 1

# If you wish to use FTP, uncomment and fill out the next four 
lines.
user = *
password = *
server = grattans.org

path = /public_html/weewx#/weewx
==
FTP suddenly stops
==
Dec  6 09:45:39 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 72 files in 20.90 seconds
Dec  6 10:00:42 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 85 files in 23.63 seconds
Dec  6 10:15:39 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 71 files in 21.36 seconds
Dec  6 10:30:38 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 72 files in 20.38 seconds
Dec  6 10:45:39 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 72 files in 20.51 seconds
Dec  6 11:00:43 n4mrv weewx[389284] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 85 files in 24.66 seconds
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: 
(0): caught exception '': [Errno -3] Temporary 
failure in name resolution
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:  
 n = ftp_data.run()
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:  
   File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:  
 ftp_server.connect(self.server, self.port)
Dec  6 11:15:30 n4mrv weewx[389284] ERROR weewx.reportengine:  
   File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: 
(1): caught exception '': [Errno -3] Temporary 
failure in name resolution
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:  
 n = ftp_data.run()
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:  
   File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:  
 ftp_server.connect(self.server, self.port)
Dec  6 11:15:42 n4mrv weewx[389284] ERROR weewx.reportengine:  
   File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  6 11:15:54 n4mrv weewx[389284] ERROR weewx.reportengine: ftpgenerator: 
(2): caught exception '': [Errno -3] Temporary 
failure in name resolution
more 
===
latest log section with debug=1
+

Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: 
(2): caught exception '': [Errno -3] Temporary 
failure in name resolution
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:    
   n = ftp_data.run()
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:    
 File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:    
   ftp_server.connect(self.server, self.port)
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine:    
 File "/usr/lib/python3.10/ftplib.py", line 158, in connect
Dec  7 05:30:35 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: 
Upload failed
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine: ftpgenerator: 
(0): caught exception '': [Errno -3] Temporary 
failure in name resolution
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:    
   n = ftp_data.run()
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:    
 File "/home/weewx/bin/weeutil/ftpupload.py", line 175, in run
Dec  7 05:45:23 n4mrv weewx[1152] ERROR weewx.reportengine:    
   ftp_server.connect(self.server, self.port)
Dec  7 05:45:23 n4mrv weewx[1152] ERROR 

[weewx-user] FTP Upload failed

2023-10-04 Thread 'buck...@googlemail.com' via weewx-user
hello, since yesterday i get this error and i dont know why

ftpgenerator: Upload failed



Okt 05 06:57:29 raspberrypi python3[1425]: weewx[1425] ERROR 
weewx.reportengine: ftpgenerator: Upload failed
Okt 05 07:00:45 raspberrypi python3[1425]: weewx[1425] INFO weewx.manager: 
Added record 2023-10-05 07:00:00 CEST (1696482000) to database 'weewx.sdb'
Okt 05 07:00:45 raspberrypi python3[1425]: weewx[1425] INFO weewx.manager: 
Added record 2023-10-05 07:00:00 CEST (1696482000) to daily summary in 
'weewx.sdb'
Okt 05 07:00:45 raspberrypi python3[1425]: weewx[1425] INFO weewx.restx: 
MQTT: Published record 2023-10-05 07:00:00 CEST (1696482000)
Okt 05 07:00:51 raspberrypi python3[1425]: weewx[1425] INFO 
weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 5.82 
seconds
Okt 05 07:00:59 raspberrypi python3[1425]: weewx[1425] INFO 
weewx.imagegenerator: Generated 26 images for report SeasonsReport in 8.21 
seconds
Okt 05 07:00:59 raspberrypi python3[1425]: weewx[1425] INFO 
weewx.reportengine: Copied 0 files to /var/www/html/weewx
Okt 05 07:00:59 raspberrypi /weewxd[1425]: historygenerator.py: No 
bootstrap specific labels found
Okt 05 07:01:00 raspberrypi /weewxd[1425]: historygenerator.py: minvalues, 
maxvalues and colours must have the same number of elements in table: 
rain_days_table
Okt 05 07:01:00 raspberrypi /weewxd[1425]: historygenerator.py: Generated 8 
tables in 0.99 seconds
root@raspberrypi:~# sudo service weewx restart
root@raspberrypi:~# tail -f /var/log/syslog
Oct  5 07:02:37 raspberrypi weewx[31243] INFO user.mqtt: data_binding is 
wx_binding
Oct  5 07:02:37 raspberrypi weewx[31243] INFO user.mqtt: topic is weather
Oct  5 07:02:37 raspberrypi weewx[31243] INFO user.mqtt: desired unit 
system is METRIC
Oct  5 07:02:37 raspberrypi weewx[31243] INFO user.mqtt: data will be 
uploaded to mqtt://mqtt_user:xxx@192.168.1.8:1883
Oct  5 07:02:37 raspberrypi weewx[31243] INFO weewx.engine: 'pyephem' 
detected, extended almanac data is available
Oct  5 07:02:37 raspberrypi weewx[31243] INFO __main__: Starting up weewx 
version 4.10.2
Oct  5 07:02:37 raspberrypi weewx[31243] INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Oct  5 07:02:37 raspberrypi weewx[31243] INFO weewx.manager: Starting 
backfill of daily summaries
Oct  5 07:02:37 raspberrypi weewx[31243] INFO weewx.manager: Daily 
summaries up to date
Oct  5 07:02:37 raspberrypi weewx[31243] INFO weewx.engine: Starting main 
packet loop.
Oct  5 07:02:48 raspberrypi weewx[31243] INFO user.interceptor: using 
'totalrainin' for rain_total
Oct  5 07:02:48 raspberrypi weewx[31243] INFO user.interceptor: skipping 
rain measurement of 68.736: no last rain
Oct  5 07:05:23 raspberrypi weewx[31243] INFO weewx.manager: Added record 
2023-10-05 07:05:00 CEST (1696482300) to database 'weewx.sdb'
Oct  5 07:05:23 raspberrypi weewx[31243] INFO weewx.manager: Added record 
2023-10-05 07:05:00 CEST (1696482300) to daily summary in 'weewx.sdb'
Oct  5 07:05:23 raspberrypi weewx[31243] INFO user.mqtt: client established 
for mqtt://mqtt_user:xxx@192.168.1.8:1883
Oct  5 07:05:23 raspberrypi weewx[31243] INFO weewx.restx: MQTT: Published 
record 2023-10-05 07:05:00 CEST (1696482300)
Oct  5 07:05:33 raspberrypi weewx[31243] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 9.16 seconds
Oct  5 07:05:36 raspberrypi weewx[31243] INFO weewx.imagegenerator: 
Generated 13 images for report SeasonsReport in 3.10 seconds
Oct  5 07:05:36 raspberrypi weewx[31243] INFO weewx.reportengine: Copied 5 
files to /var/www/html/weewx
Oct  5 07:05:36 raspberrypi /weewxd: historygenerator.py: No bootstrap 
specific labels found
Oct  5 07:05:37 raspberrypi /weewxd: historygenerator.py: minvalues, 
maxvalues and colours must have the same number of elements in table: 
rain_days_table
Oct  5 07:05:37 raspberrypi /weewxd: historygenerator.py: Generated 8 
tables in 0.97 seconds
Oct  5 07:07:37 raspberrypi weewx[31243] INFO weewx.cheetahgenerator: 
Generated 25 files for report StandardReport in 121.17 seconds
Oct  5 07:07:38 raspberrypi weewx[31243] INFO weewx.reportengine: Copied 
327 files to /var/www/html/weewx
Oct  5 07:07:43 raspberrypi weewx[31243] INFO weewx.cheetahgenerator: 
Generated 1 files for report Highcharts in 4.84 seconds
Oct  5 07:07:43 raspberrypi weewx[31243] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/SO_wetter_year.html to server 213.160.71.98. 
Reason: '451-Error during write to file#02451-Transfer aborted#012451 0.080 
seconds (measured here), 188.06 Kbytes per second'
Oct  5 07:07:43 raspberrypi weewx[31243] ERROR weewx.reportengine: 
ftpgenerator: (0): caught exception '': 
451-Error during write to file#012451-Transfer aborted#12451 0.080 seconds 
(measured here), 188.06 Kbytes per second
Oct  5 07:07:43 raspberrypi weewx[31243] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Oct  5 07:07:43 raspberrypi weewx[31243] ERROR weewx.reportengine: 
File 

Re: [weewx-user] FTP Upload Failed - 0kb File on Remote Server

2023-01-03 Thread 'Rory Gillies' via weewx-user
Hi, both servers are running vsftpd.

On Monday, January 2, 2023 at 7:59:51 PM UTC tke...@gmail.com wrote:

> Do you know what kind of FTP server they are?
>
> On Mon, Jan 2, 2023 at 9:38 AM 'Rory Gillies' via weewx-user <
> weewx...@googlegroups.com> wrote:
>
>> Hi, yes to clarify all the files are there, it's just a single file that 
>> has 0kb size. The two servers are completely different, one is my own 
>> virtual private server running Ubuntu and the other is a hosted Linux 
>> package. I'll try the level 2 debug and see if it shows up anything. Thanks!
>>
>> On Monday, January 2, 2023 at 12:09:18 PM UTC tke...@gmail.com wrote:
>>
>>> I wanted to clarify something you said:
>>>
>>> there is a single HTML file on the remote server with 0kb file size 
>>>
>>>
>>> Does that mean it is the only file on the remote server? Or, it's the 
>>> only file of 0kb size?
>>>
>>> I would not rule out a server-side problem. Are the two servers hosted 
>>> by the same company? Can you check the type of ftp servers they use (the 
>>> unix command-line interface "ftp" is useful for this).
>>>
>>> I can't think of any reason why the presence (or absence) of a file on 
>>> the server would make any difference as far as weewx is concerned. It is 
>>> ignorant of the contents on the server and simply uploads anything that has 
>>> changed.
>>>
>>> Try setting debug=2 in weewx.conf. It will create voluminous logging, 
>>> but it will also give more detail about what's happening.
>>>
>>>
>>>
>>> On Mon, Jan 2, 2023 at 1:53 AM 'Rory Gillies' via weewx-user <
>>> weewx...@googlegroups.com> wrote:
>>>
 Hi, and Happy New Year. I am experiencing an issue with FTP upload to 
 my servers, occasionally (say around once a week) WeeWX fails to upload 
 and 
 there is a single HTML file on the remote server with 0kb file size (it's 
 not a specific file, however it is usually one of the year or month 
 reports, and never been the index.html). Deleting the file restores the 
 upload. I have two FTP skins as I am in the process of porting my site to 
 a 
 new server, but the 0kb file can happen on either server so it's not 
 server-side specific. The syslog section is shown below. The files on the 
 local server are all correct, it's during the FTP upload that something 
 goes wrong.

 Has anyone experienced a similar issue?

 Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record 
 2023-01-01 23:45:00 GMT (1672616700) to database 'weewx.sdb'
 Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record 
 2023-01-01 23:45:00 GMT (1672616700) to daily summary in 'weewx.sdb'
 Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: Windy: 
 Published record 2023-01-01 23:45:00 GMT (1672616700)
 Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: PWSWeather: 
 Published record 2023-01-01 23:45:00 GMT (1672616700)
 Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: WOW: Published 
 record 2023-01-01 23:45:00 GMT (1672616700)
 Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: AWEKAS: 
 Published record 2023-01-01 23:45:00 GMT (1672616700)
 Jan  1 23:45:20 weather weewx[469313] INFO weewx.cheetahgenerator: 
 Generated 8 files for report SeasonsReport in 1.21 seconds
 Jan  1 23:45:21 weather weewx[469313] INFO weewx.imagegenerator: 
 Generated 15 images for report SeasonsReport in 0.59 seconds
 Jan  1 23:45:21 weather weewx[469313] INFO weewx.reportengine: Copied 0 
 files to /var/www/html/weewx/seasons
 Jan  1 23:45:21 weather weewx[469313] INFO user.historygenerator: 
 historygenerator.py: Generated 8 tables in 0.08 seconds
 Jan  1 23:45:38 weather weewx[469313] INFO weewx.cheetahgenerator: 
 Generated 13 files for report StandardReport in 17.47 seconds
 Jan  1 23:45:38 weather weewx[469313] INFO weewx.reportengine: Copied 0 
 files to /var/www/html/weewx
 Jan  1 23:45:41 weather weewx[469313] INFO weewx.cheetahgenerator: 
 Generated 2 files for report Emkubed in 2.99 seconds
 Jan  1 23:45:41 weather weewx[469313] INFO weewx.reportengine: Copied 0 
 files to /var/www/html/weewx/emkubed
 Jan  1 23:45:49 weather weewx[469313] INFO weewx.reportengine: 
 ftpgenerator: Ftp'd 33 files in 7.85 seconds
 Jan  1 23:45:57 weather weewx[469313] INFO weewx.reportengine: 
 ftpgenerator: Ftp'd 33 files in 8.32 seconds
 Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record 
 2023-01-01 23:50:00 GMT (1672617000) to database 'weewx.sdb'
 Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record 
 2023-01-01 23:50:00 GMT (1672617000) to daily summary in 'weewx.sdb'
 Jan  1 23:50:17 weather weewx[469313] INFO weewx.restx: Windy: 
 Published record 2023-01-01 23:50:00 GMT (1672617000)
 Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: PWSWeather: 
 Published record 

Re: [weewx-user] FTP Upload Failed - 0kb File on Remote Server

2023-01-02 Thread Tom Keffer
Do you know what kind of FTP server they are?

On Mon, Jan 2, 2023 at 9:38 AM 'Rory Gillies' via weewx-user <
weewx-user@googlegroups.com> wrote:

> Hi, yes to clarify all the files are there, it's just a single file that
> has 0kb size. The two servers are completely different, one is my own
> virtual private server running Ubuntu and the other is a hosted Linux
> package. I'll try the level 2 debug and see if it shows up anything. Thanks!
>
> On Monday, January 2, 2023 at 12:09:18 PM UTC tke...@gmail.com wrote:
>
>> I wanted to clarify something you said:
>>
>> there is a single HTML file on the remote server with 0kb file size
>>
>>
>> Does that mean it is the only file on the remote server? Or, it's the
>> only file of 0kb size?
>>
>> I would not rule out a server-side problem. Are the two servers hosted by
>> the same company? Can you check the type of ftp servers they use (the unix
>> command-line interface "ftp" is useful for this).
>>
>> I can't think of any reason why the presence (or absence) of a file on
>> the server would make any difference as far as weewx is concerned. It is
>> ignorant of the contents on the server and simply uploads anything that has
>> changed.
>>
>> Try setting debug=2 in weewx.conf. It will create voluminous logging, but
>> it will also give more detail about what's happening.
>>
>>
>>
>> On Mon, Jan 2, 2023 at 1:53 AM 'Rory Gillies' via weewx-user <
>> weewx...@googlegroups.com> wrote:
>>
>>> Hi, and Happy New Year. I am experiencing an issue with FTP upload to my
>>> servers, occasionally (say around once a week) WeeWX fails to upload and
>>> there is a single HTML file on the remote server with 0kb file size (it's
>>> not a specific file, however it is usually one of the year or month
>>> reports, and never been the index.html). Deleting the file restores the
>>> upload. I have two FTP skins as I am in the process of porting my site to a
>>> new server, but the 0kb file can happen on either server so it's not
>>> server-side specific. The syslog section is shown below. The files on the
>>> local server are all correct, it's during the FTP upload that something
>>> goes wrong.
>>>
>>> Has anyone experienced a similar issue?
>>>
>>> Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record
>>> 2023-01-01 23:45:00 GMT (1672616700) to database 'weewx.sdb'
>>> Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record
>>> 2023-01-01 23:45:00 GMT (1672616700) to daily summary in 'weewx.sdb'
>>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: Windy: Published
>>> record 2023-01-01 23:45:00 GMT (1672616700)
>>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: PWSWeather:
>>> Published record 2023-01-01 23:45:00 GMT (1672616700)
>>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: WOW: Published
>>> record 2023-01-01 23:45:00 GMT (1672616700)
>>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: AWEKAS:
>>> Published record 2023-01-01 23:45:00 GMT (1672616700)
>>> Jan  1 23:45:20 weather weewx[469313] INFO weewx.cheetahgenerator:
>>> Generated 8 files for report SeasonsReport in 1.21 seconds
>>> Jan  1 23:45:21 weather weewx[469313] INFO weewx.imagegenerator:
>>> Generated 15 images for report SeasonsReport in 0.59 seconds
>>> Jan  1 23:45:21 weather weewx[469313] INFO weewx.reportengine: Copied 0
>>> files to /var/www/html/weewx/seasons
>>> Jan  1 23:45:21 weather weewx[469313] INFO user.historygenerator:
>>> historygenerator.py: Generated 8 tables in 0.08 seconds
>>> Jan  1 23:45:38 weather weewx[469313] INFO weewx.cheetahgenerator:
>>> Generated 13 files for report StandardReport in 17.47 seconds
>>> Jan  1 23:45:38 weather weewx[469313] INFO weewx.reportengine: Copied 0
>>> files to /var/www/html/weewx
>>> Jan  1 23:45:41 weather weewx[469313] INFO weewx.cheetahgenerator:
>>> Generated 2 files for report Emkubed in 2.99 seconds
>>> Jan  1 23:45:41 weather weewx[469313] INFO weewx.reportengine: Copied 0
>>> files to /var/www/html/weewx/emkubed
>>> Jan  1 23:45:49 weather weewx[469313] INFO weewx.reportengine:
>>> ftpgenerator: Ftp'd 33 files in 7.85 seconds
>>> Jan  1 23:45:57 weather weewx[469313] INFO weewx.reportengine:
>>> ftpgenerator: Ftp'd 33 files in 8.32 seconds
>>> Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record
>>> 2023-01-01 23:50:00 GMT (1672617000) to database 'weewx.sdb'
>>> Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record
>>> 2023-01-01 23:50:00 GMT (1672617000) to daily summary in 'weewx.sdb'
>>> Jan  1 23:50:17 weather weewx[469313] INFO weewx.restx: Windy: Published
>>> record 2023-01-01 23:50:00 GMT (1672617000)
>>> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: PWSWeather:
>>> Published record 2023-01-01 23:50:00 GMT (1672617000)
>>> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: WOW: Published
>>> record 2023-01-01 23:50:00 GMT (1672617000)
>>> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: AWEKAS:
>>> Published record 

Re: [weewx-user] FTP Upload Failed - 0kb File on Remote Server

2023-01-02 Thread 'Rory Gillies' via weewx-user
Hi, yes to clarify all the files are there, it's just a single file that 
has 0kb size. The two servers are completely different, one is my own 
virtual private server running Ubuntu and the other is a hosted Linux 
package. I'll try the level 2 debug and see if it shows up anything. Thanks!

On Monday, January 2, 2023 at 12:09:18 PM UTC tke...@gmail.com wrote:

> I wanted to clarify something you said:
>
> there is a single HTML file on the remote server with 0kb file size 
>
>
> Does that mean it is the only file on the remote server? Or, it's the only 
> file of 0kb size?
>
> I would not rule out a server-side problem. Are the two servers hosted by 
> the same company? Can you check the type of ftp servers they use (the unix 
> command-line interface "ftp" is useful for this).
>
> I can't think of any reason why the presence (or absence) of a file on the 
> server would make any difference as far as weewx is concerned. It is 
> ignorant of the contents on the server and simply uploads anything that has 
> changed.
>
> Try setting debug=2 in weewx.conf. It will create voluminous logging, but 
> it will also give more detail about what's happening.
>
>
>
> On Mon, Jan 2, 2023 at 1:53 AM 'Rory Gillies' via weewx-user <
> weewx...@googlegroups.com> wrote:
>
>> Hi, and Happy New Year. I am experiencing an issue with FTP upload to my 
>> servers, occasionally (say around once a week) WeeWX fails to upload and 
>> there is a single HTML file on the remote server with 0kb file size (it's 
>> not a specific file, however it is usually one of the year or month 
>> reports, and never been the index.html). Deleting the file restores the 
>> upload. I have two FTP skins as I am in the process of porting my site to a 
>> new server, but the 0kb file can happen on either server so it's not 
>> server-side specific. The syslog section is shown below. The files on the 
>> local server are all correct, it's during the FTP upload that something 
>> goes wrong.
>>
>> Has anyone experienced a similar issue?
>>
>> Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record 
>> 2023-01-01 23:45:00 GMT (1672616700) to database 'weewx.sdb'
>> Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record 
>> 2023-01-01 23:45:00 GMT (1672616700) to daily summary in 'weewx.sdb'
>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: Windy: Published 
>> record 2023-01-01 23:45:00 GMT (1672616700)
>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: PWSWeather: 
>> Published record 2023-01-01 23:45:00 GMT (1672616700)
>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: WOW: Published 
>> record 2023-01-01 23:45:00 GMT (1672616700)
>> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: AWEKAS: Published 
>> record 2023-01-01 23:45:00 GMT (1672616700)
>> Jan  1 23:45:20 weather weewx[469313] INFO weewx.cheetahgenerator: 
>> Generated 8 files for report SeasonsReport in 1.21 seconds
>> Jan  1 23:45:21 weather weewx[469313] INFO weewx.imagegenerator: 
>> Generated 15 images for report SeasonsReport in 0.59 seconds
>> Jan  1 23:45:21 weather weewx[469313] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html/weewx/seasons
>> Jan  1 23:45:21 weather weewx[469313] INFO user.historygenerator: 
>> historygenerator.py: Generated 8 tables in 0.08 seconds
>> Jan  1 23:45:38 weather weewx[469313] INFO weewx.cheetahgenerator: 
>> Generated 13 files for report StandardReport in 17.47 seconds
>> Jan  1 23:45:38 weather weewx[469313] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html/weewx
>> Jan  1 23:45:41 weather weewx[469313] INFO weewx.cheetahgenerator: 
>> Generated 2 files for report Emkubed in 2.99 seconds
>> Jan  1 23:45:41 weather weewx[469313] INFO weewx.reportengine: Copied 0 
>> files to /var/www/html/weewx/emkubed
>> Jan  1 23:45:49 weather weewx[469313] INFO weewx.reportengine: 
>> ftpgenerator: Ftp'd 33 files in 7.85 seconds
>> Jan  1 23:45:57 weather weewx[469313] INFO weewx.reportengine: 
>> ftpgenerator: Ftp'd 33 files in 8.32 seconds
>> Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record 
>> 2023-01-01 23:50:00 GMT (1672617000) to database 'weewx.sdb'
>> Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record 
>> 2023-01-01 23:50:00 GMT (1672617000) to daily summary in 'weewx.sdb'
>> Jan  1 23:50:17 weather weewx[469313] INFO weewx.restx: Windy: Published 
>> record 2023-01-01 23:50:00 GMT (1672617000)
>> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: PWSWeather: 
>> Published record 2023-01-01 23:50:00 GMT (1672617000)
>> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: WOW: Published 
>> record 2023-01-01 23:50:00 GMT (1672617000)
>> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: AWEKAS: Published 
>> record 2023-01-01 23:50:00 GMT (1672617000)
>> Jan  1 23:50:19 weather weewx[469313] INFO weewx.cheetahgenerator: 
>> Generated 8 files for report SeasonsReport in 1.13 seconds
>> Jan  1 23:50:19 weather 

Re: [weewx-user] FTP Upload Failed - 0kb File on Remote Server

2023-01-02 Thread Tom Keffer
I wanted to clarify something you said:

there is a single HTML file on the remote server with 0kb file size


Does that mean it is the only file on the remote server? Or, it's the only
file of 0kb size?

I would not rule out a server-side problem. Are the two servers hosted by
the same company? Can you check the type of ftp servers they use (the unix
command-line interface "ftp" is useful for this).

I can't think of any reason why the presence (or absence) of a file on the
server would make any difference as far as weewx is concerned. It is
ignorant of the contents on the server and simply uploads anything that has
changed.

Try setting debug=2 in weewx.conf. It will create voluminous logging, but
it will also give more detail about what's happening.



On Mon, Jan 2, 2023 at 1:53 AM 'Rory Gillies' via weewx-user <
weewx-user@googlegroups.com> wrote:

> Hi, and Happy New Year. I am experiencing an issue with FTP upload to my
> servers, occasionally (say around once a week) WeeWX fails to upload and
> there is a single HTML file on the remote server with 0kb file size (it's
> not a specific file, however it is usually one of the year or month
> reports, and never been the index.html). Deleting the file restores the
> upload. I have two FTP skins as I am in the process of porting my site to a
> new server, but the 0kb file can happen on either server so it's not
> server-side specific. The syslog section is shown below. The files on the
> local server are all correct, it's during the FTP upload that something
> goes wrong.
>
> Has anyone experienced a similar issue?
>
> Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record
> 2023-01-01 23:45:00 GMT (1672616700) to database 'weewx.sdb'
> Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record
> 2023-01-01 23:45:00 GMT (1672616700) to daily summary in 'weewx.sdb'
> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: Windy: Published
> record 2023-01-01 23:45:00 GMT (1672616700)
> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: PWSWeather:
> Published record 2023-01-01 23:45:00 GMT (1672616700)
> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: WOW: Published
> record 2023-01-01 23:45:00 GMT (1672616700)
> Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: AWEKAS: Published
> record 2023-01-01 23:45:00 GMT (1672616700)
> Jan  1 23:45:20 weather weewx[469313] INFO weewx.cheetahgenerator:
> Generated 8 files for report SeasonsReport in 1.21 seconds
> Jan  1 23:45:21 weather weewx[469313] INFO weewx.imagegenerator: Generated
> 15 images for report SeasonsReport in 0.59 seconds
> Jan  1 23:45:21 weather weewx[469313] INFO weewx.reportengine: Copied 0
> files to /var/www/html/weewx/seasons
> Jan  1 23:45:21 weather weewx[469313] INFO user.historygenerator:
> historygenerator.py: Generated 8 tables in 0.08 seconds
> Jan  1 23:45:38 weather weewx[469313] INFO weewx.cheetahgenerator:
> Generated 13 files for report StandardReport in 17.47 seconds
> Jan  1 23:45:38 weather weewx[469313] INFO weewx.reportengine: Copied 0
> files to /var/www/html/weewx
> Jan  1 23:45:41 weather weewx[469313] INFO weewx.cheetahgenerator:
> Generated 2 files for report Emkubed in 2.99 seconds
> Jan  1 23:45:41 weather weewx[469313] INFO weewx.reportengine: Copied 0
> files to /var/www/html/weewx/emkubed
> Jan  1 23:45:49 weather weewx[469313] INFO weewx.reportengine:
> ftpgenerator: Ftp'd 33 files in 7.85 seconds
> Jan  1 23:45:57 weather weewx[469313] INFO weewx.reportengine:
> ftpgenerator: Ftp'd 33 files in 8.32 seconds
> Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record
> 2023-01-01 23:50:00 GMT (1672617000) to database 'weewx.sdb'
> Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record
> 2023-01-01 23:50:00 GMT (1672617000) to daily summary in 'weewx.sdb'
> Jan  1 23:50:17 weather weewx[469313] INFO weewx.restx: Windy: Published
> record 2023-01-01 23:50:00 GMT (1672617000)
> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: PWSWeather:
> Published record 2023-01-01 23:50:00 GMT (1672617000)
> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: WOW: Published
> record 2023-01-01 23:50:00 GMT (1672617000)
> Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: AWEKAS: Published
> record 2023-01-01 23:50:00 GMT (1672617000)
> Jan  1 23:50:19 weather weewx[469313] INFO weewx.cheetahgenerator:
> Generated 8 files for report SeasonsReport in 1.13 seconds
> Jan  1 23:50:19 weather weewx[469313] INFO weewx.imagegenerator: Generated
> 15 images for report SeasonsReport in 0.58 seconds
> Jan  1 23:50:19 weather weewx[469313] INFO weewx.reportengine: Copied 0
> files to /var/www/html/weewx/seasons
> Jan  1 23:50:19 weather weewx[469313] INFO user.historygenerator:
> historygenerator.py: Generated 8 tables in 0.08 seconds
> Jan  1 23:50:37 weather weewx[469313] INFO weewx.cheetahgenerator:
> Generated 13 files for report StandardReport in 17.37 seconds
> Jan  1 23:50:37 weather 

[weewx-user] FTP Upload Failed - 0kb File on Remote Server

2023-01-02 Thread 'Rory Gillies' via weewx-user
Hi, and Happy New Year. I am experiencing an issue with FTP upload to my 
servers, occasionally (say around once a week) WeeWX fails to upload and 
there is a single HTML file on the remote server with 0kb file size (it's 
not a specific file, however it is usually one of the year or month 
reports, and never been the index.html). Deleting the file restores the 
upload. I have two FTP skins as I am in the process of porting my site to a 
new server, but the 0kb file can happen on either server so it's not 
server-side specific. The syslog section is shown below. The files on the 
local server are all correct, it's during the FTP upload that something 
goes wrong.

Has anyone experienced a similar issue?

Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record 
2023-01-01 23:45:00 GMT (1672616700) to database 'weewx.sdb'
Jan  1 23:45:18 weather weewx[469313] INFO weewx.manager: Added record 
2023-01-01 23:45:00 GMT (1672616700) to daily summary in 'weewx.sdb'
Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: Windy: Published 
record 2023-01-01 23:45:00 GMT (1672616700)
Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: PWSWeather: 
Published record 2023-01-01 23:45:00 GMT (1672616700)
Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: WOW: Published 
record 2023-01-01 23:45:00 GMT (1672616700)
Jan  1 23:45:19 weather weewx[469313] INFO weewx.restx: AWEKAS: Published 
record 2023-01-01 23:45:00 GMT (1672616700)
Jan  1 23:45:20 weather weewx[469313] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 1.21 seconds
Jan  1 23:45:21 weather weewx[469313] INFO weewx.imagegenerator: Generated 
15 images for report SeasonsReport in 0.59 seconds
Jan  1 23:45:21 weather weewx[469313] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx/seasons
Jan  1 23:45:21 weather weewx[469313] INFO user.historygenerator: 
historygenerator.py: Generated 8 tables in 0.08 seconds
Jan  1 23:45:38 weather weewx[469313] INFO weewx.cheetahgenerator: 
Generated 13 files for report StandardReport in 17.47 seconds
Jan  1 23:45:38 weather weewx[469313] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx
Jan  1 23:45:41 weather weewx[469313] INFO weewx.cheetahgenerator: 
Generated 2 files for report Emkubed in 2.99 seconds
Jan  1 23:45:41 weather weewx[469313] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx/emkubed
Jan  1 23:45:49 weather weewx[469313] INFO weewx.reportengine: 
ftpgenerator: Ftp'd 33 files in 7.85 seconds
Jan  1 23:45:57 weather weewx[469313] INFO weewx.reportengine: 
ftpgenerator: Ftp'd 33 files in 8.32 seconds
Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record 
2023-01-01 23:50:00 GMT (1672617000) to database 'weewx.sdb'
Jan  1 23:50:17 weather weewx[469313] INFO weewx.manager: Added record 
2023-01-01 23:50:00 GMT (1672617000) to daily summary in 'weewx.sdb'
Jan  1 23:50:17 weather weewx[469313] INFO weewx.restx: Windy: Published 
record 2023-01-01 23:50:00 GMT (1672617000)
Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: PWSWeather: 
Published record 2023-01-01 23:50:00 GMT (1672617000)
Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: WOW: Published 
record 2023-01-01 23:50:00 GMT (1672617000)
Jan  1 23:50:18 weather weewx[469313] INFO weewx.restx: AWEKAS: Published 
record 2023-01-01 23:50:00 GMT (1672617000)
Jan  1 23:50:19 weather weewx[469313] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 1.13 seconds
Jan  1 23:50:19 weather weewx[469313] INFO weewx.imagegenerator: Generated 
15 images for report SeasonsReport in 0.58 seconds
Jan  1 23:50:19 weather weewx[469313] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx/seasons
Jan  1 23:50:19 weather weewx[469313] INFO user.historygenerator: 
historygenerator.py: Generated 8 tables in 0.08 seconds
Jan  1 23:50:37 weather weewx[469313] INFO weewx.cheetahgenerator: 
Generated 13 files for report StandardReport in 17.37 seconds
Jan  1 23:50:37 weather weewx[469313] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx
Jan  1 23:50:40 weather weewx[469313] INFO weewx.cheetahgenerator: 
Generated 2 files for report Emkubed in 3.00 seconds
Jan  1 23:50:40 weather weewx[469313] INFO weewx.reportengine: Copied 0 
files to /var/www/html/weewx/emkubed
Jan  1 23:51:00 weather weewx[469313] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/month-2023-01.html to server 
www.360shetland.co.uk. Reason: 'timed out'
Jan  1 23:51:00 weather weewx[469313] ERROR weewx.reportengine: 
ftpgenerator: (0): caught exception '': timed out
Jan  1 23:51:00 weather weewx[469313] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Jan  1 23:51:00 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
Jan  1 23:51:00 weather weewx[469313] ERROR weewx.reportengine: 
  n = ftp_data.run()
Jan  1 23:51:00 

[weewx-user] FTP Upload Failed - 0kb html file on server

2023-01-02 Thread 'Rory Gillies' via weewx-user
Hi, and Happy New Year. I am experiencing an issue with FTP upload to my 
servers, occasionally (say around once a week) WeeWX fails to upload and 
there is a single HTML file on the remote server with 0kb file size (it's 
not a specific file, however it is usually one of the year or month 
reports, and never been the index.html). Deleting the file restores the 
upload. I have two FTP skins as I am in the process of porting my site to a 
new server, but the 0kb file can happen on either server so it's not 
server-side specific. The syslog section is shown below.

Has anyone experienced a similar issue?

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
ftpgenerator: (1): caught exception '': timed out

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  Traceback (most recent call last):

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 436, in run

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  n = ftp_data.run()

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  with self.transfercmd(cmd, rest) as conn:

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  return self.ntransfercmd(cmd, rest)[0]

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 352, in ntransfercmd

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  resp = self.sendcmd(cmd)

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 279, in sendcmd

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  return self.getresp()

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 242, in getresp

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  resp = self.getmultiline()

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 228, in getmultiline

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  line = self.getline()

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 210, in getline

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  line = self.file.readline(self.maxline + 1)

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/socket.py", line 704, in readinto

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  return self._sock.recv_into(b)

Jan  1 23:51:21 weather weewx[469313] ERROR weewx.reportengine: 
  socket.timeout: timed out

Jan  1 23:51:41 weather weewx[469313] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/month-2023-01.html to server 
www.360shetland.co.uk. Reason: 'timed out'

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': timed out

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
  Traceback (most recent call last):

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 436, in run

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
  n = ftp_data.run()

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 491, in storbinary

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
  with self.transfercmd(cmd, rest) as conn:

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
File "/usr/lib/python3.9/ftplib.py", line 386, in transfercmd

Jan  1 23:51:41 weather weewx[469313] ERROR weewx.reportengine: 
  return self.ntransfercmd(cmd, rest)[0]

Jan  1 23:51:41 

Re: [weewx-user] ftp upload issues

2022-11-25 Thread Alex Vanuxem
Solved reinstalled belchertown . Sorry

Op vr 25 nov. 2022 20:40 schreef Alex Vanuxem :

> hi
>
> need some help,
>
> all was working well and suddenly i got this error:
>
> working in virtual box, running belchertown skin :
>
> can somebody help?
>
> Nov 25 20:21:16 alex weewx[1975] DEBUG user.WLLDriver: Weewx packet from
> WLL module : {'dateTime': 1669404075, 'usUnits': 1, 'windSpeed': 0.0,
> 'windDir': 0, 'windGust': 4.0, 'windGustDir': 171, 'rain': 0.0, 'rainRate':
> 0}
> Nov 25 20:21:16 alex weewx[1975] INFO weewx.manager: Added record
> 2022-11-25 20:21:00 CET (1669404060) to database 'weewx.sdb'
> Nov 25 20:21:16 alex weewx[1975] INFO weewx.manager: Added record
> 2022-11-25 20:21:00 CET (1669404060) to daily summary in 'weewx.sdb'
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.restx: StationRegistry: wait
> interval (60 < 86400) has not passed for record 2022-11-25 20:21:00 CET
> (1669404060)
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Running reports
> for latest time in the database.
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report
> 'SeasonsReport' not enabled. Skipping.
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report
> 'SmartphoneReport' not enabled. Skipping.
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report
> 'MobileReport' not enabled. Skipping.
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report
> 'StandardReport' not enabled. Skipping.
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Running report
> 'Belchertown'
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Found
> configuration file /etc/weewx/skins/Belchertown/skin.conf for report
> 'Belchertown'
> Nov 25 20:21:16 alex weewx[1975] DEBUG urllib3.connectionpool: Starting
> new HTTP connection (1): 192.168.0.233:80
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Cannot read
> localization file /etc/weewx/skins/Belchertown/lang/en.conf for report
> 'Belchertown': Config file not found:
> "/etc/weewx/skins/Belchertown/lang/en.conf".
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine:  Using
> defaults instead.
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.cheetahgenerator: Using
> search list ['user.belchertown.getData', 'weewx.cheetahgenerator.Almanac',
> 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions',
> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext',
> 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo',
> 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station',
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
> Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.manager: Daily summary
> version is 4.0
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: Caught
> unrecoverable exception in generator
> 'weewx.cheetahgenerator.CheetahGenerator'
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  Cannot compute the section depth at line 114.
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  Traceback (most recent call last):
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>obj.start()
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>self.run()
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 169, in run
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>ngen = self.generate(gen_dict[section_name], section_name, self.gen_ts)
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 229, in generate
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>ngen += self.generate(section[subsection], subsection, gen_ts)
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 229, in generate
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>ngen += self.generate(section[subsection], subsection, gen_ts)
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 321, in generate
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>searchList = self._getSearchList(encoding, timespan,
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 415, in
> _getSearchList
> Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: 
>  

[weewx-user] ftp upload issues

2022-11-25 Thread Alex Vanuxem
hi 

need some help,

all was working well and suddenly i got this error:

working in virtual box, running belchertown skin :

can somebody help?

Nov 25 20:21:16 alex weewx[1975] DEBUG user.WLLDriver: Weewx packet from 
WLL module : {'dateTime': 1669404075, 'usUnits': 1, 'windSpeed': 0.0, 
'windDir': 0, 'windGust': 4.0, 'windGustDir': 171, 'rain': 0.0, 'rainRate': 
0}
Nov 25 20:21:16 alex weewx[1975] INFO weewx.manager: Added record 
2022-11-25 20:21:00 CET (1669404060) to database 'weewx.sdb'
Nov 25 20:21:16 alex weewx[1975] INFO weewx.manager: Added record 
2022-11-25 20:21:00 CET (1669404060) to daily summary in 'weewx.sdb'
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.restx: StationRegistry: wait 
interval (60 < 86400) has not passed for record 2022-11-25 20:21:00 CET 
(1669404060)
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Running reports 
for latest time in the database.
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report 
'SeasonsReport' not enabled. Skipping.
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report 
'SmartphoneReport' not enabled. Skipping.
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report 
'MobileReport' not enabled. Skipping.
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Report 
'StandardReport' not enabled. Skipping.
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Running report 
'Belchertown'
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Belchertown/skin.conf for report 
'Belchertown'
Nov 25 20:21:16 alex weewx[1975] DEBUG urllib3.connectionpool: Starting new 
HTTP connection (1): 192.168.0.233:80
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine: Cannot read 
localization file /etc/weewx/skins/Belchertown/lang/en.conf for report 
'Belchertown': Config file not found: 
"/etc/weewx/skins/Belchertown/lang/en.conf".
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.reportengine:  Using 
defaults instead.
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.cheetahgenerator: Using search 
list ['user.belchertown.getData', 'weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 
'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 
'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 
'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
Nov 25 20:21:16 alex weewx[1975] DEBUG weewx.manager: Daily summary version 
is 4.0
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 
'weewx.cheetahgenerator.CheetahGenerator'
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 Cannot compute the section depth at line 114.
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 Traceback (most recent call last):
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 obj.start()
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 self.run()
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/cheetahgenerator.py", line 169, in run
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 ngen = self.generate(gen_dict[section_name], section_name, self.gen_ts)
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/cheetahgenerator.py", line 229, in generate
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 ngen += self.generate(section[subsection], subsection, gen_ts)
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/cheetahgenerator.py", line 229, in generate
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 ngen += self.generate(section[subsection], subsection, gen_ts)
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/cheetahgenerator.py", line 321, in generate
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 searchList = self._getSearchList(encoding, timespan,
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/weewx/cheetahgenerator.py", line 415, in 
_getSearchList
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:  
 search_list += obj.get_extension_list(timespan, db_lookup)
Nov 25 20:21:16 alex weewx[1975] ERROR weewx.reportengine:    
 File "/usr/share/weewx/user/belchertown.py", line 

Re: [weewx-user] FTP upload error

2022-10-26 Thread vladimir...@gmail.com
Im deleted folder on ftp server /html_public
everything work!

среда, 26 октября 2022 г. в 03:55:49 UTC+3, tke...@gmail.com: 

> I am unable to debug your FTP because the connection is consistently 
> refused. I'm not sure, but with a server in Germany, but a Russian domain, 
> you may have gotten caught up in the Ukraine conflict. 
>
>
>
> On Tue, Oct 25, 2022 at 11:49 AM vladimir...@gmail.com <
> vladimir...@gmail.com> wrote:
>
>> Oct 25 21:42:02 pogoda-ubuntu weewx[1056] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/weektempin.png to server web.ru. Reason: 
>> 'timed out'
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': timed out
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     Traceback (most recent call last):
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     n = ftp_data.run()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     ftp_server.storbinary(stor_cmd, fd)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     conn = self.transfercmd(cmd, rest)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     return self.ntransfercmd(cmd, rest)[0]
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     resp = self.sendcmd(cmd)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     return self.getresp()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     resp = self.getmultiline()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     line = self.getline()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 190, in getline
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     line = self.file.readline(self.maxline + 1)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/socket.py", line 480, in readline
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     data = self._sock.recv(self._rbufsize)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     timeout: timed out
>>
>> среда, 5 октября 2022 г. в 06:40:33 UTC+3, tke...@gmail.com: 
>>
>>> 1. How about some more details? In particular, could we see the [[FTP]] 
>>> section of weewx.conf? Be sure to obfuscate any sensitive materials, such 
>>> as text.
>>> 2. Do you know which FTP server your provider is using?
>>>
>>> On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
>>> vladimir...@gmail.com> 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
 Midnight Commander  FTP client - connection successful, creating and 
 deleting files

 log
 Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload: 
 Failed uploading /var/www/html/weewx/weekwinddir.png to server 
 xxx.timeweb.ru. Reason: 'timed out'
 Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
 ftpgenerator: (2): caught exception '': timed out
 Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
     Traceback (most recent call last):
 Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
   File "/usr/share/weewx/weewx/reportengine.py", line 436, in 
 run
 Oct  4 

Re: [weewx-user] FTP upload error

2022-10-26 Thread vladimir...@gmail.com
Midnight Commander installed on the system connects perfectly to the FTP 
server


среда, 26 октября 2022 г. в 03:55:49 UTC+3, tke...@gmail.com: 

> I am unable to debug your FTP because the connection is consistently 
> refused. I'm not sure, but with a server in Germany, but a Russian domain, 
> you may have gotten caught up in the Ukraine conflict. 
>
>
>
> On Tue, Oct 25, 2022 at 11:49 AM vladimir...@gmail.com <
> vladimir...@gmail.com> wrote:
>
>> Oct 25 21:42:02 pogoda-ubuntu weewx[1056] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/weektempin.png to server web.ru. Reason: 
>> 'timed out'
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': timed out
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     Traceback (most recent call last):
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     n = ftp_data.run()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     ftp_server.storbinary(stor_cmd, fd)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     conn = self.transfercmd(cmd, rest)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     return self.ntransfercmd(cmd, rest)[0]
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     resp = self.sendcmd(cmd)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     return self.getresp()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     resp = self.getmultiline()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     line = self.getline()
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/ftplib.py", line 190, in getline
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     line = self.file.readline(self.maxline + 1)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>   File "/usr/lib/python2.7/socket.py", line 480, in readline
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     data = self._sock.recv(self._rbufsize)
>> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:   
>>     timeout: timed out
>>
>> среда, 5 октября 2022 г. в 06:40:33 UTC+3, tke...@gmail.com: 
>>
>>> 1. How about some more details? In particular, could we see the [[FTP]] 
>>> section of weewx.conf? Be sure to obfuscate any sensitive materials, such 
>>> as text.
>>> 2. Do you know which FTP server your provider is using?
>>>
>>> On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
>>> vladimir...@gmail.com> 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
 Midnight Commander  FTP client - connection successful, creating and 
 deleting files

 log
 Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload: 
 Failed uploading /var/www/html/weewx/weekwinddir.png to server 
 xxx.timeweb.ru. Reason: 'timed out'
 Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
 ftpgenerator: (2): caught exception '': timed out
 Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
     Traceback (most recent call last):
 Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
   File "/usr/share/weewx/weewx/reportengine.py", line 436, in 
 

Re: [weewx-user] FTP upload error

2022-10-25 Thread Tom Keffer
I am unable to debug your FTP because the connection is consistently
refused. I'm not sure, but with a server in Germany, but a Russian domain,
you may have gotten caught up in the Ukraine conflict.



On Tue, Oct 25, 2022 at 11:49 AM vladimir...@gmail.com <
vladimir.a.mo...@gmail.com> wrote:

> Oct 25 21:42:02 pogoda-ubuntu weewx[1056] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/weektempin.png to server web.ru. Reason:
> 'timed out'
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
> ftpgenerator: (2): caught exception '': timed out
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     Traceback (most recent call last):
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     n = ftp_data.run()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     ftp_server.storbinary(stor_cmd, fd)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     conn = self.transfercmd(cmd, rest)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     return self.ntransfercmd(cmd, rest)[0]
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     resp = self.sendcmd(cmd)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     return self.getresp()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     resp = self.getmultiline()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     line = self.getline()
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 190, in getline
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     line = self.file.readline(self.maxline + 1)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/socket.py", line 480, in readline
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     data = self._sock.recv(self._rbufsize)
> Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine:
>     timeout: timed out
>
> среда, 5 октября 2022 г. в 06:40:33 UTC+3, tke...@gmail.com:
>
>> 1. How about some more details? In particular, could we see the [[FTP]]
>> section of weewx.conf? Be sure to obfuscate any sensitive materials, such
>> as text.
>> 2. Do you know which FTP server your provider is using?
>>
>> On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
>> vladimir...@gmail.com> 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
>>> Midnight Commander  FTP client - connection successful, creating and
>>> deleting files
>>>
>>> log
>>> Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload:
>>> Failed uploading /var/www/html/weewx/weekwinddir.png to server
>>> xxx.timeweb.ru. Reason: 'timed out'
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>> ftpgenerator: (2): caught exception '': timed out
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>>   Traceback (most recent call last):
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>> File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>>   n = ftp_data.run()
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>> File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
>>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>>>   ftp_server.storbinary(stor_cmd, fd)
>>> Oct  4 20:47:23 

Re: [weewx-user] FTP upload error

2022-10-25 Thread vladimir...@gmail.com
Oct 25 21:42:02 pogoda-ubuntu weewx[1056] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/weektempin.png to server web.ru. Reason: 
'timed out'
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': timed out
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 437, in run
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  n = ftp_data.run()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 220, in run
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  conn = self.transfercmd(cmd, rest)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  return self.ntransfercmd(cmd, rest)[0]
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  resp = self.sendcmd(cmd)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  return self.getresp()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  resp = self.getmultiline()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  line = self.getline()
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/ftplib.py", line 190, in getline
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  line = self.file.readline(self.maxline + 1)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
File "/usr/lib/python2.7/socket.py", line 480, in readline
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  data = self._sock.recv(self._rbufsize)
Oct 25 21:42:22 pogoda-ubuntu weewx[1056] ERROR weewx.reportengine: 
  timeout: timed out

среда, 5 октября 2022 г. в 06:40:33 UTC+3, tke...@gmail.com: 

> 1. How about some more details? In particular, could we see the [[FTP]] 
> section of weewx.conf? Be sure to obfuscate any sensitive materials, such 
> as text.
> 2. Do you know which FTP server your provider is using?
>
> On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
> vladimir...@gmail.com> 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
>> Midnight Commander  FTP client - connection successful, creating and 
>> deleting files
>>
>> log
>> Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload: 
>> Failed uploading /var/www/html/weewx/weekwinddir.png to server 
>> xxx.timeweb.ru. Reason: 'timed out'
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': timed out
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   Traceback (most recent call last):
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   n = ftp_data.run()
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   ftp_server.storbinary(stor_cmd, fd)
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>> File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
>> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
>>   conn = 

Re: [weewx-user] FTP upload error

2022-10-04 Thread Tom Keffer
1. How about some more details? In particular, could we see the [[FTP]]
section of weewx.conf? Be sure to obfuscate any sensitive materials, such
as text.
2. Do you know which FTP server your provider is using?

On Tue, Oct 4, 2022 at 11:01 AM vladimir...@gmail.com <
vladimir.a.mo...@gmail.com> 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
> Midnight Commander  FTP client - connection successful, creating and
> deleting files
>
> log
> Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/weekwinddir.png to server xxx.timeweb.ru.
> Reason: 'timed out'
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
> ftpgenerator: (2): caught exception '': timed out
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     Traceback (most recent call last):
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     n = ftp_data.run()
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     ftp_server.storbinary(stor_cmd, fd)
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     conn = self.transfercmd(cmd, rest)
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     return self.ntransfercmd(cmd, rest)[0]
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     resp = self.sendcmd(cmd)
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     return self.getresp()
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     resp = self.getmultiline()
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     line = self.getline()
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/ftplib.py", line 190, in getline
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     line = self.file.readline(self.maxline + 1)
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>   File "/usr/lib/python2.7/socket.py", line 480, in readline
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     data = self._sock.recv(self._rbufsize)
> Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:
>     timeout: timed out
>
> --
> 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/4ca99984-b8df-493c-b168-2e8f5e3f548bn%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/CAPq0zEC2Y7bP9qJoFFF6te%2BeRQoc6_EZJH9u5brGhx9KBJjZqQ%40mail.gmail.com.


[weewx-user] FTP upload error

2022-10-04 Thread vladimir...@gmail.com
Hi,
Suddenly and out of the blue my ftp upload stopped working. The html files 
are generated as expected in /var/www/html/weewx
Midnight Commander  FTP client - connection successful, creating and 
deleting files

log
Oct  4 20:47:03 pogoda-ubuntu weewx[10451] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/weekwinddir.png to server xxx.timeweb.ru. 
Reason: 'timed out'
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': timed out
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    Traceback (most recent call last):
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    n = ftp_data.run()
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    ftp_server.storbinary(stor_cmd, fd)
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 486, in storbinary
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    conn = self.transfercmd(cmd, rest)
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 385, in transfercmd
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    return self.ntransfercmd(cmd, rest)[0]
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 348, in ntransfercmd
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    resp = self.sendcmd(cmd)
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 253, in sendcmd
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    return self.getresp()
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 219, in getresp
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    resp = self.getmultiline()
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 205, in getmultiline
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    line = self.getline()
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/ftplib.py", line 190, in getline
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    line = self.file.readline(self.maxline + 1)
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
  File "/usr/lib/python2.7/socket.py", line 480, in readline
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    data = self._sock.recv(self._rbufsize)
Oct  4 20:47:23 pogoda-ubuntu weewx[10451] ERROR weewx.reportengine:   
    timeout: timed out

-- 
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/4ca99984-b8df-493c-b168-2e8f5e3f548bn%40googlegroups.com.


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.


[weewx-user] FTP Upload error 451

2022-09-05 Thread ewhain...@gmail.com
So my initial issue was a bac USB cable, completely weird since I hadn't 
touched the setup..

Now, after going back and forth with my provider, I was switched to a new 
server and had to change the path. Their "help" page was incorrect.

ANYWAY - I am getting FTP uploads with the exception of the following:

Sep  5 15:26:07 weatherpi weewx[30940] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/index.html to server vmcp17.machighway.com. 
Reason: '451-Error during read from data connection#012451-Transfer 
aborted#012451 0.082 seconds (measured here), 194.36 Kbytes per second'
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': 
451-Error during read from data connection#012451-Transfer aborted#012451 
0.082 seconds (measured here), 194.36 Kbytes per second
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 436, in run
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  n = ftp_data.run()
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 210, in run
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 515, in storbinary
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  return self.voidresp()
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  resp = self.getresp()
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 244, in getresp
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  raise error_temp(resp)
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  ftplib.error_temp: 451-Error during read from data connection
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  451-Transfer aborted
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
  451 0.082 seconds (measured here), 194.36 Kbytes per second
Sep  5 15:26:07 weatherpi weewx[30940] ERROR weewx.reportengine: 
ftpgenerator: Upload failed


Is this error on the WeeWx side or the provider side?
What does this error mean and how do I correct it?

Thanks!!!

-- 
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/eca18a00-1288-4a64-b7d2-cab2d21037f7n%40googlegroups.com.


[weewx-user] Ftp upload

2022-03-09 Thread Kalli Gøtze
Hi all,
I run Weewx 4.6.2 on my Notebook whit Ubuntu 20.04 it work's fine but the 
upload to my Website didn't work to Awekas it work's. 
If i run sudo tail -f /var/log/syslog it show me this 

Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weeutil.ftpupload: Failed 
uploading /home/weewx/public_html/monthhum.png to server 
francium.selfhost.de. Reason: '550 /home/weewx/public_html/monthhum.png: No 
such file or directory'
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': 550 
/home/weewx/public_html/monthhum.png: No such file or directory
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
    Traceback (most recent call last):
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/reportengine.py", line 429, in run
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
    n = ftp_data.run()
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weeutil/ftpupload.py", line 210, in run
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
    ftp_server.storbinary(stor_cmd, fd)
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
  File "/usr/lib/python3.8/ftplib.py", line 494, in storbinary
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
    with self.transfercmd(cmd, rest) as conn:
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
  File "/usr/lib/python3.8/ftplib.py", line 389, in transfercmd
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
    return self.ntransfercmd(cmd, rest)[0]
Mar  9 17:50:52 kalli-HP-8440p weewx[17683] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weeutil/ftpupload.py", line 119, in 
ntransfercmd

I don't know what i have to do,can someone help?
regards Karl

-- 
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/5e8e9af3-e768-4c94-b345-fb5e6c44d3dan%40googlegroups.com.


Re: [weewx-user] ftp upload fails

2021-04-10 Thread Tom Keffer
Whether to allow "dot" directories to be uploaded is a policy of the FTP
server, not the client.

With the revised version of ftpupload.py it will at least tell you the
directory name.

On Sat, Apr 10, 2021 at 5:24 AM Chris Thompstone 
wrote:

> Yeah all seems good.  Can I suggest a check for . files and . directories
> and don't allow ftp upload on those.  For a future version?
> Thanks a pleasure as always.
> Regards to all.
>
> On Saturday, 10 April 2021 at 13:13:44 UTC+1 Chris Thompstone wrote:
>
>> Just testing now, first loop after the restart went well, Just want to
>> check how many files upload on the next.
>>
>> No idea where that directory came from, but will it reappear again?
>> Will test the driver in a min, when sorted this...
>> Thanks
>> Chris
>>
>> On Saturday, 10 April 2021 at 13:07:36 UTC+1 tke...@gmail.com wrote:
>>
>>> Somehow a directory name of ".gnupg" snuck into /var/www. Get rid of it,
>>> and all should be well.
>>>
>>> On Sat, Apr 10, 2021 at 5:02 AM Chris Thompstone 
>>> wrote:
>>>
 Thanks,
 Looks like there is a . directory in there somehow it doesn't like
 Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded
 file /var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
 Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: 150
 ./NOAA/NOAA-2014-12.txt
 1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
 Apr 10 13:01:10 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded
 file /var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
 Apr 10 13:01:10 weewx weewx[7765] ERROR weeutil.ftpupload: Error
 creating directory /.gnupg
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
 ftpgenerator: (0): caught exception '': 553
 Prohibited directory name
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    Traceback (most recent call last):
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    n = ftp_data.run()
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    _make_remote_dir(ftp_server, remote_dir_path)
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in
 _make_remote_dir
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    ftp_server.mkd(remote_dir_path)
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    resp = self.voidcmd('MKD ' + dirname)
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    return self.voidresp()
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    resp = self.getresp()
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
  File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    raise error_perm(resp)
 Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
    ftplib.error_perm: 553 Prohibited directory name


 On Saturday, 10 April 2021 at 12:53:42 UTC+1 tke...@gmail.com wrote:

> Too bad it doesn't tell us what the directory name is. Try this
> version of weeutil/ftpload.py. It will log the directory name.
>
> -tk
>
> On Sat, Apr 10, 2021 at 4:47 AM Chris Thompstone <
> chris.th...@gmail.com> wrote:
>
>> Hi, thought I'd better start a new topic.
>> Have just moved to ver 4.5.1 from 3.9.x
>> Have copied my standard skin over etc, database and so forth.
>> But I can't use the FTP upload to remote server.
>> I get the below and it just loops continuously, trying to upload the
>> whole of the www forever.  So I have to turn it off, my broadband can't
>> handle it.
>> It seems to error on the 1 file, if I delete it all, the error will
>> still happen, but moves to a different file.
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144
>> ./NOAA/NOAA-2015-06.txt
>> 3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded
>> file /var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
>> Apr 

Re: [weewx-user] ftp upload fails

2021-04-10 Thread Chris Thompstone
Yeah all seems good.  Can I suggest a check for . files and . directories 
and don't allow ftp upload on those.  For a future version?
Thanks a pleasure as always.
Regards to all.

On Saturday, 10 April 2021 at 13:13:44 UTC+1 Chris Thompstone wrote:

> Just testing now, first loop after the restart went well, Just want to 
> check how many files upload on the next.
>
> No idea where that directory came from, but will it reappear again?
> Will test the driver in a min, when sorted this...
> Thanks
> Chris
>
> On Saturday, 10 April 2021 at 13:07:36 UTC+1 tke...@gmail.com wrote:
>
>> Somehow a directory name of ".gnupg" snuck into /var/www. Get rid of it, 
>> and all should be well.
>>
>> On Sat, Apr 10, 2021 at 5:02 AM Chris Thompstone  
>> wrote:
>>
>>> Thanks,
>>> Looks like there is a . directory in there somehow it doesn't like
>>> Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file 
>>> /var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
>>> Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: 150 
>>> ./NOAA/NOAA-2014-12.txt 
>>> 1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
>>> Apr 10 13:01:10 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file 
>>> /var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weeutil.ftpupload: Error 
>>> creating directory /.gnupg
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>>> ftpgenerator: (0): caught exception '': 553 
>>> Prohibited directory name
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    Traceback (most recent call last):
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    n = ftp_data.run()
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    _make_remote_dir(ftp_server, remote_dir_path)
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in 
>>> _make_remote_dir
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    ftp_server.mkd(remote_dir_path)
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    resp = self.voidcmd('MKD ' + dirname)
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    return self.voidresp()
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    resp = self.getresp()
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>  File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    raise error_perm(resp)
>>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:
>>>    ftplib.error_perm: 553 Prohibited directory name
>>>
>>>
>>> On Saturday, 10 April 2021 at 12:53:42 UTC+1 tke...@gmail.com wrote:
>>>
 Too bad it doesn't tell us what the directory name is. Try this version 
 of weeutil/ftpload.py. It will log the directory name.

 -tk

 On Sat, Apr 10, 2021 at 4:47 AM Chris Thompstone  
 wrote:

> Hi, thought I'd better start a new topic.
> Have just moved to ver 4.5.1 from 3.9.x
> Have copied my standard skin over etc, database and so forth.
> But I can't use the FTP upload to remote server.
> I get the below and it just loops continuously, trying to upload the 
> whole of the www forever.  So I have to turn it off, my broadband can't 
> handle it.
> It seems to error on the 1 file, if I delete it all, the error will 
> still happen, but moves to a different file.
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144 
> ./NOAA/NOAA-2015-06.txt 
> 3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded 
> file /var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 145 
> ./NOAA/NOAA-2015-05.txt 
> f261402ab917dc68cccbe73afb6e88213369a894a30613cc82505ea005923ca7
> Apr 10 12:33:04 weewx weewx[7372] DEBUG 

Re: [weewx-user] ftp upload fails

2021-04-10 Thread Chris Thompstone
Just testing now, first loop after the restart went well, Just want to 
check how many files upload on the next.

No idea where that directory came from, but will it reappear again?
Will test the driver in a min, when sorted this...
Thanks
Chris

On Saturday, 10 April 2021 at 13:07:36 UTC+1 tke...@gmail.com wrote:

> Somehow a directory name of ".gnupg" snuck into /var/www. Get rid of it, 
> and all should be well.
>
> On Sat, Apr 10, 2021 at 5:02 AM Chris Thompstone  
> wrote:
>
>> Thanks,
>> Looks like there is a . directory in there somehow it doesn't like
>> Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
>> Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: 150 
>> ./NOAA/NOAA-2014-12.txt 
>> 1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
>> Apr 10 13:01:10 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weeutil.ftpupload: Error creating 
>> directory /.gnupg
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: ftpgenerator: 
>> (0): caught exception '': 553 Prohibited 
>> directory name
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> Traceback (most recent call last):
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> n = ftp_data.run()
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> _make_remote_dir(ftp_server, remote_dir_path)
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in _make_remote_dir
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> ftp_server.mkd(remote_dir_path)
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> resp = self.voidcmd('MKD ' + dirname)
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> return self.voidresp()
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> resp = self.getresp()
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>>   File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> raise error_perm(resp)
>> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
>> ftplib.error_perm: 553 Prohibited directory name
>>
>>
>> On Saturday, 10 April 2021 at 12:53:42 UTC+1 tke...@gmail.com wrote:
>>
>>> Too bad it doesn't tell us what the directory name is. Try this version 
>>> of weeutil/ftpload.py. It will log the directory name.
>>>
>>> -tk
>>>
>>> On Sat, Apr 10, 2021 at 4:47 AM Chris Thompstone  
>>> wrote:
>>>
 Hi, thought I'd better start a new topic.
 Have just moved to ver 4.5.1 from 3.9.x
 Have copied my standard skin over etc, database and so forth.
 But I can't use the FTP upload to remote server.
 I get the below and it just loops continuously, trying to upload the 
 whole of the www forever.  So I have to turn it off, my broadband can't 
 handle it.
 It seems to error on the 1 file, if I delete it all, the error will 
 still happen, but moves to a different file.
 Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144 
 ./NOAA/NOAA-2015-06.txt 
 3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
 Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded 
 file /var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
 Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 145 
 ./NOAA/NOAA-2015-05.txt 
 f261402ab917dc68cccbe73afb6e88213369a894a30613cc82505ea005923ca7
 Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded 
 file /var/www/NOAA/NOAA-2015-05.txt to /NOAA/NOAA-2015-05.txt
 Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 146 
 ./NOAA/NOAA-2015-04.txt 
 e5dca630c7f48cbd72ad396b4e869a3732497db4580654f6617aa091b443161b
 Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded 
 file 

Re: [weewx-user] ftp upload fails

2021-04-10 Thread Tom Keffer
Somehow a directory name of ".gnupg" snuck into /var/www. Get rid of it,
and all should be well.

On Sat, Apr 10, 2021 at 5:02 AM Chris Thompstone 
wrote:

> Thanks,
> Looks like there is a . directory in there somehow it doesn't like
> Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
> Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: 150
> ./NOAA/NOAA-2014-12.txt
> 1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
> Apr 10 13:01:10 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
> Apr 10 13:01:10 weewx weewx[7765] ERROR weeutil.ftpupload: Error creating
> directory /.gnupg
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: ftpgenerator:
> (0): caught exception '': 553 Prohibited
> directory name
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> Traceback (most recent call last):
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> n = ftp_data.run()
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> _make_remote_dir(ftp_server, remote_dir_path)
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in _make_remote_dir
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> ftp_server.mkd(remote_dir_path)
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> resp = self.voidcmd('MKD ' + dirname)
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> return self.voidresp()
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> resp = self.getresp()
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> raise error_perm(resp)
> Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
> ftplib.error_perm: 553 Prohibited directory name
>
>
> On Saturday, 10 April 2021 at 12:53:42 UTC+1 tke...@gmail.com wrote:
>
>> Too bad it doesn't tell us what the directory name is. Try this version
>> of weeutil/ftpload.py. It will log the directory name.
>>
>> -tk
>>
>> On Sat, Apr 10, 2021 at 4:47 AM Chris Thompstone 
>> wrote:
>>
>>> Hi, thought I'd better start a new topic.
>>> Have just moved to ver 4.5.1 from 3.9.x
>>> Have copied my standard skin over etc, database and so forth.
>>> But I can't use the FTP upload to remote server.
>>> I get the below and it just loops continuously, trying to upload the
>>> whole of the www forever.  So I have to turn it off, my broadband can't
>>> handle it.
>>> It seems to error on the 1 file, if I delete it all, the error will
>>> still happen, but moves to a different file.
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144
>>> ./NOAA/NOAA-2015-06.txt
>>> 3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
>>> /var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 145
>>> ./NOAA/NOAA-2015-05.txt
>>> f261402ab917dc68cccbe73afb6e88213369a894a30613cc82505ea005923ca7
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
>>> /var/www/NOAA/NOAA-2015-05.txt to /NOAA/NOAA-2015-05.txt
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 146
>>> ./NOAA/NOAA-2015-04.txt
>>> e5dca630c7f48cbd72ad396b4e869a3732497db4580654f6617aa091b443161b
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
>>> /var/www/NOAA/NOAA-2015-04.txt to /NOAA/NOAA-2015-04.txt
>>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 147
>>> ./NOAA/NOAA-2015-03.txt
>>> 045e6defcc621acc823b67678bab43888cb032d6240d08c8a5db486582c9d19a
>>> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
>>> /var/www/NOAA/NOAA-2015-03.txt to /NOAA/NOAA-2015-03.txt
>>> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 148
>>> ./NOAA/NOAA-2015-02.txt
>>> 

Re: [weewx-user] ftp upload fails

2021-04-10 Thread Chris Thompstone
Thanks,
Looks like there is a . directory in there somehow it doesn't like
Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
Apr 10 13:01:09 weewx weewx[7765] DEBUG weeutil.ftpupload: 150 
./NOAA/NOAA-2014-12.txt 
1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
Apr 10 13:01:10 weewx weewx[7765] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
Apr 10 13:01:10 weewx weewx[7765] ERROR weeutil.ftpupload: Error creating 
directory /.gnupg
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: ftpgenerator: 
(0): caught exception '': 553 Prohibited 
directory name
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
Traceback (most recent call last):
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  n = ftp_data.run()
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  _make_remote_dir(ftp_server, remote_dir_path)
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in _make_remote_dir
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  ftp_server.mkd(remote_dir_path)
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  resp = self.voidcmd('MKD ' + dirname)
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  return self.voidresp()
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  resp = self.getresp()
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine: 
  raise error_perm(resp)
Apr 10 13:01:10 weewx weewx[7765] ERROR weewx.reportengine:   
ftplib.error_perm: 553 Prohibited directory name


On Saturday, 10 April 2021 at 12:53:42 UTC+1 tke...@gmail.com wrote:

> Too bad it doesn't tell us what the directory name is. Try this version of 
> weeutil/ftpload.py. It will log the directory name.
>
> -tk
>
> On Sat, Apr 10, 2021 at 4:47 AM Chris Thompstone  
> wrote:
>
>> Hi, thought I'd better start a new topic.
>> Have just moved to ver 4.5.1 from 3.9.x
>> Have copied my standard skin over etc, database and so forth.
>> But I can't use the FTP upload to remote server.
>> I get the below and it just loops continuously, trying to upload the 
>> whole of the www forever.  So I have to turn it off, my broadband can't 
>> handle it.
>> It seems to error on the 1 file, if I delete it all, the error will still 
>> happen, but moves to a different file.
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144 
>> ./NOAA/NOAA-2015-06.txt 
>> 3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 145 
>> ./NOAA/NOAA-2015-05.txt 
>> f261402ab917dc68cccbe73afb6e88213369a894a30613cc82505ea005923ca7
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2015-05.txt to /NOAA/NOAA-2015-05.txt
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 146 
>> ./NOAA/NOAA-2015-04.txt 
>> e5dca630c7f48cbd72ad396b4e869a3732497db4580654f6617aa091b443161b
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2015-04.txt to /NOAA/NOAA-2015-04.txt
>> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 147 
>> ./NOAA/NOAA-2015-03.txt 
>> 045e6defcc621acc823b67678bab43888cb032d6240d08c8a5db486582c9d19a
>> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2015-03.txt to /NOAA/NOAA-2015-03.txt
>> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 148 
>> ./NOAA/NOAA-2015-02.txt 
>> fe588dc95bf05b3620b7cd40fab59852ad83cf8a2f53c4b232dca8109f6f9c84
>> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
>> /var/www/NOAA/NOAA-2015-02.txt to /NOAA/NOAA-2015-02.txt
>> Apr 10 12:33:05 weewx weewx[7372] DEBUG 

Re: [weewx-user] ftp upload fails

2021-04-10 Thread Tom Keffer
Too bad it doesn't tell us what the directory name is. Try this version of
weeutil/ftpload.py. It will log the directory name.

-tk

On Sat, Apr 10, 2021 at 4:47 AM Chris Thompstone 
wrote:

> Hi, thought I'd better start a new topic.
> Have just moved to ver 4.5.1 from 3.9.x
> Have copied my standard skin over etc, database and so forth.
> But I can't use the FTP upload to remote server.
> I get the below and it just loops continuously, trying to upload the whole
> of the www forever.  So I have to turn it off, my broadband can't handle it.
> It seems to error on the 1 file, if I delete it all, the error will still
> happen, but moves to a different file.
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144
> ./NOAA/NOAA-2015-06.txt
> 3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 145
> ./NOAA/NOAA-2015-05.txt
> f261402ab917dc68cccbe73afb6e88213369a894a30613cc82505ea005923ca7
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-05.txt to /NOAA/NOAA-2015-05.txt
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 146
> ./NOAA/NOAA-2015-04.txt
> e5dca630c7f48cbd72ad396b4e869a3732497db4580654f6617aa091b443161b
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-04.txt to /NOAA/NOAA-2015-04.txt
> Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 147
> ./NOAA/NOAA-2015-03.txt
> 045e6defcc621acc823b67678bab43888cb032d6240d08c8a5db486582c9d19a
> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-03.txt to /NOAA/NOAA-2015-03.txt
> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 148
> ./NOAA/NOAA-2015-02.txt
> fe588dc95bf05b3620b7cd40fab59852ad83cf8a2f53c4b232dca8109f6f9c84
> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-02.txt to /NOAA/NOAA-2015-02.txt
> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 149
> ./NOAA/NOAA-2015-01.txt
> 05c6e945b3d3980ac4667a9e2f84b3c1d714de8940bfa4f278b4c77837faa6f9
> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
> Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 150
> ./NOAA/NOAA-2014-12.txt
> 1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
> Apr 10 12:33:06 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file
> /var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: ftpgenerator:
> (2): caught exception '': 553 Prohibited
> directory name
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> Traceback (most recent call last):
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> n = ftp_data.run()
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> _make_remote_dir(ftp_server, remote_dir_path)
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in _make_remote_dir
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> ftp_server.mkd(remote_dir_path)
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> resp = self.voidcmd('MKD ' + dirname)
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> return self.voidresp()
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> resp = self.getresp()
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
>   File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> raise error_perm(resp)
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
> ftplib.error_perm: 553 Prohibited directory name
> Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: ftpgenerator:
> Upload failed
>
> --
> You received this message because you are subscribed to the 

[weewx-user] ftp upload fails

2021-04-10 Thread Chris Thompstone
Hi, thought I'd better start a new topic.
Have just moved to ver 4.5.1 from 3.9.x
Have copied my standard skin over etc, database and so forth.
But I can't use the FTP upload to remote server.
I get the below and it just loops continuously, trying to upload the whole 
of the www forever.  So I have to turn it off, my broadband can't handle it.
It seems to error on the 1 file, if I delete it all, the error will still 
happen, but moves to a different file.
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 144 
./NOAA/NOAA-2015-06.txt 
3c7a19998d74ef1457dd61e89a1eb848ff84c4ba5956c71b04227262f10507b2
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-06.txt to /NOAA/NOAA-2015-06.txt
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 145 
./NOAA/NOAA-2015-05.txt 
f261402ab917dc68cccbe73afb6e88213369a894a30613cc82505ea005923ca7
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-05.txt to /NOAA/NOAA-2015-05.txt
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 146 
./NOAA/NOAA-2015-04.txt 
e5dca630c7f48cbd72ad396b4e869a3732497db4580654f6617aa091b443161b
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-04.txt to /NOAA/NOAA-2015-04.txt
Apr 10 12:33:04 weewx weewx[7372] DEBUG weeutil.ftpupload: 147 
./NOAA/NOAA-2015-03.txt 
045e6defcc621acc823b67678bab43888cb032d6240d08c8a5db486582c9d19a
Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-03.txt to /NOAA/NOAA-2015-03.txt
Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 148 
./NOAA/NOAA-2015-02.txt 
fe588dc95bf05b3620b7cd40fab59852ad83cf8a2f53c4b232dca8109f6f9c84
Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-02.txt to /NOAA/NOAA-2015-02.txt
Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 149 
./NOAA/NOAA-2015-01.txt 
05c6e945b3d3980ac4667a9e2f84b3c1d714de8940bfa4f278b4c77837faa6f9
Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2015-01.txt to /NOAA/NOAA-2015-01.txt
Apr 10 12:33:05 weewx weewx[7372] DEBUG weeutil.ftpupload: 150 
./NOAA/NOAA-2014-12.txt 
1e4d75393d91b17aa8b7d168425685557833940caab67028c4dd2958aecdf5c7
Apr 10 12:33:06 weewx weewx[7372] DEBUG weeutil.ftpupload: Uploaded file 
/var/www/NOAA/NOAA-2014-12.txt to /NOAA/NOAA-2014-12.txt
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: ftpgenerator: 
(2): caught exception '': 553 Prohibited 
directory name
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine:   
Traceback (most recent call last):
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 331, in run
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  n = ftp_data.run()
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeutil/ftpupload.py", line 154, in run
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  _make_remote_dir(ftp_server, remote_dir_path)
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/home/weewx/bin/weeutil/ftpupload.py", line 269, in _make_remote_dir
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  ftp_server.mkd(remote_dir_path)
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 643, in mkd
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  resp = self.voidcmd('MKD ' + dirname)
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 278, in voidcmd
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  return self.voidresp()
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 251, in voidresp
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  resp = self.getresp()
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: 
  raise error_perm(resp)
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine:   
ftplib.error_perm: 553 Prohibited directory name
Apr 10 12:33:06 weewx weewx[7372] ERROR weewx.reportengine: ftpgenerator: 
Upload failed

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

[weewx-user] FTP Upload

2021-02-04 Thread Renato Brigger
Hallo zusammen.
Ich bin ein Anfänger mit Linux.
Ich habe erfolgreich Weewx auf meine RasbeeryPi installiert. Es funtioniert 
auch mit dem Simulator und dem Apache Server. Webseite wird angezeit.
Leider gelingt es mir nicht FTP zum laufen zu bringen. Ich habe den 
Auschnitt der Config sowie das Log angehängt.


Translate with Google:

Hello everybody. I am a beginner with Linux. I have successfully installed 
Weewx on my RasbeeryPi. It also works with the simulator and the Apache 
server. Website is displayed. Unfortunately, I am unable to get FTP running. I 
have attached the excerpt from the config and the log.

Thanks. Renato

-- 
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/ed4180c1-17a7-437a-8eda-00225693b347n%40googlegroups.com.
Feb  4 11:30:16 raspberrypi weewx[17225] INFO weewx.manager: Added record 
2021-02-04 11:30:00 GMT (1612438200) to database 'weewx.sdb'
Feb  4 11:30:16 raspberrypi weewx[17225] INFO weewx.manager: Added record 
2021-02-04 11:30:00 GMT (1612438200) to daily summary in 'weewx.sdb'
Feb  4 11:30:18 raspberrypi weewx[17225] INFO weewx.cheetahgenerator: Generated 
8 files for report SeasonsReport in 1.77 seconds
Feb  4 11:30:18 raspberrypi weewx[17225] INFO weewx.imagegenerator: Generated 
15 images for report SeasonsReport in 0.56 seconds
Feb  4 11:30:18 raspberrypi weewx[17225] INFO weewx.reportengine: Copied 5 
files to /var/www/html/weewx
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/yearbarometer.png to server login-75.hoststar.ch. 
Reason: '550 /yearbarometer.png: Permission denied'
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine: 
ftpgenerator: (0): caught exception '': 550 
/yearbarometer.png: Permission denied
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 Traceback (most recent call last):
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 n = ftp_data.run()
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 ftp_server.storbinary(stor_cmd, fd)
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 with self.transfercmd(cmd, rest) as conn:
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 return self.ntransfercmd(cmd, rest)[0]
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 resp = self.sendcmd(cmd)
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 return self.getresp()
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 raise error_perm(resp)
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 ftplib.error_perm: 550 /yearbarometer.png: Permission denied
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/yearbarometer.png to server login-75.hoststar.ch. 
Reason: '550 /yearbarometer.png: Permission denied'
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine: 
ftpgenerator: (1): caught exception '': 550 
/yearbarometer.png: Permission denied
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 Traceback (most recent call last):
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
 n = ftp_data.run()
Feb  4 11:30:19 raspberrypi weewx[17225] ERROR weewx.reportengine:  
   File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
Feb  4 11:30:19 raspberrypi 

Re: [weewx-user] FTP Upload Problems

2020-12-17 Thread Tom Keffer
type I switches to binary mode, but it looks like your client is already in
that mode. Just press on with the “put” statement.

On Thu, Dec 17, 2020 at 10:04 AM 'Ralf B' via weewx-user <
weewx-user@googlegroups.com> wrote:

> root@raspberrypi:/var/www/html/weewx# ftp 213.160.xx.xx
> Connected to 213.160.xx.xx.
> 220-- Welcome to Pure-FTPd [privsep] [TLS] --
> 220-You are user number 1 of 50 allowed.
> 220-Local time is now 18:02. Server port: 21.
> 220-This is a private system - No anonymous login
> 220-IPv6 connections are also welcome on this server.
> 220 You will be disconnected after 30 minutes of inactivity.
> Name (213.160.xx.xx:root): xxx
> 331 User x OK. Password required
> Password:
> 230 OK. Current directory is /
> Remote system type is UNIX.
> Using binary mode to transfer files.
> ftp> type i
> i: unknown mode
> ftp>
>
> Am Do., 17. Dez. 2020 um 14:53 Uhr schrieb Tom Keffer :
>
>> There are several errors in your log.
>>
>> 1. You have enabled 'niculskin', yet the templates for it are not
>> available.
>>
>> 2. You have enabled the extension sftpgenerator, but did not provide a
>> value for 'server'
>>
>> 3. You have enabled the extension sftpgenerator, but did not install its
>> required pre-requisite pysftp.
>>
>> 4. And, finally the FTP errors. I suspect the problem here is that
>> something changed on your webserver. A 451 error is a transient error,
>> meaning that it is a temporary issue. Frankly, I doubt that. Are you able
>> to manually FTP into your webserver directly from the command line? For
>> example:
>>
>> *cd /var/www/html/weewx*
>> *ftp yourwebserver.com *
>> Name: *(fill in your user name)*
>> Password: *(fill in your password)*
>> ftp> *type i*
>> ftp> *put daytempchill.png*
>> ftp> *quit*
>>
>> This session would upload the file daytempchill.png, which is the file
>> that failed.
>>
>>
>> On Wed, Dec 16, 2020 at 11:41 PM 'buck...@googlemail.com' via weewx-user
>>  wrote:
>>
>>> Hello, since some days i ve problems to upload my ftp files to my
>>> webserver
>>> i use weewx 4.2.0
>>> system is uptodate
>>>
>>> here a part of my syslog:
>>>
>>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>>> Generated 15 files for report Belchertown in 10.59 seconds
>>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.reportengine: Copied
>>> 31 files to /var/www/html
>>> Dec 17 08:35:46 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>>> Generated 8 files for report SeasonsReport in 4.71 seconds
>>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.imagegenerator:
>>> Generated 15 images for report SeasonsReport in 1.16 seconds
>>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.reportengine: Copied
>>> 87 files to /var/www/html/weewx
>>> Dec 17 08:35:47 raspberrypi weewxd: translategenerator.pyc: Language is
>>> german
>>> Dec 17 08:35:48 raspberrypi weewxd: historygenerator.pyc: Generated 8
>>> tables in 0.42 seconds
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>> Generate failed with exception ''
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>  Ignoring template /etc/weewx/skins/niculskin/forecast.html.tmpl
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>  Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden:
>>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>   Traceback (most recent call last):
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in
>>> generate
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>   unicode_string = compiled_template.respond()
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>> File "_etc_weewx_skins_niculskin_forecast_html_tmpl.py", line 96,
>>> in respond
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
>>> 1685, in _handleCheetahInclude
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>   file=file)
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
>>> 738, in compile
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>   fileHash += str(os.path.getmtime(file))
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>> File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>   return os.stat(filename).st_mtime
>>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>>   OSError: [Errno 2] Datei oder Verzeichnis 

Re: [weewx-user] FTP Upload Problems

2020-12-17 Thread 'Ralf B' via weewx-user
root@raspberrypi:/var/www/html/weewx# ftp 213.160.xx.xx
Connected to 213.160.xx.xx.
220-- Welcome to Pure-FTPd [privsep] [TLS] --
220-You are user number 1 of 50 allowed.
220-Local time is now 18:02. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 30 minutes of inactivity.
Name (213.160.xx.xx:root): xxx
331 User x OK. Password required
Password:
230 OK. Current directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> type i
i: unknown mode
ftp>

Am Do., 17. Dez. 2020 um 14:53 Uhr schrieb Tom Keffer :

> There are several errors in your log.
>
> 1. You have enabled 'niculskin', yet the templates for it are not
> available.
>
> 2. You have enabled the extension sftpgenerator, but did not provide a
> value for 'server'
>
> 3. You have enabled the extension sftpgenerator, but did not install its
> required pre-requisite pysftp.
>
> 4. And, finally the FTP errors. I suspect the problem here is that
> something changed on your webserver. A 451 error is a transient error,
> meaning that it is a temporary issue. Frankly, I doubt that. Are you able
> to manually FTP into your webserver directly from the command line? For
> example:
>
> *cd /var/www/html/weewx*
> *ftp yourwebserver.com *
> Name: *(fill in your user name)*
> Password: *(fill in your password)*
> ftp> *type i*
> ftp> *put daytempchill.png*
> ftp> *quit*
>
> This session would upload the file daytempchill.png, which is the file
> that failed.
>
>
> On Wed, Dec 16, 2020 at 11:41 PM 'buck...@googlemail.com' via weewx-user <
> weewx-user@googlegroups.com> wrote:
>
>> Hello, since some days i ve problems to upload my ftp files to my
>> webserver
>> i use weewx 4.2.0
>> system is uptodate
>>
>> here a part of my syslog:
>>
>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>> Generated 15 files for report Belchertown in 10.59 seconds
>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.reportengine: Copied 31
>> files to /var/www/html
>> Dec 17 08:35:46 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>> Generated 8 files for report SeasonsReport in 4.71 seconds
>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.imagegenerator:
>> Generated 15 images for report SeasonsReport in 1.16 seconds
>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.reportengine: Copied 87
>> files to /var/www/html/weewx
>> Dec 17 08:35:47 raspberrypi weewxd: translategenerator.pyc: Language is
>> german
>> Dec 17 08:35:48 raspberrypi weewxd: historygenerator.pyc: Generated 8
>> tables in 0.42 seconds
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> Generate failed with exception ''
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> Ignoring template /etc/weewx/skins/niculskin/forecast.html.tmpl
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden:
>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   Traceback (most recent call last):
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in
>> generate
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   unicode_string = compiled_template.respond()
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "_etc_weewx_skins_niculskin_forecast_html_tmpl.py", line 96,
>> in respond
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
>> 1685, in _handleCheetahInclude
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   file=file)
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
>> 738, in compile
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   fileHash += str(os.path.getmtime(file))
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   return os.stat(filename).st_mtime
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden:
>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>> Dec 17 08:35:52 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>> Generated 13 files for report StandardReport in 4.78 seconds
>> Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.imagegenerator:
>> Generated 13 images for report StandardReport 

Re: [weewx-user] FTP Upload Problems

2020-12-17 Thread 'Ralf B' via weewx-user
root@raspberrypi:/var/www/html/weewx# ftp 213.160.71.98
Connected to 213.160.71.98.
220-- Welcome to Pure-FTPd [privsep] [TLS] --
220-You are user number 1 of 50 allowed.
220-Local time is now 18:02. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 30 minutes of inactivity.
Name (213.160.71.98:root): xxx
331 xxx OK. Password required
Password:
230 OK. Current directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> type i
i: unknown mode
ftp>

Am Do., 17. Dez. 2020 um 14:53 Uhr schrieb Tom Keffer :

> There are several errors in your log.
>
> 1. You have enabled 'niculskin', yet the templates for it are not
> available.
>
> 2. You have enabled the extension sftpgenerator, but did not provide a
> value for 'server'
>
> 3. You have enabled the extension sftpgenerator, but did not install its
> required pre-requisite pysftp.
>
> 4. And, finally the FTP errors. I suspect the problem here is that
> something changed on your webserver. A 451 error is a transient error,
> meaning that it is a temporary issue. Frankly, I doubt that. Are you able
> to manually FTP into your webserver directly from the command line? For
> example:
>
> *cd /var/www/html/weewx*
> *ftp yourwebserver.com *
> Name: *(fill in your user name)*
> Password: *(fill in your password)*
> ftp> *type i*
> ftp> *put daytempchill.png*
> ftp> *quit*
>
> This session would upload the file daytempchill.png, which is the file
> that failed.
>
>
> On Wed, Dec 16, 2020 at 11:41 PM 'buck...@googlemail.com' via weewx-user <
> weewx-user@googlegroups.com> wrote:
>
>> Hello, since some days i ve problems to upload my ftp files to my
>> webserver
>> i use weewx 4.2.0
>> system is uptodate
>>
>> here a part of my syslog:
>>
>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>> Generated 15 files for report Belchertown in 10.59 seconds
>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.reportengine: Copied 31
>> files to /var/www/html
>> Dec 17 08:35:46 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>> Generated 8 files for report SeasonsReport in 4.71 seconds
>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.imagegenerator:
>> Generated 15 images for report SeasonsReport in 1.16 seconds
>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.reportengine: Copied 87
>> files to /var/www/html/weewx
>> Dec 17 08:35:47 raspberrypi weewxd: translategenerator.pyc: Language is
>> german
>> Dec 17 08:35:48 raspberrypi weewxd: historygenerator.pyc: Generated 8
>> tables in 0.42 seconds
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> Generate failed with exception ''
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> Ignoring template /etc/weewx/skins/niculskin/forecast.html.tmpl
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden:
>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   Traceback (most recent call last):
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in
>> generate
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   unicode_string = compiled_template.respond()
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "_etc_weewx_skins_niculskin_forecast_html_tmpl.py", line 96,
>> in respond
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
>> 1685, in _handleCheetahInclude
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   file=file)
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
>> 738, in compile
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   fileHash += str(os.path.getmtime(file))
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>> File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   return os.stat(filename).st_mtime
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
>>   OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden:
>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>> Dec 17 08:35:52 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
>> Generated 13 files for report StandardReport in 4.78 seconds
>> Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.imagegenerator:
>> Generated 13 images for report StandardReport in 1.18 seconds
>> Dec 17 

Re: [weewx-user] FTP Upload Problems

2020-12-17 Thread 'buck...@googlemail.com' via weewx-user
4)
ftp 123.456.789.000

-bash:  ftp: command not found

?

tke...@gmail.com schrieb am Donnerstag, 17. Dezember 2020 um 14:53:56 UTC+1:

> There are several errors in your log. 
>
> 1. You have enabled 'niculskin', yet the templates for it are not 
> available.
>
> 2. You have enabled the extension sftpgenerator, but did not provide a 
> value for 'server'
>
> 3. You have enabled the extension sftpgenerator, but did not install its 
> required pre-requisite pysftp.
>
> 4. And, finally the FTP errors. I suspect the problem here is that 
> something changed on your webserver. A 451 error is a transient error, 
> meaning that it is a temporary issue. Frankly, I doubt that. Are you able 
> to manually FTP into your webserver directly from the command line? For 
> example:
>
> *cd /var/www/html/weewx*
> *ftp yourwebserver.com *
> Name: *(fill in your user name)*
> Password: *(fill in your password)*
> ftp> *type i*
> ftp> *put daytempchill.png*
> ftp> *quit*
>
> This session would upload the file daytempchill.png, which is the file 
> that failed.
>
>
> On Wed, Dec 16, 2020 at 11:41 PM 'buck...@googlemail.com' via weewx-user <
> weewx...@googlegroups.com> wrote:
>
>> Hello, since some days i ve problems to upload my ftp files to my 
>> webserver
>> i use weewx 4.2.0
>> system is uptodate
>>
>> here a part of my syslog:
>>
>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.cheetahgenerator: 
>> Generated 15 files for report Belchertown in 10.59 seconds
>> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.reportengine: Copied 31 
>> files to /var/www/html
>> Dec 17 08:35:46 raspberrypi weewx[652] INFO weewx.cheetahgenerator: 
>> Generated 8 files for report SeasonsReport in 4.71 seconds
>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.imagegenerator: 
>> Generated 15 images for report SeasonsReport in 1.16 seconds
>> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.reportengine: Copied 87 
>> files to /var/www/html/weewx
>> Dec 17 08:35:47 raspberrypi weewxd: translategenerator.pyc: Language is 
>> german
>> Dec 17 08:35:48 raspberrypi weewxd: historygenerator.pyc: Generated 8 
>> tables in 0.42 seconds
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> Generate failed with exception ''
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:  
>> Ignoring template /etc/weewx/skins/niculskin/forecast.html.tmpl
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:  
>> Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden: 
>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>>   Traceback (most recent call last):
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in 
>> generate
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>>   unicode_string = compiled_template.respond()
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> File "_etc_weewx_skins_niculskin_forecast_html_tmpl.py", line 96, 
>> in respond
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 
>> 1685, in _handleCheetahInclude
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>>   file=file)
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 
>> 738, in compile
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>>   fileHash += str(os.path.getmtime(file))
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>> File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>>   return os.stat(filename).st_mtime
>> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>>   OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 
>> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
>> Dec 17 08:35:52 raspberrypi weewx[652] INFO weewx.cheetahgenerator: 
>> Generated 13 files for report StandardReport in 4.78 seconds
>> Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.imagegenerator: 
>> Generated 13 images for report StandardReport in 1.18 seconds
>> Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.reportengine: Copied 11 
>> files to /var/www/html/weewx
>> Dec 17 08:35:53 raspberrypi weewx[652] INFO user.sftp: sftpgenerator: 
>> upload not possible: missing parameter 'server'
>> Dec 17 08:35:53 raspberrypi weewx[652] INFO user.sftp: sftpgenerator: 
>> upload not possible: No module named pysftp
>> Dec 17 08:35:54 raspberrypi weewx[652] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/daytempchill.png to server 

Re: [weewx-user] FTP Upload Problems

2020-12-17 Thread Tom Keffer
There are several errors in your log.

1. You have enabled 'niculskin', yet the templates for it are not available.

2. You have enabled the extension sftpgenerator, but did not provide a
value for 'server'

3. You have enabled the extension sftpgenerator, but did not install its
required pre-requisite pysftp.

4. And, finally the FTP errors. I suspect the problem here is that
something changed on your webserver. A 451 error is a transient error,
meaning that it is a temporary issue. Frankly, I doubt that. Are you able
to manually FTP into your webserver directly from the command line? For
example:

*cd /var/www/html/weewx*
*ftp yourwebserver.com *
Name: *(fill in your user name)*
Password: *(fill in your password)*
ftp> *type i*
ftp> *put daytempchill.png*
ftp> *quit*

This session would upload the file daytempchill.png, which is the file that
failed.


On Wed, Dec 16, 2020 at 11:41 PM 'buck...@googlemail.com' via weewx-user <
weewx-user@googlegroups.com> wrote:

> Hello, since some days i ve problems to upload my ftp files to my webserver
> i use weewx 4.2.0
> system is uptodate
>
> here a part of my syslog:
>
> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
> Generated 15 files for report Belchertown in 10.59 seconds
> Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.reportengine: Copied 31
> files to /var/www/html
> Dec 17 08:35:46 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
> Generated 8 files for report SeasonsReport in 4.71 seconds
> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.imagegenerator:
> Generated 15 images for report SeasonsReport in 1.16 seconds
> Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.reportengine: Copied 87
> files to /var/www/html/weewx
> Dec 17 08:35:47 raspberrypi weewxd: translategenerator.pyc: Language is
> german
> Dec 17 08:35:48 raspberrypi weewxd: historygenerator.pyc: Generated 8
> tables in 0.42 seconds
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:
> Generate failed with exception ''
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> Ignoring template /etc/weewx/skins/niculskin/forecast.html.tmpl
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden:
> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> Traceback (most recent call last):
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>   File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in generate
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> unicode_string = compiled_template.respond()
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>   File "_etc_weewx_skins_niculskin_forecast_html_tmpl.py", line 96, in
> respond
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>   File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1685,
> in _handleCheetahInclude
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> file=file)
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>   File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 738, in
> compile
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> fileHash += str(os.path.getmtime(file))
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
>   File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> return os.stat(filename).st_mtime
> Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
> OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden:
> '/etc/weewx/skins/niculskin/forecast_iconic.inc'
> Dec 17 08:35:52 raspberrypi weewx[652] INFO weewx.cheetahgenerator:
> Generated 13 files for report StandardReport in 4.78 seconds
> Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.imagegenerator:
> Generated 13 images for report StandardReport in 1.18 seconds
> Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.reportengine: Copied 11
> files to /var/www/html/weewx
> Dec 17 08:35:53 raspberrypi weewx[652] INFO user.sftp: sftpgenerator:
> upload not possible: missing parameter 'server'
> Dec 17 08:35:53 raspberrypi weewx[652] INFO user.sftp: sftpgenerator:
> upload not possible: No module named pysftp
> Dec 17 08:35:54 raspberrypi weewx[652] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/daytempchill.png to server 213.160.xx.xx.
> Reason: '451-Error during write to file#012451 Transfer aborted'
> Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
> ftpgenerator: (0): caught exception '':
> 451-Error during write to file#012451 Transfer aborted
> Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
>    

[weewx-user] FTP Upload Problems

2020-12-16 Thread 'buck...@googlemail.com' via weewx-user
Hello, since some days i ve problems to upload my ftp files to my webserver
i use weewx 4.2.0
system is uptodate

here a part of my syslog:

Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.cheetahgenerator: 
Generated 15 files for report Belchertown in 10.59 seconds
Dec 17 08:35:27 raspberrypi weewx[652] INFO weewx.reportengine: Copied 31 
files to /var/www/html
Dec 17 08:35:46 raspberrypi weewx[652] INFO weewx.cheetahgenerator: 
Generated 8 files for report SeasonsReport in 4.71 seconds
Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.imagegenerator: Generated 
15 images for report SeasonsReport in 1.16 seconds
Dec 17 08:35:47 raspberrypi weewx[652] INFO weewx.reportengine: Copied 87 
files to /var/www/html/weewx
Dec 17 08:35:47 raspberrypi weewxd: translategenerator.pyc: Language is 
german
Dec 17 08:35:48 raspberrypi weewxd: historygenerator.pyc: Generated 8 
tables in 0.42 seconds
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator: 
Generate failed with exception ''
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:  
Ignoring template /etc/weewx/skins/niculskin/forecast.html.tmpl
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:  
Reason: [Errno 2] Datei oder Verzeichnis nicht gefunden: 
'/etc/weewx/skins/niculskin/forecast_iconic.inc'
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
Traceback (most recent call last):
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 323, in generate
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
unicode_string = compiled_template.respond()
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
  File "_etc_weewx_skins_niculskin_forecast_html_tmpl.py", line 96, in 
respond
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
  File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1685, 
in _handleCheetahInclude
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
file=file)
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
  File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 738, in 
compile
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
fileHash += str(os.path.getmtime(file))
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
  File "/usr/lib/python2.7/genericpath.py", line 62, in getmtime
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
return os.stat(filename).st_mtime
Dec 17 08:35:52 raspberrypi weewx[652] ERROR weewx.cheetahgenerator:   
OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden: 
'/etc/weewx/skins/niculskin/forecast_iconic.inc'
Dec 17 08:35:52 raspberrypi weewx[652] INFO weewx.cheetahgenerator: 
Generated 13 files for report StandardReport in 4.78 seconds
Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.imagegenerator: Generated 
13 images for report StandardReport in 1.18 seconds
Dec 17 08:35:53 raspberrypi weewx[652] INFO weewx.reportengine: Copied 11 
files to /var/www/html/weewx
Dec 17 08:35:53 raspberrypi weewx[652] INFO user.sftp: sftpgenerator: 
upload not possible: missing parameter 'server'
Dec 17 08:35:53 raspberrypi weewx[652] INFO user.sftp: sftpgenerator: 
upload not possible: No module named pysftp
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/daytempchill.png to server 213.160.xx.xx. 
Reason: '451-Error during write to file#012451 Transfer aborted'
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine: 
ftpgenerator: (0): caught exception '': 
451-Error during write to file#012451 Transfer aborted
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
   Traceback (most recent call last):
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
   n = ftp_data.run()
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
 File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
   ftp_server.storbinary(stor_cmd, fd)
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
 File "/usr/lib/python2.7/ftplib.py", line 488, in storbinary
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
   return self.voidresp()
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
 File "/usr/lib/python2.7/ftplib.py", line 231, in voidresp
Dec 17 08:35:54 raspberrypi weewx[652] ERROR weewx.reportengine:
   resp = self.getresp()
Dec 17 08:35:54 raspberrypi weewx[652] ERROR 

Re: [weewx-user] FTP upload template

2020-09-07 Thread Martin Madara
Oh, great, thanks Tom, weewx simplicity rocks!!

On Monday, September 7, 2020 at 3:08:19 PM UTC+2 tke...@gmail.com wrote:

> Why not just use the $hour tag?
>
> #for $record in $hour.records
> ...
> #end for
>
>
> -tk
>
> On Sun, Sep 6, 2020 at 11:31 PM Martin Madara  wrote:
>
>> Hi folks,
>>
>> hope you are all doing well.  I'm using below template for FTP upload, 
>> but its giving me each time records for whole day. Is it possible to adjust 
>> below template to give me records let's say for last hour only?
>>
>>
>> #for $record in $day.records
>>
>> $record.dateTime--$record.windDir.format(add_label=False)--$record.windSpeed.format(add_label=False)--$record.windGust.format(add_label=False)--$record.outHumidity.format(add_label=False)--$record.outTemp.format(add_label=False)--$record.inTemp.format(add_label=False)
>> #end for
>>
>> Appreciate your help on this!
>> Martin
>>
>> -- 
>> 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/8558dd50-ab8e-48f7-ad6a-89b6507378e4n%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/b2ad54e1-7870-449a-9db4-a369abfbe203n%40googlegroups.com.


Re: [weewx-user] FTP upload template

2020-09-07 Thread Tom Keffer
Why not just use the $hour tag?

#for $record in $hour.records
...
#end for


-tk

On Sun, Sep 6, 2020 at 11:31 PM Martin Madara  wrote:

> Hi folks,
>
> hope you are all doing well.  I'm using below template for FTP upload, but
> its giving me each time records for whole day. Is it possible to adjust
> below template to give me records let's say for last hour only?
>
>
> #for $record in $day.records
>
> $record.dateTime--$record.windDir.format(add_label=False)--$record.windSpeed.format(add_label=False)--$record.windGust.format(add_label=False)--$record.outHumidity.format(add_label=False)--$record.outTemp.format(add_label=False)--$record.inTemp.format(add_label=False)
> #end for
>
> Appreciate your help on this!
> Martin
>
> --
> 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/8558dd50-ab8e-48f7-ad6a-89b6507378e4n%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/CAPq0zEAR2pxuDSt-UG%3DyKWBYRRcMve0vjnmkMP8mj5UZM30WqQ%40mail.gmail.com.


[weewx-user] FTP upload template

2020-09-07 Thread Martin Madara
Hi folks,

hope you are all doing well.  I'm using below template for FTP upload, but 
its giving me each time records for whole day. Is it possible to adjust 
below template to give me records let's say for last hour only?


#for $record in $day.records
$record.dateTime--$record.windDir.format(add_label=False)--$record.windSpeed.format(add_label=False)--$record.windGust.format(add_label=False)--$record.outHumidity.format(add_label=False)--$record.outTemp.format(add_label=False)--$record.inTemp.format(add_label=False)
#end for

Appreciate your help on this!
Martin

-- 
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/8558dd50-ab8e-48f7-ad6a-89b6507378e4n%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%) - 

[weewx-user] FTP Upload interval

2016-11-08 Thread Flemming Andersen
Hi.

I seek help, to change the FTP Upload, so there only uploades files every 
10 minutes. to the Internet, and still reports, every 5 min. to the local 
intranet.

Weewx version 3.5, running on Raspberry PI.

Thanks for the great weewx software.

Regards Flemming

-- 
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.
For more options, visit https://groups.google.com/d/optout.