R
Railway•13mo ago
rook

Connecting to ClickHouse

Just deployed the Plausible template. I connected to Postgres with TablePlus. But not sure how to do it with ClickHouse. Gettting errors.
No description
24 Replies
Percy
Percy•13mo ago
Project ID: bf2ae1ac-d8c4-4c77-8f8a-581f43851d8d
rook
rookOP•13mo ago
bf2ae1ac-d8c4-4c77-8f8a-581f43851d8d it crashed at first btw, but after restart everything is working fine. It's recording events.
rook
rookOP•13mo ago
Template: https://railway.app/template/mzYEXO also, importing from url did not work, "invalid url".
No description
Brody
Brody•13mo ago
does clickhouse communicate with http or tcp?
rook
rookOP•13mo ago
@Brody i think it can do both. https://clickhouse.com/docs/en/guides/sre/network-ports I have tried connecting via http and tcp with all the various ports. Used the urls in the settings -> networking panel. The docker app uses this connection url, which seemingly works. "h ttp://default:@password@clickhouse:8123/plausible_events_db"
No description
rook
rookOP•13mo ago
@Brody Did you make the Umami template? Not sure if its intentional but I did have to add these last 3 ENVs to make it possible to use the data browser and connect via GUI. Otherwise it's really nice, ill enjoy checking it out.
No description
Brody
Brody•13mo ago
I'm not the original creator, but I was recently given it to do a refresh, and I intentionally left those variables out, I really can not recommend you use the built in data browser, I recommend using proper desktop softwares like dbgate you can only access http apps external from 443
rook
rookOP•13mo ago
I intentionally left those variables out
@Brody I thought they were needed to connect via a desktop app, but now I connected without them so seems not.
Brody
Brody•13mo ago
they aren't, they are just used by the inbuilt data browser only thing you would have needed to do was enable the tcp on the database like the overview noted
rook
rookOP•13mo ago
@Brody Yup Could not connect with 443 from http on clickhouse
No description
Brody
Brody•13mo ago
do you have a PORT service variable set to 8123 also, just a friendly reminder #🛂|readme #5
rook
rookOP•13mo ago
Ah ok wont ping you more. I wasn't getting notified of this thread but I think I fixed it now.
Brody
Brody•13mo ago
no worries
rook
rookOP•13mo ago
I did add one now and redeployed. Same message.
No description
Brody
Brody•13mo ago
is clickhouse running on host 0.0.0.0?
rook
rookOP•13mo ago
ClickHouse docs say 127.0.0.1 / localhost. So not 0.0.0.0 by default I'm guessing. I'm not sure how to set the host, did random ENVs in dockerfile but nah.
No description
Brody
Brody•13mo ago
did random ENVs in dockerfile but nah.
read their docs
rook
rookOP•13mo ago
clickhouses?
Brody
Brody•13mo ago
yes you should try the tcp proxy too
rook
rookOP•13mo ago
yes did seems the next step is to dig deeper into docker and clickhouse to continue on this
Brody
Brody•13mo ago
then yeah my recommendation would be to familiarize yourself with the technologies involved, read through clickhouse's docs
rook
rookOP•13mo ago
is it possible to look inside the clickhouse volume. Did you make a template for that actually?
Brody
Brody•13mo ago
i have made a filebrowser template, but you have to deploy that and then swap the volumes around if youre going to do that, please make sure to read the overview
rook
rookOP•13mo ago
will do
Want results from more Discord servers?
Add your server