document/content/self-host/upgrading/4-16/4161.en.mdx
When Agent Sandbox is enabled, check the following settings in both fastgpt-app and fastgpt-pro. Version 4.16.1 uses a single full runtime image reference:
# Standard non-root image, used by default
AGENT_SANDBOX_OPENSANDBOX_IMAGE=ghcr.io/labring/fastgpt-agent-sandbox:v0.3.1
If sandboxes need to install apt packages, use the root image. You can configure an apt mirror if needed:
AGENT_SANDBOX_OPENSANDBOX_IMAGE=ghcr.io/labring/fastgpt-agent-sandbox-root:v0.3.1
AGENT_SANDBOX_APT_MIRROR=https://archive.ubuntu.com/ubuntu
For the complete image list for China Mainland and global registries, root/non-root image selection, and custom package registry settings, see OpenSandbox Configuration.
Run the migrations in this release order:
initHttpToolSchema first. This converts legacy manual HTTP array parameters to standard JSON Schema.initToolJsonSchemaStorage from this section.Environments that already completed initHttpToolSchema on 4.16.0 do not need to run it again. Version 4.16.1 checks the HTTP tool apps and their historical versions covered by the 4.16.0 migration. If those records still contain legacy array types, the API refuses to run so the old data is not converted directly to strings. The migration only processes MCP/HTTP tool apps and their historical versions; regular Workflow apps are excluded.
V4.16.1 stores MCP/HTTP tool JSON Schemas as strings. Run a dry run first:
curl -X POST 'https://δ½ ηεε/api/admin/4161/initToolJsonSchemaStorage' \
-H 'Content-Type: application/json' \
-H 'rootkey: δ½ ηROOT_KEY' \
-d '{"dryRun":true}'
After confirming total.changedDocumentCount, run the migration:
curl -X POST 'https://δ½ ηεε/api/admin/4161/initToolJsonSchemaStorage' \
-H 'Content-Type: application/json' \
-H 'rootkey: δ½ ηROOT_KEY' \
-d '{"dryRun":false}'
devapi endpoints.--allow-net permission was not configured.