ftp error

27 views
Skip to first unread message

Chris Thompstone

unread,
Feb 5, 2020, 4:25:45 PM2/5/20
to weewx-user
Hi Guys,
just did a bit of housekeeping on my Pi weewx install.
On restarting weewx I got this error:

Feb 05 21:01:49 weewx weewx[511]: ftpupload: Unable to create remote directory /.gnupg
Feb 05 21:01:49 weewx weewx[511]: ftpgenerator: Caught exception <type 'exceptions.IOError'>: Unable to create remote directory /.gnupg
Feb 05 21:01:49 weewx weewx[511]:         ****  Traceback (most recent call last):
Feb 05 21:01:49 weewx weewx[511]:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 347, in run
Feb 05 21:01:49 weewx weewx[511]:         ****      n = ftp_data.run()
Feb 05 21:01:49 weewx weewx[511]:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 137, in run
Feb 05 21:01:49 weewx weewx[511]:         ****      self._make_remote_dir(ftp_server, remote_dir_path)
Feb 05 21:01:49 weewx weewx[511]:         ****    File "/home/weewx/bin/weeutil/ftpupload.py", line 240, in _make_remote_dir
Feb 05 21:01:49 weewx weewx[511]:         ****      raise IOError, "Unable to create remote directory %s" % remote_dir_path
Feb 05 21:01:49 weewx weewx[511]:         ****  IOError: Unable to create remote directory /.gnupg

It does NOT cause weewx to quit.
so not really a problem.
And runs normally on the next cycle.
It must be the initial copy of files, but checked my local www folder for the file mentioned, but can't find it.

what am I missing here, can't work it out....

Chris
Message has been deleted
Message has been deleted

Chris Thompstone

unread,
Feb 5, 2020, 5:44:32 PM2/5/20
to weewx-user
Sorry to answer own question...

Looks like this strange folder is due to my network booted Pi Weewx install.

So I have just added a couple of lines of code to my ftpupload.py file to pass on the /.gnupg directory.

for now this appears to have got rid of the problem.

regards.
Reply all
Reply to author
Forward
0 new messages