From da2b9c2a4f6fd255a271749175c55a6265c0e04d Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 00:04:38 +0000 Subject: [PATCH 1/2] Update docs/installation/troubleshooting_interrupted_installation.md. --- ...troubleshooting_interrupted_installation.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docs/installation/troubleshooting_interrupted_installation.md diff --git a/docs/installation/troubleshooting_interrupted_installation.md b/docs/installation/troubleshooting_interrupted_installation.md new file mode 100644 index 0000000000..477ce7e9db --- /dev/null +++ b/docs/installation/troubleshooting_interrupted_installation.md @@ -0,0 +1,18 @@ +# Troubleshooting Interrupted Installation + +If the `dce5-installer` command is interrupted, follow these steps to clean up your environment and prepare for a reinstallation: + +## Step-by-Step Cleanup Guide + +1. **Stop Running Containers** + - Use the following command to list all running containers: + ```bash + podman ps + ``` + - Stop any containers related to the installation using: + ```bash + podman stop + ``` + +2. **Remove Temporary Files and Configurations** + - Clear any temporary files or configurations that may have been partially applied. \ No newline at end of file From 6632a783c1689a5f01fe9e96922d46b3b90ab15f Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 00:04:45 +0000 Subject: [PATCH 2/2] Update scripts/cleanup_environment.sh. --- scripts/cleanup_environment.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scripts/cleanup_environment.sh diff --git a/scripts/cleanup_environment.sh b/scripts/cleanup_environment.sh new file mode 100644 index 0000000000..311a01a142 --- /dev/null +++ b/scripts/cleanup_environment.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Cleanup script for interrupted DaoCloud Enterprise installation + +echo "Starting cleanup process..." + +# Stop running containers +containers=$(podman ps -q --filter "name=dce-cluster-installer") +if [ -n "$containers" ]; then + echo "Stopping running containers..." + podman stop $containers + podman rm $containers +else + echo "No running containers found." +fi + +# Remove temporary files +echo "Removing temporary files..." +rm -rf /path/to/temp/files/* + +echo "Cleanup completed successfully." \ No newline at end of file