Tag: Linux

Linux Programming & Build Errors: gcc, ld, missing headers, ABI mismatch

Working reference for the 10 most common Linux build/compile/link errors. fatal error: header not found (install -dev / -devel), undefined reference (link order matters), library not found at runtime (ldd / LD_LIBRARY_PATH / ld.so.conf.d), GLIBC ABI mismatch (build in target container), segfault in tests, missing make/cmake (build-essential), Python ModuleNotFoundError, npm ENOSPC, exec on noexec mount, OOM during compile (lower -j, swap).

Linux Advanced Networking Errors: PMTU, conntrack, VLAN, bonding

Working reference for 10 advanced Linux networking issues that show up at scale. PMTU black-hole in tunnels (clamp MSS), conntrack table full on busy NAT/LB boxes (sysctl + timeout tuning), VLAN tag mismatches, bond failover not working (LACP vs active-backup), bridge / STP, NAT masquerade not forwarding, rogue IPv6 RA, ssh slow connect (UseDNS no), asymmetric routing, jumbo frame end-to-end requirements. Cross-linked to networking command reference.

Linux Security Errors: SELinux denies, expired certs, firewall blocks, fail2ban

Working reference for the 10 most common Linux security errors. SELinux AVC denial (ausearch + audit2allow + restorecon), AppArmor DENIED (aa-complain + aa-genprof), TLS cert expired (certbot timer), firewall blocking expected traffic with iptables -L -nv counter diagnosis, fail2ban banned-IP recovery, SSH brute force defenses (key-only / fail2ban / port move), sudo timeout in long scripts, NET::ERR_CERT_REVOKED, audit log full, GPG signature verification. Cross-linked to auth errors, file permissions, and networking errors.

Linux Storage & RAID Errors: mdadm degraded, LVM, SMART, multipath

Working reference for the 10 most common Linux storage and RAID failures. mdadm degraded array (remove + add), the worst-case dual-disk failure during rebuild, LVM volume group not found (vgscan + vgchange), thin pool 100% full, SMART pre-fail attributes (replace before catastrophic), multipath all-paths-failed, snapshot CoW pool overflow, force-assemble of broken arrays as last resort, iSCSI session loss, fstrim discard support. Cross-linked to disk/filesystem command reference and performance troubleshooting.

Linux Kernel & Boot Errors: GRUB, kernel panic, initramfs, emergency mode

Working reference for the 10 most common Linux boot failures. Kernel panic - not syncing (UUID/initramfs/hardware), GRUB file not found, VFS unable to mount root (post-disk-replace UUID change), systemd emergency mode from failed mount, no init found, missing initramfs modules, fsck during boot, OOM in initramfs on small VMs, kernel command line parse errors, silent boot loops. Cross-linked to disk/filesystem and storage/RAID.

Linux Docker & Container Errors: daemon, image pull, exit 137, port allocation

Working reference for the 10 most common Linux container errors. Cannot connect to Docker daemon (group / socket diagnosis), pull access denied (registry login + token expiry), overlay2 No space left on device (docker system prune), exit code 137 = SIGKILL by OOM, port allocation conflicts, manifest unknown, restart loops, iptables chain conflicts with firewalld, SELinux :Z mount label, cgroups memory limits. Cross-links to the systemctl / journalctl reference and to CI/CD troubleshooting.

Linux Package Management Errors: apt, dpkg, yum, dnf

Working reference for the 10 most common Linux package management errors. dpkg lock contention, unmet dependencies (--fix-broken), NO_PUBKEY GPG (apt-key vs trusted.gpg.d/), Hash sum mismatch from mirror sync, held broken packages, dpkg processing errors with postinst scripts, unreachable repository (DNS/proxy/firewall), insufficient disk during install, expired signing keys, conflicting packages. apt vs dpkg vs yum vs dnf nuances throughout.

Linux Systemd & Service Errors: Failed to start, Unit not found, dependency cycles

Working reference for the 10 most common Linux systemd service errors. Failed to start (with journalctl -xeu diagnosis), Unit not found (daemon-reload after custom-unit drop), control process exited non-zero, Start request repeated too quickly (StartLimitBurst), Dependency cycle, Unit is masked, bad ExecStart values, false 'running' status without health checks, permission denied on low ports (CAP_NET_BIND_SERVICE), daemon-reload required after edits. Cross-links to the User & Service Management command reference.

Linux Authentication & User Errors: 10 Common Login Problems

Working reference for the 10 most common Linux authentication errors. PAM authentication failure (auth.log diagnosis), user not in sudoers (visudo + /etc/sudoers.d/ drop-ins), UNPROTECTED PRIVATE KEY (SSH 700/600 perms), pam_faillock account lockout (faillock --reset), sudo no-tty for cron (NOPASSWD scoped), KEX algorithm mismatch with old servers, /sbin/nologin shell trap, stale group memberships requiring re-login or newgrp, sudo 3-strikes, SSH wrong-key-offered diagnosis. Cross-links to User & Service Management, File Permissions, and Security Errors.

Linux Networking Errors: 10 Common Connection Problems and Fixes

Working reference for the 10 most common Linux networking errors. Connection refused vs timed out (RST vs silent drop), No route to host, NXDOMAIN DNS failures (dig +short / resolv.conf / nsswitch), SSL certificate verify failed (expired / CN mismatch / clock skew), Network unreachable, Address already in use (EADDRINUSE with ss -tlnp 'sport = :PORT'), TIME_WAIT exhaustion, ARP resolution, SSH permission denied (publickey). Each error covers description, root cause, and step-by-step fix using the OSI-ladder diagnostic order. Cross-linked to the Linux networking command reference and the advanced-networking-errors deep-dive.

Linux Process & Memory Errors: OOM, ulimit, fork failures

Working reference for the 10 most common Linux process and memory errors. OOM killer victim selection (oom_score / oom_score_adj), ENOMEM and vm.overcommit_memory, EMFILE too-many-open-files (ulimit -n vs systemd LimitNOFILE vs fs.file-max), EAGAIN on fork (nproc limit), SIGSEGV with core-dump analysis, swap-thrash kills, D-state uninterruptible sleep diagnosis (/proc/PID/wchan + stack), system-wide ENFILE, pthread_create failures, silent cron failures. Cross-links to Process Management and System Monitoring command references.

Linux Filesystem & Disk Errors: 10 Common Problems and Fixes

Working reference for the 10 most common Linux filesystem and disk errors. No space left on device, Read-only filesystem (errors=remount-ro after I/O failure), inode exhaustion (df -i), Permission denied (and the SELinux/AppArmor twin), Bad magic number in super-block, Disk quota exceeded, Stale file handle (NFS ESTALE), generic I/O errors with SMART correlation, /tmp full, fsck failure during boot. Each error covers description, root cause, common scenarios, and step-by-step fix. Includes cross-links to the Linux Disk & Filesystem command reference and to related troubleshooting topics (Storage/RAID, Performance).