Looks like permission errors on the server end. A path like '/WWW/NOAA'
looks mighty strange. Usually, it's something more like
'/var/www/html/NOAA' (note the lower-case). It's not surprising you'd be
getting permission errors.

IWhat do you have for your [[SFTP]] section?

On Sun, Nov 3, 2024 at 11:39 PM Alan Salmon <redgums2...@gmail.com> wrote:

> Hi Tom,
>
> I've downloaded and installed pysftp per your earlier reply with a small
> amount of progress = at least I'm getting different errors.
>
> I've attached a section of the log:
>
> Nov 04 18:18:36 Bigfish-05 weewxd[16031]: DEBUG user.sftp: sftp: create
> remote directory /WWW/NOAA
>
> Nov 04 18:18:36 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] stat(b'/WWW/NOAA')
>
> Nov 04 18:18:37 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] mkdir(b'/WWW/NOAA', 511)
>
> Nov 04 18:18:37 Bigfish-05 weewxd[16031]: DEBUG user.sftp: sftp: create
> remote directory failed: [Errno 2] No such file
>
> Nov 04 18:18:37 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] stat(b'/WWW/NOAA')
>
> Nov 04 18:18:38 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] mkdir(b'/WWW/NOAA', 511)
>
> Nov 04 18:18:39 Bigfish-05 weewxd[16031]: DEBUG user.sftp: sftp: create
> remote directory failed: [Errno 2] No such file
>
> Nov 04 18:18:39 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] stat(b'/WWW/NOAA')
>
> Nov 04 18:18:39 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] mkdir(b'/WWW/NOAA', 511)
>
> Nov 04 18:18:40 Bigfish-05 weewxd[16031]: DEBUG user.sftp: sftp: create
> remote directory failed: [Errno 2] No such file
>
> Nov 04 18:18:40 Bigfish-05 weewxd[16031]: DEBUG user.sftp: sftp: create
> remote directory failed
>
> Nov 04 18:18:40 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024.txt', 'wb')
>
> Nov 04 18:18:41 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 1
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:41 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024.txt', 'wb')
>
> Nov 04 18:18:41 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 2
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:41 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024.txt', 'wb')
>
> Nov 04 18:18:42 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 3
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:42 Bigfish-05 weewxd[16031]: ERROR user.sftp: sftp: failed to
> upload file /WWW/NOAA/NOAA-2024.txt
>
> Nov 04 18:18:42 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-10.txt', 'wb')
>
> Nov 04 18:18:43 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 1
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:43 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-10.txt', 'wb')
>
> Nov 04 18:18:43 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 2
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:43 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-10.txt', 'wb')
>
> Nov 04 18:18:44 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 3
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:44 Bigfish-05 weewxd[16031]: ERROR user.sftp: sftp: failed to
> upload file /WWW/NOAA/NOAA-2024-10.txt
>
> Nov 04 18:18:44 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-08.txt', 'wb')
>
> Nov 04 18:18:45 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 1
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:45 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-08.txt', 'wb')
>
> Nov 04 18:18:45 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 2
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:45 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-08.txt', 'wb')
>
> Nov 04 18:18:46 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 3
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:46 Bigfish-05 weewxd[16031]: ERROR user.sftp: sftp: failed to
> upload file /WWW/NOAA/NOAA-2024-08.txt
>
> Nov 04 18:18:46 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-09.txt', 'wb')
>
> Nov 04 18:18:47 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 1
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:47 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-09.txt', 'wb')
>
> Nov 04 18:18:47 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 2
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:47 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-09.txt', 'wb')
>
> Nov 04 18:18:48 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 3
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:48 Bigfish-05 weewxd[16031]: ERROR user.sftp: sftp: failed to
> upload file /WWW/NOAA/NOAA-2024-09.txt
>
> Nov 04 18:18:48 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-11.txt', 'wb')
>
> Nov 04 18:18:49 Bigfish-05 weewxd[16031]: INFO user.sftp: sftp: attempt 1
> of 3 failed: [Errno 2] No such file
>
> Nov 04 18:18:49 Bigfish-05 weewxd[16031]: DEBUG paramiko.transport.sftp:
> [chan 0] open(b'/WWW/NOAA/NOAA-2024-11.txt', 'wb')
>
>
>  which is giving me some permission errors (server end? - these
> directories - NOAA et al - actually currently exist on the server from my
> ftp uploads.
>
> Any further thoughts?
>
> I've sent off a message to my provider asking  if its possible to use
> rsync instead, but no response as yet.
> Cheers,
> Alan
>
> On Sunday, November 3, 2024 at 11:53:15 PM UTC+11 Tom Keffer wrote:
>
> From what I can tell, pysftp is no longer available in the Debian
> repositories. My first recommendation would be to use rsync if your ISP
> offers it because it is so much faster.
>
> However, if your ISP does not offer rsync, and you must use pysftp, it is
> available on pypi.org, although the version is quite old (5 July 2016). I
> gave it a quick try using a modern version of Python (v3.12) and it seems
> to work.
>
> You can use pip to install it system wide. In general, this is not a good
> idea because it can break existing packages and, for this reason, modern
> versions of pip won't let you do this without the scary sounding override
> "--break-system-packages"
>
> # If it hasn't been installed already, install pip:
> sudo apt install python3-pip
>
> # Install pysftp using pip. Override
> sudo python3 -m pip install --break-system-packages pysftp
>
>
>
>
>
>
> On Sun, Nov 3, 2024 at 2:58 AM Alan Salmon <redgu...@gmail.com> wrote:
>
> I've received advice from my web provider that they are phasing out ftp
> uploads and requiring all users to move to sftp in the near future.
>
> Going through the documentation, it says I need pysftp and suggests using
> "pip install pysftp" if you used the Pip install method, or else use "apt
> install" method.
>
> Using the apt method, it cannot locate the package. I've tried both
> "pysftp" and "python3-sftp" as advised by the apt error message.
>
> Can someone advise what I need to feed apt on my Raspberry Pi 4 running
> Debian 12 Bookworm?
>
> Thanks.
>
> --
> 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+...@googlegroups.com.
> To view this discussion visit
> https://groups.google.com/d/msgid/weewx-user/031628b5-fd97-4854-836c-ee392fb32e2en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/031628b5-fd97-4854-836c-ee392fb32e2en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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 visit
> https://groups.google.com/d/msgid/weewx-user/b47d92f5-8b6a-4561-8ace-e36b98d25ffen%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/b47d92f5-8b6a-4561-8ace-e36b98d25ffen%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEADL3MqWxdjRVeXeF%2BWsr5Dja%2B_51fPCBcEYy0U3x53aw%40mail.gmail.com.

Reply via email to