Skip to content

[Arkiv - beta tests report] Activities Checkup Error – Invalid Subscription ID Format #3496

@nieznanysprawiciel

Description

@nieznanysprawiciel

Activities Checkup Error – Invalid Subscription ID Format

Summary

Error occurs when checking activities on yagna start:

Failed to list Agreements. Err: Market API error: Failed to update state.
Error: Subscription id [5128033ae5f0434592017345c4d30920-dd055ace2a569bc6486e398511266b86a193227bd9ffcf2f1ac281ce949062b3]
contains non hexadecimal characters.

Root Cause

This issue is caused by old Agreements stored in the local database.
In previous Yagna versions, the subscription ID format was longer.
Newer versions use Arkiv keys as subscription IDs.
Old entries with the previous format lead to parsing failures when the Market API attempts to list or update Agreements.

Impact

  • The error appears when listing Agreements (e.g., during Activities checkup).
  • It does not affect new tasks — only data from older Yagna runs.
  • The affected functionality tries to track and terminate stale Activities from previous runs.
    • This was useful in the GamerHash scenario.
    • In the general Golem scenario, it is not relevant.
  • As long as old Agreements remain in the database, this error will always appear when listing Agreements and will prevent code for subsequent Agreements to execute, effectively disabling mentioned functionality.

Potential Side Effects

  • Payments may also be affected, but only for unpaid old Agreements.
    Attempting to query such entries can trigger the same error.
  • New Agreements and payments are unaffected.

Recommendations

  • Users should back up old databases if they want to preserve unpaid Agreements
    (so they can revert to an older Yagna version to handle them).
  • New instances should start with a clean database state.
    • The yagna.db identity database should be preserved to avoid losing the key.
  • Consider adding migration or validation logic to safely skip invalid Agreement entries.

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