Crashing a server by charging a vape battery
While I consider this resolved at time of posting, this is one of my weirder, more unexpected tech issues I've run into and I thought y'all might enjoy it.
I'd been having issues with my (Ubuntu) server where its services were unavailable, I couldn't SSH in, and USB devices plugged in after the issues started weren't connecting (mouse LED would light up, couldn't toggle keyboard locks or interface computer with the devices). These issues were becoming a near daily occurrence.
So after the most recent incident I decided to watch it boot. After grub, it would just hang at a black screen. So I opted for the recovery mode and after waiting some minutes for services to time out, I was given a terminal and used that to check my devices, sensors, etc and all were reading fine.
Frustrated, I started reviewing what else could have possibly changed with my setup, and I found that change in my hand. I use my server's front USBs as a low current charger and had recently got a new vape battery that was charging at that moment.
I unplugged the battery, rebooted, everything was fine. Plugged the battery in, everything locked up again immediately.
I had been using a spare cable, it had data wired. Swapping for the included power only cable, and no issues.
While I'm curious as to what exactly is happening and why, I'm satisfied enough concluding it is a cheap vape (I mean, I'm having to charge the sucker near daily after all) that is transmitting junk over data and the OS doesn't handle it appropriately. I'll pull logs or do another couple tests if other folks are curious as well though.
Oh, and the battery is a Bear Rootz Sol. Come to think of it, my other worst battery at holding a charge was also a Bear Rootz.
Bear.Rootz sounds like a rootkit lol...
I have a really long >15m USB cable and the past couple days it has been pretty flaky but I don't get any of the issues you mentioned. I can still SSH in and run dmesg:
When I run this usb_reset script then everything works again for another 10 minutes:
But it sounds like your USB issues are lower level... probably interrupt or power!? related
edit: potentially interesting links:
None of those will likely help solve your problem but they were interesting to read