Skip to content

Troubleshooting RLC

This guide covers common issues and solutions when working with Rocky Linux from CIQ (RLC).

Repository and Access Issues

Depot Access Problems

Problem: Cannot access CIQ Depot repositories

Solutions: 1. Verify credentials:

curl -u USERNAME:TOKEN https://depot.ciq.com/test

  1. Check network connectivity:

    ping depot.ciq.com
    curl -I https://depot.ciq.com
    

  2. Verify repository configuration:

    dnf repolist enabled
    cat /etc/yum.repos.d/rlc.repo
    

  3. Clear repository cache:

    sudo dnf clean all
    sudo dnf makecache
    

Package Installation Failures

Problem: DNF package installation fails

Solutions: 1. Update repository metadata:

sudo dnf clean metadata
sudo dnf makecache

  1. Check available space:

    df -h /var/cache/dnf
    df -h /tmp
    

  2. Verify GPG keys:

    rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
    dnf check-update
    

  3. Debug package issues:

    dnf --debuglevel=10 install package-name
    

Authentication Issues

Problem: Repository authentication fails

Solutions: 1. Check credentials file:

cat ~/.netrc
# Should contain: machine depot.ciq.com login USERNAME password TOKEN

  1. Verify permissions:

    chmod 600 ~/.netrc
    ls -la ~/.netrc
    

  2. Test authentication:

    curl -n https://depot.ciq.com/private/test
    

Installation Issues

Boot Problems

Problem: System fails to boot after installation

Solutions: 1. Check boot order in BIOS/UEFI 2. Boot from rescue media:

# Boot from installation media
# Select "Troubleshooting" → "Rescue"

  1. Repair GRUB:

    grub2-install /dev/sda
    grub2-mkconfig -o /boot/grub2/grub.cfg
    

  2. Check filesystem errors:

    fsck /dev/sda1
    

Network Configuration Issues

Problem: Network not working after installation

Solutions: 1. Check network interface status:

ip addr show
nmcli device status

  1. Restart NetworkManager:

    sudo systemctl restart NetworkManager
    

  2. Configure network manually:

    sudo nmcli con mod "System eth0" ipv4.addresses 192.168.1.100/24
    sudo nmcli con mod "System eth0" ipv4.gateway 192.168.1.1
    sudo nmcli con mod "System eth0" ipv4.dns 8.8.8.8
    sudo nmcli con mod "System eth0" ipv4.method manual
    sudo nmcli con up "System eth0"
    

System Performance Issues

High CPU Usage

Problem: Unexpectedly high CPU usage

Solutions: 1. Identify high CPU processes:

top
htop
ps aux --sort=-%cpu | head -10

  1. Check for runaway processes:

    ps aux | grep -E "(100|99)\.[0-9]"
    

  2. Monitor system load:

    uptime
    sar -u 1 10
    

  3. Check for hardware issues:

    dmesg | grep -i error
    journalctl -p err --since "1 hour ago"
    

Memory Issues

Problem: High memory usage or out of memory errors

Solutions: 1. Check memory usage:

free -h
cat /proc/meminfo
sudo smem -t

  1. Identify memory-hungry processes:

    ps aux --sort=-%mem | head -10
    

  2. Check for memory leaks:

    valgrind --leak-check=full command
    

  3. Configure swap if needed:

    sudo fallocate -l 2G /swapfile
    sudo chmod 600 /swapfile
    sudo mkswap /swapfile
    sudo swapon /swapfile
    echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
    

Disk Space Issues

Problem: Running out of disk space

Solutions: 1. Check disk usage:

df -h
du -sh /*

  1. Find large files:

    find / -type f -size +100M 2>/dev/null
    

  2. Clean package cache:

    sudo dnf clean all
    

  3. Clean logs:

    sudo journalctl --vacuum-time=7d
    sudo logrotate -f /etc/logrotate.conf
    

Service and Application Issues

Service Startup Failures

Problem: System services fail to start

Solutions: 1. Check service status:

sudo systemctl status service-name
sudo systemctl --failed

  1. Review service logs:

    sudo journalctl -u service-name
    sudo journalctl -f -u service-name
    

  2. Check dependencies:

    systemctl list-dependencies service-name
    

  3. Restart service:

    sudo systemctl restart service-name
    sudo systemctl enable service-name
    

Database Connection Issues

Problem: Cannot connect to database

Solutions: 1. Check database service:

sudo systemctl status mariadb
sudo systemctl status postgresql

  1. Verify database configuration:

    sudo mysql -u root -p
    sudo -u postgres psql
    

  2. Check network connectivity:

    telnet database-server 3306
    netstat -tulpn | grep :3306
    

  3. Review database logs:

    sudo tail -f /var/log/mysql/error.log
    sudo tail -f /var/log/postgresql/postgresql.log
    

Web Server Issues

Problem: Web server not responding

Solutions: 1. Check web server status:

sudo systemctl status httpd
sudo systemctl status nginx

  1. Test configuration:

    sudo httpd -t
    sudo nginx -t
    

  2. Check port availability:

    netstat -tulpn | grep :80
    netstat -tulpn | grep :443
    

  3. Review error logs:

    sudo tail -f /var/log/httpd/error_log
    sudo tail -f /var/log/nginx/error.log
    

Network Issues

DNS Resolution Problems

Problem: DNS not resolving properly

Solutions: 1. Check DNS configuration:

cat /etc/resolv.conf
systemd-resolve --status

  1. Test DNS resolution:

    nslookup google.com
    dig google.com
    

  2. Flush DNS cache:

    sudo systemctl restart systemd-resolved
    

  3. Configure alternative DNS:

    echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf
    

Firewall Issues

Problem: Network connectivity blocked by firewall

Solutions: 1. Check firewall status:

sudo firewall-cmd --state
sudo firewall-cmd --list-all

  1. Temporarily disable firewall:

    sudo systemctl stop firewalld
    

  2. Add firewall rules:

    sudo firewall-cmd --permanent --add-service=http
    sudo firewall-cmd --permanent --add-port=8080/tcp
    sudo firewall-cmd --reload
    

  3. Check iptables rules:

    sudo iptables -L -n
    

Security Issues

SELinux Problems

Problem: SELinux blocking applications

Solutions: 1. Check SELinux status:

getenforce
sestatus

  1. Review SELinux denials:

    sudo sealert -a /var/log/audit/audit.log
    sudo ausearch -m avc -ts recent
    

  2. Temporarily set permissive mode:

    sudo setenforce 0
    

  3. Create SELinux policy:

    sudo audit2allow -M mypolicy < /var/log/audit/audit.log
    sudo semodule -i mypolicy.pp
    

Permission Issues

Problem: File permission problems

Solutions: 1. Check file permissions:

ls -la /path/to/file

  1. Fix ownership:

    sudo chown user:group /path/to/file
    

  2. Fix permissions:

    sudo chmod 644 /path/to/file
    sudo chmod 755 /path/to/directory
    

  3. Restore SELinux contexts:

    sudo restorecon -R /path/to/directory
    

Update and Upgrade Issues

Failed Updates

Problem: Package updates fail

Solutions: 1. Check for conflicts:

sudo dnf check
sudo dnf distro-sync --allowerasing

  1. Clear update cache:

    sudo dnf clean all
    sudo dnf makecache
    

  2. Update specific packages:

    sudo dnf update package-name
    

  3. Skip problematic packages:

    sudo dnf update --exclude=problematic-package
    

Kernel Update Issues

Problem: System won't boot after kernel update

Solutions: 1. Boot from older kernel: - Select older kernel from GRUB menu

  1. Remove problematic kernel:

    sudo dnf remove kernel-5.x.x
    

  2. Reinstall kernel:

    sudo dnf reinstall kernel
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    

Log Analysis and Debugging

System Log Analysis

# Check system logs for errors
sudo journalctl -p err --since "24 hours ago"
sudo journalctl -f

# Check specific service logs
sudo journalctl -u service-name --since "1 hour ago"

# Check boot logs
sudo journalctl -b

# Check kernel messages
dmesg | tail -20

Performance Debugging

# Monitor system performance
sar -u 1 10    # CPU usage
sar -r 1 10    # Memory usage
sar -d 1 10    # Disk I/O
sar -n DEV 1 10  # Network usage

# Check system load
uptime
top
htop

Getting Help

Information Collection

Before contacting support, collect:

# System information
uname -a
cat /etc/os-release
hostnamectl

# Hardware information
lscpu
free -h
lsblk

# Network information
ip addr show
ip route show

# Service status
systemctl --failed
systemctl list-unit-files --state=enabled

# Recent logs
sudo journalctl --since "24 hours ago" -p err

Support Channels

  1. CIQ Professional Support: Enterprise customers with support contracts
  2. Documentation: Latest guides and troubleshooting resources
  3. Community Forums: User community discussions
  4. Knowledge Base: Searchable database of solutions

Emergency Recovery

If system is unbootable:

  1. Boot from rescue media
  2. Mount root filesystem:
    mount /dev/sdXY /mnt
    chroot /mnt
    
  3. Fix issues and reboot
  4. Contact support if needed

For additional assistance, contact CIQ support or consult the latest documentation.