[SERVER-42384] RHEL8 No matching distribution found for twisted==19.2.1 Created: 24/Jul/19  Updated: 20/Aug/19  Resolved: 25/Jul/19

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: John Chen (Inactive) Assignee: Jonathan Reams
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
Operating System: ALL
Steps To Reproduce:

Run external_auth task on RHEL8 distro

Participants:

 Description   

Relevant task: https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_80_64_bit_external_auth_patch_cbead440945c78b577c29dab8c11e81a58ee7731_5d3876b70305b960bd750f26_19_07_24_15_18_16##%257B%2522compare%2522%253A%255B%257B%2522hash%2522%253A%2522cbead440945c78b577c29dab8c11e81a58ee7731%2522%257D%255D%257D

Logs:
https://evergreen.mongodb.com/task_log_raw/mongodb_mongo_master_enterprise_rhel_80_64_bit_external_auth_patch_cbead440945c78b577c29dab8c11e81a58ee7731_5d3876b70305b960bd750f26_19_07_24_15_18_16/0?type=T&text=true

Error:

[2019/07/24 11:58:15.082] Collecting twisted==19.2.1 (from -r /data/mci/0342a9134821035aa5c3d2dcf8befa61/src/etc/pip/components/external_auth.req (line 6))
[2019/07/24 11:58:16.525] python -m pip install -r "$external_auth_txt"
[2019/07/24 11:58:16.525]   ERROR: Could not find a version that satisfies the requirement twisted==19.2.1 (from -r /data/mci/0342a9134821035aa5c3d2dcf8befa61/src/etc/pip/components/external_auth.req (line 6)) (from versions: none)
[2019/07/24 11:58:16.531] ERROR: No matching distribution found for twisted==19.2.1 (from -r /data/mci/0342a9134821035aa5c3d2dcf8befa61/src/etc/pip/components/external_auth.req (line 6))
[2019/07/24 11:58:16.583] Command failed: command encountered problem: exit status 1
[2019/07/24 11:58:16.584] Task completed - FAILURE.



 Comments   
Comment by Siyuan Zhou [ 20/Aug/19 ]

jonathan.reams, I filed BUILD-8917 for this.

Comment by Siyuan Zhou [ 19/Aug/19 ]

jonathan.reams, I commented out twisted and reran the script. Shall I file a SERVER ticket or a BUILD one? There's no verbose logs from pip.

Comment by John Chen (Inactive) [ 24/Jul/19 ]

jonathan.reams, yes, I think that should unblock me. I'll rebuild the image and see if it fixes the issue. Thank you for your help

Comment by Jonathan Reams [ 24/Jul/19 ]

john.chen, I re-ran that failing pip command with verbose mode and read the output. It looks like the python in your toolchain is missing the bz2 module, so pip can't find an archive it knows how to decompress:

(venv) [ec2-user@ip-10-122-60-4 source-patch-129_mongodb-mongo-master]$ pip install twisted==19.2.0 --verbose
Created temporary directory: /data/tmp/pip-ephem-wheel-cache-5k6i82u_
Created temporary directory: /data/tmp/pip-install-gd6xos2l
Looking in indexes: https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/simple, https://pypi.org/simple
Collecting twisted==19.2.0
  2 location(s) to search for versions of twisted:
  * https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/simple/twisted/
  * https://pypi.org/simple/twisted/
  Getting page https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/simple/twisted/
  Starting new HTTPS connection (1): artifactory.corp.mongodb.com
  https://artifactory.corp.mongodb.com:443 "GET /artifactory/api/pypi/pypi/simple/twisted/ HTTP/1.1" 200 None
  Analyzing links from page https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/simple/twisted/
    Skipping link https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/packages/a8/17/f425d2160b92f0c9c69964bece02eab4fc8afb45a7d9a6532c07d81d0610/Twisted-10.0.0.tar.bz2#sha256=db118c709989ba3377a989daa7566e430addbd6f187b37c8568269def8be78b1 (from https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/simple/twisted/); unsupported archive format: .tar.bz2
    Skipping link https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/packages/00/ea/6e50396d390aedf4af6e5ceff74a8885ae0bae741c5e22f72e5ec19832ff/Twisted-10.1.0.tar.bz2#sha256=eda6e0e9e5ef6f6c19ab75bcb094f83a12ee25fe589fbcddf946e8a655c8070b (from https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/simple/twisted/); unsupported archive format: .tar.bz2

I think you'll need to install bzip2-devel on the machine and recompile the toolchain and try again. Does that help unblock you?

Comment by Jonathan Reams [ 24/Jul/19 ]

john.chen I talked to Mark and I'm still not sure what you're asking me for. This looks like a pip install failure, and you're the team I would go to for help with this. Are there any logs showing how this failed? Is there some workaround you're looking for or help troubleshooting this pip install error?

Comment by John Chen (Inactive) [ 24/Jul/19 ]

Hey jonathan.reams, I spoke with mark.benvenuto@mongodb.com and he suggested I assign this ticket to you. I think Mark can give more details here.

Comment by Jonathan Reams [ 24/Jul/19 ]

john.chen, not sure why you sent this to me. Does this pip package not exist on RHEL 8? You'd be the person I'd ask about that.

Generated at Thu Feb 08 05:00:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.