"Could not install python: no match found for 3.6.x" error when upgrading App Dynamics
search cancel

"Could not install python: no match found for 3.6.x" error when upgrading App Dynamics

book

Article ID: 298147

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Unable to start appd dashboard application if using AppDynamics Platform Monitoring for PCF to anything lower than v5.0.477.

Appd logs show the following:
 

2023-06-09T08:00:21.04-0500 [STG/0] OUT -----> Python Buildpack version 1.8.6
2023-06-09T08:00:21.04-0500 [STG/0] OUT        [31;1m**WARNING**[0m buildpack version changed from 1.7.47 to 1.8.6
2023-06-09T08:00:21.04-0500 [STG/0] OUT -----> Supplying Python
2023-06-09T08:00:21.04-0500 [STG/0] OUT        [31;1m**ERROR**[0m Could not install python: no match found for 3.6.x in [3.7.16 3.8.16 3.9.16 3.10.9 3.11.1]
2023-06-09T08:00:21.04-0500 [STG/0] ERR Failed to compile droplet: Failed to run all supply scripts: exit status 14
2023-06-09T08:00:21.05-0500 [STG/0] OUT Exit status 223

 Alternatively: 

**ERROR** Could not install python: no match found for 3.9.x in [3.10.20 3.11.14 3.12.13 3.13.12 3.14.3]

Background


Python Buildpack v1.8.6 is causing this issue. As part of the nature of this issue is that it failed to install Python as the apps that are pushed by the AppDynamic Tile release need a version of Python Buildpack that supports Python 3.6.x. The log snippet indicates that one of the existing Python Buildpacks (v1.8.6) does not support Python 3.6.x as Python 3.6.x is deprecated starting from Python Buildpack version v1.7.50.

Note: The above error can be caused if using a Python release equal to or higher than v1.7.50.

Workarounds 

  • Install a Python Buildpack lower than v1.7.50 and delete anything higher if listed with cf buildpacks command. As a reference, v1.7.49 contains the latest Python 3.6.x update before the deprecation. You can download it from here.
  • Lock/unlock unwanted releases. Check this link for reference.

Environment

Product Version: 3.0

Resolution

The permanent fix to the error “Could not install python: no match found for 3.6.x” in AppDynamics Platform tile is to upgrade to v5.0.477 as this version will update Python runtime of the dashboard generator to 3.7.x.

This compatibility issue is also a problem between newer versions of Elastic Application Runtime (v6.0.26) and AppDynamics 24.1.0-75. The tile metadata can be overridden as a temporary solution until updated tile is available.

appdynamics.yml - 

manifest: |
appdservice:
app_manifest:
  buildpack:
   python_buildpack #-> set to buildpack that contains supported version of python

 

Reference AppDynamics documentation