Skip to content

Self-update to v2.15 rolls back: dependency install times out after 60s #2010

Open

Description

@Raleksand

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

  1. Docker Agent Zero on tag v2.13.
  2. Start self-update to tag v2.15.
  3. The updater fetches v2.15 and runs prepare.py and run_ui.py.
  4. run_ui.py calls initialize.initialize_migration(), then the migration extensions/python/startup_migration/_05_framework_dependencies.py.
  5. That migration runs uv pip install for nine packages.
  6. The install takes longer than 60 seconds. subprocess.check_call(..., timeout=60) raises subprocess.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

  1. Increase or make configurable the timeout in the dependency migration. Real installs can take over 3 minutes on slower networks or disks.
  2. Consider treating the failure as resumable instead of the current check_call abort that kills the whole UI process.
  3. 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

  1. JY-M666 commented on Nov 5, 2026

    @JY-M666

    我来处理这个问题。我会把依赖安装迁移的超时调整为适合较慢网络和首次安装的时长,并在 PR 中说明未运行测试。

  2. sumer-man commented on Nov 15, 2026

    @sumer-man

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions