vue-storefront API | Facing error while installing

Created on 3 Aug 2018  路  8Comments  路  Source: DivanteLtd/vue-storefront

Connector to Mangento : https://medium.com/@piotrkarwatka/vue-storefront-how-to-install-and-integrate-with-magento2-227767dd65b2

Without docker, it will install API?

In reference URL also mention "you must have docker and redis instances up and running (docker-compose up in vue-storefront-api directory)"

I am using ubuntu 16.0 OS. I installed npm, yarn etc..

I have not docker.

I am getting error as docker can't start automatically.
Refer attached screenshot

error-docker

Most helpful comment

I tried creating a docker group but again having the same issue.

All 8 comments

You have to install docker , create the docker group and add your account to the group.

To create the docker group and add your user:

Create the docker group.

$ sudo groupadd docker

Add your user to the docker group.

$ sudo usermod -aG docker $USER

I tried creating a docker group but again having the same issue.

Is anyone have the solution of this issue. I am getting the same issue.

I am also facing the same issue

Am also facing same issue, USER already added into group.

I can run "docker run hello-world" which work fine

what else am missing

But am able to run through "docker -composer up -d"

For latecomers,

In my case I have old docker version, that causing the issue.

But if you still facing the issue then do below changes, so will get more idea about the error

  1. find line[196], vue-storefront/core/scripts/installer.js
  2. inside [if] condition change "docker-compose up -d > /dev/null 2>&1" to "docker-compose up -d"
    i.e.

    if (shell.exec(docker-compose up -d).code !== 0) {
    reject(new Error('Can\'t start Docker in background.'))
    }

just use "sudo docker-compose up -d" inside (vue-storefront/core/scripts/installer.js) in line 196

To resolve this error edit the line 196 in path

vue-storefront/core/scripts/installer.js
change conditon to "sudo docker -composer up -d"

/**

  • Run 'docker-compose up' in background
    *
  • @returns {Promise}
    */
    dockerComposeUp () {
    return new Promise((resolve, reject) => {
    Message.info('Starting Docker in background...')
  if (shell.exec(`sudo docker-compose up -d`).code !== 0) {
    reject(new Error('Can\'t start Docker in background.'))
  }
  // Adding 20sec timer for ES to get up and running
  // before starting restoration and migration processes
  setTimeout(() => { resolve() }, 20000)
})

}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jensderond picture Jensderond  路  5Comments

pkarw picture pkarw  路  5Comments

ArjanStudent picture ArjanStudent  路  3Comments

kyvaith picture kyvaith  路  5Comments

talalus picture talalus  路  4Comments