Hi all - trying out self hosting due to company data security requirements. Just running docker compose up and the ui starts - but there is an error in the logs: Error: connect ECONNREFUSED 127.0.0.1:8123 helicone-web | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1300:16) { helicone-web | errno: -111, helicone-web | code: 'ECONNREFUSED', helicone-web | syscall: 'connect', helicone-web | address: '127.0.0.1', helicone-web | port: 8123 I think it’s trying to access clickhouse- does that get set up by the docker compose or is there something I’m missing in setting up the .env file? CLICKHOUSE_HOST=http://localhost CLICKHOUSE_PORT=8123 CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD=
i should mention that i was able to create a user and log in and go through some of the onboarding stuff. I'm using it with an example from langchain - and have set up the configuration so data should flow - but nothing is showing up in helicone - which is why i started looking at the logs.
Ok - relazied i made a basic error - the clickhouse .env should have been like this: CLICKHOUSE_HOST=http://clickhouse-db CLICKHOUSE_PORT=8123 CLICKHOUSE_USER=default CLICKHOUSE_PASSWORD=
now the message i'm getting is this - clickhouse-migration-runner | % Total % Received % Xferd Average Speed Time Time Time Current clickhouse-migration-runner | Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 clickhouse-migration-runner | curl: (7) Failed to connect to clickhouse-db port 80: Connection refused
ok - i've started over and now things are working. When running in self hosted mode what value should i use for the basePath? const model = new OpenAI( {}, { basePath: "https://oai.hconeai.com/v1", } ); const res = await model.call("What is a helicone?");