debug(2/0)
Read logs with journalctl
journalctl is one of the best tools I’ve learned to use often when debugging my set of chaos services running Podman via systemd on my Raspberry Pi. Lots still to learn, but here are a few tidbits. Find out what your options are If you print out the journalctl results with no filters it can be way overwhelming. But figuring out what field to filter can seem impossible. For example, specific services will include their own fields.…
Debug a program with strace
Here’s a fun little debugging story. I’d begun to use keychain to manage ssh keys across processes. Before keychain, ssh-agent processes would multiply because each script that needed access to an ssh key would spawn its own ssh-agent process. But then I found this error. When I ran eval `/usr/bin/keychain –agents ssh –eval my_rsa`while logged into my shell, the keychain process correctly applied the ssh key to my user’s ssh-agent process.…