19823995 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.976
Run Time 00:00.517
Inserted 6h ago
Scheduled 4h ago
Completed 4h ago (00:01)
Cancelled
Discarded

Args

%{
  "account_id" => "137387",
  "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" => 1772761784766742,
  "recorded" => true,
  "return" => "g1AAAABXeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGCKL5dOKs3MSUktik8tS80riUdRkchQLpFXUBxfXFpUlloZj66bcQkAFcUe4w",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7952-7779-bc70-fa8133806ec9"
}

Recorded Output

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

Errors

Attempt 4—4h 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
    53

    # 3
    67

    # 4
    ["ted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANN", "error happened, or data is corru", " to read data part all_4367134_4408939_26_22488012 (state Active) failed with error. It can mean that some retryable", " id: 2069deb6-2419-440f-8828-179787084fba:2051, kind: Regular, unbound: 0: (while reading column user_id): (attemp", "d size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 3393191936, calle", "3388997632, 3393191935], key: 4ebbcda79a6aec729f2f99d0ad35cedb, state: DOWNLOADED, download", "828-179787084fba:2051, file segment info: File segment: ", "last caller: 2069deb6-2419-440f-", "end: 2328314, read_type: CACHED,", "1325946, read_until_position: 3391348222, internal buffer", "9a6aec729f2f99d0ad35cedb, file_offset_of_buffer_end: 33", "8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/omm/hubghbtjcfkyauxnzaybwxfqqkfxf, hash key: 4ebbcda", "0ad35cedb/3388997632: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-fc2/a", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/4eb/4ebbcda79a6aec729f2f99"]

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

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

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

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

    # 2
    52

    # 3
    67

    # 4
    ["le executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIP", " error. It can mean that some retryable error happened, or data is corrupted. Please retry the query: Wh", "67134_4408939_26_22488012 (state Active) failed wit", "(attempt to read data part all_4", "abfc3-f1ea-4c90-af08-58bf34511649:2107, kind: Regular, unbound: 0: (while reading column user_id):", "ze: 4194304, reserved size: 4194304, downloader id: None, current write offset: 3393191936, caller id: 44", "aec729f2f99d0ad35cedb, state: DOWNLOADED, downloaded s", "f08-58bf34511649:2107, file segment info: File segment: [3388997632, 3393191935], key: 4ebbcda79a", "last caller: 44babfc3-f1ea-4c90-", "end: 2328314, read_type: CACHED,", "1325946, read_until_position: 3391348222, internal buffer", "9a6aec729f2f99d0ad35cedb, file_offset_of_buffer_end: 33", "8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/omm/hubghbtjcfkyauxnzaybwxfqqkfxf, hash key: 4ebbcda", "0ad35cedb/3388997632: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-fc2/a", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/4eb/4ebbcda79a6aec729f2f99"]

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

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

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

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

    # 2
    52

    # 3
    67

    # 4
    ["le executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIP", " error. It can mean that some retryable error happened, or data is corrupted. Please retry the query: Wh", "67134_4408939_26_22488012 (state Active) failed wit", "(attempt to read data part all_4", "48a68-1b68-47a5-ac6f-0fb3251ee750:2071, kind: Regular, unbound: 0: (while reading column user_id):", "ze: 4194304, reserved size: 4194304, downloader id: None, current write offset: 3393191936, caller id: bb", "aec729f2f99d0ad35cedb, state: DOWNLOADED, downloaded s", "c6f-0fb3251ee750:2071, file segment info: File segment: [3388997632, 3393191935], key: 4ebbcda79a", "last caller: bbb48a68-1b68-47a5-", "end: 2328314, read_type: CACHED,", "1325946, read_until_position: 3391348222, internal buffer", "9a6aec729f2f99d0ad35cedb, file_offset_of_buffer_end: 33", "8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/omm/hubghbtjcfkyauxnzaybwxfqqkfxf, hash key: 4ebbcda", "0ad35cedb/3388997632: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-fc2/a", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/4eb/4ebbcda79a6aec729f2f99"]

    (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—4h 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
    53

    # 3
    67

    # 4
    ["ted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANN", "error happened, or data is corru", " to read data part all_4367134_4408939_26_22488012 (state Active) failed with error. It can mean that some retryable", " id: 242e49f4-4239-4ff9-8d75-372fc3a695a4:2069, kind: Regular, unbound: 0: (while reading column user_id): (attemp", "d size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 3393191936, calle", "3388997632, 3393191935], key: 4ebbcda79a6aec729f2f99d0ad35cedb, state: DOWNLOADED, download", "d75-372fc3a695a4:2069, file segment info: File segment: ", "last caller: 242e49f4-4239-4ff9-", "end: 2328314, read_type: CACHED,", "1325946, read_until_position: 3391348222, internal buffer", "9a6aec729f2f99d0ad35cedb, file_offset_of_buffer_end: 33", "8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/omm/hubghbtjcfkyauxnzaybwxfqqkfxf, hash key: 4ebbcda", "0ad35cedb/3388997632: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-fc2/a", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/4eb/4ebbcda79a6aec729f2f99"]

    (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