19821779 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 05:51.127
Run Time 00:01.950
Inserted 11h ago
Scheduled 9h ago
Completed 9h ago (00:02)
Cancelled
Discarded

Args

%{
  "account_id" => "123055",
  "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" => 1772759831356113,
  "recorded" => true,
  "return" => "g1AAAABaeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGA5WC6dVJqZk5JaFJ9alppXEo+ugvFruUReQXF8cWlRWWolpnQJAIfdIA4",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-790d-7e79-a58f-87ee55163843"
}

Recorded Output

%{
  users_reached: 1217,
  builder_event_users_reached: 501,
  nps_survey_users_reached: 372
}

Errors

Attempt 2—9h ago

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

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

    # 1
    "dReadPool, algorithm: Thread). (CANNOT_OPEN_FILE) (version 25.10.1.7375 (official build))\n"

    # 2
    43

    # 3
    67

    # 4
    ["ryable error happened, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: Prefetche", "tempt to read data part all_12396311_12661295_36_22488012 (state Active) failed with error. It can mean that some re", "ronousBoundedReadBuffer, compressed data header: <uninitialized>): (while reading column attributes): (a", "10536065592, typename: DB::Async", "mpressing ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/niy/jcoefmaqpniynhwkpjubyyrqfhqvn (position:", "unbound: 0: While reading or dec", " a82be5af-2379-4634-8023-011cf4ed3058:1521, kind: Regular,", "521, current write offset: 10531897344, caller id", ", downloader id: a82be5af-2379-4634-8023-011cf4ed3058:", "OWNLOADED_NO_CONTINUATION, downloaded size: 0, reserved size: 104857", "211262ceb296d126dc7cad9682b2e5, state: PARTIALLY_", "-2379-4634-8023-011cf4ed3058:1521, file segment info: File segment: [10531897344, 10540285951], key: 3", "ion: 10536264760, internal buffer end: 10532945920, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller: a82be5a", "sh key: 31211262ceb296d126dc7cad9682b2e5, file_offset_of_buffer_end: 10536065592, read_until_posi", "th: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/niy/jcoefmaqpniynhwkpjubyyrqfhqvn, h", "1, kind: Regular, unbound: 0: Cache info: Buffer p", ", caller id: a82be5af-2379-4634-8023-011cf4ed3058:15", ": 1048576, downloader id: a82be5af-2379-4634-8023-011cf4ed3058:1521, current write offset: 1053189734", ", key: 31211262ceb296d126dc7cad9682b2e5, state: DOWNLOADING, downloaded size: 0, reserved siz", "ead-only file system, current cache state: File segment: [10531897344, 10540285951", "t/clickhouse-cache/sharedS3DiskCache/312/31211262ceb296d126dc7cad9682b2e5/10531897344: , errno: 30, strerror: ", "file system: Cannot open file /m", "b2e5/10531897344: , 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

Attempt 1—9h ago

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

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

    # 1
    ""

    # 2
    40

    # 3
    67

    # 4
    [" (version 25.10.1.7375 (official build))\n", " PrefetchedReadPool, algorithm: Thread). (CANNOT_OPEN_FILE", "me retryable error happened, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool", "012 (state Active) failed with error. It can mean that s", "nitialized>): (while reading column attributes): (attempt to read data part all_12396311_12661295_36_2248", "AsynchronousBoundedReadBuffer, compressed data header: <un", "bcb-8441591d3836/mergetree/niy/jcoefmaqpniynhwkpjubyyrqfhqvn (position: 10536065592, typename: DB:", "ad5:2151, kind: Regular, unbound: 0: While reading or decompressing ch-s3-30f/aa8129e2-f47e-4b75-", "cd155ec6-c72e-4711-b0b0-27e91ac4", "151, current write offset: 10531897344, caller id:", ", downloader id: cd155ec6-c72e-4711-b0b0-27e91ac4aad5:", "d9682b2e5, state: PARTIALLY_DOWNLOADED_NO_CONTINUATION, downloaded size: 0, reserved size: 104857", "897344, 10540285951], key: 31211262ceb296d126dc7c", "e91ac4aad5:2151, file segment info: File segment: [1053", " buffer end: 10532945920, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller: cd155ec6-c72e-4711-b0b0-2", "65592, read_until_position: 10536264760, interna", "iy/jcoefmaqpniynhwkpjubyyrqfhqvn, hash key: 31211262ceb296d126dc7cad9682b2e5, file_offset_of_buffer_end: 10536", " ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/", "1, kind: Regular, unbound: 0: Cache info: Buffer path", ", caller id: cd155ec6-c72e-4711-b0b0-27e91ac4aad5:21", ": 1048576, downloader id: cd155ec6-c72e-4711-b0b0-27e91ac4aad5:2151, current write offset: 1053189734", ", key: 31211262ceb296d126dc7cad9682b2e5, state: DOWNLOADING, downloaded size: 0, reserved siz", "ead-only file system, current cache state: File segment: [10531897344, 10540285951", "t/clickhouse-cache/sharedS3DiskCache/312/31211262ceb296d126dc7cad9682b2e5/10531897344: , errno: 30, strerror: ", "file system: Cannot open file /m", "b2e5/10531897344: , 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