Notifications
Clear all

How to Reinstall the Coolify installation? from SSH Terminal

1 Posts
1 Users
0 Reactions
283 Views
(@admin_rgj0igbq)
Posts: 38
Member Admin
Topic starter
 

You want to remove your existing Coolify installation, including all projects and data, and then perform a fresh reinstall to fix dashboard issues. This is essentially a "clean slate" approach.

Here's a detailed guide to doing that via SSH, keeping in mind the current date (June 17, 2025):

Crucial Warning: Data Loss Ahead!

This process will permanently delete all your existing Coolify projects, applications, databases, and configurations. There is no undo. If you have any data you wish to keep, you MUST back it up externally before proceeding.

Steps to Reset and Reinstall Coolify from SSH:

  1. Connect to Your Server via SSH: Open your terminal and connect to your server.

    Bash

    Β 
    ssh your_username@your_server_ip
    

    Replace your_username with your actual SSH username (e.g., root, ubuntu, debian) and your_server_ip with the IP address or hostname of your server.

  • Become the Root User (Recommended): Coolify installation and uninstallation steps often require root privileges.

    Bash

    Β 
    sudo su -
    

    Enter your password if prompted.

  • Stop All Coolify-Related Docker Containers: It's essential to stop all running containers managed by Coolify to prevent issues during removal.

    Bash

    Β 
    docker stop $(docker ps -q --filter "name=coolify" --filter "name=coolify-proxy" --filter "name=coolify-realtime")
    

    This command targets containers likely named with coolify, coolify-proxy, and coolify-realtime. If you have other containers that might be associated, you might need to adjust this.

  • Remove All Coolify-Related Docker Containers: This will delete the stopped containers.

    Bash

    Β 
    docker rm $(docker ps -a -q --filter "name=coolify" --filter "name=coolify-proxy" --filter "name=coolify-realtime")
    
  • Remove Coolify Docker Volumes: This is the most critical step for data removal. Coolify stores its persistent data in Docker volumes. Removing them will delete your projects, databases, and configurations.

    Bash

    Β 
    docker volume rm $(docker volume ls -q --filter "name=coolify" --filter "name=coolify-db" --filter "name=coolify_coolify-db" --filter "name=coolify_coolify-proxy-config")
    

    You might see some errors like "No such volume" if some volumes don't exist, which is fine.

  • Remove Coolify Docker Images (Optional but Recommended for a Super Clean Start): This will remove the Docker images Coolify uses. They will be re-downloaded during the fresh install.

    Bash

    Β 
    docker rmi $(docker images -q --filter "label=com.coollabs.coolify=true")
    docker rmi coollabsio/coolify:latest
    docker rmi coollabsio/coolify-proxy:latest
    

    Again, some errors are expected if images are not found.

  • Remove Coolify Data Directory: Coolify also uses a data directory on the host filesystem, typically /data/coolify.

    Bash

    Β 
    rm -rf /data/coolify
    

    EXTREME CAUTION: This command is highly destructive. Double-check that you have typed /data/coolify correctly and that you absolutely want to delete everything within it.

  • Remove Coolify Docker Network (Optional): If you want to ensure the Docker network created by Coolify is also gone:

    Bash

    Β 
    docker network rm coolify # Only if a network named 'coolify' exists
    
  • Verify Cleanup (Optional): You can run these commands to ensure nothing Coolify-related is left:

    Bash

    Β 
    docker ps -a --filter "name=coolify"
    docker volume ls --filter "name=coolify"
    ls -la /data/coolify # Should return "No such file or directory" or be empty
    
  • Reinstall Coolify: Now that your system is clean, proceed with the fresh installation.

    Bash

    Β 
    curl -fsSL  https://cdn.coollabs.io/coolify/install.sh  | sudo bash
    

    If you are already logged in as root, you can omit sudo.

    The installation script will:

    • Install Docker if it's not present.
    • Create the necessary /data/coolify directory.
    • Download the latest Coolify Docker Compose files and configurations.
    • Generate new SSH keys.
    • Start Coolify's services via Docker Compose.
  • Access Your Fresh Coolify Dashboard: Once the installation script finishes, it should provide you with instructions. Typically, you can access your new Coolify dashboard by opening your web browser and navigating to:

     http://your_server_ip:8000 
    

    Replace your_server_ip with your server's actual IP address.

    You will then go through the initial setup process (creating the first user, setting up the host, etc.) as if it were a brand new Coolify installation. This fresh start should help resolve any dashboard-related issues you were experiencing.

 
Posted : 17/06/2025 2:43 am
Share: