Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel2
outlinefalse
styledisc
typelist
printabletrue

Required Tools

  • Docker -
    Status
    colourRed
    titlerequired

    New server using dockerized images that allows Apliqo UX to be deployed across any platform, simplifying deployment and network management.

    Follow the installation instructions for your system:
    Windows | Linux | Mac

General Installation Instructions

1. Install Docker

Ensure Docker is running by checking its status:

Code Block
languagebash
docker compose version

This should return a version string similar to:

Code Block
languagebash
Docker Compose version {Version}

3. Download the ApliqoUX Installation Package

To install Apliqo UX, you will need the installation package.

📩 If you don’t have the download link yet, please contact our team.

4. Run the Apliqo UX installation using the CLI:

Once you have the package, run the Apliqo UX installation using the CLI:

Code Block
sh ./apliqoux.sh install

⚠️ On the first start, you may encounter an error asking for a Docker Access Token. Enter your access token when prompted.
[ERROR] You don't have an access to Apliqo UX repositories. Please set your Docker Access Token.

5. Access Apliqo UX

Once installation is complete, open your browser and navigate to: http://your-ip-address
By default, Apliqo UX runs on port 80.


Useful Commands & Troubleshooting

» Check System Readiness

Run a validation check to ensure all configurations are correct:

Code Block
sh ./apliqoux.sh validate

» List Available Containers

To check which containers are running:

Code Block
sh ./apliqoux.sh containers
Note

Ensure every service in docker-compose.yml has a container_name property.

Code Block
languageyaml
services:
  apliqo-mongo:
    container_name: apliqo-mongo
  apliqo-spa:
    container_name: apliqo-spa
  apliqo-api:
    container_name: apliqo-api
  apliqo-redis:
    container_name: apliqo-redis

» Debugging & Logs

To check logs for a specific container:

Code Block
sh ./apliqoux.sh service logs {container_name}

To check overall system performance (CPU, memory, running containers, etc.):

Code Block
sh ./apliqoux.sh service status

» Managing Environment Variables

Set a new environment variable:

Code Block
sh ./apliqoux.sh env-manager set <VARIABLE> <VALUE>

Example (changing PORT_EXPOSE to 4003):

Code Block
sh ./apliqoux.sh env-manager set PORT_EXPOSE 4003

To apply changes, restart the relevant services:

Code Block
sh ./apliqoux.sh service restart apliqo-api
Code Block
sh ./apliqoux.sh service restart apliqo-spa

Common Installation Errors & Fixes

Error Message

Solution

[ERROR] Docker is not installed. Please install Docker first.

Install Docker and ensure the dockercommand is available in your system.

[ERROR] Utility for 'docker-compose.yml' not found.

Means that your environment doesn’t have a utility for reading config of docker-compose.yml.
Install Docker Compose and verify docker compose or docker-compose is available.

[ERROR] docker-compose.yml not found.

Ensure docker-compose.yml is in the same directory as apliqoux.sh.

[ERROR] 'container_name:' is missing for containers:

Every service in docker-compose.yml must have a container_name. It is very important for apliqo-api and apliqo-spa to have the identical container names as their service name.

[ERROR] Please add './license:/usr/src/app/license' volume for 'apliqo-api' in 'docker-compose.yml'.

Add this to docker-compose.yml under apliqo-api:

Code Block
languageyaml
...

services:
...

  apliqo-api:
    container_name: apliqo-api
    image: apliqo/api:latest
    ...
    volumes:
      - ./.env:/usr/src/app/.env
      - ./license:/usr/src/app/license

Migrating to Apliqo UX CLI

Info

What is Apliqo UX CLI?
Apliqo UX CLI is a command-line tool designed to simplify the installation, management, and troubleshooting of Apliqo UX. It helps you:

  • Install and configure Apliqo UX effortlessly.

  • Validate your system setup before deployment.

  • Manage environment variables, logs, and running containers.

  • Restart services and apply configuration changes with ease.

If you have an existing running environment and want to switch to Apliqo UX CLI:

1. Download Apliqo UX CLI

📩 If you don’t have the ApliqoUX CLI download link yet, please contact our team.

  • unzip it in the same directory as docker-compose.yml.

2. Stop all containers:

Code Block
docker compose down

3. Run a validation check:

Code Block
sh ./apliqoux.sh validate

✅ You should see: [SUCCESS] Validation Complete

4. Install Apliqo UX CLI:

Code Block
sh ./apliqoux.sh install 

5. Final Step


Final Notes

Always validate your setup with:

Code Block
sh ./apliqoux.sh validate 

If you run into issues, check logs using:

Code Block
sh ./apliqoux.sh service logs {container_name} 

Restart services after making changes:

Code Block
sh ./apliqoux.sh service restart {service_name}

Authentication

Apliqo supports flexible authentication configurations, allowing multiple options to work together. Below, we break down how to enable and configure various authentication methods step by step.

Info

Refer to the Synchronization article for a detailed setup demonstration.

» Authentication Overview

1. Authentication Sources:
Apliqo authenticates users through designated TM1 instances. Authentication is successful if at least one configured TM1 instance validates the credentials.

2. Multiple Authentication Instances:
You can configure multiple TM1 instances with different authentication methods. For example:

  • A specific instance may handle authentication for Apliqo.

  • Other instances may function purely as data models.

3. Limitations:

If a report relies on a TM1 instance not set up as an authentication source, you won’t have an active session for that instance after logging in.

  • In such cases, the ‘Login to Instance’ dialog will appear, letting you log in manually. Both sessions will remain cached, even if you close the browser tab.


» Enabling CAMPassport Authentication

To set up CAMPassport Authentication, follow these steps:

  1. Add an Instance with CAMPassport authentication enabled.

  2. Turn on the Authentication Source switch for this instance.

  3. Open the instance’s Edit Dialog.

  4. Go to the CAMPassport tab on the right side.

  5. Check the CAM Server Link:

    • By default, Apliqo retrieves this link from the WWW-Authenticate header. Adjust as necessary.

  6. Configure the Environment:

    • Add APLQIO_HOSTNAME to the .env file as specified in the Environment Variables guide.

    • Apply the changes by running the following command:

Code Block
docker compose up -d --force-recreate apliqo-api
  1. Go to the Login Page and verify that the Login via SSO button appears.

image-20241222-092325.png

image-20241222-092531.png


» CAMNamespace

To set up CAMNamespace Authentication, follow these steps:

  1. Add an Instance with CAMNamespace authentication enabled.

  2. Turn on the Authentication Source switch for this instance.

  3. Open the instance’s Edit Dialog.

  4. Go to the CAMNamespace tab on the right side.

  5. Add your supported namespaces to the Client CAMNamespaces field:

    • Use comma-separated values for multiple namespaces.

  6. Go to the Login Page and verify that the namespace selection dropdown appears.

Info

Combining CAMNamespace and Basic Authentication:

  • leave the Namespace Select Dropdown empty. Basic authentication will then be used by default.

image-20241222-092440.png

image-20241222-092605.png


Troubleshooting

» MacOS with M1 chip peculiarities

If you're using a Mac with the M1 chip, some additional steps are required to ensure compatibility:

Rosetta

1. Install Rosetta

Code Block
softwareupdate --install-rosetta --agree-to-license

2. Enable Rosetta for Terminal:

  • Go to Finder > Applications > Terminal

  • Right-click ‘Terminal’ and select Get Info

  • Check the box "Open using Rosetta."

  • Open Terminal and verify it’s running under Rosetta by typing:

Code Block
arch
  • It should return i386 or x86_64

Docker

  • Ensure Docker Desktop is usingVirtioFS as a Virtualization framework in general settings for improved I/O performance for operations on bind mounts.

  • For containers that require the AMD architecture, add the following line to the container configuration:

Code Block
platform: linux/amd64