IOError: [Errno 2] No such file - you are likely trying to write to a 
directory that does not exist on the remote system....

Impossible to suggest more unless you provide your FTP section of 
weewx.conf (please do not post your username nor password of course)

On Sunday, June 9, 2024 at 12:04:42 PM UTC-7 Tex Drone wrote:

> I have been running WeeWx 4.x. on a Pi3 for several years. Now, I am 
> trying to publish the HTML files to my WP website. I have 
> mathewwall/weewx-sftp installed and it can login to my WP server account, 
> but then I get the following errors. Any ideas what I am doing wrong? 
> Thanks!
>
>   Jun  9 13:07:15 raspberrypi weewx[5969] INFO weewx.engine: Starting main 
> packet loop.
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: 
> Wunderground-PWS: Published record 2024-06-09 13:05:00 CDT (1717956300)
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: PWSWeather: 
> Published record 2024-06-09 13:05:00 CDT (1717956300)
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: CWOP: Published 
> record 2024-06-09 13:05:00 CDT (1717956300)
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: PWSWeather: 
> Published record 2024-06-09 13:06:00 CDT (1717956360)
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: 
> Wunderground-PWS: Published record 2024-06-09 13:06:00 CDT (1717956360)
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: PWSWeather: 
> Published record 2024-06-09 13:07:00 CDT (1717956420)
> Jun  9 13:07:16 raspberrypi weewx[5969] INFO weewx.restx: 
> Wunderground-PWS: Published record 2024-06-09 13:07:00 CDT (1717956420)
> Jun  9 13:08:15 raspberrypi weewx[5969] INFO weewx.manager: Added record 
> 2024-06-09 13:08:00 CDT (1717956480) to database 'weewx.sdb'
> Jun  9 13:08:15 raspberrypi weewx[5969] INFO weewx.manager: Added record 
> 2024-06-09 13:08:00 CDT (1717956480) to daily summary in 'weewx.sdb'
> Jun  9 13:08:16 raspberrypi weewx[5969] INFO weewx.restx: PWSWeather: 
> Published record 2024-06-09 13:08:00 CDT (1717956480)
> Jun  9 13:08:16 raspberrypi weewx[5969] INFO weewx.restx: 
> Wunderground-PWS: Published record 2024-06-09 13:08:00 CDT (1717956480)
> Jun  9 13:08:20 raspberrypi weewx[5969] INFO weewx.cheetahgenerator: 
> Generated 13 files for report StandardReport in 4.86 seconds
> Jun  9 13:08:22 raspberrypi weewx[5969] INFO weewx.imagegenerator: 
> Generated 12 images for report StandardReport in 1.38 seconds
> Jun  9 13:08:22 raspberrypi weewx[5969] INFO weewx.reportengine: Copied 14 
> files to /var/www/html/weewx
> Jun  9 13:08:22 raspberrypi weewx[5969] INFO paramiko.transport: Connected 
> (version 2.0, client Atomic)
> Jun  9 13:08:23 raspberrypi weewx[5969] INFO paramiko.transport: 
> Authentication (password) successful!
> Jun  9 13:08:24 raspberrypi weewx[5969] INFO paramiko.transport.sftp: 
> [chan 0] Opened sftp connection (server version 3)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 'user.sftp.SFTPGenerator'
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****  [Errno 2] No such file
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****  Traceback (most recent call last):
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      obj.start()
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/weewx/reportengine.py", line 385, in start
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      self.run()
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/user/sftp.py", line 259, in run
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      n = uploader.run()
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/user/sftp.py", line 122, in run
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      self._make_remote_dir(con, remote_dir_path)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File "/usr/share/weewx/user/sftp.py", line 185, in _make_remote_dir
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      con.mkdir(remote_dir_path)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File "/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", 
> line 626, in mkdir
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      self._sftp.mkdir(remotepath, mode=int(str(mode), 8))
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 460, 
> in mkdir
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      self._request(CMD_MKDIR, path, attr)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 822, 
> in _request
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      return self._read_response(num)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 874, 
> in _read_response
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      self._convert_status(msg)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****    File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 903, 
> in _convert_status
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****      raise IOError(errno.ENOENT, text)
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****  IOError: [Errno 2] No such file
> Jun  9 13:08:24 raspberrypi weewx[5969] ERROR weewx.reportengine:         
> ****  Generator terminated
> Jun  9 13:08:24 raspberrypi weewx[5969] INFO paramiko.transport.sftp: 
> [chan 0] sftp session closed.

-- 
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/1b0cb41c-7986-4369-9097-81eb0cdc8650n%40googlegroups.com.

Reply via email to