SFTP problem

101 views
Skip to first unread message

bgra...@umw.edu

unread,
Jan 28, 2021, 4:59:29 PM1/28/21
to weewx-user

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
JON1_VP2.txt

bgra...@umw.edu

unread,
Jan 29, 2021, 4:29:14 PM1/29/21
to weewx-user
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 = xxxx
        password = password
        server = xxxxbrewery.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 = xxxx
        password = password
        server = xxxxbrewery.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


Tom Keffer

unread,
Jan 29, 2021, 6:45:17 PM1/29/21
to weewx-user
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

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e0dd2f91-2634-4e43-ad14-e0aa955758d3n%40googlegroups.com.

gjr80

unread,
Jan 29, 2021, 7:43:34 PM1/29/21
to weewx-user
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
 

bgra...@umw.edu

unread,
Jan 30, 2021, 10:33:46 AM1/30/21
to weewx-user
Thanks, Gary and Tom. He seems to have found the problem although I’m not sure what it was.  bgra...@umw.edu
Reply all
Reply to author
Forward
0 new messages