acoustic-businessperson-27970
11/17/2021, 2:20 PMdocker/sdk bootstrap
for the first time
File “./deploy.yml” is not accessible.
what should I do?average-branch-45579
11/17/2021, 2:22 PMacoustic-businessperson-27970
11/17/2021, 2:22 PMaverage-branch-45579
11/17/2021, 2:22 PMaverage-branch-45579
11/17/2021, 2:22 PMacoustic-businessperson-27970
11/17/2021, 2:23 PMacoustic-businessperson-27970
11/17/2021, 2:23 PMaverage-branch-45579
11/17/2021, 2:24 PMacoustic-businessperson-27970
11/17/2021, 2:24 PMaverage-branch-45579
11/17/2021, 2:24 PMaverage-branch-45579
11/17/2021, 2:24 PMacoustic-businessperson-27970
11/17/2021, 2:24 PMaverage-branch-45579
11/17/2021, 2:25 PMacoustic-businessperson-27970
11/17/2021, 2:25 PMacoustic-businessperson-27970
11/17/2021, 2:26 PMaverage-branch-45579
11/17/2021, 2:26 PMacoustic-businessperson-27970
11/17/2021, 2:26 PMaverage-branch-45579
11/17/2021, 2:26 PMaverage-branch-45579
11/17/2021, 2:27 PMdocker/sdk boot deploy.dev.yml
.acoustic-businessperson-27970
11/17/2021, 2:28 PMaverage-branch-45579
11/17/2021, 2:31 PMacoustic-businessperson-27970
11/17/2021, 2:32 PMacoustic-businessperson-27970
11/17/2021, 2:32 PMaverage-branch-45579
11/17/2021, 2:32 PMacoustic-businessperson-27970
11/17/2021, 2:33 PMacoustic-businessperson-27970
11/17/2021, 2:34 PMacoustic-businessperson-27970
11/17/2021, 2:35 PMacoustic-businessperson-27970
11/17/2021, 2:35 PMaverage-branch-45579
11/17/2021, 2:36 PMacoustic-businessperson-27970
11/17/2021, 2:36 PMacoustic-businessperson-27970
11/17/2021, 2:36 PMacoustic-businessperson-27970
11/17/2021, 2:38 PMdocker-compose-v1
so I did mv docker-compose docker-compose-v2
and mv docker-compose-v1 docker-compose
does this look ok ?cool-truck-47629
11/17/2021, 2:41 PMcool-truck-47629
11/17/2021, 2:42 PMdocker-compose disable-v2
acoustic-businessperson-27970
11/17/2021, 2:42 PMaverage-branch-45579
11/17/2021, 2:58 PMaverage-branch-45579
11/18/2021, 8:09 AMacoustic-businessperson-27970
11/18/2021, 12:47 PMacoustic-businessperson-27970
11/22/2021, 1:50 PMElastica\Exception\Connection\HttpException - Exception: Couldn't connect to host, Elasticsearch down?
in /data/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php (190)
Command: vendor/bin/console search:setup:sources
acoustic-businessperson-27970
11/22/2021, 1:52 PMException: Couldn't resolve host
not Exception: Couldn't connect to host, Elasticsearch down?
any clue?cool-truck-47629
11/22/2021, 1:52 PMacoustic-businessperson-27970
11/22/2021, 1:52 PMacoustic-businessperson-27970
11/22/2021, 1:52 PMacoustic-businessperson-27970
11/22/2021, 1:53 PMcool-truck-47629
11/22/2021, 1:53 PMacoustic-businessperson-27970
11/22/2021, 1:54 PMcool-truck-47629
11/22/2021, 1:55 PMacoustic-businessperson-27970
11/22/2021, 1:56 PMacoustic-businessperson-27970
11/22/2021, 1:56 PMaverage-branch-45579
11/22/2021, 1:56 PMaverage-branch-45579
11/22/2021, 1:57 PMacoustic-businessperson-27970
11/22/2021, 1:58 PMacoustic-businessperson-27970
11/22/2021, 1:58 PMacoustic-businessperson-27970
11/22/2021, 1:59 PMacoustic-businessperson-27970
11/22/2021, 1:59 PMacoustic-businessperson-27970
11/22/2021, 2:01 PMaverage-branch-45579
11/22/2021, 2:11 PMdocker/sdk cli
and there you will be able to run any console commands.
But workflows are a bit different in docker env.
For example you can just "reset" demo data by running docker/sdk demo
.
Or build the project after you checked out other branch by running docker/sdk build
.
Or reset the project completely (like vendor/bin/install) by running docker/sdk reset
.acoustic-businessperson-27970
11/22/2021, 2:11 PMacoustic-businessperson-27970
11/22/2021, 2:12 PMacoustic-businessperson-27970
11/22/2021, 3:28 PMacoustic-businessperson-27970
11/22/2021, 3:29 PMaverage-branch-45579
11/22/2021, 3:35 PMaverage-branch-45579
11/22/2021, 3:37 PMspryker/elastica
in you composer lock file. If it's v6, then it supports ES v7. If it's v5, it supports ES v6 only.acoustic-businessperson-27970
11/22/2021, 3:38 PMaverage-branch-45579
11/22/2021, 3:41 PMacoustic-businessperson-27970
11/22/2021, 4:13 PMElastica\Exception\ResponseException - Exception: [include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field. [reason: Failed to parse mapping [page]: [include_in_all] is not allowed for indices created on or after version 6.0.0 as [_all] is deprecated. As a replacement, you can use an [copy_to] on mapping fields to create your own catch all field.]
The command is
vendor/bin/console search:setup:sources
acoustic-businessperson-27970
11/22/2021, 4:15 PMaverage-branch-45579
11/23/2021, 8:26 AMRegarding <https://docs.spryker.com/docs/scos/dev/back-end-development/data-manipulation/data-interaction/search/configuring-elasticsearch.html#defining-new-indexes-and-mappings> it looks like call updates mapping <https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html>
Mapping and (or) indexes are for old EL version needs to be updated.
But it’s not an answer on his question, I don’t know how old project was, let it be one year old.
We are using spryker/install module to init project (command vendor/bin/install, the module uses project’s install config at config/install.
One year old .yml files contain such EL related commands:
vendor/bin/console search:setup:indexes
vendor/bin/console search:setup:index-map
Will assume that's the answer :)
acoustic-businessperson-27970
11/24/2021, 8:54 AMaverage-branch-45579
11/24/2021, 5:05 PMdocker system prune -a && docker system prune --volumes
. Volumes for different ES versions are not compatible.average-branch-45579
11/24/2021, 5:06 PMacoustic-businessperson-27970
11/25/2021, 8:15 AM