> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/documentation/deploy-and-administer/installation/offline-installation.md).

# Offline installation

Install OctoXLabs and a connector on servers that have no internet access.

Install OctoXLabs on a server that cannot reach the internet. You move the installation package to the server yourself, then run the same setup as an online install.

### Before you begin

* Applies to: OctoXLabs 6.x. Confirm the minimum version before publishing.
* Required role: root, or a user with `sudo`, on the server.
* You have the offline installation package for your distribution (`.deb` or `.rpm`) from OctoXLabs, and a way to copy it to the server, such as removable media or an internal file share.
* You have read the requirements for sizing and ports.

{% hint style="info" %}
Offline installs skip the post-upgrade command `move_to_nested` that version 5.5.0 requires for existing customers. See Updating the Platform if you later upgrade an older system.
{% endhint %}

### What needs internet access

Nothing in the base installation does. These optional services call out to OctoXLabs and will not work from an isolated network:

* Online update. Use an offline package instead (see Updating the Platform).
* Query AI, which calls `ai.octoxlabs.io`.
* AVM. From version 6.8.0, AVM supports offline usage.

### Install the server

{% stepper %}
{% step %}

#### Copy the package to the server

Copy the offline package to `/tmp` on the server.
{% endstep %}

{% step %}

#### Install the package

{% tabs %}
{% tab title="Debian and Ubuntu" %}

```bash
sudo dpkg -i /tmp/PACKAGE_PATH
```

{% endtab %}

{% tab title="Red Hat and CentOS" %}

```bash
sudo rpm -i /tmp/PACKAGE_PATH
```

{% endtab %}
{% endtabs %}

On Ubuntu, make sure `bzip2` and `curl` are already installed. The installer checks for them.
{% endstep %}

{% step %}

#### Configure OctoXLabs

`setup` is the command that configures OctoXLabs after an offline installation.

```bash
sudo octox-ctl -x setup
```

Choose the host IP address, confirm with a capital `Y`, and enter the root company name.
{% endstep %}

{% step %}

#### Start OctoXLabs and finish the setup

```bash
sudo octox-ctl -x up
```

Then follow the remaining steps of the online procedure: sign in, set the default connector token and add the licence key. See Install the server, from "Sign in" onward.
{% endstep %}
{% endstepper %}

### Install a connector offline

The connector package comes in an **offline** mode that carries everything the connector needs: Docker, docker-compose and the PostgreSQL, Redis and Nginx images. It does not include Elasticsearch. The connector connects to the Elasticsearch of your main OctoXLabs server.

If Docker or docker-compose is missing, the installer installs them and starts the Docker service. Follow Install a remote connector for the full procedure.

{% hint style="warning" %}
On Red Hat systems, when the connector installer installs Docker, it sets SELinux to permissive mode and changes `/etc/selinux/config`. Check this against your security policy before you install.
{% endhint %}

### Verify the result

* `sudo octox-ctl -x ps` lists the running OctoXLabs services.
* You can sign in at `https://your-octo-host`.
* **Send Test** on the Default Connector succeeds.

### Troubleshooting

| Symptom                                                             | Cause                                                                          | Fix                                                                                                                                                |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| `zstd not found and no bundled binary present.` (connector install) | The connector installer could not find `zstd` and the bundled copy is missing. | On Debian-based systems run `sudo apt-get install -y zstd`. On Red Hat-based systems run `sudo dnf install -y zstd` or `sudo yum install -y zstd`. |
| `dpkg` or `rpm` reports an error                                    | The package does not match the distribution.                                   | Use the `.deb` package on Debian-based systems and the `.rpm` package on Red Hat-based systems.                                                    |

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Install a remote connector</strong></td><td>Add a connector in another network.</td><td></td></tr><tr><td><strong>Updating the Platform</strong></td><td>Upgrade an installation, including offline systems.</td><td></td></tr><tr><td><strong>Installation</strong></td><td>Requirements and the standard procedure.</td><td></td></tr></tbody></table>
