19832658 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 09:05.265
Run Time 00:03.528
Inserted 1d ago
Scheduled 1d ago
Completed 1d ago (00:04)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_user_counts"],
  "name" => "generate_event_counts",
  "on_hold" => false,
  "orig_scheduled_at" => 1772758504238169,
  "recorded" => true,
  "return" => "g1AAAAGreJxVkU1OwzAQRi1UWEASVYgFl6FrxCGwHOdrauHY1oxTw54DcAIkTsSVmPy0wMbSe/pmPGNnpdR9ucIRIXOrLp8bAaJIAuriqdTFdT2y9tF06IwqN3sfC2s+xBIksnkoVR+NZz045jlRL0ww9iBiV5qQWHfIZGyWxhKpJhMwivIT1xMnikPMmAPXyfTQR4cic2w+vkvFloCwKAncDrF1HhqvCeQQLJYyF9bZhLZTVx7piLezu/vjCJxi4Llyi8E4mdrkjCHlZdXVsbyNYLNiG0e5bt50NXs5/4mYEGZxqrHe2Zcl0poQZMnzRI1JyY5gffoD9f5ZmnZ0vgP9ysevH2Hfm6c",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7a52-763a-9908-baef4285e235"
}

Recorded Output

%{
  events: 351758,
  errors: 586,
  widget_loaded: 0,
  flows_shown: 1085,
  goals_missed: 0,
  goals_reached: 62,
  nps_detractors: 0,
  nps_neutrals: 0,
  nps_promoters: 0,
  page_views: 299215,
  screen_views: 0,
  mobile_experiences: 0,
  pins_shown: 0,
  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: 33950,
  builder_events: 18593
}

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
    "tchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official build))\n"

    # 2
    50

    # 3
    67

    # 4
    ["ppened, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: Prefe", "ctive) failed with error. It can mean that some retryable error h", "ialized>): (while reading column timestamp): (attempt to read data part all_159361189_159805879_39_159789993 (state ", "cbub (position: 1040187392, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <unini", "ng or decompressing ch-s3-dfa/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/fih/mtgwnwmzmpfaurvbjbonkrkj", "407:42636, kind: Regular, unbound: 0: While read", " caller id: 709b4d4a-8924-4751-afe2-9a0299b7", "current write offset: 1044381696", "LOADED, downloaded size: 4194304, reserved size: 4194304, downloader id: None,", "1695], key: fddd0d68cdd99d3de1f994edd68c4c89, state: DOW", "File segment: [1040187392, 10443", "4-4751-afe2-9a0299b70407:42636, file segment info:", "until_position: 1040205842, internal buffer end: 0, read_type: CACHED, last caller: 709b4d4a-89", "pfaurvbjbonkrkjgcbub, hash key: fddd0d68cdd99d3de1f994edd68c4c89, file_offset_of_buffer_end: 1040187392, read", "129e2-f47e-4b75-bbcb-8441591d3836/mergetree/fih/mtgwnwmz", "dd68c4c89/1040187392: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-dfa/aa", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/fdd/fddd0d68cdd99d3de1f994"]

    (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
    "d). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official build))\n"

    # 2
    52

    # 3
    67

    # 4
    [". Please retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Threa", "te Active) failed with error. It can mean that some retryable error happened, or data is corrupte", "ninitialized>): (while reading column timestamp): (attempt to read data part all_170034454_170548867_38_170532865 (st", "itvt (position: 1153433600, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <", " or decompressing ch-s3-84e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/cjc/kgtgtxtebrsqjsvnigxrtanh", "e offset: 1157627904, caller id: d86ee6b9-16c7-400e-affd-c6385fc1e374:42756, kind: Regular, unbound: 0: While readin", "downloader id: None, current wri", "4194304, reserved size: 4194304,", "8b6c8ccb8b980553e3da, state: DOWNLOADED, downloaded size:", "-affd-c6385fc1e374:42756, file segment info: File segment: [1153433600, 1157627903], key: 51d86e82960", "position: 1153461561, internal buffer end: 0, read_type: CACHED, last caller: d86ee6b9-16c7-400", "sqjsvnigxrtanhbitvt, hash key: 51d86e8296098b6c8ccb8b980553e3da, file_offset_of_buffer_end: 1153433600, read_until", "rror: Cache info: Buffer path: ch-s3-84e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/cjc/kgtgtxteb", "80553e3da/1153433600: , errno: 5, strerror: Input/output ", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/51d/51d86e8296098b6c8ccb8b"]

    (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