検索

質問
· 2024年7月10日

Error starting IRIS Community docker

Good afternoon,

I'm trying to start an instance of the Community Edition with Docker and I get the following error.

I tried downloading the object-script template directly from OpenExchange, but one of these two things always happens:

1 - It gets stuck starting up forever

[+] Building 147.0s (7/8)                                                                                                                                                                          docker:desktop-linux
 => [iris internal] load build definition from Dockerfile                                                                                                                                                          0.1s
 => => transferring dockerfile: 787B                                                                                                                                                                               0.0s
 => [iris internal] load metadata for docker.io/intersystemsdc/iris-community:latest                                                                                                                               1.1s
 => [iris internal] load .dockerignore                                                                                                                                                                             0.1s
 => => transferring context: 62B                                                                                                                                                                                   0.0s
 => CACHED [iris stage-0 1/4] FROM docker.io/intersystemsdc/iris-community:latest@sha256:9c8422ae510320d23bf9c67f600c0b8bfcd3fc9707f0a0d92e9ef9db5a08bd86                                                          0.0s
 => [iris internal] load build context                                                                                                                                                                             0.1s
 => => transferring context: 19.13kB                                                                                                                                                                               0.1s
 => [iris stage-0 2/4] WORKDIR /home/irisowner/dev                                                                                                                                                                 0.2s
 => [iris stage-0 3/4] COPY .iris_init /home/irisowner/.iris_init                                                                                                                                                  0.0s
 => [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test obj  145.5s
 => => # Using 'iris.cpf' configuration file                                                                                                                                                                           
 => => # Starting Control Process                                                                                                                                                                                      
 => => # Global buffer setting requires attention.  Auto-selected 25% of total memory.                                                                                                                                 
 => => # Allocated 1536MB shared memory                                                                                                                                                                                
 => => # 978MB global buffers, 97MB routine buffers   

 

Or it returns this error:

Ejecutando tarea: docker compose -f "docker-compose.yml" up -d --build 

[+] Building 1.9s (8/8) FINISHED                                                                                                                                                                   docker:desktop-linux
 => [iris internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 787B                                                                                                                                                                               0.0s
 => [iris internal] load metadata for docker.io/intersystemsdc/iris-community:latest                                                                                                                               0.9s
 => [iris internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 62B                                                                                                                                                                                   0.0s
 => [iris stage-0 1/4] FROM docker.io/intersystemsdc/iris-community:latest@sha256:9c8422ae510320d23bf9c67f600c0b8bfcd3fc9707f0a0d92e9ef9db5a08bd86                                                                 0.0s
 => [iris internal] load build context                                                                                                                                                                             0.0s
 => => transferring context: 1.52kB                                                                                                                                                                                0.0s
 => CACHED [iris stage-0 2/4] WORKDIR /home/irisowner/dev                                                                                                                                                          0.0s
 => CACHED [iris stage-0 3/4] COPY .iris_init /home/irisowner/.iris_init                                                                                                                                           0.0s
 => ERROR [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test  0.9s
------                                                                                                                                                                                                                  
 > [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test objectscript-template -v -only",1,1)") &&     iris stop IRIS quietly:                                                                                                                                                                
0.209 Using 'iris.cpf' configuration file                                                                                                                                                                               
0.423                                                                                                                                                                                                                   
0.499 Starting Control Process                                                                                                                                                                                          
0.499 Global buffer setting requires attention.  Auto-selected 25% of total memory.
0.499 Allocated 1536MB shared memory
0.499 978MB global buffers, 97MB routine buffers
0.818 This copy of InterSystems IRIS has been licensed for use exclusively by:
0.818 InterSystems IRIS Community
0.818 Copyright (c) 1986-2024 by InterSystems Corporation
0.818 Any other use is a violation of your license agreement
0.820 Starting IRIS
0.820 Unexpected failure: The target process received a termination signal 4.
0.820 Operation aborted.
------
failed to solve: process "/bin/sh -c iris start IRIS && \tiris session IRIS < iris.script &&     ([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE \"##class(%ZPM.PackageManager).Shell(\\\"test $MODULE -v -only\\\",1,1)\") &&     iris stop IRIS quietly" did not complete successfully: exit code: 1

 *  El proceso del terminal "/bin/zsh '-l', '-c', 'docker compose -f "docker-compose.yml" up -d --build'" finalizó con el código de salida 17. 
 *  Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo. 

 

I am using Docker Desktop for macOS version 4.31.0.

The repository I cloned from OpenExchange is this one:

https://github.com/intersystems-community/objectscript-docker-template

https://openexchange.intersystems.com/package/objectscript-docker-template

 

Any idea why it can't start?

Thanks!

2 Comments
ディスカッション (2)1
続けるにはログインするか新規登録を行ってください
質問
· 2024年7月10日

Error iniciar Docker IRIS Community

Buenas tardes,

Estoy intentando arrancar una instancia de la Community Edition con Docker y me da el siguiente error. 

He probado a descargar directamente el template de object-script del OpenExchange, pero me pasa siempre una de estas dos cosas:

 

1 - Se queda iniciando eternamente

[+] Building 147.0s (7/8)                                                                                                                                                                          docker:desktop-linux
 => [iris internal] load build definition from Dockerfile                                                                                                                                                          0.1s
 => => transferring dockerfile: 787B                                                                                                                                                                               0.0s
 => [iris internal] load metadata for docker.io/intersystemsdc/iris-community:latest                                                                                                                               1.1s
 => [iris internal] load .dockerignore                                                                                                                                                                             0.1s
 => => transferring context: 62B                                                                                                                                                                                   0.0s
 => CACHED [iris stage-0 1/4] FROM docker.io/intersystemsdc/iris-community:latest@sha256:9c8422ae510320d23bf9c67f600c0b8bfcd3fc9707f0a0d92e9ef9db5a08bd86                                                          0.0s
 => [iris internal] load build context                                                                                                                                                                             0.1s
 => => transferring context: 19.13kB                                                                                                                                                                               0.1s
 => [iris stage-0 2/4] WORKDIR /home/irisowner/dev                                                                                                                                                                 0.2s
 => [iris stage-0 3/4] COPY .iris_init /home/irisowner/.iris_init                                                                                                                                                  0.0s
 => [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test obj  145.5s
 => => # Using 'iris.cpf' configuration file                                                                                                                                                                           
 => => # Starting Control Process                                                                                                                                                                                      
 => => # Global buffer setting requires attention.  Auto-selected 25% of total memory.                                                                                                                                 
 => => # Allocated 1536MB shared memory                                                                                                                                                                                
 => => # 978MB global buffers, 97MB routine buffers   

 

O me devuelve este error:

Ejecutando tarea: docker compose -f "docker-compose.yml" up -d --build 

[+] Building 1.9s (8/8) FINISHED                                                                                                                                                                   docker:desktop-linux
 => [iris internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 787B                                                                                                                                                                               0.0s
 => [iris internal] load metadata for docker.io/intersystemsdc/iris-community:latest                                                                                                                               0.9s
 => [iris internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 62B                                                                                                                                                                                   0.0s
 => [iris stage-0 1/4] FROM docker.io/intersystemsdc/iris-community:latest@sha256:9c8422ae510320d23bf9c67f600c0b8bfcd3fc9707f0a0d92e9ef9db5a08bd86                                                                 0.0s
 => [iris internal] load build context                                                                                                                                                                             0.0s
 => => transferring context: 1.52kB                                                                                                                                                                                0.0s
 => CACHED [iris stage-0 2/4] WORKDIR /home/irisowner/dev                                                                                                                                                          0.0s
 => CACHED [iris stage-0 3/4] COPY .iris_init /home/irisowner/.iris_init                                                                                                                                           0.0s
 => ERROR [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test  0.9s
------                                                                                                                                                                                                                  
 > [iris stage-0 4/4] RUN --mount=type=bind,src=.,dst=.     iris start IRIS &&  iris session IRIS < iris.script &&     ([ 0 -eq 0 ] || iris session iris -U USER "##class(%ZPM.PackageManager).Shell("test objectscript-template -v -only",1,1)") &&     iris stop IRIS quietly:                                                                                                                                                                
0.209 Using 'iris.cpf' configuration file                                                                                                                                                                               
0.423
0.499 Starting Control Process                                                                                                                                                                                          
0.499 Global buffer setting requires attention.  Auto-selected 25% of total memory.
0.499 Allocated 1536MB shared memory
0.499 978MB global buffers, 97MB routine buffers
0.818 This copy of InterSystems IRIS has been licensed for use exclusively by:
0.818 InterSystems IRIS Community
0.818 Copyright (c) 1986-2024 by InterSystems Corporation
0.818 Any other use is a violation of your license agreement
0.820 Starting IRIS
0.820 Unexpected failure: The target process received a termination signal 4.
0.820 Operation aborted.
------
failed to solve: process "/bin/sh -c iris start IRIS && \tiris session IRIS < iris.script &&     ([ $TESTS -eq 0 ] || iris session iris -U $NAMESPACE \"##class(%ZPM.PackageManager).Shell(\\\"test $MODULE -v -only\\\",1,1)\") &&     iris stop IRIS quietly" did not complete successfully: exit code: 1
 *  El proceso del terminal "/bin/zsh '-l', '-c', 'docker compose -f "docker-compose.yml" up -d --build'" finalizó con el código de salida 17.
 *  Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo. 

 

Estoy usando Docker Desktop para MacOS versión 4.31.0.

El repositorio que me he clonado del OpenExchange es este:

https://github.com/intersystems-community/objectscript-docker-template

https://openexchange.intersystems.com/package/objectscript-docker-template

 

¿Alguna idea de porque no puede arrancar?

Gracias!

3 Comments
ディスカッション (3)2
続けるにはログインするか新規登録を行ってください
記事
· 2024年7月10日 2m read

VSCode extension for IPM (Intersystems Package Manager)

Overview

After having some discussions at Global Summit and using a lot of package managers in my day to day development (npm,nuget,Chocolatey, etc) in addition to recently using the InterSystems Package Manager for some CICD process I'm building using Intersystems IRIS and IRIS 4 Health, I wanted an easy and integrated way to search/view/install packages related to the Intersystems tech stack.

I recently built a VSCode extension for IPM repositories that I will be open sourcing and publishing to the marketplace but wanted create this post to get some feedback from the community.

Some features in the extension:

  • VSCode setting for defining multiple repositories
  • Activity Bar Icon/Explorer View
  • List of packages in custom view
  • List/Open github repository configured in package
  • Details for package in a custom view
  • Copy ZPM install command for use in IRIS terminal

Setup/Settings:

When you first start the extension, you will need to configure it. You can do this by accessing the settings.json file and adding something like the following.

"ipm.repositories": [
        {
            "name":"Public IPM",
            "url":"https://pm.community.intersystems.com"
        },
        {
            "name":"Internal Packages",
            "url":"https://[insert private repo here]"
        },
        {
            "name":"Test Packages",
            "url":"https://[insert private repo here]"
        }
    ]

Screenshots:

Ideas/Future

After building this and working with the API, I'd like to propose a couple updates that potentially could be added to the manifest/API for packages to make integrations like this a little easier

  • License field: (This will let the users know if the package license is compatable with their usage)
  • Logo: encoded image for the package. Allow the developer of the package to specify an image
  • Readme: Allow the developer of the package to include a readme markdown file in the package. This can then be displayed in the details section of the extension.
  • Author: Include the author of the package (can be displayed the details view)
  • Verified: Allow for an author to be verified. For example Intersystems could be a verified author

Open Source:

I will open sourcing this extension on my github page after running a few more tests.

Comments/Suggestions

Let me know what you think or if you have suggestions let me know. Would you be interested in using this?

5 Comments
ディスカッション (5)5
続けるにはログインするか新規登録を行ってください
記事
· 2024年7月10日 1m read

Nova aplicação iris-size-django no OpenExchange

Por que usá-la?

Esse app oferece uma interface fácil para analisar armazenamento:

  • Filtro por base de dado (namespace), nome da global, tamanho utilizado ou tamanho alocado;
  • Veja a soma dos tamanhos usado e alocado para os filtros aplicados;
  • Exporte a tabela para JSON, CSV, ou XML.

 

Como usar

Siga as instruções no arquivo README do repositório GitHub e configure as definições para conectar à sua instância.

 

Como adaptar às suas necessidades

Já que foi construído com Python e Django, você pode facilmente adicionar métodos de análises específicas em api/methods.py e usar as views em views.py para exibí-las.

Além disso, se quiser salvar os dados analisados numa instância local, mas analisar uma externa, você pode definir o arquivo settings.py para a local e usar iris.connect("host:porta/NAMESPACE", "usuário", "senha") em api/methods.py para a instância externa.

 

Mais informação

Você pode ler minha série de artigos Um portal para administrar armazenamento feito com Django para um passo a passo completo do processo de desenvolvimento dessa aplicação.

Fique à vontade para entrar em contato!

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
質問
· 2024年7月10日

Capturing the SQL command sent to Cache for an external system

Is there a way to capture the SQL command that was sent to Cache ? I need to know how to do this. Any help would be appreciated. It is from an external application using JDBC or OBDC. Thanks

4 Comments
ディスカッション (4)2
続けるにはログインするか新規登録を行ってください