19832703 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 5 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 00:00.889
Run Time 00:01.061
Inserted 1d ago
Scheduled 1d ago
Completed 1d ago (00:02)
Cancelled
Discarded

Args

%{
  "account_id" => "219701",
  "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" => 1772761426837413,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUlMLpdOKs3MSUktik8tS80riUeVZiiXyCsoji8uLSpLrUSXAwCmXB4+",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7a53-70a4-8138-71311998a086"
}

Recorded Output

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

Errors

Attempt 4—1d ago

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

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

    # 1
    "ld))\n"

    # 2
    53

    # 3
    67

    # 4
    ["dPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official bui", "ned, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedRe", "a part all_15671711_15674174_7_22488012 (state Active) failed with error. It can mean that some retryable error happ", " 0: (while reading column attributes): (attempt to read da", "69-bc85-584ba646d70c:2093, kind: Regular, unbound", "rved size: 4194304, downloader id: None, current write offset: 4408213504, caller id: b36b5896-10e5-4", "8ec4b, state: DOWNLOADED, downloaded size: 4194304, res", "ile segment: [4404019200, 4408213503], key: ef4a64d892afe429bb4df627f6", "96-10e5-4169-bc85-584ba646d70c:2093, file segment info: ", "d_until_position: 4406618553, internal buffer end: 2536563, read_type: CACHED, last caller: b36b5", "bummwaqnhtatdrrv, hash key: ef4a64d892afe429bb4df627f678ec4b, file_offset_of_buffer_end: 4406555763, re", "utput error: Cache info: Buffer path: ch-s3-3dc/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/bwi/oxodnrczdkzj", "7f678ec4b/4404019200: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/ef4/ef4a64d892afe429bb4df6"]

    (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 3—1d 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", "ll_15671711_15674174_7_22488012 (state Active) failed with error. It can mean that some retryable", "28c:2073, kind: Regular, unbound: 0: (while reading column attributes): (attempt to read data part ", "13504, caller id: e6106a0a-655c-4f06-b07a-0c0e6e11", "04, downloader id: None, current write offset: 4408", "y: ef4a64d892afe429bb4df627f678ec4b, state: DOWNLOADED, downloaded size: 4194304, reserved size: 4194", "0a-655c-4f06-b07a-0c0e6e11c28c:2073, file segment info: File segment: [4404019200, 4408213503], k", "d_until_position: 4406618553, internal buffer end: 2536563, read_type: CACHED, last caller: e6106", "bummwaqnhtatdrrv, hash key: ef4a64d892afe429bb4df627f678ec4b, file_offset_of_buffer_end: 4406555763, re", "utput error: Cache info: Buffer path: ch-s3-3dc/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/bwi/oxodnrczdkzj", "7f678ec4b/4404019200: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/ef4/ef4a64d892afe429bb4df6"]

    (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—1d ago

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

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

    # 1
    "ion 25.10.1.7375 (official build))\n"

    # 2
    55

    # 3
    67

    # 4
    [" MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (vers", "ith error. It can mean that some retryable error happened, or data is corrupted. Please retry the query: While executin", " column attributes): (attempt to read data part all_15671711_15674174_7_22488012 (state Active) failed ", "e offset: 4408213504, caller id: 23d6ce14-c24a-48ae-9cf4-5bb935ddc47f:2101, kind: Regular, unbound: 0: (while readin", "downloader id: None, current wri", "f4a64d892afe429bb4df627f678ec4b, state: DOWNLOADED, downloaded size: 4194304, reserved size: 4194304,", "14-c24a-48ae-9cf4-5bb935ddc47f:2101, file segment info: File segment: [4404019200, 4408213503], key: ", "d_until_position: 4406618553, internal buffer end: 2536563, read_type: CACHED, last caller: 23d6c", "bummwaqnhtatdrrv, hash key: ef4a64d892afe429bb4df627f678ec4b, file_offset_of_buffer_end: 4406555763, re", "utput error: Cache info: Buffer path: ch-s3-3dc/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/bwi/oxodnrczdkzj", "7f678ec4b/4404019200: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/ef4/ef4a64d892afe429bb4df6"]

    (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—1d ago

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

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

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

    # 2
    54

    # 3
    67

    # 4
    ["uery: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRI", " with error. It can mean that some retryable error happened, or data is corrupted. Please retry the ", "olumn attributes): (attempt to read data part all_15671711_15674174_7_22488012 (state Active) faile", "578:2117, kind: Regular, unbound: 0: (while reading ", "13504, caller id: e0da2aea-0cfe-41c8-b446-4599b304", "04, downloader id: None, current write offset: 4408", "y: ef4a64d892afe429bb4df627f678ec4b, state: DOWNLOADED, downloaded size: 4194304, reserved size: 4194", "ea-0cfe-41c8-b446-4599b3044578:2117, file segment info: File segment: [4404019200, 4408213503], k", "d_until_position: 4406618553, internal buffer end: 2536563, read_type: CACHED, last caller: e0da2", "bummwaqnhtatdrrv, hash key: ef4a64d892afe429bb4df627f678ec4b, file_offset_of_buffer_end: 4406555763, re", "utput error: Cache info: Buffer path: ch-s3-3dc/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/bwi/oxodnrczdkzj", "7f678ec4b/4404019200: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/ef4/ef4a64d892afe429bb4df6"]

    (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