Skip to content

Contracts are not renewing which leads to massive sector migrations #2000

@mantlik

Description

@mantlik

Current Behavior

Contracts are not being renewed due to following errors:
"""
2025-10-05T08:36:24-04:00 DEBUG autopilot.contractor.performContractMaintenance.abe1cccbb02f9708bcc55edb05324713 renewal failed {"contractID": "82984377aaa67418d6b9c4d79dc554800a40e69a4bffac886d5cb4beca20aade", "hostKey": "ed25519:e249be0fb3d1ddbb36b06f1407928c60195686aca89882267349c78f144ca8ce", "revisionNumber": 46237, "size": 50704941056, "state": "active", "usability": "good", "revisionAvailable": true, "wantedContracts": 50, "blockHeight": 544102, "blocked": false, "usable": true, "needsRefresh": false, "needsRenew": true, "reasons": ["contract is up for renewal; second half: false"], "to_renew": "82984377aaa67418d6b9c4d79dc554800a40e69a4bffac886d5cb4beca20aade", "hk": "ed25519:e249be0fb3d1ddbb36b06f1407928c60195686aca89882267349c78f144ca8ce", "hostVersion": "v5.0.1", "hostRelease": "hostd v2.4.1", "endHeight": 550150, "renterFunds": "44.045703370842750478450688 SC", "error": "couldn't renew/refresh contract: host responded with error: failed to read final response: failed to broadcast renewal set: transaction 63143c7c97095320cc0205428cb8964ee361d687fa195cc5230f8dd7f7f335f6 conflicts with pool: siacoin input 0 double-spends parent output (previously spent in 3fc9c865f0ce8ae2b4ff4a456b62477c864cf33ce49f8f64df6ca4e9a73e6515) (3)"}
2025-10-05T08:36:24-04:00 DEBUG autopilot.contractor.performContractMaintenance.abe1cccbb02f9708bcc55edb05324713 failed to renew contract {"contractID": "82984377aaa67418d6b9c4d79dc554800a40e69a4bffac886d5cb4beca20aade", "hostKey": "ed25519:e249be0fb3d1ddbb36b06f1407928c60195686aca89882267349c78f144ca8ce", "revisionNumber": 46237, "size": 50704941056, "state": "active", "usability": "good", "revisionAvailable": true, "wantedContracts": 50, "blockHeight": 544102, "blocked": false, "usable": true, "needsRefresh": false, "needsRenew": true, "reasons": ["contract is up for renewal; second half: false"], "ourFault": false, "error": "couldn't renew/refresh contract: host responded with error: failed to read final response: failed to broadcast renewal set: transaction 63143c7c97095320cc0205428cb8964ee361d687fa195cc5230f8dd7f7f335f6 conflicts with pool: siacoin input 0 double-spends parent output (previously spent in 3fc9c865f0ce8ae2b4ff4a456b62477c864cf33ce49f8f64df6ca4e9a73e6515) (3)"}
"""
Because of this, sectors are being massively migrated, which significantly increases cost of storage.

Expected Behavior

Contracts should be renewed by default 2 weeks before expiry without error and sectors should be kept and remain available on the same host.

Steps to Reproduce

No need to take any action. Just wait until a contract is due for renewal.

Version

c2.7.0

What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?

Ubuntu

Autopilot Config

N/A

Bus Config

N/A

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions