Azure / Azure/azure-linux-extensions

Linux diagnostics failed to be processed/installed due to a wrong python binary tried to be used

Open
#1,869 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

When I check the logs of the failure :

I don't think making an assumption is a good idea when installing software, be it extensions or not.
```
[ExtensionOperationError] Non-zero exit code: 127, /var/lib/waagent/Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.141/diagnostic.py -install [stdout] [stderr] /usr/bin/env: ‘python’: No such file or directory
```
This is for a Debian 12 Bookworm machine.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the extension's diagnostic.py entry point and reproduce the installation failure on a Debian 12 system. Done means the installation no longer tries the unavailable `python` binary and the Linux diagnostics are processed and installed successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.