Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52260

Fix race condition in dev env: "error: Failed to query updates { Error: Cannot read property 'docker-cloud' of undefined"

XMLWordPrintable

    • Evergreen - Milestone 1

      When the backend has no update at all, looking up the DB will yield nothing. In dev env, this can happen for a race condition in tests.sh, if the curl is called after the client has queried the backend for an update. (Or, probably, if the curl call is issued before the backend endpoint is really available).

      info: ..starting runloop
      info: Periodic using minute offset of 10
      info: Registering periodic hourly task: post-status
      info: Registering periodic dailytask: check-for-updates
      info: Setting up error logging...
      info: Watching /evergreen/jenkins/var/logs/essentials.log.0
      info: Error Telemetry Logging file watching configured
      error: Failed to query updates { Error: Cannot read property 'docker-cloud' of undefined
          at convert (/evergreen/client/node_modules/@feathersjs/errors/lib/index.js:240:7)
          at toError (/evergreen/client/node_modules/@feathersjs/rest-client/lib/base.js:12:9)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:188:7)
        status: 'ERROR',
        response: 
         Response {
           size: 0,
           timeout: 0,
           [Symbol(Body internals)]: { body: [Object], disturbed: true, error: null },
           [Symbol(Response internals)]: 
            { url: 'http://backend:3030/update/8de6aa30-5bee-45fc-aa28-c8dad9a67002?level=0',
              status: 500,
              statusText: 'Internal Server Error',
              headers: [Object] } } } undefined undefined
      2018-06-28 14:57:49,424 INFO success: evergreen-client entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
      error: Failed to query updates { Error: Cannot read property 'docker-cloud' of undefined
          at convert (/evergreen/client/node_modules/@feathersjs/errors/lib/index.js:240:7)
          at toError (/evergreen/client/node_modules/@feathersjs/rest-client/lib/base.js:12:9)
          at <anonymous>
          at process._tickCallback (internal/process/next_tick.js:188:7)
        status: 'ERROR',
        response: 
         Response {
           size: 0,
           timeout: 0,
           [Symbol(Body internals)]: { body: [Object], disturbed: true, error: null },
           [Symbol(Response internals)]: 
            { url: 'http://backend:3030/update/8de6aa30-5bee-45fc-aa28-c8dad9a67002?level=0',
              status: 500,
              statusText: 'Internal Server Error',
              headers: [Object] } } } undefined undefined
      

            batmat Baptiste Mathus
            batmat Baptiste Mathus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: