-
Notifications
You must be signed in to change notification settings - Fork 226
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
Failed to take the backup -- Error: envconfig.Process: assigning CLICKHOUSE_CLICKHOUSE_PORT to Port: converting #391
Comments
|
Hi Slach, Using port 9000 only for TCP communication. +++++++++++++++++++
Is there way to check the error with debug option? How can we test TCP communicating through port 9000. ? |
What the part of could you provide your kubernetes manifests related to clickhouse-backup? Do you use clickhouse-server managed with clickhouse-operator or something other way to manage clickhouse? |
HI Slach , Thanks for checking on this ... --> Running Clickhouse on Kubernetes Statefullset. Not using Operator. YAML used for deployment:- ---
apiVersion: v1
kind: Service
metadata:
name: clickhouse-test
namespace: clickhouse-test
spec:
type: ClusterIP
clusterIP: None
selector:
app: clickhouse-test
ports:
- name: http
port: 8123
targetPort: 8123
- name: tcp
port: 9000
targetPort: 9000
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: clickhouse-test
labels:
app: clickhouse-test
spec:
serviceName: clickhouse-test
selector:
matchLabels:
app: clickhouse-test
template:
metadata:
labels:
app: clickhouse-test
spec:
containers:
- name: clickhouse-test
image: docker pull yandex/clickhouse-server:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 8123
- name: tcp
containerPort: 9000
volumeMounts:
- name: backuptest
mountPath: /var/lib/clickhouse
|
You shall add second container to your |
Hi Slach, Got help from one of the Developer and was able to figure out the issue. The Environment variable set on Clickhouse Server was wrong . +++++++++++++++++++++++++++++++++ After removing the variable, the Backup code is using default port 9000 - Able to work on both Backups and Restore. Thanks for your support !!!!. Slach . |
for those who using Altinity clickhouse operator (even last version) recommend to add to ENV for container backup
because something wrong with env in k8s and env from clean docker container (image docker official clickhouse) become looks like in operator container CLICKHOUSE_PORT=tcp://172.20.73.248:8123 in k8s i have no idea why |
always better to add env explicitly to container to avoid conflicts with other container in the same pod but 9000 is default value @1Const1 which Where did you see |
for backup container for clickhouse i'm not sure what gives this effect because if i created deployment by myself inside pod env i will see correct env val CLICKHOUSE_PORT=9000 but inside clickhouse-backup or clickhouse containers by operator i will se something like this CLICKHOUSE_PORT=tcp://172.20.73.248:8123 but in my case only subnet will be internal like 10.250.78.56 |
https://hub.docker.com/r/yandex/clickhouse-server/tags?page=1&name=24.2 could you share?
|
Hi Alex,
Unable to list /create Clickhouse backups,
Below are details for your reference.
Backup tool version : 1.2.2
Running on Container image: On top of AWS EKS
Clickhouse version : x86_64 image)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Error Message : -
List :-
Server-1# ./clickhouse-backup -c config.yml list
2022/02/11 08:50:34 error envconfig.Process: assigning __CLICKHOUSE_PORT to Port: converting 'tcp://10.43.234.97:8123' to type uint. details: strconv.ParseUint: parsing "tcp://10.43.234.97:8123": invalid syntax
Create backup:-
Server-1# ./clickhouse-backup -c config.yml create 'backup-1'
2022/02/11 08:50:34 error envconfig.Process: assigning __CLICKHOUSE_PORT to Port: converting 'tcp://10.43.234.97:8123' to type uint. details: strconv.ParseUint: parsing "tcp://10.43.234.97:8123": invalid syntax
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I found a similar issue: #165 - Fixed
Using the latest backup tool version : [1.2.2] & default config.yml file - Not sure why the issue occures?
Please check to help me.
The text was updated successfully, but these errors were encountered: