19826167 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 4 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 02:23.628
Run Time 00:04.181
Inserted 5h ago
Scheduled 3h ago
Completed 3h ago (00:05)
Cancelled
Discarded

Args

%{
  "account_id" => "204742",
  "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" => 1772760308747938,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUlkKJdOKs3MSUktik8tS80riUeXlsgrKI4vLi0qS61ElwMAjygd2w",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-799f-7955-84a1-4fa74b239e10"
}

Recorded Output

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

Errors

Attempt 3—3h ago

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

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

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

    # 2
    55

    # 3
    67

    # 4
    ["y the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_", "iled with error. It can mean that some retryable error happened, or data is corrupted. Please ret", " reading column user_id): (attempt to read data part all_7098445_7157024_20_22488012 (state Active) f", "1-b2a9a87440f5:2119, kind: Regular, unbound: 0: (whil", "e: 4194304, reserved size: 4194304, downloader id: None, current write offset: 469762048, caller id: 1f325b1b-08af-4e86-9f", " info: File segment: [465567744, 469762047], key: 0433d241a4528b63d88805c9cdfe4e9d, state: DOWNLOADED, downloaded si", "5b1b-08af-4e86-9f51-b2a9a87440f5:2119, file segmen", "d: 465883273, read_until_position: 465900219, internal buffer end: 315529, read_type: CACHED, last caller: 1f3", "a4528b63d88805c9cdfe4e9d, file_offset_of_buffer_e", "8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dyu/higzdkekubemzqklfsbhuodqpxfdj, hash key: 0433d24", "9cdfe4e9d/465567744: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-2e5/a", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/043/0433d241a4528b63d88805"]

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

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

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

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

    # 2
    54

    # 3
    67

    # 4
    ["Select(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.1", " can mean that some retryable error happened, or data is corrupted. Please retry the query: While executing MergeTre", "umn user_id): (attempt to read data part all_7098445_7157024_20_22488012 (state Active) failed with error. I", "151, kind: Regular, unbound: 0: (while reading co", "2048, caller id: 48ba69a0-4a2c-4816-91b1-ff01c3f43e9b:", "04, downloader id: None, current write offset: 4697", "y: 0433d241a4528b63d88805c9cdfe4e9d, state: DOWNLOADED, downloaded size: 4194304, reserved size: 4194", "69a0-4a2c-4816-91b1-ff01c3f43e9b:1151, file segment info: File segment: [465567744, 469762047], k", "d: 465883273, read_until_position: 465900219, internal buffer end: 315529, read_type: CACHED, last caller: 48b", "a4528b63d88805c9cdfe4e9d, file_offset_of_buffer_e", "8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dyu/higzdkekubemzqklfsbhuodqpxfdj, hash key: 0433d24", "9cdfe4e9d/465567744: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-2e5/a", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/043/0433d241a4528b63d88805"]

    (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—3h 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
    52

    # 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", "717272_59_22712811 (state Active) failed with erro", "attempt to read data part all_22284904_2", "(while reading column user_id): ", "e6-adcc-96ba34961936:2075, kind: Regular, unbound: 0:", "rved size: 8388608, downloader id: None, current write offset: 1749024768, caller id: 6d2fe144-cbfd-4", "f09c, state: DOWNLOADED, downloaded size: 8388608, res", "6160, 1749024767], key: 5bbc92aa4de54cc7bbf4e73a273", "961936:2075, file segment info: File segment: [17406", "il_position: 1748117448, internal buffer end: 6682303, read_type: CACHED, last caller: 6d2fe144-cbfd-45e6-adcc-96ba3", "cirhfoicy, hash key: 5bbc92aa4de54cc7bbf4e73a2736f09c, file_offset_of_buffer_end: 1747318463, read_un", "tput error: Cache info: Buffer path: ch-s3-9d2/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ves/pycoonyimtunsfvesbu", "a2736f09c/1740636160: , errno: 5, strerror: Input/o", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/5bb/5bbc92aa4de54cc7bbf4e7"]

    (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