Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to setup vue-storefront in CentOS7 #3564

Closed
razzul opened this issue Sep 16, 2019 · 11 comments
Closed

Unable to setup vue-storefront in CentOS7 #3564

razzul opened this issue Sep 16, 2019 · 11 comments
Labels
question If you are not sure how sth works or want discuss someting

Comments

@razzul
Copy link

razzul commented Sep 16, 2019

@razzul razzul added the question If you are not sure how sth works or want discuss someting label Sep 16, 2019
@razzul
Copy link
Author

razzul commented Sep 16, 2019

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

@martinkosmela
Copy link

martinkosmela commented Sep 16, 2019

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.

@pkarw
Copy link
Collaborator

pkarw commented Sep 16, 2019

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

@pkarw pkarw closed this as completed Sep 16, 2019
@razzul
Copy link
Author

razzul commented Sep 20, 2019

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

  _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

@pkarw
Copy link
Collaborator

pkarw commented Sep 20, 2019

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

@razzul
Copy link
Author

razzul commented Sep 20, 2019

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

@razzul
Copy link
Author

razzul commented Sep 20, 2019

Can't even do "yarn db rebuild" or "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}"}

@pkarw
Copy link
Collaborator

pkarw commented Sep 20, 2019

it's compatible only with ES5.6; the vuestorefront/vue-storefront-api#342 will be compatible from 6> up

@razzul
Copy link
Author

razzul commented Sep 20, 2019

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

@razzul
Copy link
Author

razzul commented Sep 20, 2019

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

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/.....................

@razzul
Copy link
Author

razzul commented Sep 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question If you are not sure how sth works or want discuss someting
Projects
None yet
Development

No branches or pull requests

3 participants