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

Docker errors #10

Open
jbonnett92 opened this issue Feb 15, 2018 · 8 comments
Open

Docker errors #10

jbonnett92 opened this issue Feb 15, 2018 · 8 comments

Comments

@jbonnett92
Copy link

jbonnett92 commented Feb 15, 2018

Hi,
When I run kraken.sh I get the following errors:
docker: Error response from daemon: error while creating mount source path '/Users/Cramirez/.docker/machine/machines/manager1': mkdir /Users/Cramirez: protocol error.

docker: Error response from daemon: error while creating mount source path '/Users/Cramirez/.docker/machine/machines/worker1': mkdir /Users/Cramirez: protocol error.

docker: Error response from daemon: error while creating mount source path '/Users/Cramirez/.docker/machine/machines/worker2': mkdir /Users/Cramirez: protocol error.

Error: No such container: api-gateway-service

Error: No such image: api-gateway-service

I can open Rancher although I can't see any workers.
Any ideas? Sorry is this is really simple I am new to Microservices and Docker.

Thanks,
Jamie

@mmestani
Copy link

mmestani commented Feb 22, 2018

@jbonnett92 - You should change the user folder path to match your username in api-gateway/start-service.sh in line number 19..

@jbonnett92
Copy link
Author

@mmestani That fixed the protocol error although none of the others.

@jbonnett92
Copy link
Author

jbonnett92 commented Apr 28, 2018

Please help, I posted this just over 2 months ago. I have a feeling it's due to a depreciated dependency.



@jbonnett92
Copy link
Author

jbonnett92 commented Apr 28, 2018

Ok so far I have noticed that the API-Gateway wasn't running due to not having a certificate. So I generated one and started the services again. Some services are still failing so I will continue to try and get it up and running.

An error has occured fetching schedules by movie, err: MongoError: The 'cursor' option is required, except for aggregate with the explain argument

@alpz13
Copy link

alpz13 commented Apr 29, 2018 via email

@jbonnett92
Copy link
Author

jbonnett92 commented Apr 29, 2018

Thank you for the reply. I'm sure that this is not the problem, as you can see in the test screenshot I get an error 500 which means there is a connection. Not just that I have checked the logs and have an error in the repository.js saying that the cursor is missing in one of the database calls.

Unfortunately every time I edit code I can't see anything reflected on runtime.

Although I will double check this.

Update:
As you can see manager1 can talk to worker1 and worker2

Also I can access the service no matter the IP and get the same result


Same goes for the movies service seen as it is running on manager1 e.g. the services connect both ways manger1 to worker1 and worker1 to manager1


@jbonnett92
Copy link
Author

jbonnett92 commented Apr 30, 2018

I also found that one of the tests in api-gateway was incorrect for server.js as server.start() expects the container object rather than a options object, the container object using a function to retrieve values instead.

So I fixed api-gateway/server/server.spec.js like so:

/* eslint-env mocha */
const server = require('./server')

describe('Server', () => {
  it('should require a port to start', () => {
    return server.start({
      resolve: (key) => {
        return key == 'routes' ? {} : null
      }
    }).should.be.rejectedWith(/port/)
  })

  it('should require a repository to start', () => {
    return server.start({
      resolve: (key) => {
        return key == 'serverSettings' ? {} : null
      }
    }).should.be.rejectedWith(/routes/)
  })
})

I know it's the same case with the booking-service, notification-service and payment-service, but not the movies-service, cinema-catalog-service.

@KrGyan
Copy link

KrGyan commented Jul 19, 2019

Ok so far I have noticed that the API-Gateway wasn't running due to not having a certificate

Did you generate the certificates in manager1 or under api-service ? Please help me to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants