Vue-storefront: Unable to setup vue-storefront in CentOS7

Created on 16 Sep 2019  路  11Comments  路  Source: DivanteLtd/vue-storefront

question

Most helpful comment

it's compatible only with ES5.6; the https://github.com/DivanteLtd/vue-storefront-api/pull/342 will be compatible from 6> up

All 11 comments

node -v
v10.16.0

yarn -v
1.17.3

docker -v
Docker version 19.03.2, build 6a30dfc

docker-compose -v
docker-compose version 1.23.2, build 1110ad01

cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core)

redis-cli -v
redis-cli 5.0.5

You probably need to add your system user to Docker group in order to allow run Docker commands.

sudo usermod -aG docker $YOUR_USER
newgrp docker

I hope it helps.

@razzul please use our https://forum.vuestorefront.io for those kind of questions

Hi @martinkosmela
I was trying to execute "yarn restore" and getting these error messages

```{ _index: 'vue_storefront_catalog_temp',
_type: 'product',
_id: '1973',
status: 400,
error:
{ type: 'illegal_argument_exception',
reason:
'Rejecting mapping update to [vue_storefront_catalog_temp] as the final mapping would have more than 1 type: [product, attribute]' } }

Done in 11.21s.```

but in my local its totally fine

we don't support ES7 yet - it's in the making: https://github.com/DivanteLtd/vue-storefront-api/pull/342

we don't support ES7 yet - it's in the making: DivanteLtd/vue-storefront-api#342

Hi @pkarw, thanks for the reply but I am not using ES7
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1

Can't even do "yarn db rebuild" or "yarn db rebuild -- --indexName=vue_storefront_catalog_1"

```[karmickdev@host vue-storefront-api]$ yarn db rebuild -- --indexName=vue_storefront_catalog_1
yarn run v1.17.3
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
$ node scripts/db.js rebuild --indexName=vue_storefront_catalog_1
Elasticsearch INFO: 2019-09-20T13:03:11Z
Adding connection to http://karmickdev.com:9699/

* Hello! I am going to rebuild EXISTING ES index to fix the schema
*
Creating temporary index vue_storefront_catalog_1_1568984592
Elasticsearch DEBUG: 2019-09-20T13:03:11Z
starting request {
"method": "DELETE",
"path": "/*/_alias/vue_storefront_catalog_1_1568984592",
"query": {}
}

Elasticsearch DEBUG: 2019-09-20T13:03:11Z
Request complete

Public index alias does not exists [aliases_not_found_exception] aliases [vue_storefront_catalog_1_1568984592] missing, with { resource.type="aliases" & resource.id="vue_storefront_catalog_1_1568984592" }
Elasticsearch DEBUG: 2019-09-20T13:03:11Z
starting request {
"method": "DELETE",
"path": "/vue_storefront_catalog_1_1568984592",
"query": {}
}

Elasticsearch DEBUG: 2019-09-20T13:03:11Z
Request complete

Elasticsearch DEBUG: 2019-09-20T13:03:11Z
starting request {
"method": "PUT",
"path": "/vue_storefront_catalog_1_1568984592",
"body": {
"settings": {
"analysis": {
"tokenizer": {
"comma": {
"type": "pattern",
"pattern": ","
}
},
"analyzer": {
"comma": {
"type": "custom",
"tokenizer": "comma"
}
}
}
}
},
"query": {}
}

Elasticsearch DEBUG: 2019-09-20T13:03:12Z
Request complete

{ acknowledged: true,
shards_acknowledged: true,
index: 'vue_storefront_catalog_1_1568984592' }
** Putting the mappings on top of vue_storefront_catalog_1_1568984592
Elasticsearch DEBUG: 2019-09-20T13:03:12Z
starting request {
"method": "PUT",
"path": "/vue_storefront_catalog_1_1568984592/_mapping/product",
"body": {
"properties": {
"sku": {
"type": "keyword"
},
"url_key": {
"type": "keyword"
},
"url_path": {
"type": "keyword"
},
"slug": {
"type": "keyword"
},
"size": {
"type": "integer"
},
"size_options": {
"type": "integer"
},
"price": {
"type": "float"
},
"has_options": {
"type": "integer"
},
"special_price": {
"type": "float"
},
"color": {
"type": "integer"
},
"color_options": {
"type": "integer"
},
"pattern": {
"type": "text"
},
"id": {
"type": "long"
},
"status": {
"type": "integer"
},
"weight": {
"type": "integer"
},
"visibility": {
"type": "integer"
},
"created_at": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"updated_at": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"special_from_date": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"special_to_date": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"news_from_date": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"news_to_date": {
"type": "date",
"format": "yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"
},
"description": {
"type": "text"
},
"name": {
"type": "text"
},
"configurable_children": {
"properties": {
"url_key": {
"type": "keyword"
},
"sku": {
"type": "keyword"
},
"has_options": {
"type": "boolean"
},
"price": {
"type": "float"
},
"special_price": {
"type": "float"
}
}
},
"configurable_options": {
"properties": {
"attribute_id": {
"type": "long"
},
"default_label": {
"type": "text"
},
"label": {
"type": "text"
},
"frontend_label": {
"type": "text"
},
"store_label": {
"type": "text"
},
"values": {
"properties": {
"default_label": {
"type": "text"
},
"label": {
"type": "text"
},
"frontend_label": {
"type": "text"
},
"store_label": {
"type": "text"
},
"value_index": {
"type": "keyword"
}
}
}
}
},
"category_ids": {
"type": "long"
},
"eco_collection": {
"type": "integer"
},
"eco_collection_options": {
"type": "integer"
},
"erin_recommends": {
"type": "integer"
},
"tax_class_id": {
"type": "integer"
},
"gender": {
"type": "integer"
},
"material": {
"type": "integer"
},
"category_gear": {
"type": "integer"
},
"position": {
"type": "integer"
},
"required_options": {
"type": "integer"
},
"Size_options": {
"type": "keyword"
},
"Color_options": {
"type": "keyword"
}
}
},
"query": {}
}

Elasticsearch DEBUG: 2019-09-20T13:03:12Z
Request complete

{ acknowledged: true }
Elasticsearch DEBUG: 2019-09-20T13:03:12Z
starting request {
"method": "PUT",
"path": "/vue_storefront_catalog_1_1568984592/_mapping/taxrule",
"body": {
"properties": {
"id": {
"type": "long"
},
"rates": {
"properties": {
"rate": {
"type": "float"
}
}
}
}
},
"query": {}
}

Elasticsearch DEBUG: 2019-09-20T13:03:12Z
Request complete

Unhandled Rejection at: Promise [object Promise], reason: Error: [illegal_argument_exception] Rejecting mapping update to [vue_storefront_catalog_1_1568984592] as the final mapping would have more than 1 type: [product, taxrule] :: {"path":"/vue_storefront_catalog_1_1568984592/_mapping/taxrule","query":{},"body":"{"properties":{"id":{"type":"long"},"rates":{"properties":{"rate":{"type":"float"}}}}}","statusCode":400,"response":"{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [vue_storefront_catalog_1_1568984592] as the final mapping would have more than 1 type: [product, taxrule]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [vue_storefront_catalog_1_1568984592] as the final mapping would have more than 1 type: [product, taxrule]"},"status":400}"}
```

it's compatible only with ES5.6; the https://github.com/DivanteLtd/vue-storefront-api/pull/342 will be compatible from 6> up

I am able to run "yarn restore" now, thanks

Do you have any idea how to pass token as you can seen in the errro token is missing.

error: uncaughtException: [security_exception] missing authentication token for REST request [/vue_storefront_catalog/product/_delete_by_query?conflicts=proceed], with { header={ WWW-Authenticate="Basic realm=\"security\" charset=\"UTF-8\"" } } :: {"path":"/vue_storefront_catalog/product/_delete_by_query","query":{"conflicts":"proceed"},"body":"{\"query\":{\"bool\":{\"must_not\":{\"term\":{\"tsk\":1568987488971}}}}}","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"missing authentication token for REST request [/vue_storefront_catalog/.....................

Hi @pkarw, thanks for your support is now running in our stage server
http://karmickdev.com:3001

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorkvist picture jorkvist  路  5Comments

jonashrem picture jonashrem  路  3Comments

sandermangel picture sandermangel  路  5Comments

paulocoghi picture paulocoghi  路  5Comments

alinadivante picture alinadivante  路  5Comments