After finally getting my FTP working (many thanks to all!) I am trying to 
move to RSYNC but having problems.

Following Vince's guide, I have created keys and moved them to my web 
server grattans.org.
Testing, I can ssh to grattans.org with no password. However, running RSYNC 
in weewx.conf is coming up with errors.

 ERROR weeutil.rsyncupload: rsync reported errors. Original command: 
['rsync', '--archive', '--stats', '-e', 'ssh', 
'/home/pi/weewx-data/public_html/', 
'[email protected]:/public_html/WeeWX']
May 15 10:45:25 rpi5trixie weewxd[659616]: ERROR weeutil.rsyncupload: **** 
tput: No value for $TERM and no -T specified
May 15 10:45:25 rpi5trixie weewxd[659616]: ERROR weeutil.rsyncupload: **** 
rsync: mkdir "/public_html/WeeWX" failed: No such file or directory (2)
May 15 10:45:25 rpi5trixie weewxd[659616]: ERROR weeutil.rsyncupload: **** 
rsync error: error in file IO (code 11) at main.c(661) [Receiver=3.1.3]

My syslog also has many lines like the following:

failed: Read-only file system [v8.2504.0 try https://www.rsyslog.com/e/2207 
]
2026-05-12T22:00:16.785339-04:00 rpi5trixie rsyslogd: error during config 
processing: omfile: creating parent directories for file 
 '/home/pi/weewx-data/log/weewx.log' failed: Read-only file system 
[v8.2504.0 try https://www.rsyslog.com/e/2207 ]
2026-05-12T22:00:16.846607-04:00 rpi5trixie rsyslogd: error during config 
processing: omfile: creating parent directories for file 
 '/home/pi/weewx-data/log/weewx.log'

My RSYNC section of weewx.conf is based on my working FTP section:

 [[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 the password to guard against parsing errors.
        enable = false    ##false
        user = mk0a7kyn5q5j
        password = H0xxxx
        server = grattans.org    # The ftp server name, e.g, 
www.myserver.org
        path = /public_html/WeeWX    # The destination directory, e.g., 
/weather

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

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        HTML_ROOT = public_html

        # Most FTP servers use port 21.
        port = 21

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

    [[RSYNC]]
        # rsync'ing to a webserver is treated as just another report.
        skin = Rsync

        # If you wish to use rsync, you must configure passwordless ssh 
using
        # public/private key authentication from the user account that weewx
        # runs to the user account on the remote machine where the files
        # will be copied.
        #
        # If you wish to use rsync, set "enable" to "true", then
        # fill out server, user, and path.
        # The server should appear in your .ssh/config file.
        # The user is the username used in the identity file.
        # The path is the destination directory, such as 
/var/www/html/weather.
        # Be sure that the user has write permissions on the destination!
        enable = true
        server = grattans.org
        user = mk0a7kyn5q5j
        path = /public_html/WeeWX

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = public_html
        log_success = true             # log successful uploads (default = 
false)
        log_failure = true             # log unsuccessful uploads (default 
= false)

        # Rsync can be configured to remove files from the remote server if
        # they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you
        # make a mistake in the remote path, you could could unintentionally
        # cause unrelated files to be deleted. Set to 1 to enable remote 
file
        # deletion, zero to allow files to accumulate remotely.
        delete = 0

My ~/.ssh directory:

(weewx-venv) pi@rpi5trixie:~/weewx-data $ ll ~/.ssh
total 28
-rw-rw-r-- 1 pi pi   90 May 14 16:33 config
-rw------- 1 pi pi 2098 May 14 10:23 known_hosts
-rw------- 1 pi pi 1262 May 14 07:37 known_hosts.old
-rw------- 1 pi pi 2602 May 12 14:04 old_id_rsa
-rw-r--r-- 1 pi pi  567 May 12 14:04 old_id_rsa.pub
-rw------- 1 pi pi  399 May 14 10:12 weewx
-rw-r--r-- 1 pi pi   95 May 14 10:12 weewx.pub

My local /.ssh/config:  *[does this need to be on the web host also?]*

host grattans.org
  hostname grattans.org
  user mk0a7kyn5q5j
  identityfile ~/.ssh/weewx

Can anyone spot the problem. I have tried to follow Vince's directions but 
have messed up somewhere.  Thanks in advance.

Cheers,
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/6d5d337f-05b3-4ba0-a3d9-4e691cd06460n%40googlegroups.com.

Reply via email to