Skip to content

Unable to install git-source-control due to /usr/irissys/ permissions #795

Closed

Description

@eleanor-layerhealth

I'm installing git-source-control in a newly deployed instance of IRIS for Health running on Kubernetes. I ran into an Activate FAILURE/ERROR! Error creating directory /usr/irissys/devuser/studio/templates/gitsourcecontrol/ error on installation, and WRC recommended reaching out here. They noted it was likely due to durable %SYS being configured on the container, which is setting the /usr/irissys/ permissions to Read/Execute and preventing this directory from being created.

They also pointed me to a similar issue: intersystems/ipm#809

Here are the full install logs if helpful:

 SCRATCH>s version="latest" s r=##class(%Net.HttpRequest).%New(),r.Server="[pm.community.intersystems.com](http://pm.community.intersystems.com/)",r.SSLConfiguration="ISC.FeatureTracker.SSL.Config" d r.Get("/packages/zpm/"_version_"/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c")

 Load started on 06/19/2025 14:17:21
 Loading file /irissys/data/IRIS/mgr/Temp/6IuKbjAbikqxyg.xml as xml
 Imported class: IPM.Installer
 Compiling class IPM.Installer
 Compiling routine IPM.Installer.1
 Load finished successfully.

 SCRATCH>Do ##class(%IPM.Main).Shell("enable -community")

 Version of IPM in current namespace: 
 SCRATCH> zpm 0.10.2

 RUNNING command: "repo -delete-all"
 Command "repo -delete-all" finished successfull

 RUNNING command: "repo -reset-defaults"
 registry
 Source: https://pm.community.intersystems.com/
 Enabled? Yes
 Available? Yes
 Use for Snapshots? Yes
 Use for Prereleases? Yes
 Is Read-Only? No
 Default Deployment Registry? No

 registry
 Source: https://pm.community.intersystems.com/
 Enabled? Yes
 Available? Yes
 Use for Snapshots? Yes
 Use for Prereleases? Yes
 Is Read-Only? No
 Default Deployment Registry? No

 Command "repo -reset-defaults" finished successfull

 RUNNING command: "enable -map -repos -globally"
 Version of IPM in current namespace: 
 SCRATCH> zpm 0.10.2
 Mapping %IPM package in SCRATCH equivalently to %SYS
 Mapping %IPM.* routines in SCRATCH equivalently to %SYS
 Mapping %IPM package in SCRATCH equivalently to HSCUSTOM
 Mapping %IPM.* routines in SCRATCH equivalently to HSCUSTOM
 Skipping IPM mapping of HSLIB - IPM already installed.
 Mapping %IPM package in SCRATCH equivalently to HSSYS
 Mapping %IPM.* routines in SCRATCH equivalently to HSSYS
 Mapping %IPM package in SCRATCH equivalently to HSSYSLOCALTEMP
 Mapping %IPM.* routines in SCRATCH equivalently to HSSYSLOCALTEMP
 Mapping %IPM package in SCRATCH equivalently to IRISCLUSTER
 Mapping %IPM.* routines in SCRATCH equivalently to IRISCLUSTER
 Skipping IPM mapping of SCRATCH - IPM already installed.
 Mapping %IPM package in SCRATCH equivalently to USER
 Mapping %IPM.* routines in SCRATCH equivalently to USER
 Skipping repository mapping of %SYS - IPM repositories found.
 Skipping repository mapping of HSCUSTOM - IPM repositories found.
 Skipping repository mapping of HSLIB - IPM not mapped from source namespace.
 Skipping repository mapping of HSSYS - IPM repositories found.
 Skipping repository mapping of HSSYSLOCALTEMP - IPM repositories found.
 Skipping repository mapping of IRISCLUSTER - IPM repositories found.
 Skipping repository mapping of SCRATCH - IPM not mapped from source namespace.
 Skipping repository mapping of USER - IPM repositories found.
 Done.

 HSLIB>     zpm 0.9.0+snapshot (DeveloperMode)
 SCRATCH>    zpm 0.10.2
 %SYS>     zpm 0.10.2
        Installed In: SCRATCH 
 HSCUSTOM>   zpm 0.10.2
        Installed In: SCRATCH 
 HSSYS>     zpm 0.10.2
        Installed In: SCRATCH 
 HSSYSLOCALTEMP> zpm 0.10.2
        Installed In: SCRATCH 
 IRISCLUSTER>  zpm 0.10.2
        Installed In: SCRATCH 
 USER>     zpm 0.10.2
        Installed In: SCRATCH 
 https://pm.community.intersystems.com/ - 1.0.6
 Command "enable -map -repos -globally" finished successfull

 SCRATCH>Do ##class(%IPM.Main).Shell("install git-source-control 2.11.0")
 
 [SCRATCH|git-source-control] Initialize START
 [SCRATCH|git-source-control] Initialize SUCCESS
 [SCRATCH|git-source-control] Reload START (/irissys/data/IRIS/mgr/Temp/uuUrLvtq/)
 [SCRATCH|git-source-control] Reload SUCCESS
 [git-source-control] Module object refreshed.
 [SCRATCH|git-source-control] Validate START
 [SCRATCH|git-source-control] Validate SUCCESS
 [SCRATCH|git-source-control] Compile START
 [SCRATCH|git-source-control] Compile SUCCESS
 [SCRATCH|git-source-control] Activate START
 [git-source-control] Activate FAILURE
 ERROR! Error creating directory /usr/irissys/devuser/studio/templates/gitsourcecontrol/: <4294967283> Unknown error -13

And version info:

SCRATCH>write ##class(%ZHSLIB.HealthShareMgr).VersionInfo()
 IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2025.1 (Build 225_1U) Fri May 16 2025 12:22:16 EDT [Health:8.2.2]

Activity

  1. raymond-rebbeck commented on Jun 26, 2025

    @raymond-rebbeck
    Contributor

    I have recently experienced the same issue with the following IRIS container versions, I had yet to report as I wanted to see if IRIS 2024.1.4 made any difference, which I checked today and it does not:

    IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.1.4 (Build 516_1U) Sat May 31 2025 12:35:51 EDT
    IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.1 (Build 267_2U) Tue Apr 30 2024 16:04:37 EDT

    Currently as a workaround I am staying on IPM 0.7.4 which is able to install git-source-control correctly.

    0.7.4 will install the CSP files in the durable storage (in my case /external/iris/devuser/studio/templates/gitsourcecontrol/) without issue.

    Anything newer than 0.7.4 will try and fail to install the CSP files into /usr/irissys/devuser/studio/templates/gitsourcecontrol/ which is not durable storage and is not writeable (by design presumably, permissions are r-xr-xr-x by default)

  2. isc-pbarton commented on Jun 27, 2025

    @isc-pbarton
    Collaborator

    We are planning to release a patch version 2.12.1 today with this fix included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions