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

Data missing from local development #1610

Closed
fubarhouse opened this issue Jan 28, 2020 · 0 comments
Closed

Data missing from local development #1610

fubarhouse opened this issue Jan 28, 2020 · 0 comments

Comments

@fubarhouse
Copy link
Contributor

@fubarhouse fubarhouse commented Jan 28, 2020

Describe the bug
Tasks and deployments fail to appear for local development when the service broker is absent.

To Reproduce

  1. make ui-development
  2. Wait for applicaiton
  3. Attempt to see tasks and deployments
  4. See the following error in the logs indicating a missing connection to the service broker

Error details

 error: { Error: getaddrinfo ENOTFOUND broker broker:5672
 warn: 
     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
 From previous event:
     at Object.connect (/app/node_modules/amqplib/channel_api.js:6:18)
     at RabbitMqSingletonConnectionFactory.module.exports.RabbitMqSingletonConnectionFactory.create (/app/node_modules/rabbitmq-pub-sub/dist/main.js:169:52)
     at RabbitMqPublisher.module.exports.RabbitMqPublisher.publish (/app/node_modules/rabbitmq-pub-sub/dist/main.js:326:39)
     at AmqpPubSub.publish (/app/node_modules/graphql-rabbitmq-subscriptions/dist/amqp-pubsub.js:23:23)
     at Object.<anonymous> (/app/services/api/dist/resources/backup/resolvers.js:56:12)
     at Generator.next (<anonymous>)
     at fulfilled (/app/services/api/dist/resources/backup/resolvers.js:5:58)
     at process._tickCallback (internal/process/next_tick.js:68:7)
   cause:
    { Error: getaddrinfo ENOTFOUND broker broker:5672
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
      errno: 'ENOTFOUND',
      code: 'ENOTFOUND',
      syscall: 'getaddrinfo',
      hostname: 'broker',
      host: 'broker',
      port: 5672 },
   isOperational: true,
   errno: 'ENOTFOUND',
   code: 'ENOTFOUND',
   syscall: 'getaddrinfo',
   hostname: 'broker',
   host: 'broker',
   port: 5672 } 'failed to recieve message from queue \'%s\'' 'api.event.task.added'
 error: { Error: getaddrinfo ENOTFOUND broker broker:5672
     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
 From previous event:
     at Object.connect (/app/node_modules/amqplib/channel_api.js:6:18)
     at RabbitMqSingletonConnectionFactory.module.exports.RabbitMqSingletonConnectionFactory.create (/app/node_modules/rabbitmq-pub-sub/dist/main.js:169:52)
     at RabbitMqPublisher.module.exports.RabbitMqPublisher.publish (/app/node_modules/rabbitmq-pub-sub/dist/main.js:326:39)
     at AmqpPubSub.publish (/app/node_modules/graphql-rabbitmq-subscriptions/dist/amqp-pubsub.js:23:23)
     at Object.<anonymous> (/app/services/api/dist/resources/backup/resolvers.js:56:12)
     at Generator.next (<anonymous>)
     at fulfilled (/app/services/api/dist/resources/backup/resolvers.js:5:58)
     at process._tickCallback (internal/process/next_tick.js:68:7)
   cause:
    { Error: getaddrinfo ENOTFOUND broker broker:5672
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:56:26)
      errno: 'ENOTFOUND',
      code: 'ENOTFOUND',
      syscall: 'getaddrinfo',
      hostname: 'broker',
      host: 'broker',
      port: 5672 },
   isOperational: true,
   errno: 'ENOTFOUND',
   code: 'ENOTFOUND',
   syscall: 'getaddrinfo',
   hostname: 'broker',
   host: 'broker',
   port: 5672 } 'failed to recieve message from queue \'%s\'' 'api.event.task.updated'
 (node:71) UnhandledPromiseRejectionWarning: 4
 (node:71) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 29)

Expected behavior
Error should be handled and data should still be present.

Screenshots
image

Additional context
I have a code waiting for the submission of a PR to correct this to be submitted shortly.

fubarhouse added a commit to fubarhouse/lagoon that referenced this issue Jan 28, 2020
Schnitzel added a commit that referenced this issue Feb 4, 2020
#1610: Add service broker to local development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.