[weewx-user] Re: Rsync error after updating to Ubuntu 22.04

2023-09-27 Thread Jon B
Thanks, that fixed the graphs. Turns out that the lack of a "Last updated" 
message was due to me playing around with the message that is displayed 
when the data hasn't been updated for a while - for some reason trying to 
customise this caused it to break. I'll try the stack overflow solutions 
for the Rsync error

Thanks!
On Wednesday, 27 September 2023 at 15:59:51 UTC-6 vince wrote:

> See if 
> https://stackoverflow.com/questions/667992/rsync-error-failed-to-set-times-on-foo-bar-operation-not-permitted
>  
> helps any
>
> For the graphs thing, look at 
> https://groups.google.com/g/weewx-user/c/yfG1JvCP3Us  
> if you're running 
> an old version of Belchertown.   Current Belchertown has a fix for this one 
> based on the changelog for the skin dated in late April.
> On Wednesday, September 27, 2023 at 12:16:40 PM UTC-7 Jon B wrote:
>
>> I was able to fix this issue by adding "ssh_options = "-av 
>> -oHostKeyAlgorithms=+ssh-dss" " to the Rsync section of weewx.conf and the 
>> Rsync now works (it's able to make the connection and transfer files), 
>> though there is still an error in the logs. This error is:
>>
>> Sep 27 16:38:25 machine-name weewx[503476] ERROR weeutil.rsyncupload: 
>>  rsync: failed to set times on "/path/to/files/.": Operation not 
>> permitted (1) 
>>
>> I'm using the Belchertown skin and the "last updated" banner, the 
>> forecast and the graphs on the homepage no longer appear. I can view the 
>> graphs on the Graphs page though. Is this related to the above error? The 
>> logs also say:
>>
>> Sep 27 16:38:25 machine-name weewx[503476] ERROR weeutil.rsyncupload: 
>>  rsync error: some files/attrs were not transferred (see previous 
>> errors) (code 23) at main.c(1338) [sender=3.2.7] 
>>
>> So I guess that it might be. How is the "last updated" banner generated 
>> by Belchertown?
>>
>> The website is here:
>>
>> https://empslocal.ex.ac.uk/uoeweather/
>> On Wednesday, 23 August 2023 at 18:25:24 UTC+1 Jon B wrote:
>>
>>> Thanks for the reply. I've just copied the correct key across to the 
>>> server, but I'm still getting the same error. When I try to ssh to the 
>>> server using simply "ssh username@remote-server" I also get that error, and 
>>> I have to add "-o HostKeyAlgorithms=ssh-dss" to be able to ssh in 
>>> successfully. Could this be the issue with the Rsync as well? Is there a 
>>> way to add the same option to the Rsync command?
>>>
>>> On Wednesday, 23 August 2023 at 07:42:26 UTC+1 Invisible Man wrote:
>>>
 Your Rsync works through SSH, and the first line of the logs shows that 
 it expects to be able to log in using a host key, but it can't find your 
 host key.
 So, you need to copy the SSH key of the host you are Rsyncing from to 
 the host you are Rsyncing to, in its .ssh/authorized_keys.

 I presume that this happened when you changed your OS. The SSH key has 
 obviously changed, and currently in .ssh/authorized_keys you probably have 
 the old key.

 Be sure to copy the correct user's key depending on who's running weewx 
 on your system.
 On Tuesday, August 22, 2023 at 7:34:09 PM UTC+2 Jon B wrote:

> I recently updated the operating system on which I'm running weewx to 
> Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
> pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
> the previous version and I've tried various fixes but haven't been able 
> to 
> solve it.
>
> The error in the logs is:
>
> Unable to negotiate with ***.***.**.** port 22: no matching host key 
> type found. Their offer: ssh-rsa,ssh-dss
> ERROR weeutil.rsyncupload:  rsync: connection unexpectedly closed 
> (0 bytes received so far) [sender]
> ERROR weeutil.rsyncupload:  rsync error: unexplained error (code 
> 255) at io.c(231) [sender=3.2.7]
>
> From searching online I've tried adding various things to different 
> ssh config files but none has worked. I'm sure it must be a fairly simple 
> solution though - can anyone point me in the right direction?
>
> Thanks!
>


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


[weewx-user] Re: Rsync error after updating to Ubuntu 22.04

2023-09-27 Thread vince
See if 
https://stackoverflow.com/questions/667992/rsync-error-failed-to-set-times-on-foo-bar-operation-not-permitted
 
helps any

For the graphs thing, look at 
https://groups.google.com/g/weewx-user/c/yfG1JvCP3Us  
if you're running an 
old version of Belchertown.   Current Belchertown has a fix for this one 
based on the changelog for the skin dated in late April.
On Wednesday, September 27, 2023 at 12:16:40 PM UTC-7 Jon B wrote:

> I was able to fix this issue by adding "ssh_options = "-av 
> -oHostKeyAlgorithms=+ssh-dss" " to the Rsync section of weewx.conf and the 
> Rsync now works (it's able to make the connection and transfer files), 
> though there is still an error in the logs. This error is:
>
> Sep 27 16:38:25 machine-name weewx[503476] ERROR weeutil.rsyncupload:  
> rsync: failed to set times on "/path/to/files/.": Operation not permitted 
> (1) 
>
> I'm using the Belchertown skin and the "last updated" banner, the forecast 
> and the graphs on the homepage no longer appear. I can view the graphs on 
> the Graphs page though. Is this related to the above error? The logs also 
> say:
>
> Sep 27 16:38:25 machine-name weewx[503476] ERROR weeutil.rsyncupload:  
> rsync error: some files/attrs were not transferred (see previous errors) 
> (code 23) at main.c(1338) [sender=3.2.7] 
>
> So I guess that it might be. How is the "last updated" banner generated by 
> Belchertown?
>
> The website is here:
>
> https://empslocal.ex.ac.uk/uoeweather/
> On Wednesday, 23 August 2023 at 18:25:24 UTC+1 Jon B wrote:
>
>> Thanks for the reply. I've just copied the correct key across to the 
>> server, but I'm still getting the same error. When I try to ssh to the 
>> server using simply "ssh username@remote-server" I also get that error, and 
>> I have to add "-o HostKeyAlgorithms=ssh-dss" to be able to ssh in 
>> successfully. Could this be the issue with the Rsync as well? Is there a 
>> way to add the same option to the Rsync command?
>>
>> On Wednesday, 23 August 2023 at 07:42:26 UTC+1 Invisible Man wrote:
>>
>>> Your Rsync works through SSH, and the first line of the logs shows that 
>>> it expects to be able to log in using a host key, but it can't find your 
>>> host key.
>>> So, you need to copy the SSH key of the host you are Rsyncing from to 
>>> the host you are Rsyncing to, in its .ssh/authorized_keys.
>>>
>>> I presume that this happened when you changed your OS. The SSH key has 
>>> obviously changed, and currently in .ssh/authorized_keys you probably have 
>>> the old key.
>>>
>>> Be sure to copy the correct user's key depending on who's running weewx 
>>> on your system.
>>> On Tuesday, August 22, 2023 at 7:34:09 PM UTC+2 Jon B wrote:
>>>
 I recently updated the operating system on which I'm running weewx to 
 Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
 pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
 the previous version and I've tried various fixes but haven't been able to 
 solve it.

 The error in the logs is:

 Unable to negotiate with ***.***.**.** port 22: no matching host key 
 type found. Their offer: ssh-rsa,ssh-dss
 ERROR weeutil.rsyncupload:  rsync: connection unexpectedly closed 
 (0 bytes received so far) [sender]
 ERROR weeutil.rsyncupload:  rsync error: unexplained error (code 
 255) at io.c(231) [sender=3.2.7]

 From searching online I've tried adding various things to different ssh 
 config files but none has worked. I'm sure it must be a fairly simple 
 solution though - can anyone point me in the right direction?

 Thanks!

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4138aa4b-61a1-4ac9-8307-a072c37bbdd8n%40googlegroups.com.


[weewx-user] Re: Rsync error after updating to Ubuntu 22.04

2023-09-27 Thread Jon B
I was able to fix this issue by adding "ssh_options = "-av 
-oHostKeyAlgorithms=+ssh-dss" " to the Rsync section of weewx.conf and the 
Rsync now works (it's able to make the connection and transfer files), 
though there is still an error in the logs. This error is:

Sep 27 16:38:25 machine-name weewx[503476] ERROR weeutil.rsyncupload:  
rsync: failed to set times on "/path/to/files/.": Operation not permitted 
(1) 

I'm using the Belchertown skin and the "last updated" banner, the forecast 
and the graphs on the homepage no longer appear. I can view the graphs on 
the Graphs page though. Is this related to the above error? The logs also 
say:

Sep 27 16:38:25 machine-name weewx[503476] ERROR weeutil.rsyncupload:  
rsync error: some files/attrs were not transferred (see previous errors) 
(code 23) at main.c(1338) [sender=3.2.7] 

So I guess that it might be. How is the "last updated" banner generated by 
Belchertown?

The website is here:

https://empslocal.ex.ac.uk/uoeweather/
On Wednesday, 23 August 2023 at 18:25:24 UTC+1 Jon B wrote:

> Thanks for the reply. I've just copied the correct key across to the 
> server, but I'm still getting the same error. When I try to ssh to the 
> server using simply "ssh username@remote-server" I also get that error, and 
> I have to add "-o HostKeyAlgorithms=ssh-dss" to be able to ssh in 
> successfully. Could this be the issue with the Rsync as well? Is there a 
> way to add the same option to the Rsync command?
>
> On Wednesday, 23 August 2023 at 07:42:26 UTC+1 Invisible Man wrote:
>
>> Your Rsync works through SSH, and the first line of the logs shows that 
>> it expects to be able to log in using a host key, but it can't find your 
>> host key.
>> So, you need to copy the SSH key of the host you are Rsyncing from to the 
>> host you are Rsyncing to, in its .ssh/authorized_keys.
>>
>> I presume that this happened when you changed your OS. The SSH key has 
>> obviously changed, and currently in .ssh/authorized_keys you probably have 
>> the old key.
>>
>> Be sure to copy the correct user's key depending on who's running weewx 
>> on your system.
>> On Tuesday, August 22, 2023 at 7:34:09 PM UTC+2 Jon B wrote:
>>
>>> I recently updated the operating system on which I'm running weewx to 
>>> Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
>>> pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
>>> the previous version and I've tried various fixes but haven't been able to 
>>> solve it.
>>>
>>> The error in the logs is:
>>>
>>> Unable to negotiate with ***.***.**.** port 22: no matching host key 
>>> type found. Their offer: ssh-rsa,ssh-dss
>>> ERROR weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 
>>> bytes received so far) [sender]
>>> ERROR weeutil.rsyncupload:  rsync error: unexplained error (code 
>>> 255) at io.c(231) [sender=3.2.7]
>>>
>>> From searching online I've tried adding various things to different ssh 
>>> config files but none has worked. I'm sure it must be a fairly simple 
>>> solution though - can anyone point me in the right direction?
>>>
>>> Thanks!
>>>
>>

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


[weewx-user] Re: Rsync error after updating to Ubuntu 22.04

2023-08-23 Thread Jon B
Thanks for the reply. I've just copied the correct key across to the 
server, but I'm still getting the same error. When I try to ssh to the 
server using simply "ssh username@remote-server" I also get that error, and 
I have to add "-o HostKeyAlgorithms=ssh-dss" to be able to ssh in 
successfully. Could this be the issue with the Rsync as well? Is there a 
way to add the same option to the Rsync command?

On Wednesday, 23 August 2023 at 07:42:26 UTC+1 Invisible Man wrote:

> Your Rsync works through SSH, and the first line of the logs shows that it 
> expects to be able to log in using a host key, but it can't find your host 
> key.
> So, you need to copy the SSH key of the host you are Rsyncing from to the 
> host you are Rsyncing to, in its .ssh/authorized_keys.
>
> I presume that this happened when you changed your OS. The SSH key has 
> obviously changed, and currently in .ssh/authorized_keys you probably have 
> the old key.
>
> Be sure to copy the correct user's key depending on who's running weewx on 
> your system.
> On Tuesday, August 22, 2023 at 7:34:09 PM UTC+2 Jon B wrote:
>
>> I recently updated the operating system on which I'm running weewx to 
>> Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
>> pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
>> the previous version and I've tried various fixes but haven't been able to 
>> solve it.
>>
>> The error in the logs is:
>>
>> Unable to negotiate with ***.***.**.** port 22: no matching host key type 
>> found. Their offer: ssh-rsa,ssh-dss
>> ERROR weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 
>> bytes received so far) [sender]
>> ERROR weeutil.rsyncupload:  rsync error: unexplained error (code 255) 
>> at io.c(231) [sender=3.2.7]
>>
>> From searching online I've tried adding various things to different ssh 
>> config files but none has worked. I'm sure it must be a fairly simple 
>> solution though - can anyone point me in the right direction?
>>
>> Thanks!
>>
>

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


[weewx-user] Re: Rsync error after updating to Ubuntu 22.04

2023-08-23 Thread Invisible Man
Your Rsync works through SSH, and the first line of the logs shows that it 
expects to be able to log in using a host key, but it can't find your host 
key.
So, you need to copy the SSH key of the host you are Rsyncing from to the 
host you are Rsyncing to, in its .ssh/authorized_keys.

I presume that this happened when you changed your OS. The SSH key has 
obviously changed, and currently in .ssh/authorized_keys you probably have 
the old key.

Be sure to copy the correct user's key depending on who's running weewx on 
your system.
On Tuesday, August 22, 2023 at 7:34:09 PM UTC+2 Jon B wrote:

> I recently updated the operating system on which I'm running weewx to 
> Ubuntu 22.04 and now Rsync to my web server is no longer working. I'm 
> pretty sure it's because the version of ssh in Ubuntu 22.04 is newer than 
> the previous version and I've tried various fixes but haven't been able to 
> solve it.
>
> The error in the logs is:
>
> Unable to negotiate with ***.***.**.** port 22: no matching host key type 
> found. Their offer: ssh-rsa,ssh-dss
> ERROR weeutil.rsyncupload:  rsync: connection unexpectedly closed (0 
> bytes received so far) [sender]
> ERROR weeutil.rsyncupload:  rsync error: unexplained error (code 255) 
> at io.c(231) [sender=3.2.7]
>
> From searching online I've tried adding various things to different ssh 
> config files but none has worked. I'm sure it must be a fairly simple 
> solution though - can anyone point me in the right direction?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2756acf9-415d-401e-8bc4-ce51d59513e2n%40googlegroups.com.