Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while loading events, show in logs of one of clickhouse shard #1119

Closed
stouch opened this issue Aug 20, 2024 · 5 comments
Closed

Error while loading events, show in logs of one of clickhouse shard #1119

stouch opened this issue Aug 20, 2024 · 5 comments
Assignees

Comments

@stouch
Copy link

stouch commented Aug 20, 2024

Summary

Got error when loading events, but ingest, rotor and console work :

Capture d’écran 2024-08-20 à 12 16 49

shard1 error:
Capture d’écran 2024-08-20 à 12 18 49

And rest of services look OK :

shard0
Capture d’écran 2024-08-20 à 12 19 15

bulker:
Capture d’écran 2024-08-20 à 12 20 03

ingest:

│ time="2024-08-19 16:02:36" level=info msg="[metrics_server] Starting metrics server on 0.0.0.0:9091"                                                                   │││ │ ││││││  │    │         │           │                 │                                                 
│ time="2024-08-19 16:02:36" level=info msg="Starting http server on 0.0.0.0:3049"                                                                                       │││ │ ││││││  │    │         │           │                 │───────────────────────┐───────────────┐────────┐
│ time="2024-08-19 16:04:01" level=error msg="[ch_events_log] Error preparing batch: code: 60, message: Table default.events_log does not exist"  

System configuration and versions

k8s install of Jitsu v2.8.0

(https://github.com/stafftastic/jitsu-chart)

@vklimontovich
Copy link
Contributor

Seems like the table that for storing event logs is configured incorrectly. It should be created in newjitsu_metrics DB, see compose file for a reference

@stouch
Copy link
Author

stouch commented Aug 20, 2024

It might be because of https://github.com/stafftastic/jitsu-chart/blob/fb5d459c9c831d25c99a49981c92de43b174c1d8/templates/_helpers.tpl#L145
-> when we use the jitsu-chart, it uses by default the "default" db.

It changed recently ?

@stouch
Copy link
Author

stouch commented Aug 21, 2024

@hendrikheil After investigation, I found that this error of unknown table does not always occur (sometimes the data load well in my console). Then I went to my k8s clickhouse shards and find out that in one of the shard the db does not exist :

I got 1 replica and 2 shards :

This is the shard for which the table does not exist :

Capture d’écran 2024-08-21 à 15 56 43

That shard does have it :

Capture d’écran 2024-08-21 à 15 56 08

Any idea what I could do to fix this ?

Copy link

github-actions bot commented Sep 6, 2024

This issue is stale because it has been open for 30 days with no activity.

Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants