Skip to content

Daemon crashes during artifact upload for large projects (Connection reset by peer) #328

Description

@xinding33

Description

When running hurry cargo build on large projects with many compilation units (e.g., ~800 units), the daemon crashes during the artifact upload phase, resulting in a "Connection reset by peer" error.

Environment

  • OS: macOS (Darwin 24.6.0)
  • Hurry: v0.4.7

Steps to Reproduce

  1. Clone a large Rust project with many dependencies:

    git clone https://github.com/lancedb/lancedb
    cd lancedb
  2. Run hurry cargo build:

    hurry cargo build
  3. Wait for the build to complete. During the "Uploading cache" phase, the daemon crashes.

Expected Behavior

Artifacts should upload successfully without the daemon crashing.

Actual Behavior

The daemon process dies mid-upload, producing the following error:

Error:
   0: send upload status request to daemon at: http://[::1]:51379/api/v0/cargo/status
   1: error sending request for url (http://[::1]:51379/api/v0/cargo/status)
   2: client error (SendRequest)
   3: connection error
   4: Connection reset by peer (os error 54)

Location:
   packages/hurry/src/bin/hurry/cmd/cargo/build.rs:271

Daemon context:
   DaemonContext { pid: 72405, url: "[::1]:51379", log_file_path: /Users/xinding/Library/Caches/com.attunehq.hurry/v2/hurryd.72405.log }

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   0: hurry::cmd::cargo::build::wait_for_upload with request_id=2ce0491d-42eb-4a03-962c-49d706b75cac progress=[7.375µs] [0/794] Uploading cache
      at packages/hurry/src/bin/hurry/cmd/cargo/build.rs:247
   1: hurry::cmd::cargo::build::exec with options=Options { api_url: https://app.hurry.build/, api_token: Some([redacted]), skip_backup: false, skip_build: false, skip_restore: false, async_upload: false, help: false, argv: [] }
      at packages/hurry/src/bin/hurry/cmd/cargo/build.rs:108

Additional Context

  • Daemon log file is empty (0 bytes): /Users/xinding/Library/Caches/com.attunehq.hurry/v2/hurryd.72405.log

Activity

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