Is this a new setup, or has it worked in the past?
What userID is running weewx?
What version of weewx are you running?
The contents of my rsync/skin.conf is:
SKIN_NAME = Rsync
SKIN_VERSION = 4.10.2

[Generators]
    generator_list = weewx.reportengine.RsyncGenerator

Does rsync of your /home/weewx/public_html to your web hosting service work 
from the command line?
If, as which user?

On Friday, October 27, 2023 at 4:20:53 AM UTC-6 [email protected] wrote:

> Anyone? 
>
>
> On Oct 26, 2023, at 8:24 AM, Tom -KQ5S <[email protected]> wrote:
>
> I am getting the following error from time to time.  Rsync will work fine 
> for a while and then I get the error.  I might get the error for a couple 
> of cycles then it will work again, then the error again.  I have included 
> the reply from my internet host as well.  Ideas?
>
> Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: Running 
> report 'RSYNC'
> Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: Found 
> configuration file /home/weewx/skins/Rsync/skin.conf for report 'RSYNC'
> Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: Cannot 
> read localization file /home/weewx/skins/Rsync/lang/en.conf for report 
> 'RSYNC': Config file not found: "/home/weewx/skins/Rsync/lang/en.conf".
> Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weewx.reportengine: **** 
> Using defaults instead.
> Oct 26 07:50:26 raspberrypi weewx[30090] DEBUG weeutil.rsyncupload: 
> rsyncupload: cmd: [['rsync', '--archive', '--stats', '-e', 'ssh -p 2222', 
> '/home/weewx/public_html/', ‘[email protected]]]
> Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload: rsync 
> reported errors. Original command: ['rsync', '--archive', '--stats', '-e', 
> 'ssh -p 2222', '/home/weewx/public_html/', ‘[email protected]:xxxx’]
> Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload: **** 
> kex_exchange_identification: Connection closed by remote host
> Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload: **** 
> Connection closed by xxx.xx.xxx.xx port 2222
> Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload: **** 
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> Oct 26 07:50:27 raspberrypi weewx[30090] ERROR weeutil.rsyncupload: **** 
> rsync error: unexplained error (code 255) at io.c(228) [sender=3.2.3]
>
> ==========================================================
> From Internet host.  I'm not sure where the user weewx is coming from.  It 
> is not the user set in my config file for rsync.
>
> Regarding SSH, a review of the server's logs shows two repeated 
> occurrences for your user ID "weewx". I've copied an example of each error 
> below:
>
> *Oct 11 15:37:17 ecbiz246 sshd[55604]: Invalid user weewx from 
> xxx.xx.xxx.xx port 60374*
> *Oct 11 15:37:17 ecbiz246 sshd[55604]: Received disconnect from *
> *xxx.xx.xxx.xx** port 60374:11: Bye Bye [preauth]*
> *Oct 11 15:37:17 ecbiz246 sshd[55604]: Disconnected from **xxx.xx.xxx.xx** 
> port 
> 60374 [preauth]*
>  
>
> *Oct 11 06:46:23 ecbiz246 sshd[3762]: drop connection #28 
> <https://help.inmotionhosting.com/hc/requests/28> from 
> [**xxx.xx.xxx.xx**]:42380 
> on [**xxx.xx.xxx.xx**]:2222 past MaxStartups*
> *...*
> *Oct 11 09:30:20 ecbiz246 sshd[3762]: drop connection #27 
> <https://help.inmotionhosting.com/hc/requests/27> from 
> [x**xxx.xx.xxx.xx**]:47222 
> on [**xxx.xx.xxx.xx**]:2222 past MaxStartups*
>
> It appears your Pi is intermittently trying to connect with an incorrect 
> SSH user string, and subsequent connections are maxing the limit for 
> concurrent SSH connections (MaxStartups), so the excess connections are 
> simply dropped by the server. I suggest reviewing the SSH connection string 
> for the PI, as well as ensuring it is closing connections correctly. 
> Additionally, you will want to ensure you are not opening too many 
> concurrent connections for transfer. If the issue persists you may want to 
> increase the amount of time between uploads, as we are unable to increase 
> the MaxStartups setting on shared server.
>
> -- 
> 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 on the web visit 
> https://groups.google.com/d/msgid/weewx-user/038c234b-113e-4ace-9a62-24c896e5bac2n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/038c234b-113e-4ace-9a62-24c896e5bac2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/99d8265e-2310-4db4-9ff5-a1857636d1b8n%40googlegroups.com.

Reply via email to