19834067 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 2 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 02:55.540
Run Time 00:02.846
Inserted 6h ago
Scheduled 4h ago
Completed 4h ago (00:03)
Cancelled
Discarded

Args

%{
  "account_id" => "223260",
  "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" => 1772761460724302,
  "recorded" => true,
  "return" => "g1AAAABXeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYFA7VS6dVJqZk5JaFJ9alppXEo+uQuZ7uUReQXF8cWlRWWolqnQiAwA2tR/g",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7a6f-7538-bb5a-b4b5737c89e4"
}

Recorded Output

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

Errors

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
    "ial build))\n"

    # 2
    44

    # 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_17698329_17711852_16_22488012 ", "jvjwcptm (position: 12868529369, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <uninitialize", "e reading or decompressing ch-s3-f3e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/fhj/mczlklwlotmasbtbpkao", "set: 12868124672, caller id: 81d0683c-c554-449e-bfac-23d7b053e35f:2420, kind: Regular, unbound: 0: Whi", "83c-c554-449e-bfac-23d7b053e35f:2420, current write of", "O_CONTINUATION, downloaded size: 0, reserved size: 404697, downloader id: 81d0", ": File segment: [12868124672, 12872318975], key: b59fb176fa9b390facdd2ff5df839fbd, state: PARTIALLY_DOWNLOADED_", "83c-c554-449e-bfac-23d7b053e35f:2420, file segment inf", "ition: 12868591127, internal buffer end: 12869173248, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller: 81d0", "vjwcptm, hash key: b59fb176fa9b390facdd2ff5df839fbd, file_offset_of_buffer_end: 12868529369, read_until_po", "5-bbcb-8441591d3836/mergetree/fhj/mczlklwlotmasbtbpkaos", "path: ch-s3-f3e/aa8129e2-f47e-4b", "f:2420, kind: Regular, unbound: 0: Cache info: Buffer", "ac-23d7b053e35f:2420, current write offset: 12868124672, caller id: 81d0683c-c554-449e-bfac-23d7b053e3", "bd, state: DOWNLOADING, downloaded size: 0, reserved size: 404697, downloader id: 81d0683c-c554-449e-b", "124672, 12872318975], key: b59fb176fa9b390facdd2ff5df839", "bd/12868124672: , errno: 30, strerror: Read-only file system, current cache state: File segment: [1286", "ile system: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/b59/b59fb176fa9b390facdd2ff5df839", "9fbd/12868124672: , errno: 30, strerror: Read-only ", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/b59/b59fb176fa9b390facdd2ff5df8"]

    (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