Project

General

Profile

Actions

Bug #22551

closed

Missing python3 on AL2 leads to missing generic methods in technique editor and big red error

Added by François ARMAND about 1 year ago. Updated 10 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
I dislike using that feature
User visibility:
Getting started - demo | first install | Technique editor and level 1 Techniques
Effort required:
Very Small
Priority:
100
Name check:
To do
Fix check:
To do
Regression:
No

Description

On a fresh Amazon Linux 2 install of Rudder 7.2.5, when trying to go to the technique editor, when you create a technique, you get a big red error message:

On log, you can see:

[2023-03-28T16:52:28+0000] WARNING Failed to execute shell command from Rudder: error=2, No such file or directory
[2023-03-28 16:52:28+0000] ERROR com.normation.rudder.rest.RestUtils - "Could not get generic methods metadata <- Inconsistency: An error occured while updating generic methods library with command '/usr/share/ncf/ncf write_all_methods':\n code: -2147483648\n stderr: \n stdout: "

And the problem when trying the command is:

write_all_methods
bash: /usr/share/ncf/ncf: /usr/bin/python3: bad interpreter: No such file or directory

Installing python3 solved the issue.


Files

clipboard-202303281902-bintb.png (30.4 KB) clipboard-202303281902-bintb.png François ARMAND, 2023-03-28 19:02
Actions

Also available in: Atom PDF