[MONGOCRYPT-297] publish-packages failing on Debian and Ubuntu hosts Created: 30/Nov/20  Updated: 28/Oct/23  Resolved: 02/Dec/20

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1.0

Type: Task Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Roberto Sanchez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I observed failures of the publish-packages task on Debian and Ubuntu hosts starting on Nov 25th with this commit: https://evergreen.mongodb.com/task/libmongocrypt_ubuntu1804_64_publish_packages_be0a08387e6c50f1b66b5069ba87b745cd01733a_20_11_25_16_17_02.

The logs indicate that Python is unable to find the requests package:

[2020/11/25 16:23:08.703] [curator] 2020/11/25 16:23:08 [p=warning]: [job_id='build-repo.distro.deb.repo.9dc52ea5-5b24-4223-9f04-2392338714d7' job_scope='[libmongocrypt/apt/ubuntu/dists/bionic/libmongocrypt/development]' message='error signing file' output='Traceback (most recent call last):
[2020/11/25 16:23:08.703]   File "/usr/local/bin/notary-client.py", line 16, in <module>
[2020/11/25 16:23:08.703]     import requests
[2020/11/25 16:23:08.703] ImportError: No module named requests' path='/data/mci/c0144e3541099fc5b3bfc929fa85e381/libmongocrypt/d4f40016-40d6-4b13-87e0-a5df9d0f0eb9/libmongocrypt/apt/ubuntu/dists/bionic/libmongocrypt/development/Release' repo='ubuntu1804' version='1.1.0-pre2+20201125gitbe0a08387e']: exit status 1



 Comments   
Comment by Githook User [ 02/Dec/20 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: MONGOCRYPT-297 fix publish-packages on Debian and Ubuntu, 2
Branch: master
https://github.com/mongodb/libmongocrypt/commit/1cbba4f3cc3b099ecb511ec319db1d8b39200df9

Comment by Githook User [ 01/Dec/20 ]

Author:

{'name': 'Roberto C. Sánchez', 'email': 'roberto@connexer.com', 'username': 'rcsanchez97'}

Message: MONGOCRYPT-297 fix publish-packages on Debian and Ubuntu (#145)
Branch: master
https://github.com/mongodb/libmongocrypt/commit/b79cec3cf44f84ab29b170ba246760fe9a8925af

Comment by John Chen (Inactive) [ 01/Dec/20 ]

Hi kevin.albertson, my change in that PR is actually related to ubuntu1804-workstation and not our ubuntu1804 images.
I would highly recommend creating and using a virtual environment since system packages could change at the request of the server team at any time. Using a virtual environment would guarantee you a safe environment that won't be affected by system changes.

Generated at Thu Feb 08 09:08:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.