19823627 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 05:11.210
Run Time 00:13.672
Inserted 7h ago
Scheduled 6h ago
Completed 6h ago (00:14)
Cancelled
Discarded

Args

%{
  "account_id" => "132355",
  "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" => 1772760060602927,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGB6Ui6dVJqZk5JaFJ9alppXEo+iIpGhXCKvoDi+uLSoLLUSXQ4A2YAewg",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-794a-7dcd-9890-7c5c16ffe9da"
}

Recorded Output

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

Errors

Attempt 2—6h ago

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

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

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

    # 2
    53

    # 3
    67

    # 4
    ["reeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCR", "the query: While executing Merge", "ve) failed with error. It can mean that some retryable error happened, or data is corrupted. Please retry", "bound: 0: (while reading column name): (attempt to read data part all_14394994_14407841_27_22488012 (state Act", "4af8-ae0c-1010b51c3a1b:2109, kind: Regular, u", "ize: 1967315, reserved size: 1967315, downloader id: None, current write offset: 10355923, caller id: 7f00b88b-0851", "62b6cced41df05669a52, state: DOWNLOADED, downloaded ", "f8-ae0c-1010b51c3a1b:2109, file segment info: File segment: [8388608, 10355922], key: b219c4002d6", "1, read_type: CACHED, last caller: 7f00b88b-0851-4", ", read_until_position: 8775632, internal buffer end: 3866", "ewlbdxssmakwftnxanpsvoat, hash key: b219c4002d6462b6cced41df05669a52, file_offset_of_buffer_end: 877522", "9e2-f47e-4b75-bbcb-8441591d3836/mergetree/gyg/kslp", "f05669a52/8388608: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-c64/aa81", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/b21/b219c4002d6462b6cced41"]

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

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

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

    # 1
    "al build))\n"

    # 2
    52

    # 3
    67

    # 4
    ["fetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (offici", "rror happened, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: Pr", "It can mean that some retryable ", "407841_27_22488012 (state Active) failed with error.", "to read data part all_14394994_1", "5ac-163f-41ea-9d35-8e12fdd87049:1178, kind: Regular, unbound: 0: (while reading column name): (attempt", "ze: 1967315, reserved size: 1967315, downloader id: None, current write offset: 10355923, caller id: 2caa", " segment: [8388608, 10355922], key: b219c4002d6462b6cced41df05669a52, state: DOWNLOADED, downloaded s", "ea-9d35-8e12fdd87049:1178, file segment info: Fil", "1, read_type: CACHED, last caller: 2caaf5ac-163f-4", ", read_until_position: 8775632, internal buffer end: 3866", "ewlbdxssmakwftnxanpsvoat, hash key: b219c4002d6462b6cced41df05669a52, file_offset_of_buffer_end: 877522", "9e2-f47e-4b75-bbcb-8441591d3836/mergetree/gyg/kslp", "f05669a52/8388608: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-c64/aa81", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/b21/b219c4002d6462b6cced41"]

    (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