Server Maintenance

System Updates

  1. Log in to the server:
    ssh root@URL
    
  2. Install available updates:
    apt-get update && apt-get upgrade -y
    
  3. Check logs for `containerd.io:
  • If present, all containers will restart after the update, causing downtime.
  • If absent, containers are likely to remain running.
  1. Check logs for The following packages have been kept back:
  • If present, these packages require manual installation due to new dependencies:
    apt install PACKAGE_LIST
    
  1. Remove unused packages:
    apt autoremove -y
    
  2. Reboot if necessary:
  • If a restart is required:
    reboot
    
  • After rebooting, log back in:
    ssh root@<URL>
    
  1. Verify container status:
    docker ps
    

DeployParty Updates

  1. Log in to the server:
    ssh root@URL
    
  2. Navigate to DeployParty configuration:
    cd /var/opt/deploy-party/
    
  3. View past update commands:
    history | grep COMMAND
    
  4. Run the update command:
    sh update.sh URL_OF_DEPLOY_PARTY GITLAB_TOKEN
    
  5. Check if DeployParty containers are running:
    docker ps
    

Cleaning Up Disk Space

  • Clean up unused Docker resources:
    docker system prune
    

Monitoring System Health

  • Memory usage:
    free -m
    
  • Disk partitions and usage:
    df -h
    
  • CPU usage:
    top
    
  • Check active ports:
    lsof -i -P -n | grep LISTEN