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