Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2020 08:08:50 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        "Hartmann, O." <o.hartmann@walstatt.org>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: # Fssh_packet_write_wait: Connection to 77.183.250.3 port 22: Broken pipe
Message-ID:  <X%2BymEk6xlrgyaui1@albert.catwhisker.org>
In-Reply-To: <20201230080403.5474da7c@hermann.fritz.box>
References:  <20201230080403.5474da7c@hermann.fritz.box>

next in thread | previous in thread | raw e-mail | index | archive | help

--i7MDvwBGNnSXWh8r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Dec 30, 2020 at 08:04:03AM +0100, Hartmann, O. wrote:
> ...
>=20
> # Fssh_packet_write_wait: Connection to XXX.XXX.XXX.XXX port 22: Broken p=
ipe
>=20
> The backend is in most cases a CURRENT, 12.1-RELENG or 12.2-RELENG or 12-=
STABLE server. A
> couple of months ago we moved from 11.3-RELENG to 12.1-RELENG (server sid=
e, clients were
> always 13-CURRENT or 12-STABLE). With FreeBSD 11 as the backend, those br=
oken pipes
> occured, but not that frequent and rapid as it is the fact now.=20
>=20
> The "problem" can be mitigated somehow: running top or using the console =
prevents the
> broken pipe fault for a while, but it still occurs. Running "screen" (port
> sysutils/screen) does extend the usability of the console for a significa=
nt timespan, but
> the broken pipe also occurs randomly, but it takes a significant time to =
occur.

I have seen messages like that -- from a remote host that has
rebooted or to which the network connection has (otherwise) been
severed.

A couple of things that I do may have (significantly) reduced the
probability that I would encounter what you report under other
conditions.

Context: I work from my laptop, and ssh to ... well, just about
everything: machines in my house; machines at work; machines at work
accessible only from within the VPN hrough a bastion host; machines in
the FreeBSD.org cluster....  Usually concurrently.  The laptop normally
runs FreeBSD stable/12 (freshly built each morning), but it runs head
while I build head on it and for the smoke-test after the build is
complete.

* A long time ago, I placed "ServerAliveInterval 150" in ~/.ssh/config.
  (I suspect that this was well before Nov 2014, which was the
  beginning of my tenure with my current employer.  And yes, I had
  been using the above-described "ssh to everyhing" well before
  then -- I think I got in he habit around 1999, back at Whistle.)

* Whenever I am about to do something "sensitive," I run tmux
  (port/package sysutils/tmux -- same "ecological niche" as screen,
  but I switched from screen to tmux several years ago, and haven't
  looked back.)  This has become enough of a habit that I tend to
  run tmux from "muscle memory."  Or I have set up csh aliasses or
  scripts to "do stuff" that automagically invoke tmux, so I don't
  even notice.

* [Yeah, I wrote "a couple" up there; this is a bonus. :-) ]  I
  don't keep machines up longer than about 175 hours (a little over
  a week) at a stretch: I update my laptop and my "build machine"
  daily, and update the other machines under my control weekly.

> ....=20

Peace,
david
--=20
David H. Wolfskill                              david@catwhisker.org
While Trump successfully conned a lot of people for a while, in the
end he's just a failure throwing a temper tantrum because he lost.

See https://www.catwhisker.org/~david/publickey.gpg for my public key.

--i7MDvwBGNnSXWh8r
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl/sphJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy
OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2
Pcke2Af/R2x7HE2gf2hslaU/lYnjT7RmUGHQOltndv2szEv1k6GKxvxPbt7xvXZL
6dDNDKa6nm0qJaUoGbs+u9n+sCxlzN4XMHi71PLi6jFBGbiyYxcPGzofqeVi2zpu
1lQ+66xyLThO6lmze169sesVS9jjFVMtu0InRQsyXu+JQ5V8hnpc46n5aUA3igyA
rgjAKi9IKVWwtbIggoEXUS6V+HrMNaGzNG8kp1oNf0DGSNKYi7gu+OnY3rn/NRA9
RXY9c6gYOF2jdmK4TZeTZGP7m4LSxoU5baVH8o4goAEphb0OALVg86zHRdvh/ZTG
0oV+i35Y39bsSECkC84jPBQ2ZAAd8g==
=fnwN
-----END PGP SIGNATURE-----

--i7MDvwBGNnSXWh8r--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?X%2BymEk6xlrgyaui1>