-
Hi, we are using the version 1.5.2 of clickhouse-backup and recently upgraded to the 2.1.3 image. The very first thing that broke for us was a HTTP 201 instead of a HTTP 200 in the API call to backup. Where can we find the release notes for 2.0.x and any special considerations when upgrading from 1.x to 2.x? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
How exactly do you try to call API backup? # clickhouse-backup --version
Version: 2.1.3
Git Commit: f3e6a5667371bfa122e5a907b68e5004b40251f7
Build Date: 2022-12-26
# curl -vvv http://127.0.0.1:7171/backup/status
* Trying 127.0.0.1:7171...
* Connected to 127.0.0.1 (127.0.0.1) port 7171 (#0)
> GET /backup/status HTTP/1.1
> Host: 127.0.0.1:7171
> User-Agent: curl/7.83.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Tue, 31 Jan 2023 10:57:47 GMT
< Content-Length: 99
< Content-Type: text/plain; charset=utf-8
<
{"command":"list","status":"success","start":"2023-01-31 04:27:49","finish":"2023-01-31 04:27:49"}
* Connection #0 to host 127.0.0.1 left intact |
Beta Was this translation helpful? Give feedback.
-
This is our ansible playbook's output that does the backup |
Beta Was this translation helpful? Give feedback.
-
could you share your ansible playbook part which call API? not just execution log? |
Beta Was this translation helpful? Give feedback.
-
Nothing special
The variable are all set somewhere else. |
Beta Was this translation helpful? Give feedback.
-
looks weird, are you sure your playbook works with 1.5.2?
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
found root cause you just can change your playbook and add status_code: [200, 201] or use common POST /backup/actions body: '{"command":"create {{file_name}}-{{ item }} --tables {{ table_query }}"}' i will add changelog comment to 2.1.0 release |
Beta Was this translation helpful? Give feedback.
found root cause
look like it was minor error, and error was fixed during massive refactoring for 2.1.0 version
https://github.com/AlexAkulov/clickhouse-backup/blame/master/pkg/server/utils.go#L35
you just can change your playbook and add
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/uri_module.html#parameter-status_code
or use common POST /backup/actions
with
i will add changelog comment to 2.1.0 release