19817507 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 4 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 02:38.202
Run Time 00:03.955
Inserted 12h ago
Scheduled 10h ago
Completed 10h ago (00:04)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772759310232159,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGBpKpdOKs3MSUktik8tS80riUdRkZhTLpFXUBxfXFpUllqJJscAAM8+Hs4",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-789a-79e2-bc54-dd01df811c80"
}

Recorded Output

%{
  users_reached: 1154,
  builder_event_users_reached: 108,
  nps_survey_users_reached: 0
}

Errors

Attempt 3—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
    54

    # 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 user_id): (attempt to read data part all_12058504_12396310_52_22488012 (state Active) failed with e", "te offset: 1103101952, caller id: c6f01eff-b600-422e-b76a-9691495755f2:1803, kind: Regular, unbound: 0: (", "te: DOWNLOADED, downloaded size: 4194304, reserved size: 4194304, downloader id: None, current wr", ", 1103101951], key: 482547c9ebc1f3e40d06e86393573888, st", "5f2:1803, file segment info: File segment: [109890764", "osition: 1098943057, internal buffer end: 2779, read_type: CACHED, last caller: c6f01eff-b600-422e-b76a-96914957", "nknhff, hash key: 482547c9ebc1f3e40d06e86393573888, file_offset_of_buffer_end: 1098910427, read_until_", "t error: Cache info: Buffer path: ch-s3-e8e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ure/wqiltifzldkvsaxnordhwi", "393573888/1098907648: , errno: 5, strerror: Input/outp", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/482/482547c9ebc1f3e40d06e8"]

    (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 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
    "OT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official build))\n"

    # 2
    54

    # 3
    67

    # 4
    ["ted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANN", "error happened, or data is corru", "o read data part all_12058504_12396310_52_22488012 (state Active) failed with error. It can mean that some retryable", "while reading column user_id): (attempt ", "ac-8d94-8fc1e748b5db:2067, kind: Regular, unbound: 0: ", "rved size: 4194304, downloader id: None, current write offset: 1103101952, caller id: c02baf26-3264-4", "3573888, state: DOWNLOADED, downloaded size: 4194304, res", "5db:2067, file segment info: File segment: [1098907648, 1103101951], key: 482547c9ebc1f3e40d06e863", "osition: 1098943057, internal buffer end: 2779, read_type: CACHED, last caller: c02baf26-3264-46ac-8d94-8fc1e748", "nknhff, hash key: 482547c9ebc1f3e40d06e86393573888, file_offset_of_buffer_end: 1098910427, read_until_", "t error: Cache info: Buffer path: ch-s3-e8e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ure/wqiltifzldkvsaxnordhwi", "393573888/1098907648: , errno: 5, strerror: Input/outp", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/482/482547c9ebc1f3e40d06e8"]

    (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—11h ago

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

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

    # 1
    "R) (version 25.10.1.7375 (official build))\n"

    # 2
    53

    # 3
    67

    # 4
    ["cuting MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTO", "n mean that some retryable error happened, or data is corrupted. Please retry the query: While ex", " user_id): (attempt to read data part all_12058504_12396310_52_22488012 (state Active) failed with error. It c", "unbound: 0: (while reading colum", " 06095cbb-b364-40cf-890b-b8f9d432cd10:1609, kind: Regular,", " current write offset: 1103101952, caller id", " reserved size: 4194304, downloader id: None", "573888, state: DOWNLOADED, downloaded size: 4194304", "d10:1609, file segment info: File segment: [1098907648, 1103101951], key: 482547c9ebc1f3e40d06e8639", "osition: 1098943057, internal buffer end: 2779, read_type: CACHED, last caller: 06095cbb-b364-40cf-890b-b8f9d432", "nknhff, hash key: 482547c9ebc1f3e40d06e86393573888, file_offset_of_buffer_end: 1098910427, read_until_", "t error: Cache info: Buffer path: ch-s3-e8e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ure/wqiltifzldkvsaxnordhwi", "393573888/1098907648: , errno: 5, strerror: Input/outp", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/482/482547c9ebc1f3e40d06e8"]

    (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