Git Product home page Git Product logo

Comments (1)

davordragic avatar davordragic commented on June 28, 2024

Found some ideas in backup repo, but this helm chart already defines CLICKHOUSE_HOST
Suggested solution is to set for backup clickhouse_host=127.0.0.1
I might "override" with clickhouse.backup.env, but which will stick, one in my values.yaml or from template?

  • name: CLICKHOUSE_HOST
    value: {{ template "posthog.clickhouse.fullname" . }}

{{/*
Return clickhouse fullname
*/}}
{{- define "posthog.clickhouse.fullname" -}}
{{- if .Values.clickhouse.fullnameOverride -}}
{{- .Values.clickhouse.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- printf "%s-%s" "clickhouse" .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}

Full error:

2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,"(query: SELECT status,error FROM system.backup_actions WHERE command='create chi-posthog-posthog-0-0-full-2022-12-06-00-00-07')",2022-12-06T00:00:08.010052183Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Code: 60. DB::Exception: Received from chi-posthog-posthog-0-0:9000. DB::Exception: Table system.backup_actions doesn't exist. (UNKNOWN_TABLE),2022-12-06T00:00:08.010049713Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Received exception from server (version 22.3.13):,2022-12-06T00:00:08.010044266Z
2022-12-06T00:00:13.397274353Z,k8s_container,INFO,"SELECT status,error FROM system.backup_actions WHERE command='create chi-posthog-posthog-0-0-full-2022-12-06-00-00-07'",
2022-12-06T00:00:13.397274353Z,k8s_container,INFO,error create full-2022-12-06-00-00-07 on chi-posthog-posthog-0-0,2022-12-06T00:00:07.987132452Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,(query: SELECT status FROM system.backup_actions WHERE command='create chi-posthog-posthog-0-0-full-2022-12-06-00-00-07'),2022-12-06T00:00:07.983222708Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Code: 60. DB::Exception: Received from chi-posthog-posthog-0-0:9000. DB::Exception: Table system.backup_actions doesn't exist. (UNKNOWN_TABLE),2022-12-06T00:00:07.983220114Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Received exception from server (version 22.3.13):,2022-12-06T00:00:07.983211982Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,(query: SELECT status FROM system.backup_actions WHERE command='create chi-posthog-posthog-0-0-full-2022-12-06-00-00-07'),2022-12-06T00:00:07.956158568Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Code: 60. DB::Exception: Received from chi-posthog-posthog-0-0:9000. DB::Exception: Table system.backup_actions doesn't exist. (UNKNOWN_TABLE),2022-12-06T00:00:07.956155400Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Received exception from server (version 22.3.13):,2022-12-06T00:00:07.956141033Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,(query: INSERT INTO system.backup_actions(command) VALUES('create chi-posthog-posthog-0-0-full-2022-12-06-00-00-07')),2022-12-06T00:00:07.928767960Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Code: 60. DB::Exception: Received from chi-posthog-posthog-0-0:9000. DB::Exception: Table system.backup_actions doesn't exist. (UNKNOWN_TABLE),2022-12-06T00:00:07.928764402Z
2022-12-06T00:00:13.393621223Z,k8s_container,ERROR,Received exception from server (version 22.3.13):,2022-12-06T00:00:07.928755742Z
2022-12-06T00:00:13.397274353Z,k8s_container,INFO,INSERT INTO system.backup_actions(command) VALUES('create chi-posthog-posthog-0-0-full-2022-12-06-00-00-07'),2022-12-06T00:00:07.927824877Z
2022-12-06T00:00:13.397274353Z,k8s_container,INFO,create full-2022-12-06-00-00-07 on chi-posthog-posthog-0-0,2022-12-06T00:00:07.904611353Z

from charts-clickhouse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.