19826339 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 04:21.100
Run Time 00:04.021
Inserted 16h ago
Scheduled 14h ago
Completed 14h ago (00:05)
Cancelled
Discarded

Args

%{
  "account_id" => "202113",
  "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" => 1772760307660732,
  "recorded" => true,
  "return" => "g1AAAABXeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYBB3KJdOKs3MSUktik8tS80riUdRkVhYLpFXUBxfXFpUlloZj66btREAIWkfKw",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-79a2-700c-9ff4-bccfcf666f46"
}

Recorded Output

%{
  users_reached: 5952,
  builder_event_users_reached: 113,
  nps_survey_users_reached: 1409
}

Errors

Attempt 2—15h ago

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

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

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

    # 2
    43

    # 3
    67

    # 4
    [" query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_OPEN_FI", "ate Active) failed with error. It can mean that some retryable error happened, or data is corrupted. Please retry th", "zed>): (while reading column attributes): (attempt to read data part all_17361451_17386984_17_22488012 (s", "damxseqc (position: 45529303636, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <uninitial", "e reading or decompressing ch-s3-65f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/zne/ikdumraxnynchnhebiqx", "set: 45529169920, caller id: c541de8e-b95f-43f8-9251-01dee4889d0b:2396, kind: Regular, unbound: 0: Whi", "43f8-9251-01dee4889d0b:2396, current write of", "tate: PARTIALLY_DOWNLOADED_NO_CONTINUATION, downloaded size: 0, reserved size: 133716, downloader id: c541de8e-b95f", "5533364223], key: d9e65402df9b7f1cb59a3b1acca1e191, ", "d0b:2396, file segment info: File segment: [45529169920, ", "c541de8e-b95f-43f8-9251-01dee488", "il_position: 45529535100, internal buffer end: 45530218496, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller:", "amxseqc, hash key: d9e65402df9b7f1cb59a3b1acca1e191, file_offset_of_buffer_end: 45529303636, read_un", "5-bbcb-8441591d3836/mergetree/zne/ikdumraxnynchnhebiqxp", "path: ch-s3-65f/aa8129e2-f47e-4b", "9d0b:2396, kind: Regular, unbound: 0: Cache info: Buffer", "69920, caller id: c541de8e-b95f-43f8-9251-01dee48", " size: 133716, downloader id: c541de8e-b95f-43f8-9251-01dee4889d0b:2396, current write offset: 45529", ": [45529169920, 45533364223], key: d9e65402df9b7f1cb59a3b1acca1e191, state: DOWNLOADING, downloaded size: 0, reserve", "current cache state: File segmen", " errno: 30, strerror: Read-only file system,", " file system: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/d9e/d9e65402df9b7f1cb59a3b1acca1e191/45529169920: ", "e191/45529169920: , errno: 30, strerror: Read-onl", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/d9e/d9e65402df9b7f1cb59a3b1acca"]

    (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—15h 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", "mp): (attempt to read data part all_14407842_14421488_16_22488012 (state Active) failed with erro", ": e3f454ea-d56d-4464-96ae-d76fa489c8f3:1749, kind: Regular, unbound: 0: (while reading column timest", "oaded size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 1270874112, caller i", "t info: File segment: [1266679808, 1270874111], key: 55017c29221ec2845a5eca552e30151c, state: DOWNLOADED, down", "D, last caller: e3f454ea-d56d-4464-96ae-d76fa489c8f3:1749, file segme", "9013024, internal buffer end: 2306674, read_type: CACH", "enyiyerzsghe, hash key: 55017c29221ec2845a5eca552e30151c, file_offset_of_buffer_end: 1268986482, read_until_position: 12", "ut error: Cache info: Buffer path: ch-s3-2aa/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/odi/oimpysuwplasddpv", "52e30151c/1266679808: , errno: 5, strerror: Input/out", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/550/55017c29221ec2845a5eca"]

    (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