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"}}
just follow this tutorial "install with docker" part.
https://docs.vuestorefront.io/guide/cookbook/setup.html#_0-introduction
Pick one option.
develop branch and create Pull Request 2. Feature / Improvement back to develop.release branch and create Pull Request 3. Stabilisation fix back to release.hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.Hey, you are trying to fetch data from ES with index vue_storefront_catalog. Check if you indeed have index vue_storefront_catalog_${timestamp} and alias vue_storefront_catalog. You can use https://chrome.google.com/webstore/detail/elasticsearch-head/ffmkiejjmecolpfloofpjologoblkegm to check you ES connection
I have run the same instructions from the tutorial through my docker instance. My error output looks like this if this helps with debugging
$ cross-env TS_NODE_PROJECT="tsconfig-build.json" ts-node ./core/scripts/generate-files.ts
WARNING: NODE_ENV value of 'docker' did not match any deployment config file names.
WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode
The theme you want to use does not exist.
Please use 'vsf init' or install manually one of our official themes:
- https://github.com/DivanteLtd/vsf-capybara#--installation
- https://github.com/DivanteLtd/vsf-default#--installation
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@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?
oh I forgot to ask this, I see in tutorial that I just need to run docker-compose up -d, but when I tried to run the front server with docker-compose up -d and then run docker ps, I see the container is running but the port is empty for vue-storefront_app image. I tried open localhost:3000, nothing run on that server.
Currently, I'm using yarn dev to run the front server.
@kkdg can you take a look?
@kkdg is working on docs update on docker - should be covered with this new deploy shortly
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
Most helpful comment
@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 restoreand its running now. But why the documentation not mention it at all? and do I have run it everytime I up the container?