[
https://issues.apache.org/jira/browse/MINIFICPP-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gábor Gyimesi resolved MINIFICPP-2606.
--------------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
> Improve logging for python virtualenv initialization
> ----------------------------------------------------
>
> Key: MINIFICPP-2606
> URL: https://issues.apache.org/jira/browse/MINIFICPP-2606
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Reporter: Gábor Gyimesi
> Assignee: Gábor Gyimesi
> Priority: Major
> Fix For: 1.0.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Python processor package dependencies are installed into a virtualenv using a
> dependency installer script which is executed from the minifi process using a
> system call. Unfortunately if the virtualenv initialization fails there is no
> indication of the issue in the logs as the script output is only placed on
> the stderr and stdout channels. Failure is only indicated like this:
> {code:java}
> [2025-04-22 12:43:49.150]
> [org::apache::nifi::minifi::core::extension::Module] [error] Failed to
> initialize extension 'PythonExtension' in module
> 'minifi-python-script-extension'
> [2025-04-22 12:43:49.150]
> [org::apache::nifi::minifi::core::extension::ExtensionManager] [error] Failed
> to initialize module 'minifi-python-script-extension' at
> '/home/xavier/Downloads/nifi-minifi-llama-1.0.0/bin/../extensions/libminifi-pyt>
> {code}
> We should add additional logging by capturing the stdout and stderr of the
> installer script and logging it to the minifi application logs for easier
> debugging of the dependency install issues.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)