cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Failed to prepare extension environment

_davidemascolo
Contributor
Spoiler
Hi all,
recently I tried to deploy a custom extension on activegate. Looking at the logs I noticed the following errors. 

2024-08-05 14:47:04.469 UTC [003946f3] warning [native] Failed to prepare extension environment:
id: f_-5077411103933439232
datasource: python:3.10
time elapsed: 3.21s
command: "/var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/python_venvs/custom_keycloak-ext_0.0.3/bin/python3" -m pip install --no-warn-script-location --no-cache-dir --no-index -f /var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/cache/custom_keycloak-ext/0.0.3/lib keycloak_ext
error: WARNING: Location '/var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/cache/custom_keycloak-ext/0.0.3/lib' is ignored: it is either a non-existing path or lacks a specific scheme.
ERROR: Could not find a version that satisfies the requirement keycloak_ext (from versions: none)
ERROR: No matching distribution found for keycloak_ext

2024-08-05 14:47:04.469 UTC [003946f3] warning [native] std ouput from ""/opt/dynatrace/remotepluginmodule/agent/res/dsruntime/python3.10/bin/python3" -m venv /var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/python_venvs/custom_keycloak-ext_0.0.3 --system-site-packages --without-pip" command:

std ouput from ""/var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/python_venvs/custom_keycloak-ext_0.0.3/bin/python3" -m pip install --no-warn-script-location --no-cache-dir --no-index -f /var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/cache/custom_keycloak-ext/0.0.3/lib keycloak_ext" command:
Looking in links: /var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/cache/custom_keycloak-ext/0.0.3/lib

2024-08-05 14:47:04.469 UTC [003946f3] info [native] Rejected fastcheck for task f_-5077411103933439232 -
2024-08-05 14:47:06.777 UTC [003946b5] info [native] Fastcheck f_-5077411103933439232 for datasource python ended with code -1: N/A

Could you help me to understand what happened?

Regards,
Davide

I'm your friendly neighbourhood Spider-Man!™
- Davide
from Milan, Italy
2 REPLIES 2

_davidemascolo
Contributor

Other details:

  • Looking in links: /var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/cache/custom_keycloak-ext/0.0.3/lib --> lib folder doesn't exist.

    The error seems to be the missing folder:
    WARNING: Location '/var/lib/dynatrace/remotepluginmodule/agent/runtime/extensions/cache/custom_keycloak-ext/0.0.3/lib' is ignored: it is either a non-existing path or lacks a specific scheme.

    How I can force the creation of lib (and eventually other resources) folder?
I'm your friendly neighbourhood Spider-Man!™
- Davide
from Milan, Italy

TomásSeroteRoos
Dynatrace Helper
Dynatrace Helper

Is keycloak_ext the name of your extension or a python package?

If the former, then something weird happened with your build. Share the contents of the extension.zip file you are using, as well as how you built it.

If the latter, this usually happens when you build the extension in one platform but try to run it in another -- pip might miss downloading wheels for the platform you are trying to run on. Check what OS you are trying to run the extension on and whether the extension.zip file has the wheels required to install all packages for that OS.

Featured Posts