Repository navigation
Description
Summary
On a Docker install, self-update from v2.13 to v2.15 fails and rolls back to v2.13. The cause is not the network or user configuration. The dependency migration uses a hardcoded 60 second timeout, which is shorter than the real install time.
Steps to reproduce
- Docker Agent Zero on tag v2.13.
- Start self-update to tag v2.15.
- The updater fetches v2.15 and runs
prepare.pyandrun_ui.py. run_ui.pycallsinitialize.initialize_migration(), then the migrationextensions/python/startup_migration/_05_framework_dependencies.py.- That migration runs
uv pip installfor nine packages. - The install takes longer than 60 seconds.
subprocess.check_call(..., timeout=60)raisessubprocess.TimeoutExpired, the UI exits with code 1, and the updater rolls back to v2.13.
Expected behavior
Self-update should succeed and land on v2.15 even when the dependency install takes longer.
Actual behavior
The update rolls back to v2.13. From the status file:
status: rolled_back
message: 'Updated version failed its health check and the previous version was restored.
Reason: UI process exited with code 1 before passing the health check.'
error: UI process exited with code 1 before passing the health check.
From docker logs at the moment of failure:
subprocess.TimeoutExpired: Command '['/usr/local/bin/uv', 'pip', 'install', '--python', '/opt/venv-a0/bin/python',
'litellm==1.104.0', 'openai==2.54.0', 'python-dotenv==1.2.2', 'urllib3>=2.8.0', 'aiohttp>=3.14.3',
'anyio>=4.14.2', 'filelock>=3.20.3', 'fsspec>=2026.6.0', 'multidict>=6.9.1']' timed out after 60 seconds
Measured evidence
An isolated run of the same uv command in empty venvs, with private HOME/TMPDIR/UV_CACHE_DIR:
| Timeout | Result | Elapsed |
|---|---|---|
| 60 s | killed | 60.008 s |
| 300 s | success | 186.254 s |
With a 300 s timeout all requested versions installed: litellm 1.104.0, openai 2.54.0, python-dotenv 1.2.2, urllib3 2.8.0, aiohttp 3.14.5, anyio 4.16.0, filelock 3.32.7, fsspec 2026.9.0, multidict 7.2.1.
A retried self-update to v2.15 succeeded once the dependencies were already installed, so the migration had nothing to upgrade.
Suggested fix
- Increase or make configurable the timeout in the dependency migration. Real installs can take over 3 minutes on slower networks or disks.
- Consider treating the failure as resumable instead of the current
check_callabort that kills the whole UI process. - Consider not clearing the dependency cache unconditionally at the start of self-update, or make the install a resumable phase, since prewarming currently does not help.
Environment
- Docker install, Agent Zero v2.13 to v2.15.
- Framework runtime
/opt/venv-a0, Python 3.12.4. - Updater:
/exe/self_update_manager.py. - Migration:
/a0/extensions/python/startup_migration/_05_framework_dependencies.py.
Activity
JY-M666 commentedon Nov 5, 2026
我来处理这个问题。我会把依赖安装迁移的超时调整为适合较慢网络和首次安装的时长,并在 PR 中说明未运行测试。
sumer-man commentedon Nov 15, 2026
Yeah, I've been suffering from it myself. My bad mobile connection was taking >120s to fetch them (heavy litellm was the culprit). Wasn't able to upgrade until I asked A0 to warm-up and persist the cache before upgrade.
+1