Deployment FAQ
This document collects common deployment questions and practical troubleshooting paths for Astron Agent.
1. How Do I Upgrade An Existing Deployment
If you already have Astron Agent running and want to upgrade to the latest version, follow these steps:
Upgrade Steps
bash
# Enter the astronAgent directory
cd docker/astronAgent
# Stop all services, including Casdoor
docker compose -f docker-compose-with-auth.yaml down
# Fetch the latest code
git fetch
git pull
# Pull the latest images
docker compose -f docker-compose-with-auth.yaml pull
# Reconfigure and start again based on the deployment docs
# Refer to DEPLOYMENT_GUIDE_WITH_AUTH for the latest setup stepsNotes
- Back up important data before upgrading
- If you use the deployment without authentication, replace
docker-compose-with-auth.yamlwithdocker-compose.yaml - Review whether configuration files need updates after the upgrade
- Start the services only after confirming all environment variables are correct
2. What If The Web Page Does Not Open After Deployment
Use the following checklist step by step. Back up important data before performing destructive operations.
- Run
docker compose -f docker-compose-with-auth.yaml down -vto clear containers and volumes. This removes all persisted data. - Run
git restore dockerto discard local changes under thedockerdirectory and return to the repository version. - Set the
ASTRON_AGENT_VERSIONenvironment variable to a stable release such asv1.0.0-rc.x. - Reconfigure the remaining environment variables according to the deployment guide and verify the values carefully.
- Run
docker compose -f docker-compose-with-auth.yaml up -dto start all services again. - Clear the browser cache or open the page in an incognito window.
3. What If Official Docker Images Fail To Pull Because Of Network Issues
- For Astron Agent images, edit
docker/astronAgent/docker-compose.yamland replace theghcr.io/prefix in the relevantimagefields withghcr.nju.edu.cn/. - For middleware and other third-party images, switch Docker to a domestic mirror such as
https://docker.nju.edu.cn,https://docker.xuanyuan.me, orhttps://docker.mirrors.ustc.edu.cn.
4. What If git clone Fails Because Of Network Issues
- Use a GitHub mirror to clone the repository, for example:
git clone https://gitclone.com/github.com/iflytek/astron-agent.git - If you need more mirrors, check continuously updated mirror lists such as
https://freevaults.com/github-mirror-daily-updates.html.
