Docs/Platform & Deployment/Linux One-Step Installer

Linux One-Step Installer

To run a complete CoModel on a Linux server or workstation, use the one-step installer (.run) provided on the CoModel website. The installer bundles every runtime (Julia, the simulation kernel, the MariaDB database, and the web assets). The target machine needs no pre-installed dependencies and no network access; installation takes two commands, and the services are managed by systemd.

Before you install

  • Register a website account: the email the first-run setup wizard asks for must match the licensed email of your license, so complete website sign-up first (email only; see Sign-Up and Sign-In).
  • Download the license file in advance: the 90-day free license is issued automatically once you sign up and activate. Download the .lic file from the website license page and keep it ready, then upload it to activate right after installation (see License Activation).
  • Download the installer: get ComodelSetup-<version>-linux-x64.run from the download page; see the next section for verification.

System requirements

Item Requirement
Operating system Ubuntu 22.04+ / Debian 12+ / Rocky / AlmaLinux / CentOS Stream 9+
Architecture x86_64 (64-bit)
System library glibc ≥ 2.34
Memory 8 GB or more recommended
Disk space At least 4 GB free (data directory extra)
Browser Latest Chrome, Edge, or Firefox
Permissions root (or sudo)

Offline installation: the installer requires neither internet access nor any pre-installed runtime, which suits servers in intranet or restricted environments. User FMUs must ship their own linux64 binaries (see Using FMUs on the Canvas).

Download and verification

  1. Download ComodelSetup-<version>-linux-x64.run and the matching .sha256 checksum file from the download page.
  2. Verify the file integrity:
sha256sum -c ComodelSetup-<version>-linux-x64.run.sha256

For a file this large, download with wget -c <download-url> so the transfer can resume after an interruption.

Installation steps

chmod +x ComodelSetup-<version>-linux-x64.run
sudo ./ComodelSetup-<version>-linux-x64.run

The installer automatically:

  • Pre-checks the environment (glibc, port availability; if 3306 or 8000 is taken it moves to the next free port);
  • Creates the system user comodel and lays out files according to FHS (see next section);
  • Initializes the MariaDB data directory (random root password);
  • Generates the configuration file /etc/comodel/.env (random secrets and paths);
  • Creates the comodel_v2 database and runs all database migrations and standard-library initialization;
  • Registers and starts the systemd services (comodel.service + comodel-mariadb.service, enabled at boot).

When installation completes, the installer prints the access URL (default http://<host>:8000) and the first-run setup instructions.

Optional parameters:

Parameter Description
--target <dir> Custom program directory (data / config / log locations unchanged)
--no-start Do not start the services automatically after installation
--unattended Silent installation with no interactive prompts (for batch deployment)

Directory layout after installation

/opt/comodel/                 # Program directory (overwritten on upgrade, deleted on uninstall)
├── julia/                      # Portable Julia
├── app/                        # Engine and API service source code
├── web-static/                 # Web static assets
├── mariadb/                    # Portable MariaDB
└── scripts/                    # Install / uninstall / migration scripts

/var/lib/comodel/               # Data directory (can be kept on uninstall)
├── mysql-data/                 # Database
├── storage/                    # Uploaded FMUs, ONNX files, model attachments
└── backup/<version>/           # Automatic pre-upgrade backup

/etc/comodel/.env               # Configuration file (0600)
/var/log/comodel/               # Service and installation logs

First startup: set the administrator email

  1. Open http://<host>:8000 in a browser; the first-run setup wizard starts automatically.
  2. Enter the email you registered with on the website (it must match the licensed email of your license) and submit to finish setup.
  3. Sign in with that email and the default password admin123; the system forces a password change.
  4. Go to Admin → License Management and upload the .lic file downloaded from the website to complete activation.

For how to obtain a license, see License Activation; for the account system, see Sign-Up and Sign-In.

Service management (systemd)

systemctl status comodel           # show service status
sudo systemctl restart comodel     # restart the API service
sudo systemctl restart comodel-mariadb   # restart the database
sudo journalctl -u comodel -f      # follow service logs

The services start at boot and are restarted automatically on failure (Restart=on-failure); the database service starts before the API service, and stopping happens in reverse order.

Upgrade

To upgrade, run the new installer:

sudo ./ComodelSetup-<new-version>-linux-x64.run
  • When an existing installation is detected, the installer switches to upgrade mode: stop services → back up the database automatically to /var/lib/comodel/backup/<version>/ → overwrite the program directory → run new migrations → restart.
  • Data under /var/lib/comodel and the /etc/comodel/.env configuration are not touched.
  • An existing license does not need to be uploaded again after the upgrade.

Uninstall

sudo /opt/comodel/scripts/uninstall.sh

The uninstaller asks whether to keep user data. Keep: only the program directory and the systemd services are removed; data / config / logs stay intact and remain usable after a reinstall. Delete: /var/lib/comodel is wiped as well.

Common issues

The page does not open in the browser after installation

  1. Run systemctl status comodel to confirm the service is healthy; a cold start usually completes within 30 seconds.
  2. Check the access port: if 8000 was occupied during installation, the installer moved to the next free port and wrote it to /etc/comodel/.env (PORT=).
  3. Check the logs: sudo journalctl -u comodel -n 100.

Uploading an FMU reports a platform incompatibility

CoModel executes FMUs natively on Linux: make sure your FMU contains a binaries/linux64 directory and that its glibc symbol requirements do not exceed the target machine's version (see FMI Modes & Compatibility).

Forgot the administrator password

Have another administrator of this instance reset it. If there is only one administrator account, contact support for the reset procedure (see the support channels at the end of FAQ).

Next steps