Guest User

Untitled

a guest
Jun 25th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.34 KB | None | 0 0
  1. ERROR: cve-update-db-1.0-r0 do_populate_cve_db: Error executing a python function in exec_python_func() autogenerated:
  2.  
  3. The stack trace of python calls that resulted in this exception/failure was:
  4. File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
  5. 0001:
  6. *** 0002:do_populate_cve_db(d)
  7. 0003:
  8. File: '/yocto/poky/meta/recipes-core/meta/cve-update-db.bb', lineno: 47, function: do_populate_cve_db
  9. 0043: meta_url = year_url + ".meta"
  10. 0044: json_url = year_url + ".json.gz"
  11. 0045:
  12. 0046: # Retrieve meta last modified date
  13. *** 0047: with http.request('GET', meta_url, preload_content=False) as r:
  14. 0048: date_line = str(r.data.splitlines()[0])
  15. 0049: last_modified = re.search('lastModifiedDate:(.*)', date_line).group(1)
  16. 0050:
  17. 0051: # Compare with current db last modified date
  18. File: '/usr/lib/python3/dist-packages/urllib3/request.py', lineno: 69, function: request
  19. 0065:
  20. 0066: if method in self._encode_url_methods:
  21. 0067: return self.request_encode_url(method, url, fields=fields,
  22. 0068: headers=headers,
  23. *** 0069: **urlopen_kw)
  24. 0070: else:
  25. 0071: return self.request_encode_body(method, url, fields=fields,
  26. 0072: headers=headers,
  27. 0073: **urlopen_kw)
  28. File: '/usr/lib/python3/dist-packages/urllib3/request.py', lineno: 90, function: request_encode_url
  29. 0086:
  30. 0087: if fields:
  31. 0088: url += '?' + urlencode(fields)
  32. 0089:
  33. *** 0090: return self.urlopen(method, url, **extra_kw)
  34. 0091:
  35. 0092: def request_encode_body(self, method, url, fields=None, headers=None,
  36. 0093: encode_multipart=True, multipart_boundary=None,
  37. 0094: **urlopen_kw):
  38. File: '/usr/lib/python3/dist-packages/urllib3/poolmanager.py', lineno: 163, function: urlopen
  39. 0159:
  40. 0160: if self.proxy is not None and u.scheme == "http":
  41. 0161: response = conn.urlopen(method, url, **kw)
  42. 0162: else:
  43. *** 0163: response = conn.urlopen(method, u.request_uri, **kw)
  44. 0164:
  45. 0165: redirect_location = redirect and response.get_redirect_location()
  46. 0166: if not redirect_location:
  47. 0167: return response
  48. File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 630, function: urlopen
  49. 0626: "broken by '%r': %s" % (retries, err, url))
  50. 0627: return self.urlopen(method, url, body, headers, retries,
  51. 0628: redirect, assert_same_host,
  52. 0629: timeout=timeout, pool_timeout=pool_timeout,
  53. *** 0630: release_conn=release_conn, **response_kw)
  54. 0631:
  55. 0632: # Handle redirect?
  56. 0633: redirect_location = redirect and response.get_redirect_location()
  57. 0634: if redirect_location:
  58. File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 630, function: urlopen
  59. 0626: "broken by '%r': %s" % (retries, err, url))
  60. 0627: return self.urlopen(method, url, body, headers, retries,
  61. 0628: redirect, assert_same_host,
  62. 0629: timeout=timeout, pool_timeout=pool_timeout,
  63. *** 0630: release_conn=release_conn, **response_kw)
  64. 0631:
  65. 0632: # Handle redirect?
  66. 0633: redirect_location = redirect and response.get_redirect_location()
  67. 0634: if redirect_location:
  68. File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 630, function: urlopen
  69. 0626: "broken by '%r': %s" % (retries, err, url))
  70. 0627: return self.urlopen(method, url, body, headers, retries,
  71. 0628: redirect, assert_same_host,
  72. 0629: timeout=timeout, pool_timeout=pool_timeout,
  73. *** 0630: release_conn=release_conn, **response_kw)
  74. 0631:
  75. 0632: # Handle redirect?
  76. 0633: redirect_location = redirect and response.get_redirect_location()
  77. 0634: if redirect_location:
  78. File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 610, function: urlopen
  79. 0606: elif isinstance(e, (SocketError, HTTPException)):
  80. 0607: e = ProtocolError('Connection aborted.', e)
  81. 0608:
  82. 0609: retries = retries.increment(method, url, error=e, _pool=self,
  83. *** 0610: _stacktrace=sys.exc_info()[2])
  84. 0611: retries.sleep()
  85. 0612:
  86. 0613: # Keep track of the error for the retry warning.
  87. 0614: err = e
  88. File: '/usr/lib/python3/dist-packages/urllib3/util/retry.py', lineno: 283, function: increment
  89. 0279: connect=connect, read=read, redirect=redirect,
  90. 0280: _observed_errors=_observed_errors)
  91. 0281:
  92. 0282: if new_retry.is_exhausted():
  93. *** 0283: raise MaxRetryError(_pool, url, error or ResponseError(cause))
  94. 0284:
  95. 0285: log.debug("Incremented Retry for (url='%s'): %r" % (url, new_retry))
  96. 0286:
  97. 0287: return new_retry
  98. Exception: urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='nvd.nist.gov', port=443): Max retries exceeded with url: /feeds/json/cve/1.0/nvdcve-1.0-2002.meta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f787f1a8908>: Failed to establish a new connection: [Errno -2] Name or service not known',))
  99.  
  100. ERROR: cve-update-db-1.0-r0 do_populate_cve_db: HTTPSConnectionPool(host='nvd.nist.gov', port=443): Max retries exceeded with url: /feeds/json/cve/1.0/nvdcve-1.0-2002.meta (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f787f1a8908>: Failed to establish a new connection: [Errno -2] Name or service not known',))
  101. ERROR: cve-update-db-1.0-r0 do_populate_cve_db: Function failed: do_populate_cve_db
Add Comment
Please, Sign In to add comment