vsf not working with docker installation guide / tutorial
See original GitHub issueCurrent behavior
I have successfully installed the vsf-api and vsf without any problem. But when I tried to run the http://localhost:3000, the server is not running because an error. When I checked the logs with “docker-compose logs -f” at “vue-storefront” folder, there is a missing theme required, “vsf-default” or “vsf-capybara”.
So I tried to install the vsf-default theme, and successfully running the and access the http://localhost:3000 (with “yarn dev”, “docker-compose up -d” in tutorial not working).
But it always redirect to http://localhost:3000/error everytime I refresh any pages. And this is the error log I found on vsf log :
[search] Can not connect the vue-storefront-api / ElasticSearch instance! Error: {"code":500,"result":{"root_cause":[{"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"vue_storefront_catalog","index_uuid":"_na_","index":"vue_storefront_catalog"}],"type":"index_not_found_exception","reason":"no such index","resource.type":"index_or_alias","resource.id":"vue_storefront_catalog","index_uuid":"_na_","index":"vue_storefront_catalog"}}
Expected behavior
Steps to reproduce the issue
just follow this tutorial “install with docker” part. https://docs.vuestorefront.io/guide/cookbook/setup.html#_0-introduction
Repository
Can you handle fixing this bug by yourself?
- YES
- NO
Which Release Cycle state this refers to? Info for developer.
Pick one option.
- This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
release
branch and create Pull Request3. Stabilisation fix
back torelease
. - This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from
hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.
Environment details
- Browser: Google Chrome, Version 83.0.4103.61 (Official Build) (64-bit)
- OS: Mac OS Mojave, 10.14.5
- Node: 10.15.3
- Code Version: vsf-api 29d4ce5, vsf d04b90f
Additional information
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:10
I spend a week dealing with this issue and no idea how fix it… no mentioned on the documentation. For somebody like me with no idea about the project is hard to follow and get it up and running vue-storefront. Please update the https://docs.vuestorefront.io/guide/cookbook/setup.html#_0-introduction thanks
@gibkigonzo I’ve tried the ES add-on, and yeah, it seems thats the problem, my ES health status is not connected. So I tried run
yarn restore
and its running now. But why the documentation not mention it at all? and do I have run it everytime I up the container?