19825479 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 02:21.887
Run Time 00:02.015
Inserted 12h ago
Scheduled 10h ago
Completed 10h ago (00:03)
Cancelled
Discarded

Args

%{
  "account_id" => "143656",
  "date" => "2026-03-06",
  "query" => "users_reached",
  "window_days" => 1
}

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772761211508699,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYFjdUi6dVJqZk5JaFJ9alppXEo+iIpGhXCKvoDi+uLSoLLUSXQ4A60UfCw",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-798f-7416-9825-cecad5a10117"
}

Recorded Output

%{
  users_reached: 43908,
  builder_event_users_reached: 0,
  nps_survey_users_reached: 0
}

Errors

Attempt 2—10h ago

** (FunctionClauseError) no function clause matching in Ch.RowBinary.decode_names/4

The following arguments were given to Ch.RowBinary.decode_names/4:

    # 1
    "375 (official build))\n"

    # 2
    52

    # 3
    67

    # 4
    ["eadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7", "MergeTreeSelect(pool: Prefetched", "ror. It can mean that some retryable error happened, or data is corrupted. Please retry the query: While executing", "hile reading column attributes): (attempt to read data part all_4563425_4567347_9_22488012 (state Active) failed with e", "rent write offset: 10846470144, caller id: 7b8fe795-51fc-419d-9de7-57d7242a23f5:1634, kind: Regular, unbound: 0: (", "304, reserved size: 4194304, downloader id: None, cu", "DOWNLOADED, downloaded size: 419", "470143], key: 267f0568df5ddc4b86b2636061b2eba2, state:", "File segment: [10842275840, 1084", "-51fc-419d-9de7-57d7242a23f5:1634, file segment info:", "ad_until_position: 10844625909, internal buffer end: 2328951, read_type: CACHED, last caller: 7b8fe79", "doblystzlwpq, hash key: 267f0568df5ddc4b86b2636061b2eba2, file_offset_of_buffer_end: 10844604791, r", "ut error: Cache info: Buffer path: ch-s3-ec4/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/djs/gmjbvrcpmcrbzkmq", "061b2eba2/10842275840: , errno: 5, strerror: Input/out", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/267/267f0568df5ddc4b86b263"]

    (ch 0.7.1) lib/ch/row_binary.ex:789: Ch.RowBinary.decode_names/4
    (ch 0.7.1) lib/ch/query.ex:290: DBConnection.Query.Ch.Query.decode/3
    (db_connection 2.9.0) lib/db_connection.ex:1470: DBConnection.decode/4
    (db_connection 2.9.0) lib/db_connection.ex:849: DBConnection.execute/4
    (ch 0.7.1) lib/ch.ex:94: Ch.query/4
    (ecto_sql 3.13.4) lib/ecto/adapters/sql.ex:620: Ecto.Adapters.SQL.query!/4
    (ecto_ch 0.8.6) lib/ecto/adapters/clickhouse.ex:323: Ecto.Adapters.ClickHouse.execute/5
    (ecto 3.13.5) lib/ecto/repo/queryable.ex:241: Ecto.Repo.Queryable.execute/4

Attempt 1—10h ago

** (FunctionClauseError) no function clause matching in Ch.RowBinary.decode_names/4

The following arguments were given to Ch.RowBinary.decode_names/4:

    # 1
    "375 (official build))\n"

    # 2
    52

    # 3
    67

    # 4
    ["eadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7", "MergeTreeSelect(pool: Prefetched", "ror. It can mean that some retryable error happened, or data is corrupted. Please retry the query: While executing", "hile reading column attributes): (attempt to read data part all_4563425_4567347_9_22488012 (state Active) failed with e", "rent write offset: 10846470144, caller id: 9aac51b5-cf13-43ea-9a04-f6cf8f204c0e:2079, kind: Regular, unbound: 0: (", "304, reserved size: 4194304, downloader id: None, cu", "DOWNLOADED, downloaded size: 419", "470143], key: 267f0568df5ddc4b86b2636061b2eba2, state:", "File segment: [10842275840, 1084", "-cf13-43ea-9a04-f6cf8f204c0e:2079, file segment info:", "ad_until_position: 10844625909, internal buffer end: 2328951, read_type: CACHED, last caller: 9aac51b", "doblystzlwpq, hash key: 267f0568df5ddc4b86b2636061b2eba2, file_offset_of_buffer_end: 10844604791, r", "ut error: Cache info: Buffer path: ch-s3-ec4/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/djs/gmjbvrcpmcrbzkmq", "061b2eba2/10842275840: , errno: 5, strerror: Input/out", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/267/267f0568df5ddc4b86b263"]

    (ch 0.7.1) lib/ch/row_binary.ex:789: Ch.RowBinary.decode_names/4
    (ch 0.7.1) lib/ch/query.ex:290: DBConnection.Query.Ch.Query.decode/3
    (db_connection 2.9.0) lib/db_connection.ex:1470: DBConnection.decode/4
    (db_connection 2.9.0) lib/db_connection.ex:849: DBConnection.execute/4
    (ch 0.7.1) lib/ch.ex:94: Ch.query/4
    (ecto_sql 3.13.4) lib/ecto/adapters/sql.ex:620: Ecto.Adapters.SQL.query!/4
    (ecto_ch 0.8.6) lib/ecto/adapters/clickhouse.ex:323: Ecto.Adapters.ClickHouse.execute/5
    (ecto 3.13.5) lib/ecto/repo/queryable.ex:241: Ecto.Repo.Queryable.execute/4