19819807 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 5 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.158
Queue Time 00:10.323
Run Time 00:02.636
Inserted 1d ago
Scheduled 1d ago
Completed 1d ago (00:03)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772760906593629,
  "recorded" => true,
  "return" => "g1AAAABXeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYOBOKZdOKs3MSUktik8tS80riUdXwcpSLpFXUBxfXFpUllqJKp3IAAD4kx5V",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-78e4-7016-8383-76c6c9fbc048"
}

Recorded Output

%{
  users_reached: 2916,
  builder_event_users_reached: 1284,
  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
    "5 (official build))\n"

    # 2
    55

    # 3
    67

    # 4
    ["geTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.737", ". It can mean that some retryable error happened, or data is corrupted. Please retry the query: While executing Me", "284903_36_22488012 (state Active) failed with erro", "attempt to read data part all_21886005_2", "d: 833777b2-9463-43a8-84fc-3972912c7cb9:1429, kind: Regular, unbound: 0: (while reading column user_id): ", "d size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 71303168, caller ", "t info: File segment: [67108864, 71303167], key: 470c50b4c4774e4e5a68b19bd9bfc8d2, state: DOWNLOADED, download", "ternal buffer end: 4499, read_type: CACHED, last caller: 833777b2-9463-43a8-84fc-3972912c7cb9:1429, file segme", "tiri, hash key: 470c50b4c4774e4e5a68b19bd9bfc8d2, file_offset_of_buffer_end: 67113363, read_until_position: 67195688, i", "or: Cache info: Buffer path: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dxa/fvnzpxwzupyjflqohmigxvnn", "bd9bfc8d2/67108864: , errno: 5, strerror: Input/output er", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/470/470c50b4c4774e4e5a68b1"]

    (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
    "5 (official build))\n"

    # 2
    55

    # 3
    67

    # 4
    ["geTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.737", ". It can mean that some retryable error happened, or data is corrupted. Please retry the query: While executing Me", "284903_36_22488012 (state Active) failed with erro", "attempt to read data part all_21886005_2", "d: f04e7dbc-f23d-4637-bd53-bf760264d87f:2075, kind: Regular, unbound: 0: (while reading column user_id): ", "d size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 71303168, caller ", "t info: File segment: [67108864, 71303167], key: 470c50b4c4774e4e5a68b19bd9bfc8d2, state: DOWNLOADED, download", "ternal buffer end: 4499, read_type: CACHED, last caller: f04e7dbc-f23d-4637-bd53-bf760264d87f:2075, file segme", "tiri, hash key: 470c50b4c4774e4e5a68b19bd9bfc8d2, file_offset_of_buffer_end: 67113363, read_until_position: 67195688, i", "or: Cache info: Buffer path: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dxa/fvnzpxwzupyjflqohmigxvnn", "bd9bfc8d2/67108864: , errno: 5, strerror: Input/output er", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/470/470c50b4c4774e4e5a68b1"]

    (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
    "5 (official build))\n"

    # 2
    55

    # 3
    67

    # 4
    ["geTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.737", ". It can mean that some retryable error happened, or data is corrupted. Please retry the query: While executing Me", "284903_36_22488012 (state Active) failed with erro", "attempt to read data part all_21886005_2", "d: 2bf28ab4-0735-4b73-b6fa-8bce99f4aca8:1600, kind: Regular, unbound: 0: (while reading column user_id): ", "d size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 71303168, caller ", "t info: File segment: [67108864, 71303167], key: 470c50b4c4774e4e5a68b19bd9bfc8d2, state: DOWNLOADED, download", "ternal buffer end: 4499, read_type: CACHED, last caller: 2bf28ab4-0735-4b73-b6fa-8bce99f4aca8:1600, file segme", "tiri, hash key: 470c50b4c4774e4e5a68b19bd9bfc8d2, file_offset_of_buffer_end: 67113363, read_until_position: 67195688, i", "or: Cache info: Buffer path: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dxa/fvnzpxwzupyjflqohmigxvnn", "bd9bfc8d2/67108864: , errno: 5, strerror: Input/output er", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/470/470c50b4c4774e4e5a68b1"]

    (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
    "d))\n"

    # 2
    44

    # 3
    67

    # 4
    ["ool, algorithm: Thread). (CANNOT_OPEN_FILE) (version 25.10.1.7375 (official buil", ", or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedRead", " It can mean that some retryable error happene", "7272_59_22712811 (state Active) failed with error", "er: <uninitialized>): (while reading column attributes): (attempt to read data part all_22284904_227", "ekclxlygyiuuzr (position: 72104717, typename: DB::AsynchronousBoundedReadBuffer, compressed data hea", "ile reading or decompressing ch-s3-bfe/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/mhl/zoyfsiydchbjod", " offset: 71303168, caller id: 9834df49-c877-45f4-ba94-f5b49ff1a178:1133, kind: Regular, unbound: 0: W", "wnloaded size: 0, reserved size: 801549, downloader id: 9834df49-c877-45f4-ba94-f5b49ff1a178:1133, current writ", "egment: [71303168, 75497471], key: cfcde61893b81e4dcf4d018d05fcf52e, state: PARTIALLY_DOWNLOADED_NO_CONTINUATION, d", "77-45f4-ba94-f5b49ff1a178:1133, file segment info: File ", ": 73332215, internal buffer end: 72351744, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller: 9834df49-c", "sh key: cfcde61893b81e4dcf4d018d05fcf52e, file_offset_of_buffer_end: 72104717, read_until_positio", "th: ch-s3-bfe/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/mhl/zoyfsiydchbjoddekclxlygyiuuzr, h", "8:1133, kind: Regular, unbound: 0: Cache info: Buffer p", "68, caller id: 9834df49-c877-45f4-ba94-f5b49ff1a1", " size: 801549, downloader id: 9834df49-c877-45f4-ba94-f5b49ff1a178:1133, current write offset: 71303", "e, state: DOWNLOADING, downloaded size: 0, reserve", " system, current cache state: File segment: [71303168, 75497471], key: cfcde61893b81e4dcf4d018d05fcf5", "fcf52e/71303168: , errno: 30, strerror: Read-only fil", "sharedS3DiskCache/cfc/cfcde61893b81e4dcf4d018d0", "f52e/71303168: , errno: 30, strerror: Read-only file system: Cannot open file /mnt/clickhouse-cache", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/cfc/cfcde61893b81e4dcf4d018d05f"]

    (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