// COMPLETE REFERENCE

OtterIO Storage

Chapter 608 3 min read English Stable reference URL

OtterIO is the default S3-compatible object store that Drive runs against. It is started by the component installer, not by botserver, and botserver only talks to it over the S3 API (and, for the console, over the browser).

The storage architecture, the bucket layouts and the backend catalog are owned by .gbdrive File Storage. This page covers running the default backend.

What it stores

The bot packages in .gbai directories, knowledge-base documents in .gbkb directories, configuration in .gbot, user files and media in .gbdrive, and the bot trees of an organization under {tenant}.gborg (layouts).

Credentials

Drive credentials are read from Vault at secret/gbo/drive; the environment variables in Environment Variables are the fallback when no Vault is reachable (botserver/crates/botcore/src/config/from_vault.rs:7-88,91-126). No component of the Directory service (Zitadel) provisions or rotates these values.

Install and start

The component is declared in botserver/3rdparty.toml under [components.drive] and installed by the package manager (botserver/crates/botcorepkg/src/installer_regs/register_drive.rs:9-42):

Setting Value
Ports 9100 (API), 9101 (console)
Binary {{BIN_PATH}}/otterio (otterio.exe on Windows)
Data {{DATA_PATH}}
Log {{LOGS_PATH}}/otterio.log
Certificates (Linux/macOS) {{CONF_PATH}}/drive/certs
Windows plain HTTP, no certificate directory

The installed command is equivalent to:

nohup {{BIN_PATH}}/otterio server {{DATA_PATH}} \
  --address 127.0.0.1:9100 \
  --console-address 127.0.0.1:9101 \
  --certs-dir {{CONF_PATH}}/drive/certs > {{LOGS_PATH}}/otterio.log 2>&1 &

The installer registers OtterIO as a host process (container is None in its ComponentConfig), not as an Incus container.

Health and console

Check Command
Linux/macOS curl -sf --cacert {{CONF_PATH}}/drive/certs/CAs/ca.crt https://127.0.0.1:9100/otterio/health/live
Windows curl -sf http://127.0.0.1:9100/otterio/health/live

These are the exact commands the installer uses to decide the component is ready (register_drive.rs:37-39). The console listens on 9101; the health path carries the /otterio prefix on both platforms.

A deployment that maps OtterIO behind a proxy may expose it on another port; the API contract is the path, not the port.

Media

Uploaded images, attachments and recordings are written to the bot’s .gbdrive prefix and served back through botserver. See Multimodal Configuration for the channel side and the Files API for download endpoints.

Using a different backend

OtterIO is the default, but Drive runs against Backblaze B2, Cloudflare R2 or Wasabi without a rebuild. The secret/gbo/drive keys, the per-backend default region, the read-only failover and the egress meter are documented in .gbdrive File Storage.

Release provenance

OtterIO is Apache-2.0 and forked from the last Apache-2.0 baseline of the upstream store (2021) with selective backports, so later upstream fixes are not inherited automatically (LICENSES-desktop.md:65). Each pinned release is verified against its published SHA-256 before use; the pin lives in botserver/3rdparty.toml under [components.drive].

The upgrade procedure, including the release URL and checksum fields, is Updating OtterIO.

Troubleshooting

Symptom Check
Connection refused from botserver ps -ef | grep otterio, then ss -tlnp for 9100
Access denied secret/gbo/drive credentials; the backend key matches the endpoint
NoSuchBucket The bot tree was not written; creation uses POST /api/files/bots and writes {bot}.gbdrive/.keep (botdrive/src/drive_handlers/move_file.rs:344-403)
Upload fails Drive body limit is 100 MiB and the file name 180 characters; see Limits

Trace logging shows the S3 calls botserver makes:

RUST_LOG=trace ./botserver

Backup

Back up {{DATA_PATH}} like any other data directory: it holds every bot tree and every user file. A database dump alone does not restore a bot, because the scripts, knowledge and uploaded files live here. The restore runbook is Restore PostgreSQL or OtterIO.

// SEARCH ESC
Pagefind · 236 pages · 4 books Enter to open ↑ ↓ to move