mirror of
https://github.com/clearml/clearml-docs
synced 2025-02-14 16:36:09 +00:00
Update code in FAQ (#943)
This commit is contained in:
parent
55c48895e3
commit
9eedc43dfb
19
docs/faq.md
19
docs/faq.md
@ -716,19 +716,20 @@ registered was their full URL at the time of registration (e.g. `https://files.<
|
|||||||
|
|
||||||
To fix this, the registered URL of each debug image and/or artifact needs to be replaced with its current URL.
|
To fix this, the registered URL of each debug image and/or artifact needs to be replaced with its current URL.
|
||||||
|
|
||||||
* For **debug images**, use the following command. Make sure to insert the old address and the new address that will replace it
|
* For **debug images**, use the following command. Make sure to insert the old address and the new address that will replace it:
|
||||||
|
|
||||||
|
:::important
|
||||||
|
Note that in the following command, the `'\''` sequences end with double single quotes (`''`) and not double quotes (`"`)
|
||||||
|
:::
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl --header "Content-Type: application/json" \
|
curl -XPOST -H "Content-Type: application/json" "localhost:9200/events-training_debug_image-*/_update_by_query?conflicts=proceed" -d'{
|
||||||
--request POST \
|
|
||||||
--data '{
|
|
||||||
"script": {
|
"script": {
|
||||||
"source": "ctx._source.url = ctx._source.url.replace('https://files.<OLD_ADDRESS>', 'https://files.<NEW_ADDRESS>')",
|
"source": "ctx._source.url = ctx._source.url.replace('\''https://files.<OLD_ADDRESS>'\'', '\''https://files.<NEW_ADDRESS>'\'')",
|
||||||
"lang": "painless"
|
"lang": "painless"
|
||||||
},
|
},
|
||||||
"query": {
|
"query": {"prefix": {"url": {"value": "https://files.<OLD_ADDRESS>"}}}
|
||||||
"match_all": {}
|
}'
|
||||||
}
|
|
||||||
}' \
|
|
||||||
```
|
```
|
||||||
|
|
||||||
* For **artifacts**, you can do the following:
|
* For **artifacts**, you can do the following:
|
||||||
|
Loading…
Reference in New Issue
Block a user