Skip to content

docs: add an AstrBot upgrade guide - #11625

Merged
Soulter merged 1 commit into
masterfrom
docs/astrbot-update-guide
Dec 3, 2026
Merged

Soulter merged 1 commit into
masterfrom
docs/astrbot-update-guide

Conversation

@Soulter

@Soulter Soulter commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add Chinese and English upgrade guides for desktop, Launcher, package installs, Docker, Kubernetes, and source deployments.
  • Add the guide to the deployment sidebar and link to it from the script installation and WebUI documentation.

Validation

  • Built the documentation with VitePress.
  • Passed the documentation link check and Ruff format and lint checks.

Summary by Sourcery

Document recommended AstrBot upgrade procedures for each supported installation method.

Documentation:

  • Add Chinese and English upgrade guides covering desktop, Launcher, package, Docker, Kubernetes, source, and WebUI-only updates.
  • Link the upgrade guide from deployment navigation, package-install guidance, and WebUI documentation.

@Soulter
Soulter requested review from RC-CHN and Raven95676 December 3, 2026 05:18

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 4 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="docs/en/deploy/update.md" line_range="85" />
<code_context>
+
+Stop AstrBot, then run `git pull --ff-only` in the original checkout to update its tracked branch. If you deploy from a release tag, run `git fetch --tags` and then `git switch --detach <version-tag>` to select the target version. Save and handle any local code changes before updating.
+
+Sync dependencies from the updated source directory and start AstrBot as usual. For a source checkout managed by uv, run `uv sync` followed by `uv run main.py`. For a Python virtual environment, run `python -m pip install -r requirements.txt` in that environment, followed by `python main.py`. [Source deployment](./astrbot/cli.md)
+
+If you run AstrBot directly from release source code, you can also open **⋮ → Update AstrBot** in the upper right of the browser WebUI and click **Switch** next to the target release. Wait for AstrBot to restart.
</code_context>
<issue_to_address>
**Plugin dependencies disappear after updates**

When a uv-managed source deployment has installed plugins, especially when their dependencies are outside AstrBot’s lockfile, `uv sync` removes those dependencies as extraneous, and `uv run main.py` synchronizes again by default; plugins then lack dependencies and fail to load, or the repeated reinstall fails.

Use `uv sync --inexact` to preserve extraneous plugin dependencies, then start with `uv run --no-sync main.py` to avoid synchronizing again.

Also at `docs/zh/deploy/update.md:85`.
</issue_to_address>

### Comment 2
<location path="docs/en/deploy/update.md" line_range="49" />
<code_context>
+From the original Compose project directory, pull the image and recreate the AstrBot service. These commands use `astrbot`, the service name in the official Compose file.
+
+```bash
+docker compose pull astrbot
+docker compose up -d astrbot
+```
</code_context>
<issue_to_address>
**Docker updates fail without elevated access**

When the Linux user cannot access the Docker daemon without sudo, `docker compose pull astrbot` and `docker compose up -d astrbot` fail with a daemon permission error, so the AstrBot container remains on its old version.

Prefix both Compose commands with `sudo` in the Linux instructions.

Also at `docs/en/deploy/update.md:63-65`, `docs/zh/deploy/update.md:49-50`, `docs/zh/deploy/update.md:63-65`.
</issue_to_address>

### Comment 3
<location path="docs/en/deploy/update.md" line_range="17" />
<code_context>
+
+In AstrBot Launcher, click **可更新** (Update available) in the **版本** (Version) column and confirm the instance upgrade. To choose a specific version, stop the instance, open its **设置** (Settings), select a version, and save. After updating, verify that the instance is running the new version. [AstrBot Launcher](https://github.com/AstrBotDevs/astrbot-launcher)
+
+## Official install scripts, uv, and pip {#package}
+
+Installations managed by the official install scripts, uv, or pip require a terminal upgrade. Stop the running AstrBot process before updating. [Official install scripts](./astrbot/package.md)
</code_context>
<issue_to_address>
**AUR upgrades are undocumented**

When astrBot was installed from the AUR, the listed uv and pip commands do not upgrade the AUR package, so Arch users cannot follow this guide to update AstrBot installed as `astrbot-git`.

Add the appropriate AUR package upgrade steps, including any required service restart.

Also at `docs/zh/deploy/update.md:17`.
</issue_to_address>

### Comment 4
<location path="docs/en/deploy/update.md" line_range="3" />
<code_context>
+# Update AstrBot
+
+Follow the recommended upgrade steps for your installation method.
+
+## Desktop client {#desktop}
</code_context>
<issue_to_address>
**Panel deployments lack upgrade steps**

When a user installed AstrBot from the 1Panel or BT Panel app store, the guide gives no upgrade procedure for users who installed AstrBot through 1Panel or the BT Panel app store, so those users cannot follow the recommended steps for their installation method.

Add upgrade instructions for the panel app-store deployments, or explain how users of those panels should apply the Docker upgrade procedure.

Also at `docs/zh/deploy/update.md:3`.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 4 findings to address first, and the docker run upgrade steps tell users to stop and remove the old container; if they proceed without a working host mount for /AstrBot/data, container-local data is deleted and recreating the container will not restore it. The guide warns users to verify the mount, but a mistaken or incomplete verification can still leave data unrecoverable after the container is removed.

Blocking findings: docs/en/deploy/update.md:85, docs/en/deploy/update.md:49, docs/en/deploy/update.md:17, docs/en/deploy/update.md:3


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread docs/en/deploy/update.md

Stop AstrBot, then run `git pull --ff-only` in the original checkout to update its tracked branch. If you deploy from a release tag, run `git fetch --tags` and then `git switch --detach <version-tag>` to select the target version. Save and handle any local code changes before updating.

Sync dependencies from the updated source directory and start AstrBot as usual. For a source checkout managed by uv, run `uv sync` followed by `uv run main.py`. For a Python virtual environment, run `python -m pip install -r requirements.txt` in that environment, followed by `python main.py`. [Source deployment](./astrbot/cli.md)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Plugin dependencies disappear after updates

When a uv-managed source deployment has installed plugins, especially when their dependencies are outside AstrBot’s lockfile, uv sync removes those dependencies as extraneous, and uv run main.py synchronizes again by default; plugins then lack dependencies and fail to load, or the repeated reinstall fails.

Use uv sync --inexact to preserve extraneous plugin dependencies, then start with uv run --no-sync main.py to avoid synchronizing again.

Also at docs/zh/deploy/update.md:85.

Prompt for AI agents
In `docs/en/deploy/update.md` at line 85:

**Plugin dependencies disappear after updates**

When a uv-managed source deployment has installed plugins, especially when their dependencies are outside AstrBot’s lockfile, `uv sync` removes those dependencies as extraneous, and `uv run main.py` synchronizes again by default; plugins then lack dependencies and fail to load, or the repeated reinstall fails.

Use `uv sync --inexact` to preserve extraneous plugin dependencies, then start with `uv run --no-sync main.py` to avoid synchronizing again.

Also at `docs/zh/deploy/update.md:85`.

Comment thread docs/en/deploy/update.md
From the original Compose project directory, pull the image and recreate the AstrBot service. These commands use `astrbot`, the service name in the official Compose file.

```bash
docker compose pull astrbot

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Docker updates fail without elevated access

When the Linux user cannot access the Docker daemon without sudo, docker compose pull astrbot and docker compose up -d astrbot fail with a daemon permission error, so the AstrBot container remains on its old version.

Prefix both Compose commands with sudo in the Linux instructions.

Also at docs/en/deploy/update.md:63-65, docs/zh/deploy/update.md:49-50, docs/zh/deploy/update.md:63-65.

Prompt for AI agents
In `docs/en/deploy/update.md` at line 49:

**Docker updates fail without elevated access**

When the Linux user cannot access the Docker daemon without sudo, `docker compose pull astrbot` and `docker compose up -d astrbot` fail with a daemon permission error, so the AstrBot container remains on its old version.

Prefix both Compose commands with `sudo` in the Linux instructions.

Also at `docs/en/deploy/update.md:63-65`, `docs/zh/deploy/update.md:49-50`, `docs/zh/deploy/update.md:63-65`.

Comment thread docs/en/deploy/update.md

In AstrBot Launcher, click **可更新** (Update available) in the **版本** (Version) column and confirm the instance upgrade. To choose a specific version, stop the instance, open its **设置** (Settings), select a version, and save. After updating, verify that the instance is running the new version. [AstrBot Launcher](https://github.com/AstrBotDevs/astrbot-launcher)

## Official install scripts, uv, and pip {#package}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · AUR upgrades are undocumented

When astrBot was installed from the AUR, the listed uv and pip commands do not upgrade the AUR package, so Arch users cannot follow this guide to update AstrBot installed as astrbot-git.

Add the appropriate AUR package upgrade steps, including any required service restart.

Also at docs/zh/deploy/update.md:17.

Prompt for AI agents
In `docs/en/deploy/update.md` at line 17:

**AUR upgrades are undocumented**

When astrBot was installed from the AUR, the listed uv and pip commands do not upgrade the AUR package, so Arch users cannot follow this guide to update AstrBot installed as `astrbot-git`.

Add the appropriate AUR package upgrade steps, including any required service restart.

Also at `docs/zh/deploy/update.md:17`.

Comment thread docs/en/deploy/update.md
@@ -0,0 +1,95 @@
# Update AstrBot

Follow the recommended upgrade steps for your installation method.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Panel deployments lack upgrade steps

When a user installed AstrBot from the 1Panel or BT Panel app store, the guide gives no upgrade procedure for users who installed AstrBot through 1Panel or the BT Panel app store, so those users cannot follow the recommended steps for their installation method.

Add upgrade instructions for the panel app-store deployments, or explain how users of those panels should apply the Docker upgrade procedure.

Also at docs/zh/deploy/update.md:3.

Prompt for AI agents
In `docs/en/deploy/update.md` at line 3:

**Panel deployments lack upgrade steps**

When a user installed AstrBot from the 1Panel or BT Panel app store, the guide gives no upgrade procedure for users who installed AstrBot through 1Panel or the BT Panel app store, so those users cannot follow the recommended steps for their installation method.

Add upgrade instructions for the panel app-store deployments, or explain how users of those panels should apply the Docker upgrade procedure.

Also at `docs/zh/deploy/update.md:3`.

@mantoujun12

Copy link
Copy Markdown
Collaborator

Refs #11620 - 提及到使用 uv 部署 AstrBot 无法在应用内更新的问题;目前 #11621 的解决方案是在 uv 部署时,应用内尝试更新会返回稳定错误码,WebUI 更新进度面板会识别该错误,并提供对应的升级命令。

@Soulter
Soulter merged commit 44447db into master Dec 3, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants