IBM Support

Permission error in healthext-model-engine pod: “PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib64/python3.9/site-packages/apmhealthlib/adapter/cache’ ”

Troubleshooting


Problem

Permission error in healthext-model-engine pod: “PermissionError: [Errno 13] Permission denied: ‘/usr/local/lib64/python3.9/site-packages/apmhealthlib/adapter/cache’ ”

Symptom

After deployment Manage with Health or Health standalone with 8.7.7, there will be an error in healthext-model-engine pod:

PermissionError: [Errno 13] Permission denied: '/usr/local/lib64/python3.9/site-packages/apmhealthlib/adapter/cache'

So that cannot calculate health scores by notebooks.

Cause

The Python default installation path is changed in healthext-model-engine image, and we need to add permissions for this path.

Resolving The Problem

Manage with Health and Health Standalone Version to be impacted:
Manage with Health and Health Standalone 8.7.7 (on top of MAS 8.11.x)
Work-around:
Specify the healthext-model-engine version as 1.0.3 temporarily. The steps are as follows.
  1. Edit HealthextWorkspace CRD yaml and add “x-kubernetes-preserve-unknown-fields: true” in spec.spec.settings and save it. Like:
    settings:
      x-kubernetes-preserve-unknown-fields: true
      type: object
      properties:
        appconnect:
          type: object
          properties:
            url:
              type: string
        watsonstudio:
          type: object
          properties:
            projectid:
              type: string
    
  2. Edit HealthextWorkspace instance yaml and add imageTags.modelengine in spec.settings like bellow.
    spec:
      settings:
        imageTags:
          modelengine: 1.0.3
  3. Wait until the healthext-model-engine pod is restarted and check the image version, which should be healthext-model-engine:1.0.3

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m3p000000hAePAAU","label":"Maximo Application Suite-\u003EMAS Applications-\u003EHealth"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.11.0"}]

Document Information

Modified date:
09 May 2024

UID

ibm17150529