19825922 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 09:59.636
Run Time 00:07.429
Inserted 1d ago
Scheduled 1d ago
Completed 1d ago (00:08)
Cancelled
Discarded

Args

%{
  "account_id" => "201753",
  "date" => "2026-03-06",
  "query" => "event_counts",
  "window_days" => 1
}

Meta

%{
  "deps" => ["generate_user_counts"],
  "name" => "generate_event_counts",
  "on_hold" => false,
  "orig_scheduled_at" => 1772758082401901,
  "recorded" => true,
  "return" => "g1AAAAGleJxVkV1KxDAUhQOCglPLID64EF/dhw9CuE3PdIJpEnLTXl2EoOtyU6ZNGPQlcL7cn3OSrJR6lGus8JkHpb5fikgpJCYld2LHCVm7QCNGepbDyQVhzecgnq6kmwI51rNlLtelvuoEMucd9D6yHpETmVxHdhvxWApy+4pNxxTmkLEX3EaaoFcL2ey8/kjHJgG+olJwP4fBOmi8RyQLb1DbrG/GStvNlxy3wbykFR/Nr5KHPyyBY/C8Nx8xky3GKWfMMe/WD41xeZgtSZNDWMrGPWwjp3L+AyHC1/QNGGfNWy0ZyPuS8+KopxjNAtaXD3j6lH5YrBuRGiT1C1NQmqM",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-799a-7dd6-8b7d-7d30c233b182"
}

Recorded Output

%{
  events: 37208,
  errors: 0,
  widget_loaded: 61,
  flows_shown: 3,
  goals_missed: 0,
  goals_reached: 0,
  nps_detractors: 0,
  nps_neutrals: 0,
  nps_promoters: 0,
  page_views: 23755,
  screen_views: 0,
  mobile_experiences: 0,
  pins_shown: 1936,
  nps_survey_shown: 0,
  nps_survey_responses: 0,
  emails_attempted: 0,
  emails_sent: 0,
  emails_bounced: 0,
  emails_failed: 0,
  emails_opened: 0,
  emails_clicked: 0,
  banners_shown: 0,
  appcues_events: 13453,
  builder_events: 0
}

Errors

Attempt 2—1d ago

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

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

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

    # 2
    51

    # 3
    67

    # 4
    ["ome retryable error happened, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: P", "1 (state Active) failed with error. It can mean that ", "lized>): (while reading column timestamp): (attempt to read data part all_443775_446141_7_1123866", "compressed data header: <uniniti", "/ciq/snhvtbpekbfgglobderbkipmcvysv (position: 513802240, typename: DB::AsynchronousBoundedReadBuffer,", "aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetre", " Regular, unbound: 0: While reading or decompressing ch-s3", "oader id: None, current write offset: 514106462, caller id: 6505bf9f-6e86-4017-b910-591e87fcda98:39154, kind", "24add0a6452e9eb09b8f81ced, state: DOWNLOADED, downloaded size: 2401374, reserved size: 2401374, down", "86-4017-b910-591e87fcda98:39154, file segment info: File segment: [511705088, 514106461], key: 09bd7f", "_until_position: 513810523, internal buffer end: 2097152, read_type: CACHED, last caller: 6505bf9f-6", "bfgglobderbkipmcvysv, hash key: 09bd7fd24add0a6452e9eb09b8f81ced, file_offset_of_buffer_end: 513802240, rea", "129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ciq/snhvtbpe", "output error: Cache info: Buffer path: ch-s3-aa", "9b8f81ced/511705088: , errno: 5, strerror: Input", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/09b/09bd7fd24add0a6452e9eb"]

    (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—1d ago

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

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

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

    # 2
    51

    # 3
    67

    # 4
    ["(CANNOT_READ_FROM_FILE_DESCRIPTO", "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", "d>): (while reading column timestamp): (attempt to read data part all_443775_446141_7_112386651 (stat", "bkipmcvysv (position: 513802240, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <uninitializ", " reading or decompressing ch-s3-aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ciq/snhvtbpekbfgglobde", "5-b9cf2eae7cd7:43830, kind: Regular, unbound: 0: Whil", "e: 2401374, reserved size: 2401374, downloader id: None, current write offset: 514106462, caller id: b46ab520-41e7-485b-bc", ": File segment: [511705088, 514106461], key: 09bd7fd24add0a6452e9eb09b8f81ced, state: DOWNLOADED, downloaded si", "e7-485b-bc55-b9cf2eae7cd7:43830, file segment inf", "_until_position: 513810523, internal buffer end: 2097152, read_type: CACHED, last caller: b46ab520-4", "bfgglobderbkipmcvysv, hash key: 09bd7fd24add0a6452e9eb09b8f81ced, file_offset_of_buffer_end: 513802240, rea", "129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ciq/snhvtbpe", "output error: Cache info: Buffer path: ch-s3-aa", "9b8f81ced/511705088: , errno: 5, strerror: Input", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/09b/09bd7fd24add0a6452e9eb"]

    (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