19824335 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 04:59.476
Run Time 00:02.460
Inserted 3h ago
Scheduled 1h ago
Completed 1h ago (00:03)
Cancelled
Discarded

Args

%{
  "account_id" => "108828",
  "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" => 1772760130202737,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUlkKJdOKs3MSUktik8tS80riUeXlsgrKI4vLi0qS61ElwMAjygd2w",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7958-71d8-bf47-9e25f649077d"
}

Recorded Output

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

Errors

Attempt 2—1h ago

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

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

    # 1
    ".10.1.7375 (official build))\n"

    # 2
    43

    # 3
    67

    # 4
    ["le executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_OPEN_FILE) (version 25", " error. It can mean that some retryable error happened, or data is corrupted. Please retry the query: Wh", "5231_14340222_12_22488012 (state Active) failed wit", "ffer, compressed data header: <uninitialized>): (while reading column attributes): (attempt to read data part all_143", "tree/zhd/knusxktebpmsxkjqkybgsiqnqwdlj (position: 10817783151, typename: DB::AsynchronousBoundedReadB", "r, unbound: 0: While reading or decompressing ch-s3-aa5/aa8129e2-f47e-4b75-bbcb-8441591d3836/merg", "urrent write offset: 10817110016, caller id: 5fd18a5e-a22a-4745-8ac3-a2b894ad20c6:2375, kind: Regul", "ownloaded size: 0, reserved size: 673135, downloader id: 5fd18a5e-a22a-4745-8ac3-a2b894ad20c6:2375, ", "66f1130, state: PARTIALLY_DOWNLOADED_NO_CONTINUATION, ", "0016, 10821304319], key: 75bfb6dbf545cf4cb035081b", "0c6:2375, file segment info: File segment: [108171", "5fd18a5e-a22a-4745-8ac3-a2b894ad", "sition: 10817843944, internal buffer end: 10818158592, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller:", "lj, hash key: 75bfb6dbf545cf4cb035081b666f1130, file_offset_of_buffer_end: 10817783151, read_until_p", "591d3836/mergetree/zhd/knusxktebpmsxkjqkybgsiqnqw", "20c6:2375, kind: Regular, unbound: 0: Cache info: Buffer path: ch-s3-aa5/aa8129e2-f47e-4b75-bbcb-844", "10016, caller id: 5fd18a5e-a22a-4745-8ac3-a2b894a", " size: 673135, downloader id: 5fd18a5e-a22a-4745-8ac3-a2b894ad20c6:2375, current write offset: 10817", "f1130, state: DOWNLOADING, downloaded size: 0, reserve", "le system, current cache state: File segment: [10817110016, 10821304319], key: 75bfb6dbf545cf4cb035081b66", "6f1130/10817110016: , errno: 30, strerror: Read-only f", "sharedS3DiskCache/75b/75bfb6dbf545cf4cb035081b6", "1130/10817110016: , errno: 30, strerror: Read-only file system: Cannot open file /mnt/clickhouse-cache", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/75b/75bfb6dbf545cf4cb035081b666"]

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

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

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

    # 1
    "ial build))\n"

    # 2
    43

    # 3
    67

    # 4
    ["eSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_OPEN_FILE) (version 25.10.1.7375 (offic", "ean that some retryable error happened, or data is corrupted. Please retry the query: While executing MergeTr", "state Active) failed with error. It can ", ">): (while reading column attributes): (attempt to read data part all_14335231_14340222_12_22488012 ", "iqnqwdlj (position: 10817783151, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <uninitialize", "e reading or decompressing ch-s3-aa5/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/zhd/knusxktebpmsxkjqkybg", "1d-1071d0dfabcc:2279, kind: Regular, unbound: 0: Whi", " id: 378bc32f-6136-42a4-941d-1071d0dfabcc:2279, current write offset: 10817110016, caller id: 378bc32f-6136-42a4-9", "reserved size: 673135, downloade", " PARTIALLY_DOWNLOADED_NO_CONTINUATION, downloaded size: 0,", " segment info: File segment: [10817110016, 10821304319], key: 75bfb6dbf545cf4cb035081b666f1130, state", "_READ_AND_PUT_IN_CACHE, last caller: 378bc32f-6136-42a4-941d-1071d0dfabcc:2279, fil", "44, internal buffer end: 10818158592, read_type: REMOTE_F", "ey: 75bfb6dbf545cf4cb035081b666f1130, file_offset_of_buffer_end: 10817783151, read_until_position: 10817843", "1d3836/mergetree/zhd/knusxktebpmsxkjqkybgsiqnqwdlj, hash ", "abcc:2279, kind: Regular, unbound: 0: Cache info: Buffer path: ch-s3-aa5/aa8129e2-f47e-4b75-bbcb-84415", "10016, caller id: 378bc32f-6136-42a4-941d-1071d0d", " size: 673135, downloader id: 378bc32f-6136-42a4-941d-1071d0dfabcc:2279, current write offset: 10817", "f1130, state: DOWNLOADING, downloaded size: 0, reserve", "le system, current cache state: File segment: [10817110016, 10821304319], key: 75bfb6dbf545cf4cb035081b66", "6f1130/10817110016: , errno: 30, strerror: Read-only f", "sharedS3DiskCache/75b/75bfb6dbf545cf4cb035081b6", "1130/10817110016: , errno: 30, strerror: Read-only file system: Cannot open file /mnt/clickhouse-cache", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/75b/75bfb6dbf545cf4cb035081b666"]

    (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