question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with multiple extensions on RHEL 8.0

See original GitHub issue

There are issues with multiple extension on RHEL 8.0 (RedHat:RHEL:8:latest)

ISSUE

waagent uses /usr/libexec/platform-python from the platform-python package, all the python extensions use the unversioned python command which is not installed on the image:

# waagent --version
WALinuxAgent-2.2.32.2 running on redhat 8.0
Python: 3.6.8
Goal state agent: 2.2.40
..
# /usr/bin/env python --version
/usr/bin/env: ‘python’: No such file or directory

Because of this the extensions fail to install:

[stderr]
/usr/bin/env: ‘python’: No such file or directory
..
[stderr]
No Python interpreter found on the box

SOLUTION

I recommend you install python 2.7 using the command below as I have seen some issues with some extensions and python 3.6:

sudo yum install python2 -y
sudo alternatives --set python /usr/bin/python2

RELATED

REQUEST

Maybe waagent could check for the unversioned python command and report a error in the log if it cannot find it.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
johanburaticommented, Jan 23, 2020

@larohra a lot of people are having this issue, you might want to leave this open so it is easier for people to find

1reaction
bureadocommented, Feb 5, 2021

See https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/issues-using-vm-extensions-python-3

If it’s not an image problem or an agent problem, is it an extension problem? If it’s an extension WONTFIX, then extensions should graciously fail or ensure proper guardrails are applied to set user expectations accordingly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1802105 – rpm based extensions in RHEL8 should not ...
Supported GNOME Shell extensions now update only from system packages RHEL distributes certain supported GNOME Shell extensions as system RPM packages.
Read more >
Enabling Session Collaboration on a RHEL 9.x Desktop
In the desktop environment, run gnome-extensions-app and then enable AppIndicator and KStatusNotifierItem Support. The session collaboration ...
Read more >
Linux diagnostic extension 4.0 - Azure Virtual Machines
The Linux diagnostic extension supports many distributions and versions. The following list of distributions and versions applies only to Azure-endorsed ...
Read more >
RHEL 8 - Unable to complete pyPDF2 offline installation due ...
pip install typing-extensions. In newer Python versions that package is not required. You can also edit the source of PyPDF2 to remove all...
Read more >
Red Hat Enterprise Linux 8.5 8.5 Release Notes
NOTABLE CHANGES TO INTERNATIONALIZATION IN RHEL 8 ... known technical issues, is now available with all RHEL subscriptions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found