Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitAuto: 离线安装步骤 - DaoCloud Enterprise #5515

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/installation/troubleshooting_interrupted_installation.md
Original file line number Diff line number Diff line change
@@ -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 <container_id>
```

2. **Remove Temporary Files and Configurations**
- Clear any temporary files or configurations that may have been partially applied.
20 changes: 20 additions & 0 deletions scripts/cleanup_environment.sh
Original file line number Diff line number Diff line change
@@ -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."
Loading