19816439 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 2 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 13:47.747
Run Time 00:01.014
Inserted 12h ago
Scheduled 10h ago
Completed 10h ago (00:02)
Cancelled
Discarded

Args

%{
  "account_id" => "84234",
  "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" => 1772759182590335,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGB8XC6dVJqZk5JaFJ9alppXEo+iIpGhXCKvoDi+uLSoLLUSXQ4A2QcewA",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7883-7cd8-91c1-3f00cc53f3f9"
}

Recorded Output

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

Errors

Attempt 1—10h 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
    43

    # 3
    67

    # 4
    ["(CANNOT_OPEN_FILE) (version 25.1", "se retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread).", " Active) failed with error. It can mean that some retryable error happened, or data is corrupted. Ple", "ninitialized>): (while reading column attributes): (attempt to read data part all_12396311_12661295_36_22488012 (stat", "hwkpjubyyrqfhqvn (position: 7588890247, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <", "e2-f47e-4b75-bbcb-8441591d3836/mergetree/niy/jcoefmaqpniy", "or decompressing ch-s3-30f/aa812", "e offset: 7587495936, caller id: d4651371-bc58-4982-b95d-7cbeb3bfcaa7:2182, kind: Regular, unbound: 0: While reading", "wnloaded size: 0, reserved size: 1048576, downloader id: d4651371-bc58-4982-b95d-7cbeb3bfcaa7:2182, current wri", "82b2e5, state: PARTIALLY_DOWNLOADED_NO_CONTINUATION, d", "7:2182, file segment info: File segment: [7587495936, 7591690239], key: 31211262ceb296d126dc7cad9", "OTE_FS_READ_AND_PUT_IN_CACHE, last caller: d4651371-bc58-4982-b95d-7cbeb3bfca", "1340, internal buffer end: 7588544512, read_type: RE", "vn, hash key: 31211262ceb296d126dc7cad9682b2e5, file_offset_of_buffer_end: 7588890247, read_until_position: 75891", "591d3836/mergetree/niy/jcoefmaqpniynhwkpjubyyrqfh", "aa7:2182, kind: Regular, unbound: 0: Cache info: Buffer path: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-844", "87495936, caller id: d4651371-bc58-4982-b95d-7cbeb3bf", "rved size: 1048576, downloader id: d4651371-bc58-4982-b95d-7cbeb3bfcaa7:2182, current write offset: 7", " state: DOWNLOADING, downloaded size: 0, res", "e system, current cache state: File segment: [7587495936, 7591690239], key: 31211262ceb296d126dc7cad9682b2e5", "e5/7587495936: , errno: 30, strerror: Read-only fi", "ile system: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/312/31211262ceb296d126dc7cad9682b", "b2e5/7587495936: , errno: 30, strerror: Read-only ", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/312/31211262ceb296d126dc7cad968"]

    (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