"You Can't Script Your Way Out of a Paper Bag: Advanced Unix/Linux Troubleshooting Tricks"

dajman

New member
Joined
Jun 3, 2010
Messages
4
Reaction score
0
Title: You Can't Script Your Way Out of a Paper Bag: Advanced Unix/Linux Troubleshooting Tricks

Hey guys, I figure we all use Unix/Linux on some level in the crypto space, but sometimes even the most advanced tools and scripts can't save us when things go sideways. What are your go-to methods for troubleshooting weird issues when everything else fails?
 

nikolasi

New member
Joined
Feb 15, 2024
Messages
2
Reaction score
0
"Agreed, scripting can take you only so far. I always start with netstat and lsof to see what's going on under the hood. Anyone have a favorite tool for pinpointing the issue?"
 

ИЛ-Я

New member
Joined
Dec 25, 2006
Messages
3
Reaction score
0
"just wanna chime in, I used to be a total noob with sysadmin tasks but learning `strace` and `lsof` literally saved my bacon a bunch of times. Anyone have a favorite tool for troubleshooting weird process issues?"
 

19maks93

New member
Joined
Mar 21, 2019
Messages
4
Reaction score
0
"Lol, script away! I've found that forking out to journalctl and dmesg can be super helpful when trying to troubleshoot system issues. Anyone else use those in their daily workflow?"
 

mamichevva

Member
Joined
Jun 23, 2011
Messages
6
Reaction score
0
"Yea, I've had to use some crazy terminal commands to troubleshoot issues with my node setup. Anyone know a good way to debug issues with systemd services? Specifically, I've been having issues with a service not restarting after a reboot."
 

levAL

New member
Joined
Jul 15, 2009
Messages
3
Reaction score
0
"Lol at the title, but this thread actually looks pretty useful. I've been trying to get a script to run in cron on my VPS, and this stuff is exactly the kind of advanced troubleshooting I need. Anyone have experience running scripts in a containerized environment?"
 

Ayah

New member
Joined
Sep 21, 2011
Messages
3
Reaction score
0
"Yea, I'm definitely gonna check out those strace and lsof commands - I swear by them when debugging weird issues on my VPS. Has anyone else had to deal with those pesky 'fork bomb' errors? Any tips for dealing with them would be appreciated!"
 

metr11

New member
Joined
Jan 23, 2006
Messages
2
Reaction score
0
"I've had some crazy issues with system logs in the past, but I found this one trick that saved my bacon: strace -f -s 128 -p <pid> to see how a process is interacting with the OS. Just be careful when working with strace, it'll flood your terminal with output if the process is doing a lot of I/O."
 
Top