Martin Cracauer via plug on 25 Apr 2022 09:07:23 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Kubuntu 22.04 loses network connectivity spontaneously |
I would recommend running this in the background (as root): if="eth0" # set this while : ; do echo date ethtool "$if" mii-tool "$if" netstat -nr tail /var/log/messages sleep 7 done >> /var/tmp/mylog.$$ K.S. Bhaskar via plug wrote on Mon, Apr 25, 2022 at 11:19:45AM -0400: > No luck with fiddling with the power saving settings: it still randomly > drops the network connection. This has to be one of the most puzzling > issues I have encountered. > > Thanks for the suggestions, all. > > Regards > - Bhaskar > > On Sat, Apr 23, 2022 at 6:09 AM K.S. Bhaskar <ksbhaskar@gmail.com> wrote: > > > Thanks, that's a good thought. I'll check it when I'm back in the office > > next week. > > > > Regards > > - Bhaskar > > > > On Sat, Apr 23, 2022 at 5:29 AM Joe Rosato <rosatoj@gmail.com> wrote: > > > >> Looks like I'm late to the party but figured I throw a thought in... > >> Could it be power saving settings? I read this pretty quickly but didn't > >> see that mentioned... > >> > >> Joe > >> > >> On Fri, Apr 22, 2022, 9:45 PM K.S. Bhaskar via plug < > >> plug@lists.phillylinux.org> wrote: > >> > >>> Here's how it played out. > >>> > >>> dmesg was not helpful. It merely recorded that the NIC was down, and > >>> that some time later it was up. At least it told us that Linux knew the NIC > >>> was down. > >>> > >>> I tried JP's ugly hack, having it run once a minute. No luck. When it > >>> went down, it stayed down until it decided to come up, for reasons known > >>> only to itself. > >>> > >>> Debugging it by logging in at the console was no help, because the > >>> moment anyone logged in, moved a mouse or did something at the console, the > >>> network came back to life. It did not go down when I was logged in at the > >>> console (that's not to say that it would; just that it didn't on those > >>> occasions when I was logged in to see whether I could be logged in when it > >>> went down). > >>> > >>> As I installed Kubuntu into a different partition from the prior Arch > >>> Linux, which was untouched by the Kubuntu installation, I reverted to Arch > >>> Linux and that's what it's running for the weekend. Since the Arch has not > >>> lost the network for several hours (vs. 20-30 minutes for Kubuntu), I'm > >>> confident that it's not a hardware problem. > >>> > >>> All in all, it has been a very frustrating day. > >>> > >>> Regards > >>> ??? Bhaskar > >>> > >>> On Fri, Apr 22, 2022 at 7:02 PM Rich Mingin (PLUG) via plug < > >>> plug@lists.phillylinux.org> wrote: > >>> > >>>> What nic? If it was a universal issue it would have been reported > >>>> plenty by now. More likely a device specific bug. > >>>> > >>>> > >>>> On Fri, Apr 22, 2022 at 3:52 PM JP Vossen via plug < > >>>> plug@lists.phillylinux.org> wrote: > >>>> > >>>>> On 4/22/22 15:25, K.S. Bhaskar via plug wrote: > >>>>> > I did a fresh install of Kubuntu 22.04 this morning and a bizarre > >>>>> behavior has me scratching my head. As the machine (a 2017 PC, high end at > >>>>> the time) is used primarily as a server, and occasionally as a desktop, > >>>>> most of the time the monitor is powered down and the wireless mouse is > >>>>> turned off to conserve the battery. Every so often, it loses its network > >>>>> connection. ... > >>>>> Really ugly hack? > >>>>> ``` > >>>>> */5 * * * * root /bin/ping -c2 10.10.10.10 > /dev/null || { echo > >>>>> 'Resetting eth0!' ; /sbin/ifconfig eth0 down ; /sbin/ifconfig eth0 up ; ip > >>>>> route add default via 10.10.10.10 dev eth0 ; } > >>>>> > >>>>> ``` > >>>>> > >>>>> Where 10.10.10.10 is the node's default gateway, and "eth0" is the > >>>>> buggy interface. That's from when I had a box with a wonky USB Ethernet > >>>>> adapter. It didn't fix the problem, and it didn't always work, but...it > >>>>> worked sometimes. > >>>>> > >>>>> Much better to find and fix the root cause, of course, but maybe this > >>>>> is a help until then, and might allow more data collection to find the > >>>>> problem. > >>>>> > >>>>> Later, > >>>>> JP > >>>>> -- ------------------------------------------------------------------- > >>>>> JP Vossen, CISSP | http://www.jpsdomain.org/ | > >>>>> http://bashcookbook.com/ > >>>>> > >>>>> ___________________________________________________________________________ > >>>>> Philadelphia Linux Users Group -- > >>>>> http://www.phillylinux.org > >>>>> Announcements - > >>>>> http://lists.phillylinux.org/mailman/listinfo/plug-announce > >>>>> General Discussion -- > >>>>> http://lists.phillylinux.org/mailman/listinfo/plug > >>>>> > >>>> > >>>> ___________________________________________________________________________ > >>>> Philadelphia Linux Users Group -- > >>>> http://www.phillylinux.org > >>>> Announcements - > >>>> http://lists.phillylinux.org/mailman/listinfo/plug-announce > >>>> General Discussion -- > >>>> http://lists.phillylinux.org/mailman/listinfo/plug > >>>> > >>> > >>> ___________________________________________________________________________ > >>> Philadelphia Linux Users Group -- > >>> http://www.phillylinux.org > >>> Announcements - > >>> http://lists.phillylinux.org/mailman/listinfo/plug-announce > >>> General Discussion -- > >>> http://lists.phillylinux.org/mailman/listinfo/plug > >>> > >> > ___________________________________________________________________________ > Philadelphia Linux Users Group -- http://www.phillylinux.org > Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce > General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/ ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug