Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2022-02-20 Thread Rob Cranfill
Funny you should bring this up now. I recently upgraded to WeeWX 2.6, and
my modified code no longer works. I was always able to adapt to each new
version, but the new codebase is quite different than the previous ones. I
have kind of given up on trying to adapt it to 2.6. Sorry.

Instead, I use a cron job to “rsynch” my local files to the remote. It
sounds like maybe you are doing something similar.

If you are using some version of WeeWX less than 2.6 I could still send you
my code. Although even that code requires the pysftp library, so maybe none
of this will help you. :-/

Let me know if you’d like to try it.


On Fri, Feb 18, 2022 at 23:03 'Dr. Thomas Tuch' via weewx-user <
weewx-user@googlegroups.com> wrote:

> Dear Rob
> After moving to a different server i have been trying to get sftp to work
> with weewx and never managed to get pysftp compiled, probably because my pi
> is running Ubuntu 16. This I cannot change because my home automation is
> running on the same pi3b - I would not like to mess with heating etc in
> German winter :-) I would therefore be happy to get a copy of your hack.
> Thank you in advance. Thomas
>
>
> robcr...@gmail.com schrieb am Mittwoch, 27. Mai 2020 um 18:09:56 UTC+2:
>
>> Dear Mr or Ms Potamia, ;-)
>>
>> I have code that I hacked into the standard Weewx base that implements
>> proper sftp. If you would like a copy I can send it to you. (And anyone
>> else who’d like a copy.) Just one modified file.
>>
>> /rob
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/GdlSK3vTvYE/unsubscribe.
> To unsubscribe from this group and all its topics, 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/f0444643-d438-47ab-b11c-5a9bf624222en%40googlegroups.com
> 
> .
>
-- 


-- 
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/CAOVFAvoDwnxjLgRh6ctWRz%2BaGvLT-bwMtZ7%2BvmMUZ57BiEnGHQ%40mail.gmail.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2022-02-19 Thread Messy Potamia
Please be advised I have been using scp in conjunction with ssh in my
scripts to move things around every five minutes (weather station
stuff & wx photos).

On Sat, Feb 19, 2022 at 8:03 AM 'Dr. Thomas Tuch' via weewx-user
 wrote:
>
> Dear Rob
> After moving to a different server i have been trying to get sftp to work 
> with weewx and never managed to get pysftp compiled, probably because my pi 
> is running Ubuntu 16. This I cannot change because my home automation is 
> running on the same pi3b - I would not like to mess with heating etc in 
> German winter :-) I would therefore be happy to get a copy of your hack. 
> Thank you in advance. Thomas
>
>
> robcr...@gmail.com schrieb am Mittwoch, 27. Mai 2020 um 18:09:56 UTC+2:
>>
>> Dear Mr or Ms Potamia, ;-)
>>
>> I have code that I hacked into the standard Weewx base that implements 
>> proper sftp. If you would like a copy I can send it to you. (And anyone else 
>> who’d like a copy.) Just one modified file.
>>
>> /rob
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/GdlSK3vTvYE/unsubscribe.
> To unsubscribe from this group and all its topics, 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/f0444643-d438-47ab-b11c-5a9bf624222en%40googlegroups.com.

-- 
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/CAB7-S77hMJi8nwrnGP2XmrTP0VRqqEtczn7EY0c8rA4C67%2B0YA%40mail.gmail.com.


[weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2022-02-18 Thread 'Dr. Thomas Tuch' via weewx-user
Dear Rob
After moving to a different server i have been trying to get sftp to work 
with weewx and never managed to get pysftp compiled, probably because my pi 
is running Ubuntu 16. This I cannot change because my home automation is 
running on the same pi3b - I would not like to mess with heating etc in 
German winter :-) I would therefore be happy to get a copy of your hack. 
Thank you in advance. Thomas


robcr...@gmail.com schrieb am Mittwoch, 27. Mai 2020 um 18:09:56 UTC+2:

> Dear Mr or Ms Potamia, ;-)
>
> I have code that I hacked into the standard Weewx base that implements 
> proper sftp. If you would like a copy I can send it to you. (And anyone 
> else who’d like a copy.) Just one modified file. 
>
> /rob 

-- 
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/f0444643-d438-47ab-b11c-5a9bf624222en%40googlegroups.com.


Re: [weewx-user] Re: SFTP problem

2021-01-30 Thread bgra...@umw.edu
Thanks, Gary and Tom. He seems to have found the problem although I’m not 
sure what it was.  bgrat...@umw.edu

On Friday, January 29, 2021 at 7:43:34 PM UTC-5 gjr80 wrote:

> Not a sftp user but the typical approach to fault finding ftp/sftp/rsync 
> generator issues is to see if you can connect to the remote server from the 
> command line, ie take WeeWX out of the equation. What happens if you do the 
> following from the command line:
>
> $ sftp username@remote_host
>
> Also, just to check the obvious, you don’t have something blocking access 
> to port 22 do you?
>
> Gary
>  
>

-- 
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/cafadf6c-34b3-459c-b447-ee1daa1f622en%40googlegroups.com.


Re: [weewx-user] Re: SFTP problem

2021-01-29 Thread gjr80
Not a sftp user but the typical approach to fault finding ftp/sftp/rsync 
generator issues is to see if you can connect to the remote server from the 
command line, ie take WeeWX out of the equation. What happens if you do the 
following from the command line:

$ sftp username@remote_host

Also, just to check the obvious, you don’t have something blocking access 
to port 22 do you?

Gary
 

-- 
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/c9a51bc2-67ae-42e9-a53a-1c2b09d481b1n%40googlegroups.com.


Re: [weewx-user] Re: SFTP problem

2021-01-29 Thread Tom Keffer
I don't know anything about the sftp extension (it's not part of WeeWX),
but I would imagine you want to use either the extension, or the ftp that
comes with WeeWX, but not both.

-tk

On Fri, Jan 29, 2021 at 1:29 PM bgra...@umw.edu  wrote:

> Something to add to the above.  The weewx-sftp extension is installed and
> the weewx.conf looks like below. Is there some conflict here between sftp
> and ftp or are they configured correctly?  Thanks.  BG
> /etc/weewx/weewx.conf
>
> [[sftp]]
> skin = sftp
> user = 
> password = password
> server = brewery.no
> port = 22
> path = /
>
> [[FTP]]
> # FTP'ing the results to a webserver is treated as just another
> report,
> # albeit one with an unusual report generator!
> skin = Ftp
>
> # If you wish to use FTP, set "enable" to "true", then
> # fill out the next four lines.
> # Use quotes around passwords to guard against parsing errors.
> enable = true
> user = 
> password = password
> server = brewery.no# The ftp server name, e.g,
> www.myserver.org
> path = /# The destination directory, e.g., /weather
>
> # Set to True for an FTP over TLS (FTPS) connection. Not all
> servers
> # support this.
> secure_ftp = true
>
> # To upload files from something other than what HTML_ROOT is set
> # to above, specify a different HTML_ROOT here.
> #HTML_ROOT = /var/www/html/weewx
>
> # Most FTP servers use port 21
> port = 21
>
> # Set to 1 to use passive mode, zero for active mode
> passive = 1
>
>
>
>
> On Thursday, January 28, 2021 at 4:59:29 PM UTC-5 bgra...@umw.edu wrote:
>
>>
>> Hello,
>> I am trying to help my son in Norway who is running weewx 4.3.0 on an
>> RPI. Neither of us is a programmer and can't seem to figure out what is
>> happening. I also run weewx on an ubuntu machine.
>>
>> I am attaching some sections of his syslog showing errors and problems.
>> Basically the system is running but no longer SFTPing to his remote site.
>> Also it isn't updating his local Seasons page. However it is sending data
>> to WU, which I assume doesn't use SFTP.
>>
>> At one point, when I restarted weewx, it showed that the clock was about
>> 25 hours off but I'm not sure this was causing a problem as the clock reset
>> and nothing much changed.
>>
>> Also I found a message that pysftp was missing and installed it with
>> pip3. No change.
>>
>> His system seems to be running python3 but it's possible that something
>> is missing there.
>>
>> Anyway, I would appreciate it if someone with a trained eye could have a
>> look at the attached and let me know if anything stands out that is wrong.
>> I can send more detail if needed.  Thanks in advance.
>> Bob
>>
> --
> 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/e0dd2f91-2634-4e43-ad14-e0aa955758d3n%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEDrj691wih6v3%3DrR34FT1ePkhs1oRYxzPMkgPCFw94Huw%40mail.gmail.com.


[weewx-user] Re: SFTP problem

2021-01-29 Thread bgra...@umw.edu
Something to add to the above.  The weewx-sftp extension is installed and 
the weewx.conf looks like below. Is there some conflict here between sftp 
and ftp or are they configured correctly?  Thanks.  BG
/etc/weewx/weewx.conf

[[sftp]]
skin = sftp
user = 
password = password
server = brewery.no
port = 22
path = /

[[FTP]]
# FTP'ing the results to a webserver is treated as just another 
report,
# albeit one with an unusual report generator!
skin = Ftp

# If you wish to use FTP, set "enable" to "true", then
# fill out the next four lines.
# Use quotes around passwords to guard against parsing errors.
enable = true
user = 
password = password
server = brewery.no# The ftp server name, e.g, 
www.myserver.org
path = /# The destination directory, e.g., /weather

# Set to True for an FTP over TLS (FTPS) connection. Not all servers
# support this.
secure_ftp = true

# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
#HTML_ROOT = /var/www/html/weewx

# Most FTP servers use port 21
port = 21

# Set to 1 to use passive mode, zero for active mode
passive = 1




On Thursday, January 28, 2021 at 4:59:29 PM UTC-5 bgra...@umw.edu wrote:

>
> Hello,
> I am trying to help my son in Norway who is running weewx 4.3.0 on an RPI. 
> Neither of us is a programmer and can't seem to figure out what is 
> happening. I also run weewx on an ubuntu machine.
>
> I am attaching some sections of his syslog showing errors and problems. 
> Basically the system is running but no longer SFTPing to his remote site. 
> Also it isn't updating his local Seasons page. However it is sending data 
> to WU, which I assume doesn't use SFTP.
>
> At one point, when I restarted weewx, it showed that the clock was about 
> 25 hours off but I'm not sure this was causing a problem as the clock reset 
> and nothing much changed.
>
> Also I found a message that pysftp was missing and installed it with pip3. 
> No change.
>
> His system seems to be running python3 but it's possible that something is 
> missing there.
>
> Anyway, I would appreciate it if someone with a trained eye could have a 
> look at the attached and let me know if anything stands out that is wrong. 
> I can send more detail if needed.  Thanks in advance.
> Bob
>

-- 
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/e0dd2f91-2634-4e43-ad14-e0aa955758d3n%40googlegroups.com.


[weewx-user] Re: sftp upload not working

2020-09-24 Thread Duane Kerzic
Thank you Fam De Munck. Sent me exactly where I needed to go.

On Wednesday, July 1, 2020 at 2:53:41 AM UTC-4 Fam de Munck wrote:

> It seems you are confusing sftp and ftps.
>
> Please have a look at:
> https://github.com/weewx/weewx/wiki
> http://www.weewx.com/docs/usersguide.htm#config_FTP
>
>
> Op dinsdag 30 juni 2020 17:21:05 UTC+2 schreef Andre:
>
>> I have problems to upload with sftp from my RPi to my new vServer.
>>
>> Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Running 
>> report 'FTP'
>> Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Found 
>> configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
>> Jun 30 16:56:28 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting 
>> secure connection to x.xx.xxx.xxx
>> Jun 30 16:56:29 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:29 CEST (1593528989)
>> Jun 30 16:56:31 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:31 CEST (1593528991)
>> Jun 30 16:56:33 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:33 CEST (1593528993)
>> Jun 30 16:56:35 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:35 CEST (1593528995)
>> Jun 30 16:56:37 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:37 CEST (1593528997)
>> Jun 30 16:56:39 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:39 CEST (1593528999)
>> Jun 30 16:56:41 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:41 CEST (1593529001)
>> Jun 30 16:56:43 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:43 CEST (1593529003)
>> Jun 30 16:56:45 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:45 CEST (1593529005)
>> Jun 30 16:56:47 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
>> record 2020-06-30 16:56:47 CEST (1593529007)
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: ftpgenerator: 
>> (0): caught exception '': timed out
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  Traceback (most recent call last):
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/share/weewx/weewx/reportengine.py", line 330, in run
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  n = ftp_data.run()
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  ftp_server.connect(self.server, self.port)
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/lib/python3.7/ftplib.py", line 155, in connect
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  self.welcome = self.getresp()
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/lib/python3.7/ftplib.py", line 236, in getresp
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  resp = self.getmultiline()
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/lib/python3.7/ftplib.py", line 226, in getmultiline
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  nextline = self.getline()
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/lib/python3.7/ftplib.py", line 204, in getline
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  line = self.file.readline(self.maxline + 1)
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>File "/usr/lib/python3.7/socket.py", line 589, in readinto
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  return self._sock.recv_into(b)
>> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>>  socket.timeout: timed out
>> Jun 30 16:56:48 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting 
>> secure connection to x.xx.xxx.xxx
>>
>> [[FTP]]
>> # FTP'ing the results to a webserver is treated as just another 
>> report,
>> # albeit one with an unusual report generator!
>> skin = Ftp
>> 
>> # If you wish to use FTP, set "enable" to "true", then
>> # fill out the next four lines.
>> # Use quotes around passwords to guard against parsing errors.
>> enable = true
>> user = username
>> password = "password"
>> server = x.xx.xxx.xxx# The ftp server name, e.g, 
>> www.myserver.org
>> path = /var/www/html/www.doamainname.com/public_html# The 
>> destination directory, e.g., /weather
>> 
>> # Set to True for an FTP over TLS (FTPS) connection. Not all 
>> servers
>>  

[weewx-user] Re: sftp upload not working

2020-07-01 Thread Fam de Munck
It seems you are confusing sftp and ftps.

Please have a look at:
https://github.com/weewx/weewx/wiki
http://www.weewx.com/docs/usersguide.htm#config_FTP


Op dinsdag 30 juni 2020 17:21:05 UTC+2 schreef Andre:
>
> I have problems to upload with sftp from my RPi to my new vServer.
>
> Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Running 
> report 'FTP'
> Jun 30 16:56:28 weewx weewx[2174] DEBUG weewx.reportengine: Found 
> configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
> Jun 30 16:56:28 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting 
> secure connection to x.xx.xxx.xxx
> Jun 30 16:56:29 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:29 CEST (1593528989)
> Jun 30 16:56:31 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:31 CEST (1593528991)
> Jun 30 16:56:33 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:33 CEST (1593528993)
> Jun 30 16:56:35 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:35 CEST (1593528995)
> Jun 30 16:56:37 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:37 CEST (1593528997)
> Jun 30 16:56:39 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:39 CEST (1593528999)
> Jun 30 16:56:41 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:41 CEST (1593529001)
> Jun 30 16:56:43 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:43 CEST (1593529003)
> Jun 30 16:56:45 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:45 CEST (1593529005)
> Jun 30 16:56:47 weewx weewx[2174] INFO weewx.restx: MQTT: Published 
> record 2020-06-30 16:56:47 CEST (1593529007)
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine: ftpgenerator: 
> (0): caught exception '': timed out
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:   
> Traceback (most recent call last):
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/share/weewx/weewx/reportengine.py", line 330, in run
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  n = ftp_data.run()
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/share/weewx/weeutil/ftpupload.py", line 127, in run
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  ftp_server.connect(self.server, self.port)
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/lib/python3.7/ftplib.py", line 155, in connect
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  self.welcome = self.getresp()
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/lib/python3.7/ftplib.py", line 236, in getresp
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  resp = self.getmultiline()
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/lib/python3.7/ftplib.py", line 226, in getmultiline
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  nextline = self.getline()
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/lib/python3.7/ftplib.py", line 204, in getline
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  line = self.file.readline(self.maxline + 1)
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>File "/usr/lib/python3.7/socket.py", line 589, in readinto
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  return self._sock.recv_into(b)
> Jun 30 16:56:48 weewx weewx[2174] ERROR weewx.reportengine:  
>  socket.timeout: timed out
> Jun 30 16:56:48 weewx weewx[2174] DEBUG weeutil.ftpupload: Attempting 
> secure connection to x.xx.xxx.xxx
>
> [[FTP]]
> # FTP'ing the results to a webserver is treated as just another 
> report,
> # albeit one with an unusual report generator!
> skin = Ftp
> 
> # If you wish to use FTP, set "enable" to "true", then
> # fill out the next four lines.
> # Use quotes around passwords to guard against parsing errors.
> enable = true
> user = username
> password = "password"
> server = x.xx.xxx.xxx# The ftp server name, e.g, 
> www.myserver.org
> path = /var/www/html/www.doamainname.com/public_html# The 
> destination directory, e.g., /weather
> 
> # Set to True for an FTP over TLS (FTPS) connection. Not all 
> servers
> # support this.
> secure_ftp = true
> 
> # To upload files from something other than what HTML_ROOT is set
> # to above, specify a different HTML_ROOT here.
> HTML_ROOT = 

[weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2020-05-27 Thread Rob Cranfill
Dear Mr or Ms Potamia, ;-)

I have code that I hacked into the standard Weewx base that implements proper 
sftp. If you would like a copy I can send it to you. (And anyone else who’d 
like a copy.) Just one modified file. 

/rob 

-- 
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/c5343073-bb74-4002-a42c-f8da9b76bfed%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2020-05-26 Thread Tom Keffer
One pip quirk that consistently bites me over and over again, is trying to
use pip from the WeeWX home directory, /home/weewx. It appears that is what
you're trying to do.

The problem is the presence of the file setup.cfg. Pip sees it, and tries
to install in the directories it specifies, in this case /home/weewx. Take
a look in /home/weewx/bin and see if your missing pysftp is in there.

The solution is to clean up /home/weewx/bin, then cd to some other
directory, then use pip.

-tk



On Tue, May 26, 2020 at 4:26 AM mwall  wrote:

>
>
> On Tuesday, May 26, 2020 at 4:35:50 AM UTC-4, Messy Potamia wrote:
>>
>> Well I knew that was too good to be true.
>>
>
> the first error you posted, regarding 'platform_system' NameError, is
> probably due to an old version of setuptools.  to fix that, update the
> setuptools for the python installation associated with the 'pip' version
> that you are invoking.
>
>
>
>> May 26 10:30:21 RPI3 weewx[21915]: sftpgenerator: upload not possible: No
>> module named pysftp
>>
>>>
>>>
> that indicates the python with which you are invoking weewx does not have
> pysftp installed.  perhaps you installed pysftp for python3 but you are
> using python2 to invoke weewx?
>
> dog's breakfast indeed.  welcome to the world of python dependencies!
> (this is why we try really hard to keep weewx dependencies to a minimum)
>
> one way to avoid this is to install your own python, completely
> independent of the system's python.  then use the 'pip' from that python
> installation to install all of the python packages you need.  you may still
> have to install the build environment and the occasional dev package for
> your operating system.
>
> the you can use that python by setting it in /etc/default/weewx (if you
> have a deb/apt or rpm/yum/dnf install) or by invoking it when you do
> 'setup.py install' (if you have a setup.py install of weewx).
>
> m
>
> --
> 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/82433072-10b1-400c-bf00-3cd94191cc5e%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEC4YGNiOgWzgqh_pEiOzMWTUwE1s9%2BPJbvz0yVaeBYBFA%40mail.gmail.com.


[weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2020-05-26 Thread mwall


On Tuesday, May 26, 2020 at 4:35:50 AM UTC-4, Messy Potamia wrote:
>
> Well I knew that was too good to be true.
>

the first error you posted, regarding 'platform_system' NameError, is 
probably due to an old version of setuptools.  to fix that, update the 
setuptools for the python installation associated with the 'pip' version 
that you are invoking.

 

> May 26 10:30:21 RPI3 weewx[21915]: sftpgenerator: upload not possible: No 
> module named pysftp
>
>>
>>
that indicates the python with which you are invoking weewx does not have 
pysftp installed.  perhaps you installed pysftp for python3 but you are 
using python2 to invoke weewx?

dog's breakfast indeed.  welcome to the world of python dependencies!  
(this is why we try really hard to keep weewx dependencies to a minimum)

one way to avoid this is to install your own python, completely independent 
of the system's python.  then use the 'pip' from that python installation 
to install all of the python packages you need.  you may still have to 
install the build environment and the occasional dev package for your 
operating system.

the you can use that python by setting it in /etc/default/weewx (if you 
have a deb/apt or rpm/yum/dnf install) or by invoking it when you do 
'setup.py install' (if you have a setup.py install of weewx).

m

-- 
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/82433072-10b1-400c-bf00-3cd94191cc5e%40googlegroups.com.


[weewx-user] Re: sftp on 3.9.2, RPI3B -- **still** not working with several methods

2020-05-26 Thread Messy Potamia
Well I knew that was too good to be true.

May 26 10:30:21 RPI3 weewx[21915]: sftpgenerator: upload not possible: No 
module named pysftp

although the problematic pip install of pysftp "suggested" that module was 
installed, to wit:

> Successfully built pysftp pynacl bcrypt
> Failed to build cryptography
> ERROR: Could not build wheels for cryptography which use PEP 517 and 
> cannot be installed directly
>
so I thought since it built the pysftp it would be available for this. 
Definitely a #DOG'sBREAKFAST.
Thanks for your help so far. 
Anyone else gone / going through this?
Thx/MP
On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
>
> -- 
>
> In summary, the Secure FTP capability is indicated in weewx.conf (& the 
> caveat comment seems satisfied with testing of Filezilla's success), 
> however in weewx's native install it does not work.
> --
> First I tried the method suggested in weewx.conf and the weewx guide: I 
> enabled ssh/sftp with my provider (one.com), followed their instructions, 
> tested it with filezilla, and I connect and upload/dnload just fine. Here's 
> one.com's instructions on the matter:
> SSH & SFTP Administration 
>
> *SSH* increases the security on your web space by encrypting your web 
> space connections. With SSH enabled, you can transfer files securely via 
> *SFTP* or connect to your web space directly from a terminal. 
>
> Allow SSH & SFTP access Off On 
>
> To log in with SSH & SFTP, use this info:
>
> Host: ssh..net 
>
> Username: .net 
>
> Port: 22
>
> Then their faq on the subject has this:
>
>
> Open your SFTP client, and enter the following details, replacing 
> *yourdomain.com 
> * with your own domain:
>
>- *Host:* sftp.yourdomain.com
>- *Username:* yourdomain.com
>- *Password:* the password you have chosen for SFTP
>- *Port:* 22
>
> Click the connect button in your client to log in. If it is the first time 
> you login using SFTP on this computer, you need to approve the connection.
>
> Note: I have verified that with filezilla, both sftp.mydomain.net and 
> ssh.mydomain.net, using my ssh/sftp password, connect fine.
>
>
> When I make the appropriate changes to weewx.conf, it is unable to 
> connect. I tried a couple variations just to cross-validate disparities in 
> their guide. No connect.
>
>
> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other things, 
> MWall's 
> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
>
> to wit:
>
> sudo pip install pysftp
>
> which results in:
>
> pi@RPI3:/home/weewx $ sudo pip install pysftp
> Downloading/unpacking pysftp
>   Downloading pysftp-0.2.9.tar.gz
>   Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py) egg_info 
> for package pysftp
>
> no previously-included directories found matching 'docs/_build'
> Downloading/unpacking paramiko>=1.17 (from pysftp)
>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB 
> downloaded
> Cleaning up...
> Exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
> main
> status = self.run(options, args)
>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 
> 290, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
> bundle=self.bundle)
>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
> prepare_files
> req_to_install.extras):
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
> requires
> dm = self._dep_map
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
> _dep_map
> self.__dep_map = self._compute_dependencies()
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
> _compute_dependencies
> common = frozenset(reqs_for_extra(None))
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
> reqs_for_extra
> if req.marker_fn(override={'extra':extra}):
>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, 
> in marker_fn
> return eval(compiled_marker, environment)
>   File "", line 1, in 
> NameError: name 'platform_system' is not defined
>
> Storing debug log for failure in /root/.pip/pip.log
> I tried a sudo apt-get install but that failed also.
> pi@RPI3:/home/weewx $ sudo apt-get install pysftp
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package pysftp
> So couldn't get to 1st base this inning.
>
>
> In summary, the Secure FTP capability as indicated in weewx.conf (& the 
> caveat comment seems satisfied with testing of Filezilla's success), in 
> weewx's native install does not work. Not for me. And I believe I've double 
> checked everything.
>
>
> If it requires a hack to package(s) (.py) in weewx I'm comfortable doing 
> that if the instructions are clear, concise, well written. Note, I'm not 
> comfortable 

Re: [weewx-user] Re: sftp on 3.9.2, RPI3B --//pysftp module won't load//

2020-05-26 Thread Messy Potamia

Messy Potamia  
9:53 AM (2 minutes ago)


to weewx-user 
And let me tell you there are still problems regarding python version,
setuptools version,; this is turning into a dog's breakfast. 
My pip isthe latest version I have ascertained. But cryptography won't 
install.
 
sudo pip -V
  pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7
)ode here...

 --- but ---
Successfully built pysftp pynacl bcrypt
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot 
be installed directly
This is a PI3B (a02082) on Jessie lite.

On Tuesday, May 26, 2020 at 9:38:48 AM UTC+2, Messy Potamia wrote:
>
> Here's what I did to allow pysftp module to install via pip. I found this 
> on a RaspberryPi forum. You search on this problem and hits come from all 
> over the place with no solutions, until I found this:
>
> sudo apt-get install python-pip
> pip install --user -U setuptools
> sudo pip install --upgrade pip
> sudo apt-get install libffi-dev
> sudo pip install pysftp   #errors during pysftp install, "  Building wheel 
> for pynacl (PEP 517) ... \" still working...
>
> This is on my Pi3 running Jessie.
>
>
> On Tuesday, May 26, 2020 at 8:59:12 AM UTC+2, Messy Potamia wrote:
>>
>> Matt, I get the same result whether I invoke pip, pip2, pip3:
>> pi@RPI3:~ $ sudo pip2 install pysftp
>> Downloading/unpacking pysftp
>>   Downloading pysftp-0.2.9.tar.gz
>>   Running setup.py (path:/tmp/pip-build-QfuB69/pysftp/setup.py) egg_info 
>> for package pysftp
>>
>> no previously-included directories found matching 'docs/_build'
>> Downloading/unpacking paramiko>=1.17 (from pysftp)
>>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB 
>> downloaded
>> Cleaning up...
>> Exception:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, 
>> in main
>> status = self.run(options, args)
>>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 
>> 290, in run
>> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle
>> , bundle=self.bundle)
>>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
>> prepare_files
>> req_to_install.extras):
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
>> requires
>> dm = self._dep_map
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
>> _dep_map
>> self.__dep_map = self._compute_dependencies()
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
>> _compute_dependencies
>> common = frozenset(reqs_for_extra(None))
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
>> reqs_for_extra
>> if req.marker_fn(override={'extra':extra}):
>>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113
>> , in marker_fn
>> return eval(compiled_marker, environment)
>>   File "", line 1, in 
>> NameError: name 'platform_system' is not defined
>>
>> Storing debug log for failure in /root/.pip/pip.log
>>
>> I also tried apt-get install and it can't find the pkg. 
>> The /root/.pip/pip.log is large 
>> -rw-r--r-- 1 root root 84870 May 26 08:48 pip.log
>> and I more'd it but couldn't see anything that made sense to me.
>> Any ideas? btw I did download the rest of the pkg from github including 
>> wget the generator, but probably shouldn't proceed until I can get pysftp 
>> on my Pi.
>> Thanks!
>> ---
>>
>>
>>
>>
>> On Monday, May 25, 2020 at 10:49:00 PM UTC+2, mwall wrote:
>>>
>>>
>>>
>>> On Monday, May 25, 2020 at 3:56:16 PM UTC-4, Messy Potamia wrote:

 one.com's robotic tech support said they only do ftp, sftp, and ssh, 
 and don't support ftps. I don't think that offshore robot even knew what 
 ftps was.
 So can somebody tell me about the thing that MWALL has on github?

>>>
>>> as it says in the readme, it is a client that uses sftp (not ftps, not 
>>> ftp)
>>>
>>> if you can connect to your sftp server using some other sftp client, 
>>> then the weewx-sftp extension should work using the same 
>>> credentials/parameters
>>>
>>> you can verify by invoking the weewx-sftp extension directly, for 
>>> example:
>>>
>>> PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/sftp.py 
>>> /home/weewx/weewx.conf
>>>
>>> change the paths if you are using a deb or rpm installation
>>>
>>> m
>>>
>>

-- 
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/0d5ed4d5-f9ec-47d5-b8d9-b74cba16caae%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B --//pysftp module won't load//

2020-05-26 Thread Messy Potamia
And let me tell you there are still problems regarding python version,
setuptools version,; this is turning into a dog's breakfast. My pip is
the latest version I have ascertained. But cryptography won't install.
 sudo pip -V
  pip 20.1.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
 --- but ---
Successfully built pysftp pynacl bcrypt
Failed to build cryptography
ERROR: Could not build wheels for cryptography which use PEP 517 and
cannot be installed directly

--MP



On Tue, May 26, 2020 at 9:38 AM Messy Potamia  wrote:
>
> Here's what I did to allow pysftp module to install via pip. I found this on 
> a RaspberryPi forum. You search on this problem and hits come from all over 
> the place with no solutions, until I found this:
>
> sudo apt-get install python-pip
> pip install --user -U setuptools
> sudo pip install --upgrade pip
> sudo apt-get install libffi-dev
> sudo pip install pysftp   #errors during pysftp install, "  Building wheel 
> for pynacl (PEP 517) ... \" still working...
>
> This is on my Pi3 running Jessie.
>
>
> On Tuesday, May 26, 2020 at 8:59:12 AM UTC+2, Messy Potamia wrote:
>>
>> Matt, I get the same result whether I invoke pip, pip2, pip3:
>> pi@RPI3:~ $ sudo pip2 install pysftp
>> Downloading/unpacking pysftp
>>   Downloading pysftp-0.2.9.tar.gz
>>   Running setup.py (path:/tmp/pip-build-QfuB69/pysftp/setup.py) egg_info for 
>> package pysftp
>>
>> no previously-included directories found matching 'docs/_build'
>> Downloading/unpacking paramiko>=1.17 (from pysftp)
>>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB downloaded
>> Cleaning up...
>> Exception:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
>> main
>> status = self.run(options, args)
>>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, 
>> in run
>> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
>> bundle=self.bundle)
>>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
>> prepare_files
>> req_to_install.extras):
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
>> requires
>> dm = self._dep_map
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
>> _dep_map
>> self.__dep_map = self._compute_dependencies()
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
>> _compute_dependencies
>> common = frozenset(reqs_for_extra(None))
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
>> reqs_for_extra
>> if req.marker_fn(override={'extra':extra}):
>>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, 
>> in marker_fn
>> return eval(compiled_marker, environment)
>>   File "", line 1, in 
>> NameError: name 'platform_system' is not defined
>>
>> Storing debug log for failure in /root/.pip/pip.log
>>
>> I also tried apt-get install and it can't find the pkg.
>> The /root/.pip/pip.log is large
>> -rw-r--r-- 1 root root 84870 May 26 08:48 pip.log
>> and I more'd it but couldn't see anything that made sense to me.
>> Any ideas? btw I did download the rest of the pkg from github including wget 
>> the generator, but probably shouldn't proceed until I can get pysftp on my 
>> Pi.
>> Thanks!
>> ---
>>
>>
>>
>>
>> On Monday, May 25, 2020 at 10:49:00 PM UTC+2, mwall wrote:
>>>
>>>
>>>
>>> On Monday, May 25, 2020 at 3:56:16 PM UTC-4, Messy Potamia wrote:

 one.com's robotic tech support said they only do ftp, sftp, and ssh, and 
 don't support ftps. I don't think that offshore robot even knew what ftps 
 was.
 So can somebody tell me about the thing that MWALL has on github?
>>>
>>>
>>> as it says in the readme, it is a client that uses sftp (not ftps, not ftp)
>>>
>>> if you can connect to your sftp server using some other sftp client, then 
>>> the weewx-sftp extension should work using the same credentials/parameters
>>>
>>> you can verify by invoking the weewx-sftp extension directly, for example:
>>>
>>> PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/sftp.py 
>>> /home/weewx/weewx.conf
>>>
>>> change the paths if you are using a deb or rpm installation
>>>
>>> m
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "weewx-user" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/weewx-user/GdlSK3vTvYE/unsubscribe.
> To unsubscribe from this group and all its topics, 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/94d1c767-7972-4c5f-92ab-e69a349eab1e%40googlegroups.com.

-- 
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 

Re: [weewx-user] Re: sftp on 3.9.2, RPI3B --//pysftp module won't load//

2020-05-26 Thread Messy Potamia
Here's what I did to allow pysftp module to install via pip. I found this 
on a RaspberryPi forum. You search on this problem and hits come from all 
over the place with no solutions, until I found this:

sudo apt-get install python-pip
pip install --user -U setuptools
sudo pip install --upgrade pip
sudo apt-get install libffi-dev
sudo pip install pysftp   #errors during pysftp install, "  Building wheel for 
pynacl (PEP 517) ... \" still working...

This is on my Pi3 running Jessie.


On Tuesday, May 26, 2020 at 8:59:12 AM UTC+2, Messy Potamia wrote:
>
> Matt, I get the same result whether I invoke pip, pip2, pip3:
> pi@RPI3:~ $ sudo pip2 install pysftp
> Downloading/unpacking pysftp
>   Downloading pysftp-0.2.9.tar.gz
>   Running setup.py (path:/tmp/pip-build-QfuB69/pysftp/setup.py) egg_info 
> for package pysftp
>
> no previously-included directories found matching 'docs/_build'
> Downloading/unpacking paramiko>=1.17 (from pysftp)
>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB 
> downloaded
> Cleaning up...
> Exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
> main
> status = self.run(options, args)
>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 
> 290, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
> bundle=self.bundle)
>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
> prepare_files
> req_to_install.extras):
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
> requires
> dm = self._dep_map
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
> _dep_map
> self.__dep_map = self._compute_dependencies()
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
> _compute_dependencies
> common = frozenset(reqs_for_extra(None))
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
> reqs_for_extra
> if req.marker_fn(override={'extra':extra}):
>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, 
> in marker_fn
> return eval(compiled_marker, environment)
>   File "", line 1, in 
> NameError: name 'platform_system' is not defined
>
> Storing debug log for failure in /root/.pip/pip.log
>
> I also tried apt-get install and it can't find the pkg. 
> The /root/.pip/pip.log is large 
> -rw-r--r-- 1 root root 84870 May 26 08:48 pip.log
> and I more'd it but couldn't see anything that made sense to me.
> Any ideas? btw I did download the rest of the pkg from github including 
> wget the generator, but probably shouldn't proceed until I can get pysftp 
> on my Pi.
> Thanks!
> ---
>
>
>
>
> On Monday, May 25, 2020 at 10:49:00 PM UTC+2, mwall wrote:
>>
>>
>>
>> On Monday, May 25, 2020 at 3:56:16 PM UTC-4, Messy Potamia wrote:
>>>
>>> one.com's robotic tech support said they only do ftp, sftp, and ssh, 
>>> and don't support ftps. I don't think that offshore robot even knew what 
>>> ftps was.
>>> So can somebody tell me about the thing that MWALL has on github?
>>>
>>
>> as it says in the readme, it is a client that uses sftp (not ftps, not 
>> ftp)
>>
>> if you can connect to your sftp server using some other sftp client, then 
>> the weewx-sftp extension should work using the same credentials/parameters
>>
>> you can verify by invoking the weewx-sftp extension directly, for example:
>>
>> PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/sftp.py 
>> /home/weewx/weewx.conf
>>
>> change the paths if you are using a deb or rpm installation
>>
>> m
>>
>

-- 
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/94d1c767-7972-4c5f-92ab-e69a349eab1e%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B --//pysftp module won't load//

2020-05-26 Thread Messy Potamia
Matt, I get the same result whether I invoke pip, pip2, pip3:
pi@RPI3:~ $ sudo pip2 install pysftp
Downloading/unpacking pysftp
  Downloading pysftp-0.2.9.tar.gz
  Running setup.py (path:/tmp/pip-build-QfuB69/pysftp/setup.py) egg_info for 
package pysftp

no previously-included directories found matching 'docs/_build'
Downloading/unpacking paramiko>=1.17 (from pysftp)
  Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
main
status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, 
in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
prepare_files
req_to_install.extras):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
requires
dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
_dep_map
self.__dep_map = self._compute_dependencies()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
_compute_dependencies
common = frozenset(reqs_for_extra(None))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
reqs_for_extra
if req.marker_fn(override={'extra':extra}):
  File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, 
in marker_fn
return eval(compiled_marker, environment)
  File "", line 1, in 
NameError: name 'platform_system' is not defined

Storing debug log for failure in /root/.pip/pip.log

I also tried apt-get install and it can't find the pkg. 
The /root/.pip/pip.log is large 
-rw-r--r-- 1 root root 84870 May 26 08:48 pip.log
and I more'd it but couldn't see anything that made sense to me.
Any ideas? btw I did download the rest of the pkg from github including 
wget the generator, but probably shouldn't proceed until I can get pysftp 
on my Pi.
Thanks!
---




On Monday, May 25, 2020 at 10:49:00 PM UTC+2, mwall wrote:
>
>
>
> On Monday, May 25, 2020 at 3:56:16 PM UTC-4, Messy Potamia wrote:
>>
>> one.com's robotic tech support said they only do ftp, sftp, and ssh, and 
>> don't support ftps. I don't think that offshore robot even knew what ftps 
>> was.
>> So can somebody tell me about the thing that MWALL has on github?
>>
>
> as it says in the readme, it is a client that uses sftp (not ftps, not ftp)
>
> if you can connect to your sftp server using some other sftp client, then 
> the weewx-sftp extension should work using the same credentials/parameters
>
> you can verify by invoking the weewx-sftp extension directly, for example:
>
> PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/sftp.py 
> /home/weewx/weewx.conf
>
> change the paths if you are using a deb or rpm installation
>
> m
>

-- 
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/035de97e-8904-4987-a1a7-0ce9259e57d5%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
Gary, yes, I did try to install pysftp via pip, it failed, and I went onto 
other things. Will read more about this (including Matt's *readme*) and try 
this tomorrow.
Meanwhile I'm having problems related to plain ftp that defy logical 
consistency but that's for another subject.

On Monday, May 25, 2020 at 11:15:29 PM UTC+2, gjr80 wrote:
>
> I think the weewx-sftp issue was the inability to install pysftp via pip. 
> It installed fine for me on raspbian Stretch last night though I needed to 
> use pip2 not pip. A bit of googling the OPs pip error message suggested pip 
> may need to be upgraded, wouldn’t be the first time that has come up. 
>
> Gary

-- 
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/310a5639-2c3e-425d-b973-26b391ee744f%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread gjr80
I think the weewx-sftp issue was the inability to install pysftp via pip. It 
installed fine for me on raspbian Stretch last night though I needed to use 
pip2 not pip. A bit of googling the OPs pip error message suggested pip may 
need to be upgraded, wouldn’t be the first time that has come up.

Gary

-- 
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/d4beb70c-467b-43e1-9e73-001dcad72c19%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
Aha. "ReadMe". So that's what that's for.   jk
  I probably missed it. Thanks.


On Mon, May 25, 2020 at 10:49 PM mwall  wrote:

>
>
> On Monday, May 25, 2020 at 3:56:16 PM UTC-4, Messy Potamia wrote:
>>
>> one.com's robotic tech support said they only do ftp, sftp, and ssh, and
>> don't support ftps. I don't think that offshore robot even knew what ftps
>> was.
>> So can somebody tell me about the thing that MWALL has on github?
>>
>
> as it says in the readme, it is a client that uses sftp (not ftps, not ftp)
>
> if you can connect to your sftp server using some other sftp client, then
> the weewx-sftp extension should work using the same credentials/parameters
>
> you can verify by invoking the weewx-sftp extension directly, for example:
>
> PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/sftp.py
> /home/weewx/weewx.conf
>
> change the paths if you are using a deb or rpm installation
>
> m
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/GdlSK3vTvYE/unsubscribe.
> To unsubscribe from this group and all its topics, 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/c3075a6c-1c68-4098-99e7-378d96b384ee%40googlegroups.com
> 
> .
>

-- 
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/CAB7-S75CP45JgXNk9-HWyEO9b6TaknwSmOA5hRu0COF-ivz4-A%40mail.gmail.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread mwall


On Monday, May 25, 2020 at 3:56:16 PM UTC-4, Messy Potamia wrote:
>
> one.com's robotic tech support said they only do ftp, sftp, and ssh, and 
> don't support ftps. I don't think that offshore robot even knew what ftps 
> was.
> So can somebody tell me about the thing that MWALL has on github?
>

as it says in the readme, it is a client that uses sftp (not ftps, not ftp)

if you can connect to your sftp server using some other sftp client, then 
the weewx-sftp extension should work using the same credentials/parameters

you can verify by invoking the weewx-sftp extension directly, for example:

PYTHONPATH=/home/weewx/bin python /home/weewx/bin/user/sftp.py 
/home/weewx/weewx.conf

change the paths if you are using a deb or rpm installation

m

-- 
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/c3075a6c-1c68-4098-99e7-378d96b384ee%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
one.com's robotic tech support said they only do ftp, sftp, and ssh, and 
don't support ftps. I don't think that offshore robot even knew what ftps 
was.
So can somebody tell me about the thing that MWALL has on github? 
My pi's all have ssh enabled and can ssh & scp amongst each other. Not sure 
that helps. 
Thanks.

On Monday, May 25, 2020 at 9:35:46 PM UTC+2, Tom Keffer wrote:
>
> (Aren't we already in weewx-user?)
>>
>
> So, we are! For some reason, gmail didn't tag it 'weewx' like it usually 
> does.
>
> From your response, I take it you are using SFTP? If so, weewx does not 
> support that. Only FTPS.
>
> -tk
>

-- 
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/d4d2b32a-0ffd-4299-aef4-48624a0b2cc6%40googlegroups.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Tom Keffer
>
> (Aren't we already in weewx-user?)
>

So, we are! For some reason, gmail didn't tag it 'weewx' like it usually
does.

>From your response, I take it you are using SFTP? If so, weewx does not
support that. Only FTPS.

-tk

-- 
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/CAPq0zEB2Bah-GhBie5LrNx7%3DekkRJ5ibRJTnFOvRPfojqXJTnQ%40mail.gmail.com.


Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
Here's what I get when I connect via cmd line from my pi:
Password:
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Remote system type is UNIX. Duh. 


(Aren't we already in weewx-user?)

On Monday, May 25, 2020 at 9:19:12 PM UTC+2, Tom Keffer wrote:
>
> If you connect via the command line command "ftp", it will usually tell 
> you the server make.
>
> BTW, let's switch to weewx-user for these questions. That way, others can 
> contribute and learn. 
>
> -tk
>
> On Mon, May 25, 2020 at 12:09 PM Messy Potamia  > wrote:
>
>> They haven't replied what kind of server they use. They're a pretty
>> big hosting entity (one.com). I've been using their service for about
>> 7 years, it includes my host name and about 20Gig of server space (I
>> only host two weewx wx systems on it, so use less than 2%) and a bunch
>> of other services which I'll never use. I enabled ssh/sftp per their
>> instructions, and my Filezilla now connects using sftp protocol. They
>> issue you a slightly different login (i.e. "ssh.webhostname.dom" or
>> "sftp.webhostname.dom" and you pick a different password from your FTP
>> password, other than that it's the same. I doubt this answers your
>> question.
>> I wish the mwall github resources was documented so I could see if it
>> even applied to me.
>> Thanks --
>>
>> On Mon, May 25, 2020 at 2:19 PM Tom Keffer > > wrote:
>> >
>> > WeeWX supports FTPS, not SFTP. Two questions:
>> >
>> > Which one does your server support?
>> >
>> > If it supports FTPS, do you know what kind of FTP server it is? The 
>> PureFTP server tickles a bug in the Python FTP library, but we have a work 
>> around.
>> >
>> > -tk
>> >
>> > On Mon, May 25, 2020 at 3:12 AM Messy Potamia > > wrote:
>> >>
>> >> Note, per another post the relevance of which I'm not certain, i added 
>> the following to the [[FTP]] section
>> >>secure_ftp = True
>> >>secure_data = False
>> >>
>> >> Makes no difference, still won't connect. Filezilla using sftp 
>> connects fine, and the native weewx ftp connects fine. I'm trying to use 
>> secure ftp.
>> >> May 25 12:05:21 RPI3 weewx[26625]: copygenerator: copied 14 files to 
>> /home/weewx/public_html
>> >> May 25 12:05:41 RPI3 weewx[26625]: ftpupload: Unable to connect or log 
>> into server : timed out
>> >> May 25 12:06:01 RPI3 weewx[26625]: ftpupload: Unable to connect or log 
>> into server : timed out
>> >> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Unable to connect or log 
>> into server : timed out
>> >> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Attempted 3 times to 
>> connect to server sftp.. Giving up.
>> >> May 25 12:06:21 RPI3 weewx[26625]: ftpgenerator: ftp'd 0 files in 
>> 60.69 seconds
>> >>
>> >>
>> >>
>> >>
>> >> On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
>> >>>
>> >>> --
>> >>>
>> >>> In summary, the Secure FTP capability is indicated in weewx.conf (& 
>> the caveat comment seems satisfied with testing of Filezilla's success), 
>> however in weewx's native install it does not work.
>> >>>
>> >>> --
>> >>> First I tried the method suggested in weewx.conf and the weewx guide: 
>> I enabled ssh/sftp with my provider (one.com), followed their 
>> instructions, tested it with filezilla, and I connect and upload/dnload 
>> just fine. Here's one.com's instructions on the matter:
>> >>>
>> >>> SSH & SFTP Administration
>> >>>
>> >>> SSH increases the security on your web space by encrypting your web 
>> space connections. With SSH enabled, you can transfer files securely via 
>> SFTP or connect to your web space directly from a terminal.
>> >>>
>> >>> Allow SSH & SFTP access Off On
>> >>>
>> >>> To log in with SSH & SFTP, use this info:
>> >>>
>> >>> Host: ssh..net
>> >>>
>> >>> Username: .net
>> >>>
>> >>> Port: 22
>> >>>
>> >>> Then their faq on the subject has this:
>> >>>
>> >>>
>> >>> Open your SFTP client, and enter the following details, replacing 
>> yourdomain.com with your own domain:
>> >>>
>> >>> Host: sftp.yourdomain.com
>> >>> Username: yourdomain.com
>> >>> Password: the password you have chosen for SFTP
>> >>> Port: 22
>> >>>
>> >>> Click the connect button in your client to log in. If it is the first 
>> time you login using SFTP on this computer, you need to approve the 
>> connection.
>> >>>
>> >>> Note: I have verified that with filezilla, both sftp.mydomain.net 
>> and ssh.mydomain.net, using my ssh/sftp password, connect fine.
>> >>>
>> >>>
>> >>> When I make the appropriate changes to weewx.conf, it is unable to 
>> connect. I tried a couple variations just to cross-validate disparities in 
>> their guide. No connect.
>> >>>
>> >>>
>> >>> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other 
>> things, MWall's 
>> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
>> >>>
>> >>> to wit:
>> >>>
>> >>> sudo pip install pysftp
>> >>>
>> >>> which results in:
>> >>>
>> >>> pi@RPI3:/home/weewx $ sudo pip install pysftp
>> >>> 

Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Tom Keffer
If you connect via the command line command "ftp", it will usually tell you
the server make.

BTW, let's switch to weewx-user for these questions. That way, others can
contribute and learn.

-tk

On Mon, May 25, 2020 at 12:09 PM Messy Potamia 
wrote:

> They haven't replied what kind of server they use. They're a pretty
> big hosting entity (one.com). I've been using their service for about
> 7 years, it includes my host name and about 20Gig of server space (I
> only host two weewx wx systems on it, so use less than 2%) and a bunch
> of other services which I'll never use. I enabled ssh/sftp per their
> instructions, and my Filezilla now connects using sftp protocol. They
> issue you a slightly different login (i.e. "ssh.webhostname.dom" or
> "sftp.webhostname.dom" and you pick a different password from your FTP
> password, other than that it's the same. I doubt this answers your
> question.
> I wish the mwall github resources was documented so I could see if it
> even applied to me.
> Thanks --
>
> On Mon, May 25, 2020 at 2:19 PM Tom Keffer  wrote:
> >
> > WeeWX supports FTPS, not SFTP. Two questions:
> >
> > Which one does your server support?
> >
> > If it supports FTPS, do you know what kind of FTP server it is? The
> PureFTP server tickles a bug in the Python FTP library, but we have a work
> around.
> >
> > -tk
> >
> > On Mon, May 25, 2020 at 3:12 AM Messy Potamia 
> wrote:
> >>
> >> Note, per another post the relevance of which I'm not certain, i added
> the following to the [[FTP]] section
> >>secure_ftp = True
> >>secure_data = False
> >>
> >> Makes no difference, still won't connect. Filezilla using sftp connects
> fine, and the native weewx ftp connects fine. I'm trying to use secure ftp.
> >> May 25 12:05:21 RPI3 weewx[26625]: copygenerator: copied 14 files to
> /home/weewx/public_html
> >> May 25 12:05:41 RPI3 weewx[26625]: ftpupload: Unable to connect or log
> into server : timed out
> >> May 25 12:06:01 RPI3 weewx[26625]: ftpupload: Unable to connect or log
> into server : timed out
> >> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Unable to connect or log
> into server : timed out
> >> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Attempted 3 times to
> connect to server sftp.. Giving up.
> >> May 25 12:06:21 RPI3 weewx[26625]: ftpgenerator: ftp'd 0 files in 60.69
> seconds
> >>
> >>
> >>
> >>
> >> On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
> >>>
> >>> --
> >>>
> >>> In summary, the Secure FTP capability is indicated in weewx.conf (&
> the caveat comment seems satisfied with testing of Filezilla's success),
> however in weewx's native install it does not work.
> >>>
> >>> --
> >>> First I tried the method suggested in weewx.conf and the weewx guide:
> I enabled ssh/sftp with my provider (one.com), followed their
> instructions, tested it with filezilla, and I connect and upload/dnload
> just fine. Here's one.com's instructions on the matter:
> >>>
> >>> SSH & SFTP Administration
> >>>
> >>> SSH increases the security on your web space by encrypting your web
> space connections. With SSH enabled, you can transfer files securely via
> SFTP or connect to your web space directly from a terminal.
> >>>
> >>> Allow SSH & SFTP access Off On
> >>>
> >>> To log in with SSH & SFTP, use this info:
> >>>
> >>> Host: ssh..net
> >>>
> >>> Username: .net
> >>>
> >>> Port: 22
> >>>
> >>> Then their faq on the subject has this:
> >>>
> >>>
> >>> Open your SFTP client, and enter the following details, replacing
> yourdomain.com with your own domain:
> >>>
> >>> Host: sftp.yourdomain.com
> >>> Username: yourdomain.com
> >>> Password: the password you have chosen for SFTP
> >>> Port: 22
> >>>
> >>> Click the connect button in your client to log in. If it is the first
> time you login using SFTP on this computer, you need to approve the
> connection.
> >>>
> >>> Note: I have verified that with filezilla, both sftp.mydomain.net and
> ssh.mydomain.net, using my ssh/sftp password, connect fine.
> >>>
> >>>
> >>> When I make the appropriate changes to weewx.conf, it is unable to
> connect. I tried a couple variations just to cross-validate disparities in
> their guide. No connect.
> >>>
> >>>
> >>> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other
> things, MWall's
> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
> >>>
> >>> to wit:
> >>>
> >>> sudo pip install pysftp
> >>>
> >>> which results in:
> >>>
> >>> pi@RPI3:/home/weewx $ sudo pip install pysftp
> >>> Downloading/unpacking pysftp
> >>>   Downloading pysftp-0.2.9.tar.gz
> >>>   Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py)
> egg_info for package pysftp
> >>>
> >>> no previously-included directories found matching 'docs/_build'
> >>> Downloading/unpacking paramiko>=1.17 (from pysftp)
> >>>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB
> downloaded
> >>> Cleaning up...
> >>> Exception:
> >>> Traceback (most recent call last):
> >>>   File 

Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
They haven't replied what kind of server they use. They're a pretty
big hosting entity (one.com). I've been using their service for about
7 years, it includes my host name and about 20Gig of server space (I
only host two weewx wx systems on it, so use less than 2%) and a bunch
of other services which I'll never use. I enabled ssh/sftp per their
instructions, and my Filezilla now connects using sftp protocol. They
issue you a slightly different login (i.e. "ssh.webhostname.dom" or
"sftp.webhostname.dom" and you pick a different password from your FTP
password, other than that it's the same. I doubt this answers your
question.
I wish the mwall github resources was documented so I could see if it
even applied to me.
Thanks --

On Mon, May 25, 2020 at 2:19 PM Tom Keffer  wrote:
>
> WeeWX supports FTPS, not SFTP. Two questions:
>
> Which one does your server support?
>
> If it supports FTPS, do you know what kind of FTP server it is? The PureFTP 
> server tickles a bug in the Python FTP library, but we have a work around.
>
> -tk
>
> On Mon, May 25, 2020 at 3:12 AM Messy Potamia  wrote:
>>
>> Note, per another post the relevance of which I'm not certain, i added the 
>> following to the [[FTP]] section
>>secure_ftp = True
>>secure_data = False
>>
>> Makes no difference, still won't connect. Filezilla using sftp connects 
>> fine, and the native weewx ftp connects fine. I'm trying to use secure ftp.
>> May 25 12:05:21 RPI3 weewx[26625]: copygenerator: copied 14 files to 
>> /home/weewx/public_html
>> May 25 12:05:41 RPI3 weewx[26625]: ftpupload: Unable to connect or log into 
>> server : timed out
>> May 25 12:06:01 RPI3 weewx[26625]: ftpupload: Unable to connect or log into 
>> server : timed out
>> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Unable to connect or log into 
>> server : timed out
>> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Attempted 3 times to connect 
>> to server sftp.. Giving up.
>> May 25 12:06:21 RPI3 weewx[26625]: ftpgenerator: ftp'd 0 files in 60.69 
>> seconds
>>
>>
>>
>>
>> On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
>>>
>>> --
>>>
>>> In summary, the Secure FTP capability is indicated in weewx.conf (& the 
>>> caveat comment seems satisfied with testing of Filezilla's success), 
>>> however in weewx's native install it does not work.
>>>
>>> --
>>> First I tried the method suggested in weewx.conf and the weewx guide: I 
>>> enabled ssh/sftp with my provider (one.com), followed their instructions, 
>>> tested it with filezilla, and I connect and upload/dnload just fine. Here's 
>>> one.com's instructions on the matter:
>>>
>>> SSH & SFTP Administration
>>>
>>> SSH increases the security on your web space by encrypting your web space 
>>> connections. With SSH enabled, you can transfer files securely via SFTP or 
>>> connect to your web space directly from a terminal.
>>>
>>> Allow SSH & SFTP access Off On
>>>
>>> To log in with SSH & SFTP, use this info:
>>>
>>> Host: ssh..net
>>>
>>> Username: .net
>>>
>>> Port: 22
>>>
>>> Then their faq on the subject has this:
>>>
>>>
>>> Open your SFTP client, and enter the following details, replacing 
>>> yourdomain.com with your own domain:
>>>
>>> Host: sftp.yourdomain.com
>>> Username: yourdomain.com
>>> Password: the password you have chosen for SFTP
>>> Port: 22
>>>
>>> Click the connect button in your client to log in. If it is the first time 
>>> you login using SFTP on this computer, you need to approve the connection.
>>>
>>> Note: I have verified that with filezilla, both sftp.mydomain.net and 
>>> ssh.mydomain.net, using my ssh/sftp password, connect fine.
>>>
>>>
>>> When I make the appropriate changes to weewx.conf, it is unable to connect. 
>>> I tried a couple variations just to cross-validate disparities in their 
>>> guide. No connect.
>>>
>>>
>>> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other things, 
>>> MWall's 
>>> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
>>>
>>> to wit:
>>>
>>> sudo pip install pysftp
>>>
>>> which results in:
>>>
>>> pi@RPI3:/home/weewx $ sudo pip install pysftp
>>> Downloading/unpacking pysftp
>>>   Downloading pysftp-0.2.9.tar.gz
>>>   Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py) egg_info 
>>> for package pysftp
>>>
>>> no previously-included directories found matching 'docs/_build'
>>> Downloading/unpacking paramiko>=1.17 (from pysftp)
>>>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB downloaded
>>> Cleaning up...
>>> Exception:
>>> Traceback (most recent call last):
>>>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
>>> main
>>> status = self.run(options, args)
>>>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 
>>> 290, in run
>>> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
>>> bundle=self.bundle)
>>>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
>>> prepare_files
>>> 

Re: [weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Tom Keffer
WeeWX supports FTPS, not SFTP. Two questions:

Which one does your server support?

If it supports FTPS, do you know what kind of FTP server it is? The PureFTP
server tickles a bug in the Python FTP library, but we have a work around.

-tk

On Mon, May 25, 2020 at 3:12 AM Messy Potamia 
wrote:

> Note, per another post the relevance of which I'm not certain, i added the
> following to the [[FTP]] section
>secure_ftp = True
>secure_data = False
>
> Makes no difference, still won't connect. Filezilla using sftp connects
> fine, and the native weewx ftp connects fine. I'm trying to use secure ftp.
> May 25 12:05:21 RPI3 weewx[26625]: copygenerator: copied 14 files to /home
> /weewx/public_html
> May 25 12:05:41 RPI3 weewx[26625]: ftpupload: Unable to connect or log
> into server : timed out
> May 25 12:06:01 RPI3 weewx[26625]: ftpupload: Unable to connect or log
> into server : timed out
> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Unable to connect or log
> into server : timed out
> May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Attempted 3 times to
> connect to server sftp.. Giving up.
> May 25 12:06:21 RPI3 weewx[26625]: ftpgenerator: ftp'd 0 files in 60.69
> seconds
>
>
>
>
> On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
>>
>> --
>>
>> In summary, the Secure FTP capability is indicated in weewx.conf (& the
>> caveat comment seems satisfied with testing of Filezilla's success),
>> however in weewx's native install it does not work.
>> --
>> First I tried the method suggested in weewx.conf and the weewx guide: I
>> enabled ssh/sftp with my provider (one.com), followed their
>> instructions, tested it with filezilla, and I connect and upload/dnload
>> just fine. Here's one.com's instructions on the matter:
>> SSH & SFTP Administration
>>
>> *SSH* increases the security on your web space by encrypting your web
>> space connections. With SSH enabled, you can transfer files securely via
>> *SFTP* or connect to your web space directly from a terminal.
>>
>> Allow SSH & SFTP access Off On
>>
>> To log in with SSH & SFTP, use this info:
>>
>> Host: ssh..net
>>
>> Username: .net
>>
>> Port: 22
>>
>> Then their faq on the subject has this:
>>
>>
>> Open your SFTP client, and enter the following details, replacing 
>> *yourdomain.com
>> * with your own domain:
>>
>>- *Host:* sftp.yourdomain.com
>>- *Username:* yourdomain.com
>>- *Password:* the password you have chosen for SFTP
>>- *Port:* 22
>>
>> Click the connect button in your client to log in. If it is the first
>> time you login using SFTP on this computer, you need to approve the
>> connection.
>>
>> Note: I have verified that with filezilla, both sftp.mydomain.net and
>> ssh.mydomain.net, using my ssh/sftp password, connect fine.
>>
>>
>> When I make the appropriate changes to weewx.conf, it is unable to
>> connect. I tried a couple variations just to cross-validate disparities in
>> their guide. No connect.
>>
>>
>> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other things,
>> MWall's
>> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
>>
>> to wit:
>>
>> sudo pip install pysftp
>>
>> which results in:
>>
>> pi@RPI3:/home/weewx $ sudo pip install pysftp
>> Downloading/unpacking pysftp
>>   Downloading pysftp-0.2.9.tar.gz
>>   Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py) egg_info
>> for package pysftp
>>
>> no previously-included directories found matching 'docs/_build'
>> Downloading/unpacking paramiko>=1.17 (from pysftp)
>>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB
>> downloaded
>> Cleaning up...
>> Exception:
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122,
>> in main
>> status = self.run(options, args)
>>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line
>> 290, in run
>> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle
>> , bundle=self.bundle)
>>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in
>> prepare_files
>> req_to_install.extras):
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in
>> requires
>> dm = self._dep_map
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in
>> _dep_map
>> self.__dep_map = self._compute_dependencies()
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in
>> _compute_dependencies
>> common = frozenset(reqs_for_extra(None))
>>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in
>> reqs_for_extra
>> if req.marker_fn(override={'extra':extra}):
>>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113
>> , in marker_fn
>> return eval(compiled_marker, environment)
>>   File "", line 1, in 
>> NameError: name 'platform_system' is not defined
>>
>> Storing debug log for failure in /root/.pip/pip.log
>> I tried a 

[weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
Note, per another post the relevance of which I'm not certain, i added the 
following to the [[FTP]] section
   secure_ftp = True
   secure_data = False

Makes no difference, still won't connect. Filezilla using sftp connects 
fine, and the native weewx ftp connects fine. I'm trying to use secure ftp.
May 25 12:05:21 RPI3 weewx[26625]: copygenerator: copied 14 files to /home/
weewx/public_html
May 25 12:05:41 RPI3 weewx[26625]: ftpupload: Unable to connect or log into 
server : timed out
May 25 12:06:01 RPI3 weewx[26625]: ftpupload: Unable to connect or log into 
server : timed out
May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Unable to connect or log into 
server : timed out
May 25 12:06:21 RPI3 weewx[26625]: ftpupload: Attempted 3 times to connect 
to server sftp.. Giving up.
May 25 12:06:21 RPI3 weewx[26625]: ftpgenerator: ftp'd 0 files in 60.69 
seconds




On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
>
> -- 
>
> In summary, the Secure FTP capability is indicated in weewx.conf (& the 
> caveat comment seems satisfied with testing of Filezilla's success), 
> however in weewx's native install it does not work.
> --
> First I tried the method suggested in weewx.conf and the weewx guide: I 
> enabled ssh/sftp with my provider (one.com), followed their instructions, 
> tested it with filezilla, and I connect and upload/dnload just fine. Here's 
> one.com's instructions on the matter:
> SSH & SFTP Administration 
>
> *SSH* increases the security on your web space by encrypting your web 
> space connections. With SSH enabled, you can transfer files securely via 
> *SFTP* or connect to your web space directly from a terminal. 
>
> Allow SSH & SFTP access Off On 
>
> To log in with SSH & SFTP, use this info:
>
> Host: ssh..net 
>
> Username: .net 
>
> Port: 22
>
> Then their faq on the subject has this:
>
>
> Open your SFTP client, and enter the following details, replacing 
> *yourdomain.com 
> * with your own domain:
>
>- *Host:* sftp.yourdomain.com
>- *Username:* yourdomain.com
>- *Password:* the password you have chosen for SFTP
>- *Port:* 22
>
> Click the connect button in your client to log in. If it is the first time 
> you login using SFTP on this computer, you need to approve the connection.
>
> Note: I have verified that with filezilla, both sftp.mydomain.net and 
> ssh.mydomain.net, using my ssh/sftp password, connect fine.
>
>
> When I make the appropriate changes to weewx.conf, it is unable to 
> connect. I tried a couple variations just to cross-validate disparities in 
> their guide. No connect.
>
>
> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other things, 
> MWall's 
> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
>
> to wit:
>
> sudo pip install pysftp
>
> which results in:
>
> pi@RPI3:/home/weewx $ sudo pip install pysftp
> Downloading/unpacking pysftp
>   Downloading pysftp-0.2.9.tar.gz
>   Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py) egg_info 
> for package pysftp
>
> no previously-included directories found matching 'docs/_build'
> Downloading/unpacking paramiko>=1.17 (from pysftp)
>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB 
> downloaded
> Cleaning up...
> Exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
> main
> status = self.run(options, args)
>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 
> 290, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
> bundle=self.bundle)
>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
> prepare_files
> req_to_install.extras):
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
> requires
> dm = self._dep_map
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
> _dep_map
> self.__dep_map = self._compute_dependencies()
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
> _compute_dependencies
> common = frozenset(reqs_for_extra(None))
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
> reqs_for_extra
> if req.marker_fn(override={'extra':extra}):
>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, 
> in marker_fn
> return eval(compiled_marker, environment)
>   File "", line 1, in 
> NameError: name 'platform_system' is not defined
>
> Storing debug log for failure in /root/.pip/pip.log
> I tried a sudo apt-get install but that failed also.
> pi@RPI3:/home/weewx $ sudo apt-get install pysftp
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package pysftp
> So couldn't get to 1st base this inning.
>
>
> In summary, the Secure FTP capability as indicated in weewx.conf (& the 
> caveat comment seems satisfied with testing of Filezilla's 

[weewx-user] Re: sftp on 3.9.2, RPI3B -- not working with several methods

2020-05-25 Thread Messy Potamia
I should amend the subj line from "sftp" to "secure_ftp" because I 
understand that sftp doesn't work, and I was intending to use the native 
secure_ftp feature.

On Monday, May 25, 2020 at 11:33:06 AM UTC+2, Messy Potamia wrote:
>
> -- 
>
> In summary, the Secure FTP capability is indicated in weewx.conf (& the 
> caveat comment seems satisfied with testing of Filezilla's success), 
> however in weewx's native install it does not work.
> --
> First I tried the method suggested in weewx.conf and the weewx guide: I 
> enabled ssh/sftp with my provider (one.com), followed their instructions, 
> tested it with filezilla, and I connect and upload/dnload just fine. Here's 
> one.com's instructions on the matter:
> SSH & SFTP Administration 
>
> *SSH* increases the security on your web space by encrypting your web 
> space connections. With SSH enabled, you can transfer files securely via 
> *SFTP* or connect to your web space directly from a terminal. 
>
> Allow SSH & SFTP access Off On 
>
> To log in with SSH & SFTP, use this info:
>
> Host: ssh..net 
>
> Username: .net 
>
> Port: 22
>
> Then their faq on the subject has this:
>
>
> Open your SFTP client, and enter the following details, replacing 
> *yourdomain.com 
> * with your own domain:
>
>- *Host:* sftp.yourdomain.com
>- *Username:* yourdomain.com
>- *Password:* the password you have chosen for SFTP
>- *Port:* 22
>
> Click the connect button in your client to log in. If it is the first time 
> you login using SFTP on this computer, you need to approve the connection.
>
> Note: I have verified that with filezilla, both sftp.mydomain.net and 
> ssh.mydomain.net, using my ssh/sftp password, connect fine.
>
>
> When I make the appropriate changes to weewx.conf, it is unable to 
> connect. I tried a couple variations just to cross-validate disparities in 
> their guide. No connect.
>
>
> SO THEN I google "weewx 3.9.2 sftp" and come up with, among other things, 
> MWall's 
> https://github.com/matthewwall/weewx-sftp/blob/master/bin/user/sftp.py
>
> to wit:
>
> sudo pip install pysftp
>
> which results in:
>
> pi@RPI3:/home/weewx $ sudo pip install pysftp
> Downloading/unpacking pysftp
>   Downloading pysftp-0.2.9.tar.gz
>   Running setup.py (path:/tmp/pip-build-6MvFgx/pysftp/setup.py) egg_info 
> for package pysftp
>
> no previously-included directories found matching 'docs/_build'
> Downloading/unpacking paramiko>=1.17 (from pysftp)
>   Downloading paramiko-2.7.1-py2.py3-none-any.whl (206kB): 206kB 
> downloaded
> Cleaning up...
> Exception:
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in 
> main
> status = self.run(options, args)
>   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 
> 290, in run
> requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, 
> bundle=self.bundle)
>   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in 
> prepare_files
> req_to_install.extras):
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in 
> requires
> dm = self._dep_map
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in 
> _dep_map
> self.__dep_map = self._compute_dependencies()
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in 
> _compute_dependencies
> common = frozenset(reqs_for_extra(None))
>   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in 
> reqs_for_extra
> if req.marker_fn(override={'extra':extra}):
>   File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, 
> in marker_fn
> return eval(compiled_marker, environment)
>   File "", line 1, in 
> NameError: name 'platform_system' is not defined
>
> Storing debug log for failure in /root/.pip/pip.log
> I tried a sudo apt-get install but that failed also.
> pi@RPI3:/home/weewx $ sudo apt-get install pysftp
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package pysftp
> So couldn't get to 1st base this inning.
>
>
> In summary, the Secure FTP capability as indicated in weewx.conf (& the 
> caveat comment seems satisfied with testing of Filezilla's success), in 
> weewx's native install does not work. Not for me. And I believe I've double 
> checked everything.
>
>
> If it requires a hack to package(s) (.py) in weewx I'm comfortable doing 
> that if the instructions are clear, concise, well written. Note, I'm not 
> comfortable writing my own driver.
>
>
> Thank you for helping.
>
>
> Phil
>
>
>

-- 
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 

[weewx-user] Re: sftp extension and ED25519 encryption

2020-04-27 Thread WindnFog
OK, I fixed it.  It was the version of paramiko that was messing things 
up.  If you are using a Pi with Raspbian 10 (Buster), you can't use the 
default paramiko you get by default.  You have to upgrade:

pip install --user --upgrade paramiko

The default is 2.6.0 and the above command ups it to 2.7.1, which (combined 
with 2.7.0), has release notes fixing a lot of things . . . 

Paul VE1DX



On Monday, April 27, 2020 at 1:56:46 PM UTC-3, WindnFog wrote:
>
> I'm trying to get Matthew Wall's sftp extension working with weeex 3.9.2 
> on my Raspberry Pi 4.0.  It's a patched up to date version of Raspbian, but 
> I get the following error on upload to an sftp server:
>
> Apr 27 13:10:19 rhubarb weewx[12591]: imagegenerator: Generated 13 images 
> for StandardReport in 0.49 seconds
> Apr 27 13:10:19 rhubarb weewx[12591]: copygenerator: copied 14 files to 
> /var/www/html/weewx
> Apr 27 13:10:19 rhubarb weewx[12591]: reportengine: Caught unrecoverable 
> exception in generator 'user.sftp.SFTPGenerator'
> Apr 27 13:10:19 rhubarb weewx[12591]:   not a valid DSA 
> private key file
> Apr 27 13:10:19 rhubarb weewx[12591]:   Traceback (most recent 
> call last):
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 204, in run
> Apr 27 13:10:19 rhubarb weewx[12591]:   obj.start()
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 300, in start
> Apr 27 13:10:19 rhubarb weewx[12591]:   self.run()
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/user/sftp.py", line 259, in run
> Apr 27 13:10:19 rhubarb weewx[12591]:   n = uploader.run()
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/user/sftp.py", line 103, in run
> Apr 27 13:10:19 rhubarb weewx[12591]:   cnopts=cnopts)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", line 142, in 
> __init__
> Apr 27 13:10:19 rhubarb weewx[12591]:   
> self._set_authentication(password, private_key, private_key_pass)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", line 171, in 
> _set_authentication
> Apr 27 13:10:19 rhubarb weewx[12591]:   private_key_file, 
> private_key_pass)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/pkey.py", line 206, in 
> from_private_key_file
> Apr 27 13:10:19 rhubarb weewx[12591]:   key = 
> cls(filename=filename, password=password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/dsskey.py", line 65, in 
> __init__
> Apr 27 13:10:19 rhubarb weewx[12591]:   
> self._from_private_key_file(filename, password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/dsskey.py", line 224, in 
> _from_private_key_file
> Apr 27 13:10:19 rhubarb weewx[12591]:   data = 
> self._read_private_key_file("DSA", filename, password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/pkey.py", line 279, in 
> _read_private_key_file
> Apr 27 13:10:19 rhubarb weewx[12591]:   data = 
> self._read_private_key(tag, f, password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/pkey.py", line 289, in 
> _read_private_key
> Apr 27 13:10:19 rhubarb weewx[12591]:   raise 
> SSHException("not a valid " + tag + " private key file")
> Apr 27 13:10:19 rhubarb weewx[12591]:   SSHException: not a 
> valid DSA private key file
> Apr 27 13:10:19 rhubarb weewx[12591]:   Generator terminated
>
> I installed the extension as per Matthew's instructions here:
>
> https://github.com/matthewwall/weewx-sftp
>
> My weewx.conf section is as follows:
>
>[[SFTP]]
>skin = sftp
>user = pdunphy
>private_key = /root/.ssh/id_ed25519
>server = palang.ca
>port = 
>path = public_html
>
> The error suggests paramiko might not be handling the key properly.  I am 
> using Ed25519 elliptic curve cryptography that I thought should work.  I'd 
> use regular RSA, but the "guy on the other end" wants Ed25519.  Should this 
> work, or is it limited to RSA/DSA cryptography?  
>
> Or . . . am I missing something else?
>
> Paul VE1DX
>

-- 
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 

[weewx-user] Re: sftp extension and ED25519 encryption

2020-04-27 Thread WindnFog
Quick follow-up.  I switched to RSA keys and got the same error so I don't 
think it's the type of encryption.  Probably I have something amiss in the 
config file . . .

On Monday, April 27, 2020 at 1:56:46 PM UTC-3, WindnFog wrote:
>
> I'm trying to get Matthew Wall's sftp extension working with weeex 3.9.2 
> on my Raspberry Pi 4.0.  It's a patched up to date version of Raspbian, but 
> I get the following error on upload to an sftp server:
>
> Apr 27 13:10:19 rhubarb weewx[12591]: imagegenerator: Generated 13 images 
> for StandardReport in 0.49 seconds
> Apr 27 13:10:19 rhubarb weewx[12591]: copygenerator: copied 14 files to 
> /var/www/html/weewx
> Apr 27 13:10:19 rhubarb weewx[12591]: reportengine: Caught unrecoverable 
> exception in generator 'user.sftp.SFTPGenerator'
> Apr 27 13:10:19 rhubarb weewx[12591]:   not a valid DSA 
> private key file
> Apr 27 13:10:19 rhubarb weewx[12591]:   Traceback (most recent 
> call last):
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 204, in run
> Apr 27 13:10:19 rhubarb weewx[12591]:   obj.start()
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/weewx/reportengine.py", line 300, in start
> Apr 27 13:10:19 rhubarb weewx[12591]:   self.run()
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/user/sftp.py", line 259, in run
> Apr 27 13:10:19 rhubarb weewx[12591]:   n = uploader.run()
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/share/weewx/user/sftp.py", line 103, in run
> Apr 27 13:10:19 rhubarb weewx[12591]:   cnopts=cnopts)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", line 142, in 
> __init__
> Apr 27 13:10:19 rhubarb weewx[12591]:   
> self._set_authentication(password, private_key, private_key_pass)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", line 171, in 
> _set_authentication
> Apr 27 13:10:19 rhubarb weewx[12591]:   private_key_file, 
> private_key_pass)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/pkey.py", line 206, in 
> from_private_key_file
> Apr 27 13:10:19 rhubarb weewx[12591]:   key = 
> cls(filename=filename, password=password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/dsskey.py", line 65, in 
> __init__
> Apr 27 13:10:19 rhubarb weewx[12591]:   
> self._from_private_key_file(filename, password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/dsskey.py", line 224, in 
> _from_private_key_file
> Apr 27 13:10:19 rhubarb weewx[12591]:   data = 
> self._read_private_key_file("DSA", filename, password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/pkey.py", line 279, in 
> _read_private_key_file
> Apr 27 13:10:19 rhubarb weewx[12591]:   data = 
> self._read_private_key(tag, f, password)
> Apr 27 13:10:19 rhubarb weewx[12591]: File 
> "/usr/local/lib/python2.7/dist-packages/paramiko/pkey.py", line 289, in 
> _read_private_key
> Apr 27 13:10:19 rhubarb weewx[12591]:   raise 
> SSHException("not a valid " + tag + " private key file")
> Apr 27 13:10:19 rhubarb weewx[12591]:   SSHException: not a 
> valid DSA private key file
> Apr 27 13:10:19 rhubarb weewx[12591]:   Generator terminated
>
> I installed the extension as per Matthew's instructions here:
>
> https://github.com/matthewwall/weewx-sftp
>
> My weewx.conf section is as follows:
>
>[[SFTP]]
>skin = sftp
>user = pdunphy
>private_key = /root/.ssh/id_ed25519
>server = palang.ca
>port = 
>path = public_html
>
> The error suggests paramiko might not be handling the key properly.  I am 
> using Ed25519 elliptic curve cryptography that I thought should work.  I'd 
> use regular RSA, but the "guy on the other end" wants Ed25519.  Should this 
> work, or is it limited to RSA/DSA cryptography?  
>
> Or . . . am I missing something else?
>
> Paul VE1DX
>

-- 
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/e9d2d9d1-231b-41be-b8a7-ee7a72362600%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-20 Thread Chema S.
Hi

thanks for your help.I was finally able to communicate two nodes with SFTP. 
I was trying many solutions, but finally I found what suit my needs. I 
decided to start from scratch. After a trial and error process I found the 
solution that really suit my needs: 


sudo apt-get install python-pip
pip install --user -U setuptools 
sudo pip install --upgrade pip 
sudo apt-get install libffi-dev #this package did not appears when first 
installation was made.
sudo pip install pysftp






El viernes, 19 de julio de 2019, 1:21:54 (UTC+2), Chema S. escribió:
>
> Hi
>
> I have tried to  configure https://github.com/matthewwall/weewx-sftp on 
> WeeWX 3.9.1 but I am not able to make it work as it is supposed to. Nothing 
> happens. Does anyone with similar problem? 
>
> If someone have had success with this configuration I would like to know 
> how achieved it with a step-by-step guide. 
>
> thank you. 
>

-- 
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/b8807b90-a223-4b29-9a06-57df4e281959%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-19 Thread Chema S.
this is how SFTP looks like under stdreport at first installation. The 
password is written in quotes, do I have to delete these quotes and let 
password = replace_me or password = 'replace_me' or password =' 
"replace_me" ' ?

  [[sftp]]
server = replace with the sftp server name
user = replace_me
skin = sftp
path = replace with the sftp destination path
password = '"replace_me"'
port = 22

Anyway the log file is similar as posted this morning. I can see that SFTP 
connects to server but cannot finish the work due to same error code above 
posted



El viernes, 19 de julio de 2019, 11:00:22 (UTC+2), gjr80 escribió:
>
> Hi, 
>
> Looks like an invalid path may have been specified. A bit more log will 
> help. Can you edit weewx.conf, set debug = 1, save weewx.conf and then 
> restart WeeWX. Let WeeWX run for at least 10 minutes and then post the log 
> from when you restarted WeeWX covering the full 10 minutes; don’t truncate 
> the start of the log, this shows a lot of config info. Would also help to 
> see your [[SFTP]] stanza under [StdReport] in weewx.conf. Just make sure 
> you remove any passwords or other sensitive info before posting. 
>
> Gary

-- 
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/ba0d7aae-e563-4f1d-9ac5-8fda069ebc5f%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-19 Thread Chema S.
after debug = 1 this is the log (attached)

El viernes, 19 de julio de 2019, 11:00:22 (UTC+2), gjr80 escribió:
>
> Hi, 
>
> Looks like an invalid path may have been specified. A bit more log will 
> help. Can you edit weewx.conf, set debug = 1, save weewx.conf and then 
> restart WeeWX. Let WeeWX run for at least 10 minutes and then post the log 
> from when you restarted WeeWX covering the full 10 minutes; don’t truncate 
> the start of the log, this shows a lot of config info. Would also help to 
> see your [[SFTP]] stanza under [StdReport] in weewx.conf. Just make sure 
> you remove any passwords or other sensitive info before posting. 
>
> Gary

-- 
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/f6ac1dcf-cc82-42dd-8523-36fce322c901%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-19 Thread gjr80
Hi,

Looks like an invalid path may have been specified. A bit more log will help. 
Can you edit weewx.conf, set debug = 1, save weewx.conf and then restart WeeWX. 
Let WeeWX run for at least 10 minutes and then post the log from when you 
restarted WeeWX covering the full 10 minutes; don’t truncate the start of the 
log, this shows a lot of config info. Would also help to see your [[SFTP]] 
stanza under [StdReport] in weewx.conf. Just make sure you remove any passwords 
or other sensitive info before posting.

Gary

-- 
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/0ee6e807-a8ff-4dba-9e8f-0307c9efb585%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-19 Thread Chema S.
Jul 19 10:35:32 raspberrypi weewx[19541]: reportengine: Caught 
unrecoverable exception in generator 'user.sftp.SFTPGenerator'
Jul 19 10:35:32 raspberrypi weewx[19541]:   [Errno 2] No such 
file
Jul 19 10:35:32 raspberrypi weewx[19541]:   Traceback (most 
recent call last):
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/share/weewx/weewx/reportengine.py", line 204, in run
Jul 19 10:35:32 raspberrypi weewx[19541]:   obj.start()
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/share/weewx/weewx/reportengine.py", line 300, in start
Jul 19 10:35:32 raspberrypi weewx[19541]:   self.run()
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/share/weewx/user/sftp.py", line 233, in run
Jul 19 10:35:32 raspberrypi weewx[19541]:   n = uploader.run
()
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/share/weewx/user/sftp.py", line 98, in run
Jul 19 10:35:32 raspberrypi weewx[19541]:   self.
_make_remote_dir(con, remote_dir_path)
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/share/weewx/user/sftp.py", line 161, in _make_remote_dir
Jul 19 10:35:32 raspberrypi weewx[19541]:   con.mkdir(
remote_dir_path)
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/local/lib/python2.7/dist-packages/pysftp/__init__.py", line 626, in 
mkdir
Jul 19 10:35:32 raspberrypi weewx[19541]:   self._sftp.mkdir
(remotepath, mode=int(str(mode), 8))
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 460, 
in mkdir
Jul 19 10:35:32 raspberrypi weewx[19541]:   self._request(
CMD_MKDIR, path, attr)
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 813, 
in _request
Jul 19 10:35:32 raspberrypi weewx[19541]:   return self.
_read_response(num)
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 865, 
in _read_response
Jul 19 10:35:32 raspberrypi weewx[19541]:   self.
_convert_status(msg)
Jul 19 10:35:32 raspberrypi weewx[19541]: File 
"/usr/local/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 894, 
in _convert_status
Jul 19 10:35:32 raspberrypi weewx[19541]:   raise IOError(
errno.ENOENT, text)
Jul 19 10:35:32 raspberrypi weewx[19541]:   IOError: [Errno 2] 
No such file
Jul 19 10:35:32 raspberrypi weewx[19541]:   Generator terminated

This is what I found in log


El viernes, 19 de julio de 2019, 2:28:08 (UTC+2), Pat escribió:
>
> Anything in the logs?
>
>
>

-- 
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/5ce5ee4e-016f-4f21-8971-ecc5cc24d689%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-18 Thread Greg from Oz
Did you put your password in quotes eg "qyeu$#,
> Hi
>
> I have tried to  configure https://github.com/matthewwall/weewx-sftp on 
> WeeWX 3.9.1 but I am not able to make it work as it is supposed to. Nothing 
> happens. Does anyone with similar problem? 
>
> If someone have had success with this configuration I would like to know 
> how achieved it with a step-by-step guide. 
>
> thank you. 
>

-- 
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/0de6f17e-cce9-4d05-b78c-8842e857420f%40googlegroups.com.


[weewx-user] Re: SFTP on WeeWX

2019-07-18 Thread Pat
Anything in the logs?

On Thursday, July 18, 2019 at 7:21:54 PM UTC-4, Chema S. wrote:
>
> Hi
>
> I have tried to  configure https://github.com/matthewwall/weewx-sftp on 
> WeeWX 3.9.1 but I am not able to make it work as it is supposed to. Nothing 
> happens. Does anyone with similar problem? 
>
> If someone have had success with this configuration I would like to know 
> how achieved it with a step-by-step guide. 
>
> thank you. 
>

-- 
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/ac278bd7-db2f-40e0-93b7-de112e4c455b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: sftp

2019-03-28 Thread WindnFog
UPDATE:

I had to modify the weewx-sftp extension a bit to use a keyed login instead 
of a password.  It meant, in sftp.py, changing all references of passwordto 
private_key, changing the hard-wired port number from  to  (my new 
provider uses ), and changing the entry 'password' in the config file 
to:

private_key = /home//.ssh/id_rsa

Unrelated, and probably due to my implementation of Python, I got an error 
related to GSS_EXCEPTIONS.  I Googled the error and found others (non-weewx 
related software) were getting the same error.  They recommended 
uninstalling python-gssapi and I did so.  Now everything works fine.

- Paul VE1DX

On Tuesday, March 26, 2019 at 5:17:58 PM UTC-3, WindnFog wrote:
>
> Hi guys,
>
> I am pondering switiching providers and hosting my web page on another 
> server that doesn't support SSH, just sftp.  I am currently transferring 
> the contents of /home/weewx/public_html/ to it as a test using sftp in a 
> cron job that runs 1 minute after the standart weewx upload.  I notice the 
> documentation says weewx suppots FTPS (which I'm using with my current 
> provider), add then goes on to say "*not* to be confused with SFTP, which 
> uses a Secure Socket Shell protocol."  
>
> I don't think I can convince the potential new host to allow me to do it 
> via FTPS.  They seem fairly rigid about sftp only.  Does weewx support 
> sftp, and if not, are there any plans to implement it?  If the answer is 
> no, I'll stay with my current provider and use FTPS.
>
> - Paul VE1DX
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: sftp

2019-03-26 Thread WindnFog
Thanks!  That''ll do the trick. :-)

On Tuesday, March 26, 2019 at 5:17:58 PM UTC-3, WindnFog wrote:
>
> Hi guys,
>
> I am pondering switiching providers and hosting my web page on another 
> server that doesn't support SSH, just sftp.  I am currently transferring 
> the contents of /home/weewx/public_html/ to it as a test using sftp in a 
> cron job that runs 1 minute after the standart weewx upload.  I notice the 
> documentation says weewx suppots FTPS (which I'm using with my current 
> provider), add then goes on to say "*not* to be confused with SFTP, which 
> uses a Secure Socket Shell protocol."  
>
> I don't think I can convince the potential new host to allow me to do it 
> via FTPS.  They seem fairly rigid about sftp only.  Does weewx support 
> sftp, and if not, are there any plans to implement it?  If the answer is 
> no, I'll stay with my current provider and use FTPS.
>
> - Paul VE1DX
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: sftp

2019-03-26 Thread mwall
On Tuesday, March 26, 2019 at 4:17:58 PM UTC-4, WindnFog wrote:
>
> Does weewx support sftp, and if not, are there any plans to implement it?
>

yes, but you must install the weewx-sftp extension:

https://github.com/matthewwall/weewx-sftp

 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: SFTP not working

2017-02-26 Thread Alec Bennett
Rob- thanks for the awesome work on your SFTP mod. 

One issue the mod has is that it doesn't create directories on the remote 
server if they don't exist. Easily fixed though. I'll upload my fix to 
github, or email me off-list if you need it in the meantime.

The gist is:

Search for this section in the modified ftpupload.py from 
https://github.com/RobCranfill/weewx/blob/master/bin/weeutil/ftpupload.py:

   # Make the remote directory if necessary:
if self.useSFTP:

# FIXME this doesn't create the remote dir if it 
doesn't exsit
# syslog.syslog(syslog.LOG_DEBUG, "ftpupload: change 
remote dir to %s" % remote_dir_path)
sftp.chdir(remote_dir_path)


And change to:


   # Make the remote directory if necessary:
if self.useSFTP:

try: sftp.makedirs(remote_dir_path)
except Exception, e: syslog.syslog(syslog.LOG_NOTICE, 
"ftpupload: Unable to create directories on the remote server %s" % e)

# Not sure if this is still necessary:
sftp.chdir(remote_dir_path)
 




On Friday, October 30, 2015 at 7:31:56 AM UTC-7, Rob Cranfill wrote:
>
> Radoslav,
>
> I am the author of that branch, and I am sorry that didn't work for you. I 
> am not a Python expert by any means, so I am not sure what the problem is - 
> and I see from your next message that you have found a work-around that 
> doesn't require my code at all, so perhaps the point is moot. The only 
> thing I can think of is noting that you do need to make sure the "pysftp" 
> library is available (which, if I'm reading the stack trace correctly, it 
> does look like it's there.) Perhaps 
> http://pysftp.readthedocs.org/en/release_0.2.8/index.html 
> would have some clues.
>
> But thanks for at least trying my code! :-)
>
>  /rob
>
>
>
> On Tuesday, October 27, 2015 at 9:32:59 AM UTC-7, Radoslav Fatura wrote:
>>
>> Well, something is missing... 
>>
>>> Oct 27 17:31:19 raspberrypi weewx[582]: ftpupload: Attempting SFTP 
 connection to sosst.tk
>>>
>>> Oct 27 17:31:29 raspberrypi weewx[582]: reportengine: Caught exception 
  in FtpGenerator; [Errno 2] No such file.
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   Traceback (most 
 recent call last):
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/home/weewx/bin/weewx/reportengine.py", line 212, in run
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   N = 
 ftpData.run()
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/home/weewx/bin/weeutil/ftpupload.py", line 164, in run
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:  
  sftp.chdir(remote_dir_path)
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/home/weewx/bin/weeutil/pysftp.py", line 510, in chdir
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:  
  self._sftp.chdir(remotepath)
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 580, in 
 chdir
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   if not 
 stat.S_ISDIR(self.stat(path).st_mode):
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 413, in 
 stat
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   t, msg = 
 self._request(CMD_STAT, path)
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 729, in 
 _request
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   return 
 self._read_response(num)
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 776, in 
 _read_response
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:  
  self._convert_status(msg)
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]: File 
 "/usr/lib/python2.7/dist-packages/paramiko/sftp_client.py", line 802, in 
 _convert_status
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   raise 
 IOError(errno.ENOENT, text)
>>>
>>> Oct 27 17:31:30 raspberrypi weewx[582]:   IOError: [Errno 2] 
 No such file
>>>
>>>
>>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.