Encontrar

Artículo
· 11 jul, 2024 Lectura de 2 min

Configuración del arranque automático de IRIS en Linux

Por razones prácticas, muchas veces necesitamos que tras un reinicio de un servidor Linux, la instancia IRIS que tengamos instalada se inicie automáticamente. 

A continuación encontraréis los pasos a seguir para automatizar el arranque de IRIS durante un reinicio de Linux, a través de systemd :

1. Cread un archivo iris.service en /etc/systemd/system/iris.service que contenga la siguiente información

[Unit]
Description=InterSystems IRIS Data Platform
After=network.target

[Service]
Type=forking
User=irisusr
ExecStart=/usr/bin/iris start iris
ExecStop=/usr/bin/iris stop iris quietly
Restart=on-failure
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Nota : el Usuario debe corresponder al que habéis utilizado durante la instalación de IRIS al responder a la pregunta "What user should be the owner of this instance?". 

2. Recargad el gestor de configuración systemd

sudo systemctl daemon-reload

3. Activad el servicio IRIS para automatizar su arranque

sudo systemctl enable iris

Esta activación crea los enlaces simbólicos para automatizar el arranque de IRIS:

Synchronizing state of iris.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable iris
Created symlink /etc/systemd/system/multi-user.target.wants/iris.service → /etc/systemd/system/iris.service.

4. Reiniciad el servidor Linux

sudo reboot

5. Volved a conectar para comprobar que IRIS se inicia

ssh guilbaud@192.168.102.130
guilbaud@192.168.102.130's password: 
Welcome to Ubuntu 24.04 LTS (GNU/Linux 6.8.0-36-generic x86_64)
$ iris all
    Instance Name     Version ID        Port   Directory
    ----------------  ----------------  -----  --------------------------------
up >IRIS              2024.1.0.267.2    1972   /usr/irissys
Comentarios (0)1
Inicie sesión o regístrese para continuar
InterSystems Official
· 10 jul, 2024

InterSystems Reports 24.1 リリースのご案内

InterSystems Reports 24.1 がリリースされ、WRC の Components エリアから入手いただけるようになりました。本製品は InterSystems Reports Designer と InterSystems Reports Server と表記されており、Mac OSX、Windows、Linux 版を入手いただけます。  

この新バージョンには、弊社パートナーの insightsoftware 社によるすばらしい拡張機能が含まれています。InterSystems Reports 24.1 は Logi Report 24.1 SP2 をベースにしており、以下の機能が含まれます。

  • PDF/A 準拠ドキュメント内の埋め込みファイルの注釈のカスタマイズ。これにより、埋め込みファイルのビジュアルがより強化されます。詳細な情報は Adding PDF Attachment to a Report をご参照ください。
  • デザインモードにおける、レポートレンダリング時の標準 HTML タグのサポート。
  • Page Report Studio における機能追加。これにより、Report Server でのレポートをより柔軟に編集できるようになりました。

上記およびその他の機能に関する詳細な情報は、insightsoftware 社の リリースノート をご参照ください。

InterSystems Reports 24.1 インストールには、JDK 11 または 17 が必要です。JDK 8 をご利用中の場合は、InterSystems Reports のインストール前に JDK のアップグレードをよろしくお願いします。

InterSystems Reports に関する詳細な情報については、InterSystems の ドキュメント や ラーニングサービス  のコンテンツをご参照ください。

Comentarios (0)0
Inicie sesión o regístrese para continuar
Pregunta
· 10 jul, 2024

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 comentarios
Comentarios (2)1
Inicie sesión o regístrese para continuar
Pregunta
· 10 jul, 2024

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 comentarios
Comentarios (3)2
Inicie sesión o regístrese para continuar
Artículo
· 10 jul, 2024 Lectura de 2 min

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 comentarios
Comentarios (5)5
Inicie sesión o regístrese para continuar