Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR: cve-update-db-1.0-r0 do_populate_cve_db: Error executing a python function in exec_python_func() autogenerated:
- The stack trace of python calls that resulted in this exception/failure was:
- File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
- 0001:
- *** 0002:do_populate_cve_db(d)
- 0003:
- File: '/yocto/poky/meta/recipes-core/meta/cve-update-db.bb', lineno: 47, function: do_populate_cve_db
- 0043: meta_url = year_url + ".meta"
- 0044: json_url = year_url + ".json.gz"
- 0045:
- 0046: # Retrieve meta last modified date
- *** 0047: with http.request('GET', meta_url, preload_content=False) as r:
- 0048: date_line = str(r.data.splitlines()[0])
- 0049: last_modified = re.search('lastModifiedDate:(.*)', date_line).group(1)
- 0050:
- 0051: # Compare with current db last modified date
- File: '/usr/lib/python3/dist-packages/urllib3/request.py', lineno: 69, function: request
- 0065:
- 0066: if method in self._encode_url_methods:
- 0067: return self.request_encode_url(method, url, fields=fields,
- 0068: headers=headers,
- *** 0069: **urlopen_kw)
- 0070: else:
- 0071: return self.request_encode_body(method, url, fields=fields,
- 0072: headers=headers,
- 0073: **urlopen_kw)
- File: '/usr/lib/python3/dist-packages/urllib3/request.py', lineno: 90, function: request_encode_url
- 0086:
- 0087: if fields:
- 0088: url += '?' + urlencode(fields)
- 0089:
- *** 0090: return self.urlopen(method, url, **extra_kw)
- 0091:
- 0092: def request_encode_body(self, method, url, fields=None, headers=None,
- 0093: encode_multipart=True, multipart_boundary=None,
- 0094: **urlopen_kw):
- File: '/usr/lib/python3/dist-packages/urllib3/poolmanager.py', lineno: 163, function: urlopen
- 0159:
- 0160: if self.proxy is not None and u.scheme == "http":
- 0161: response = conn.urlopen(method, url, **kw)
- 0162: else:
- *** 0163: response = conn.urlopen(method, u.request_uri, **kw)
- 0164:
- 0165: redirect_location = redirect and response.get_redirect_location()
- 0166: if not redirect_location:
- 0167: return response
- File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 630, function: urlopen
- 0626: "broken by '%r': %s" % (retries, err, url))
- 0627: return self.urlopen(method, url, body, headers, retries,
- 0628: redirect, assert_same_host,
- 0629: timeout=timeout, pool_timeout=pool_timeout,
- *** 0630: release_conn=release_conn, **response_kw)
- 0631:
- 0632: # Handle redirect?
- 0633: redirect_location = redirect and response.get_redirect_location()
- 0634: if redirect_location:
- File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 630, function: urlopen
- 0626: "broken by '%r': %s" % (retries, err, url))
- 0627: return self.urlopen(method, url, body, headers, retries,
- 0628: redirect, assert_same_host,
- 0629: timeout=timeout, pool_timeout=pool_timeout,
- *** 0630: release_conn=release_conn, **response_kw)
- 0631:
- 0632: # Handle redirect?
- 0633: redirect_location = redirect and response.get_redirect_location()
- 0634: if redirect_location:
- File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 630, function: urlopen
- 0626: "broken by '%r': %s" % (retries, err, url))
- 0627: return self.urlopen(method, url, body, headers, retries,
- 0628: redirect, assert_same_host,
- 0629: timeout=timeout, pool_timeout=pool_timeout,
- *** 0630: release_conn=release_conn, **response_kw)
- 0631:
- 0632: # Handle redirect?
- 0633: redirect_location = redirect and response.get_redirect_location()
- 0634: if redirect_location:
- File: '/usr/lib/python3/dist-packages/urllib3/connectionpool.py', lineno: 610, function: urlopen
- 0606: elif isinstance(e, (SocketError, HTTPException)):
- 0607: e = ProtocolError('Connection aborted.', e)
- 0608:
- 0609: retries = retries.increment(method, url, error=e, _pool=self,
- *** 0610: _stacktrace=sys.exc_info()[2])
- 0611: retries.sleep()
- 0612:
- 0613: # Keep track of the error for the retry warning.
- 0614: err = e
- File: '/usr/lib/python3/dist-packages/urllib3/util/retry.py', lineno: 283, function: increment
- 0279: connect=connect, read=read, redirect=redirect,
- 0280: _observed_errors=_observed_errors)
- 0281:
- 0282: if new_retry.is_exhausted():
- *** 0283: raise MaxRetryError(_pool, url, error or ResponseError(cause))
- 0284:
- 0285: log.debug("Incremented Retry for (url='%s'): %r" % (url, new_retry))
- 0286:
- 0287: return new_retry
- 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',))
- 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',))
- 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