gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Unusual error when attempting bootcamp 2024 script

BN
Beser, Nicholas D.
Sat, Sep 14, 2024 2:20 PM

I have ported gem5 to the jetson orin nano, and created a version of gem5 v24 running on the jetson and also runnin on my own docker image. I can execute this script on the jetson directly, but when I try to run it on the docker image, I get a certificate error. (I don't get the error when I run it directly without docker). Here is  the  error:

mpiuser@mp7-154-jetson-A:~/2024$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) mpiuser/gem5-all-min-dependencies:latest  materials/02-Using-gem5/01-stdlib/completed/02-processor.py
warn: Attempt 1 of Atlas HTTP Request failed.
Purpose of Request: Get Access Token with API key.

Failed with Exception:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

Retrying after 2 seconds...
warn: Attempt 2 of Atlas HTTP Request failed.
Purpose of Request: Get Access Token with API key.

Failed with Exception:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

Retrying after 4 seconds...
warn: Attempt 3 of Atlas HTTP Request failed.
Purpose of Request: Get Access Token with API key.

Failed with Exception:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)>

Retrying after 8 seconds...
Exception thrown while getting resources '[<gem5.resources.client_api.client_query.ClientQuery object at 0xffffb8dcde70>]' from client 'gem5-resources'

AtlasClientHttpJsonRequestError: Http Request to Atlas MongoDB failed.
Atlas URL: https://data.mongodb-api.com/app/data-ejhjf/endpoint/data/v1
Auth URL: https://realm.mongodb.com/api/client/v2.0/app/data-ejhjf/auth/providers/api-key/login
Database: gem5-vision
Collection: resources

Data sent:

{
"key": "OIi5bAP7xxIGK782t8ZoiD2BkBGEzMdX3upChf9zdCxHSnMoiTnjI22Yw5kOSgy9"
}

Purpose of Request: Get Access Token with API key

At:
src/python/gem5/resources/client_api/atlasclient.py(142): _atlas_http_json_req
src/python/gem5/resources/client_api/atlasclient.py(94): get_token
src/python/gem5/resources/client_api/atlasclient.py(186): get_resources
src/python/gem5/resources/client_api/abstract_client.py(166): get_resources_by_id
src/python/gem5/resources/client.py(336): _get_all_resources_by_id
src/python/gem5/resources/client.py(275): _get_resource_json_obj_from_client
src/python/gem5/resources/client.py(183): get_resource_json_obj
src/python/gem5/resources/resource.py(958): obtain_resource
materials/02-Using-gem5/01-stdlib/completed/02-processor.py(84): <module>
src/python/m5/main.py(669): main
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

I have ported gem5 to the jetson orin nano, and created a version of gem5 v24 running on the jetson and also runnin on my own docker image. I can execute this script on the jetson directly, but when I try to run it on the docker image, I get a certificate error. (I don't get the error when I run it directly without docker). Here is the error: mpiuser@mp7-154-jetson-A:~/2024$ docker run --rm -v $(pwd):$(pwd) -w $(pwd) mpiuser/gem5-all-min-dependencies:latest materials/02-Using-gem5/01-stdlib/completed/02-processor.py warn: Attempt 1 of Atlas HTTP Request failed. Purpose of Request: Get Access Token with API key. Failed with Exception: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)> Retrying after 2 seconds... warn: Attempt 2 of Atlas HTTP Request failed. Purpose of Request: Get Access Token with API key. Failed with Exception: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)> Retrying after 4 seconds... warn: Attempt 3 of Atlas HTTP Request failed. Purpose of Request: Get Access Token with API key. Failed with Exception: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)> Retrying after 8 seconds... Exception thrown while getting resources '[<gem5.resources.client_api.client_query.ClientQuery object at 0xffffb8dcde70>]' from client 'gem5-resources' AtlasClientHttpJsonRequestError: Http Request to Atlas MongoDB failed. Atlas URL: https://data.mongodb-api.com/app/data-ejhjf/endpoint/data/v1 Auth URL: https://realm.mongodb.com/api/client/v2.0/app/data-ejhjf/auth/providers/api-key/login Database: gem5-vision Collection: resources Data sent: { "key": "OIi5bAP7xxIGK782t8ZoiD2BkBGEzMdX3upChf9zdCxHSnMoiTnjI22Yw5kOSgy9" } Purpose of Request: Get Access Token with API key At: src/python/gem5/resources/client_api/atlasclient.py(142): _atlas_http_json_req src/python/gem5/resources/client_api/atlasclient.py(94): get_token src/python/gem5/resources/client_api/atlasclient.py(186): get_resources src/python/gem5/resources/client_api/abstract_client.py(166): get_resources_by_id src/python/gem5/resources/client.py(336): _get_all_resources_by_id src/python/gem5/resources/client.py(275): _get_resource_json_obj_from_client src/python/gem5/resources/client.py(183): get_resource_json_obj src/python/gem5/resources/resource.py(958): obtain_resource materials/02-Using-gem5/01-stdlib/completed/02-processor.py(84): <module> src/python/m5/main.py(669): main gem5 Simulator System. https://www.gem5.org gem5 is copyrighted software; use the --copyright option for details.