Troubleshooting

Common connection failures on the ClickHouse warehouse.

FAQ

  1. clickhouse-client fails with code 102, unexpected packet.
  2. JDBC or HTTP returns 400, unsupported path.
  3. The query returns HTTP 429 or HTTP 504.
  4. ClickHouse returns code 452, 202, or 201.
  5. I can connect, but a table is missing.
  6. I manage several companies. Why is one missing?
  7. A row I deleted in Pennylane is still in pennylane.

clickhouse-client fails with code 102, unexpected packet.

The client spoke the native TCP protocol. This host only speaks ClickHouse HTTP on port 443. Use curl, JDBC, or clickhouse-connect. clickhouse-driver fails the same way.

JDBC or HTTP returns 400, unsupported path.

The database is a query parameter, not a URL path. Use jdbc:clickhouse:https://datasharing.pennylane.com:443/?database=pennylane. A path after the port, for example .../pennylane, is rejected.

The query returns HTTP 429 or HTTP 504.

429 means the shared HTTP cap was hit: 500 queries at once, 3,000 requests per minute, or a queue of 1,000 waiting up to 60 seconds. The body names which one. 504 means the query ran past 30 minutes and the proxy killed it.

ClickHouse returns code 452, 202, or 201.

452 SETTING_CONSTRAINT_VIOLATION: you set max_threads above 1, or memory, duration, or concurrent queries above your user cap. A lower value is accepted. 202 TOO_MANY_SIMULTANEOUS_QUERIES: you already have 3 queries running. 201 QUOTA_EXCEEDED: you passed 600 queries or 2 hours of execution time in the current hour. These come back as HTTP 500 with the ClickHouse code in the body. The numbers are on the limitations page.

I can connect, but a table is missing.

Check the database. bank_accounts lives in pennylane. practice_management tables are not in pennylane.

I manage several companies. Why is one missing?

The query returns companies linked to your Pennylane user on this warehouse.

A row I deleted in Pennylane is still in pennylane.

pennylane only keeps live rows. After the pipeline catches up, the row disappears. If you need a deletion marker, read etl and use deleted_at. Rows removed by a company-level filter (draft, archived, unknown company) disappear from etl too, with no deleted_at. Cascade from etl.companies.


Back to top