And to clarify, the reports gets generated correctly, it is the FTP that 
fails.

On Tuesday, October 1, 2024 at 2:41:37 PM UTC+2 Marco P. Ferrara wrote:

> Hi there,
> I have a Raspberry Pi (named pi-radar) with weewx 5.1.0 with python3 that 
> receives data though Interceptor on a ecowitt protocol, generates pages 
> with the Belchertown skin and then should FTP to an external server.
>
> I have the following error that drops out:
>
> Oct 01 14:26:02 pi-radar weewxd[39953]: INFO weewx.reportengine: Copied 3 
> files to /var/www/html/weewx
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine: 
> ftpgenerator: (0): caught exception '<class 'PermissionError'>': [Errno 13] 
> Permission denied: '/var/www/html/weewx/#FTP.last'
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****  Traceback (most recent call last):
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/reportengine.py", line 519, in run
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****      n = ftp_data.run()
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****          ^^^^^^^^^^^^^^
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 226, in run
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****      self.save_last_upload(timestamp, fileset, hashdict)
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weeutil/ftpupload.py", line 258, in 
> save_last_upload
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****      with open(timestamp_file_path, "wb") as f:
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Oct 01 14:26:08 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****  PermissionError: [Errno 13] Permission denied: 
> '/var/www/html/weewx/#FTP.last'
> Oct 01 14:26:13 pi-radar weewxd[39953]: ERROR weewx.reportengine: 
> ftpgenerator: (1): caught exception '<class 'PermissionError'>': [Errno 13] 
> Permission denied: '/var/www/html/weewx/#FTP.last'
> Oct 01 14:26:13 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****  Traceback (most recent call last):
> Oct 01 14:26:13 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/reportengine.py", line 519, in run
> Oct 01 14:26:13 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****      n = ftp_data.run()
> Oct 01 14:26:13 pi-radar weewxd[39953]: ERROR weewx.reportengine:         
> ****          ^^^^^^^^^^^^^^
>
> When I run the reports manually they get uploaded correctly. Any idea what 
> could generate the issue?
>
> Thanks!
> --
> MPF
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/72fd5eef-f0fd-416e-bdca-24fbcd6676d3n%40googlegroups.com.

Reply via email to