ftp error

24 прегледа
Пређи на прву непрочитану поруку

Chris Thompstone

непрочитано,
5. 2. 2020. 16:25:455.2.20.
– 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
Порука је избрисана
Порука је избрисана

Chris Thompstone

непрочитано,
5. 2. 2020. 17:44:325.2.20.
– 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.
Одговори свима
Одговори аутору
Проследи
0 нових порука