This is the multi-page printable view of this section. Click here to print.
Origin Manager (esb3036)
- 1: Introduction
- 2: Installation
- 2.1: Upgrades
- 3: Configuration
- 4: Logging
- 5: How-To Guides
- 6: API Reference
- 7: Command Line Tools
- 8: Releases
- 8.1: Release 1.0.0
1 - Introduction
Overview
Origin Manager (OM) manages the content that AgileTV Origin streams over HTTP and WebTV. You use it to record live channels, upload video files, publish the live buffer of a channel, and register content that is stored somewhere else. OM keeps track of the assets, where they are stored and whether they are ready to play.
OM is compatible with Convoy: it uses the same MySQL database and Redis cache, so the Request
Router and other readers of that data keep working. OM can share the database and Redis with an
existing Convoy deployment, but do not give OM roles to hosts that run Convoy services. The
recorder and uploader roles install ew-vodingest 1.20.0, and om-deploy uninstall removes it
again, which affects a Convoy recorder on that host, see
Convoy integration. Sharing a host with Convoy
was not tested. OM does not coordinate with the WebTV recording scheduler of Convoy, so make sure
that only one of them schedules the same recordings. IPTV, RTSP, session handling and CDN
publishing are not part of OM.
What OM Can Do
- Record channels. Schedule a recording of a channel between a start and a stop time. OM can record each channel to several storage systems at once.
- Upload files. Give OM the URL of a SMIL file that lists the media files (an
ftpURL can also name a directory). It fetches the files, checks them and stores them on the storage systems that match the tags of the content. See the SMIL manifest page of the VoD ingest and Creating an Upload. - Publish buffered live content. Expose the live buffer of a channel as playable content.
- Register external content. Add an asset that is already hosted elsewhere. OM stores a record and never touches the files.
- Manage channels, content and distributions through the Account API on port 9090. The
omtool covers channels and content. Use the API for distributions.
Content Types and States
Each content item has a source that decides how it is created and what OM does with it:
| Source | What it is | How you create it |
|---|---|---|
recording | A recording of a channel between a start and a stop time | om content record or POST /api/2/content |
upload | Media files that OM fetches through the URL of a SMIL file and stores | om content upload or POST /api/2/content |
buffered_live | The live buffer of a channel. The content ID is the channel name | om content live or POST /api/2/content |
external | An asset that is already hosted elsewhere | POST /api/2/content |
Recordings and uploads are processed in the background. They start in the state pending and
move on by themselves. The state that the API shows is one of:
| State | Meaning |
|---|---|
pending | A recording is waiting to start, or an upload has not started |
ongoing | A recording is in progress, or an upload is being downloaded, checked or stored. A short recording that is already in the catch-up buffer can go from pending straight to done |
done | The recording or upload has finished |
error | The recording or upload failed. For a recording the API does not say why, the reason is in the logs, see Logging. An upload without tags shows a short reason after the state |
N/A | Nothing runs behind the content: buffered_live and external content |
The usage report of Convoy (convoy-admin usage-report generate) counts each recording and upload
when it reaches done, with the duration of the content and a size of 0, because OM measures no
size. Recordings appear under DAILY RECORDINGS and uploads under DAILY VOD. OM has no usage report
command of its own.
How Players Find the Content of an Account
OM manages content, and the Request Router (RR) serves the streams. The RR chooses the account of a
request from the HTTP Host header: it looks for a distribution whose cache name is the host name,
and serves the request for the account of that distribution. A request with a host name that no
distribution uses is served for the default account, so it only sees the channels and content of
that account. See
Serving the Content of an Account through the Request Router.
Services and Tools
OM runs as four services: origin-manager (the Account API), origin-scheduler (starts
recordings and uploads and cleans up deleted content), origin-recorder and origin-uploader.
The configuration is stored in etcd. You work with OM through three tools:
| Tool | Use it to |
|---|---|
om | Manage channels and content through the Account API |
om-admin | Create accounts and operators and inspect storage. Run it on a node that has the manager role |
om-deploy | Install, configure, upgrade, downgrade, control and uninstall OM on all nodes |
om and om-admin come with the origin-manager package, so they are on the nodes that have the
manager role. om-deploy is on the administration machine.
OM is delivered as RPM packages in an offline installer. It is officially supported on Red Hat Enterprise Linux 9. Other binary compatible distributions are unofficially supported.
A First Look
Create a channel, schedule a recording of it, and look at its state. This assumes that a Catch-up
Buffer Manager with buffer_duration set serves the channel group default, see the
Configuration page:
om channel add news-1 -t "News One" -g default
om content record match-1 -t "Evening match" -c news-1 \
-b 2026-12-01T20:00:00Z -e 2026-12-01T22:00:00Z
om content get match-1
title: Evening match
service: HTTP
state: pending
playable: no
duration: 7200 seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
recording:
channel: news-1
start time: 2026-12-01T20:00:00Z
stop time: 2026-12-01T22:00:00Z
delivery URIs:
dash: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd
hls: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8
mss: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000001
The state line shows pending, because the recording has not started. The last line is the
entity tag, which you need to change the content later. The recording: lines show the channel and
the window, and delivery URIs: holds the paths that a player uses.
The How-To Guides walk through this and the other content types step by step. The API Reference describes every request.
2 - Installation
om-deployInstallation
Origin Manager (OM) is installed on a cluster of nodes by om-deploy. You run om-deploy from
one administration machine. It connects to every node over SSH, installs the packages from a
bundled offline repository, sets up the etcd cluster, pushes the configuration and starts the
services.
OM is officially supported on Red Hat Enterprise Linux 9. Other binary compatible distributions
are unofficially supported. OM is delivered as RPM packages, bundled in an offline installer named
origin-manager-installer-x.y.z.tar.gz, which contains:
install.sh: installsom-deployon the administration machine.repo: the local yum repository with all OM packages.
Packages per role
| Role | Packages | systemd unit |
|---|---|---|
etcd | etcd | etcd.service |
manager | origin-manager (also provides the om and om-admin tools, so they are only on nodes that have this role) | origin-manager.service |
scheduler | origin-scheduler | origin-scheduler.service |
recorder | origin-recorder, ew-vodingest | origin-recorder.service |
uploader | origin-uploader, ew-vodingest | origin-uploader.service |
om-deploy installs on each node only the packages for the roles that the node has in the
topology. A node can have several roles. ew-vodingest is versioned independently of OM. It needs
a license file on every recorder and uploader host, see ew-vodingest License.
The om-deploy package, installed on the administration machine, provides /usr/bin/om-deploy
and the example files topology.yaml.example and configuration.yaml.example in
/etc/edgeware/origin-manager/.
Install om-deploy
On the administration machine, extract the installer and run install.sh as root:
tar xzf origin-manager-installer-x.y.z.tar.gz
cd origin-manager-installer-x.y.z
./install.sh
Configuring local offline repo for el9 (/root/origin-manager-installer-x.y.z/repo/el9)
Installing om-deploy from the local repo (offline)
...
Done. om-deploy installed:
/usr/bin/om-deploy
install.sh works without network access. On an unsupported Red Hat major version it stops with
an error:
unsupported RHEL major version: '8' (need 9 or 10)
Known limitation: install.sh does not check which user runs it. An unprivileged user gets an
error at the first file that it cannot write, and the message does not say why:
./install.sh: line 26: /etc/yum.repos.d/origin-manager-local.repo: Permission denied
Check the installed version:
om-deploy --version
om-deploy x.y.z (commit <hash>, built <date>)
The om-deploy command
| Subcommand | What it does |
|---|---|
install | Installs packages, sets up etcd, pushes the configuration and starts the services |
configure | Pushes the topology and configuration again and restarts the OM services |
upgrade | Rolling upgrade of all nodes |
downgrade | Rolling downgrade to an earlier version |
service | Starts, stops, restarts or shows the status of the services |
uninstall | Stops the services, removes the packages and cleans up the nodes |
Every subcommand that contacts nodes accepts these flags:
| Flag | Default | Description |
|---|---|---|
--ssh-user | root | SSH user |
--ssh-key | ~/.ssh/id_rsa | SSH private key |
--ssh-port | 22 | SSH port |
--known-hosts | none | known_hosts file used to check host keys |
Without --known-hosts, om-deploy accepts any SSH host key. Always pass --known-hosts in
production. om-deploy prints the key that each host presented on standard error, so that you
can notice a changed key:
ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint>
More flags:
| Flag | Subcommands | Default | Description |
|---|---|---|---|
--topology | all | /etc/edgeware/origin-manager/topology.yaml | Topology file |
--config | install, configure, upgrade | /etc/edgeware/origin-manager/configuration.yaml | Configuration file to push |
--repo | install, upgrade, downgrade | repo | The repo directory of the installer |
--version | downgrade | none | Version to install (required) |
--role | service | all roles | Limit to one role: etcd, manager, scheduler, recorder or uploader |
--repo is a relative path by default, so run om-deploy from the extracted installer
directory or give an absolute path.
On success om-deploy prints one summary line on standard output, after the command has finished.
The ssh: lines and the warnings go to standard error, so on a terminal the summary line comes
last. The lines are:
| Command | Summary line |
|---|---|
install | install is complete |
configure | configure is complete |
upgrade | upgrade is complete. It names no version, because it installs the newest build in the offline repository |
downgrade --version 0.0.20 | downgrade to 0.0.20 is complete. It names the version that you gave |
uninstall | uninstall is complete |
service start | services started |
service stop | services stopped |
service restart | services restarted |
service start --role recorder | recorder services started. With --role, the line starts with the role: manager services restarted, recorder services stopped |
service status | No summary line. It prints one line for each unit, see Service Control |
For example:
om-deploy configure --known-hosts ~/.ssh/known_hosts
ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint>
ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint>
configure is complete
To keep the two streams apart, for example in a script, send them to different files:
om-deploy configure --known-hosts ~/.ssh/known_hosts > summary.txt 2> messages.txt
cat summary.txt
configure is complete
If uploader.storages names a storage system that is not defined in storage, om-deploy also
prints one warning line on standard error for each such name. The command still succeeds:
warning: upload storage system "nas-9" is not configured in storage
On failure om-deploy prints no summary line. It prints om-deploy: <reason> on standard error
and exits with status 1. Run without a subcommand, it prints the usage text and exits with
status 2. An unknown flag prints the flags of the subcommand and also exits with status 2.
Known limitation: om-deploy does not stop you from starting two commands at the same time.
Two om-deploy upgrade runs once collided in dnf on one node, and one of them failed. Run one
om-deploy command at a time.
Checks before a change
install, configure and upgrade check topology.yaml and configuration.yaml before they do
anything else. They use the checks that the services run when they start: the replication
factors, log_level, the Redis database numbers, the storage systems for the recorder and the
uploader, the rules for the Catch-up Buffer Managers and the syntax of uploader.ingest_script.
If a check fails, om-deploy stops at once. It changes nothing on any node or in etcd, and it
does not rewrite your files:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": redis: cache_db/queue_db/result_db must differ (got 1/1/2)
The reasons that you can see are listed in Troubleshooting. The rules are described on the Configuration page.
When the checks have passed, the first change that these three commands make is to create the
user and the group edgeware on the nodes that lack them, see System User.
Checks after a restart
After install, configure, upgrade and downgrade, and after service start and
service restart, om-deploy waits 5 seconds and checks every OM unit that it started. etcd is
not checked. The summary line is printed only after this check has passed. If a unit is not
active, or if systemd restarted it in the meantime, om-deploy exits with status 1 and prints
up to the last three lines of the journal of that unit since om-deploy started it, without a
summary line. The lines are joined with a semicolon and a space and include the messages of systemd itself. If there
is no such line, or om-deploy cannot read the journal, it prints the state of the unit instead,
for example failed or activating:
om-deploy: 192.0.2.12 origin-uploader is not running: origin-uploader: uploader: ingest_script binary "/usr/bin/no-such-ingest": exec: "/usr/bin/no-such-ingest": stat /usr/bin/no-such-ingest: no such file or directory
Here systemd could not determine the user of the unit (217/USER), and the lines are its own
messages:
om-deploy: 192.0.2.12 origin-recorder is not running: origin-recorder.service: Failed to determine user credentials: No such process; origin-recorder.service: Main process exited, code=exited, status=217/USER; origin-recorder.service: Failed with result 'exit-code'.
The new configuration and topology are already pushed when this happens. Fix the cause and run the
command again. service stop and service status do not check the units.
Because of the wait, configure takes about 6 to 10 seconds with three nodes, and
service restart --role <role> takes about 5 to 6 seconds. The check has limits. A service that
stops more than 5 seconds after its start is not detected. A wrong ingest_script of a Catch-up
Buffer Manager is not detected either: the recorder starts, and the recordings fail.
Prerequisites
- Administration machine: Red Hat 9 (or compatible), where you run
install.shandom-deployas root.om-deploykeepssecret.keyat/etc/edgeware/origin-manager/secret.keyon this machine, and the path cannot be changed. As an ordinary user it stops with apermission deniederror. - Nodes: Red Hat 9 (or compatible) on every node in the topology. On any other OS
om-deploystops with anunsupported RHEL majorerror. - SSH access: the administration machine can connect to every node as the configured user
(default
root) with the configured key. - etcd:
om-deployinstalls etcd on the hosts in theetcdrole. Use at least three hosts. The client port (default 2379) and the peer port (default 2380) must be reachable between the nodes.om-deploycreates the etcd cluster only duringinstall, see Changing a Deployment. - MySQL: a MySQL (MariaDB/Galera) cluster that the OM nodes can reach. It is shared with
Convoy and is not installed by
om-deploy. - Redis: a Redis server that the OM nodes can reach, shared with Convoy and not installed
by
om-deploy. OM uses three databases on it: the cache, the work queue and the recording results. They must be different (defaults 0, 1 and 2). - Storage: the storage systems that recordings and uploads are written to, described in
configuration.yaml. The base directory (path) of every local storage system must exist and be writable by the system useredgewareon every recorder, uploader and scheduler node, and on a node where you runom-admin storage repair. The scheduler removes the files of deleted content, so on a scheduler node without the directory a deleted item stays in the list of pending deletes, see When the Cleanup Does Not Finish.om-deploydoes not create the directory andconfiguredoes not check it. An upload to a missing base directory fails withopen <path>: no such file or directory. A recording creates the missing directory and writes there, which is usually not what you want. See System User. - ew-vodingest license: every recorder and uploader host needs the license file
/etc/edgeware/ew-vodingest/license.json. Until you copy it there, every recording and upload fails. See ew-vodingest License. - Port 9090:
origin-managerlistens on port 9090 for the Account API, or on the port ofmanager.account_api_portwhen it is set. The port must be free on every node that has themanagerrole.
Directory Structure
| Path | Content |
|---|---|
/etc/edgeware/origin-manager/etcd_hosts | etcd endpoints, one per line, mode 0644. Written by om-deploy on every node that runs an OM service. Contains no secrets |
/etc/edgeware/origin-manager/secret.key | Key that decrypts stored passwords. Owner edgeware, mode 0600. Written to every node that runs an OM service |
/etc/edgeware/origin-manager/topology.yaml | Your topology file, on the administration machine |
/etc/edgeware/origin-manager/configuration.yaml | Your configuration file, on the administration machine |
/etc/edgeware/ew-vodingest/license.json | License of ew-vodingest, on every recorder and uploader node. You copy it there |
/usr/bin/ | Depends on the roles of the node: origin-manager with om and om-admin, origin-scheduler, origin-recorder, origin-uploader, etcd and etcdctl. om-deploy is only on the administration machine |
/usr/lib/systemd/system/ | The unit files |
/var/lib/etcd | etcd data. Owner edgeware, mode 0700 |
/etc/systemd/system/etcd.service.d/cluster.conf | etcd cluster settings written by om-deploy |
The OM services and etcd run as the system user edgeware, see System User.
The services do not read their settings from files. om-deploy pushes your two files to etcd
and the services read them there. At start, a service reads two files on its node: etcd_hosts
and secret.key. A service does not start without them.
Services write their logs to the system journal. See the Logging page.
During installation om-deploy copies the offline repository to /tmp/origin-manager-repo on
each node and writes /etc/yum.repos.d/origin-manager-local.repo.
System User
The OM services and etcd run as the nologin system user edgeware (group edgeware).
ew-vodingest uses the same account. Earlier builds ran the services as dynamic users, see
Upgrades.
om-deploy install, upgrade and configure create the user and the group on every node of the
topology where they are missing. That is every host that has an etcd, manager, scheduler,
recorder or uploader role, and each host is handled once, also when it has several roles. The
account is created before any package is installed and before any file is copied to a node. It
comes right after the checks of the two files. om-deploy runs the same
commands as the pre-install script of the OM packages, which also creates the account when it is
missing. An account that already exists is not changed. downgrade and service do not create
the account, and uninstall keeps it.
If om-deploy cannot create the account on a host, it stops with an error that names the host.
Nothing is installed or copied, and the hosts after it are not touched. The hosts before it keep
the account that was created. Fix the cause and run the command again. Here the node cannot be
reached over SSH:
om-deploy: deploy: create edgeware account on 192.0.2.12: ssh: dial 192.0.2.12:22: dial tcp 192.0.2.12:22: i/o timeout
The operating system picks the numeric user id and group id of a new account, so they can differ
from node to node. om-deploy does not check or align them. If a storage system is on a mount
that several nodes share, for example NFS, every node must write with the same numeric uid and
gid of edgeware. Make sure that they match on all of these nodes. This also applies to an
account that existed before om-deploy ran.
The base directory of every local storage system must exist on every recorder, uploader and
scheduler node, and edgeware must be able to write to it. om-deploy does not create it.
Topology
The topology file topology.yaml says which hosts run which role and how to reach MySQL and
Redis. Start from the example:
cp /etc/edgeware/origin-manager/topology.yaml.example \
/etc/edgeware/origin-manager/topology.yaml
Replace every <...> placeholder. A three-node example:
roles:
etcd:
hosts: [192.0.2.11, 192.0.2.12, 192.0.2.13]
manager:
hosts: [192.0.2.11]
scheduler:
hosts: [192.0.2.11]
recorder:
hosts: [192.0.2.12, 192.0.2.13]
uploader:
hosts: [192.0.2.12, 192.0.2.13]
database:
hosts: [db-1.example.invalid, db-2.example.invalid, db-3.example.invalid]
port: 3306
user: om_user
password: change-me
redis:
hosts: [redis-1.example.invalid]
port: 6379
password: change-me-too
The etcd, manager, scheduler, recorder and uploader roles are installed by
om-deploy. The database and redis roles only carry connection details. Every key is
described in the Configuration page.
List the OM nodes by IPv4 address. The scheduler finds itself among the hosts of the scheduler
role, in this order:
- A host that equals one of the IP addresses of its node.
- A host that is exactly equal to the output of
hostname.
The match is case-sensitive, so a short name does not match a fully qualified name, and names are
not resolved. The scheduler logs which step matched, as scheduler identity matched topology host
with match set to ip or hostname. If neither step matches, it logs
could not match any local address to a topology host; falling back to hostname and then
node is not a member of the scheduler set; will own no work. Such a scheduler starts no
recordings and no uploads. The scheduler finds itself once, when it starts. om-deploy configure
restarts it, so a changed host takes effect then.
om-deploy connects to every host name in the topology as a separate host. A host name needs its
own entry in the known_hosts file, with every host key type of the node. Without it om-deploy
stops with knownhosts: key is unknown or knownhosts: key mismatch:
ssh-keyscan scheduler-1.example.invalid >> ~/.ssh/known_hosts
Initial Setup
Prepare the administration machine: install
om-deploywithinstall.shand make sure it can reach all nodes over SSH.Create
topology.yamlas described in Topology.Create
configuration.yamlfromconfiguration.yaml.exampleand replace every<...>placeholder: storage systems, origin servers and Catch-up Buffer Managers. Enter passwords in plain text.om-deployencrypts them (see Secrets).Run the install from the extracted installer directory:
om-deploy install --known-hosts ~/.ssh/known_hostsWhen the install has finished,
om-deployprintsinstall is complete. Thessh:lines before it show the host keys and go to standard error:ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint> ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint> ssh: 192.0.2.13:22 host key ssh-ed25519 SHA256:<fingerprint> install is completeUse
--topology,--configand--repoif the files are not in their default places. The install takes about one to two minutes with three nodes, because it copies the offline repository to every node.om-deploy installdoes the following, in order:- Checks
topology.yamlandconfiguration.yaml, see Checks before a change. - Creates the user and the group
edgewareon every node where they are missing, see System User. If this fails, the command stops withom-deploy: deploy: create edgeware account on <host>: <cause>before it installs anything. - Copies the offline repository to each node and installs the role packages.
- Writes the etcd cluster settings, starts etcd on all etcd hosts and waits until the cluster is healthy.
- Encrypts the passwords, creates
secret.keyif needed, and copies the key to every node that runs an OM service. - Writes
etcd_hostson every node that runs an OM service. - Pushes
configuration.yamland the topology to etcd in one transaction. - Enables and restarts the services in role order:
origin-manager,origin-scheduler,origin-recorder,origin-uploader. Then it waits 5 seconds and checks that they are active, see Checks after a restart. - Prints
install is complete.
- Checks
On every recorder and uploader host, copy the
ew-vodingestlicense (see ew-vodingest License). On every recorder, uploader and scheduler host, make sure that the base directory of every local storage system exists and is writable byedgeware(see System User).Check that all units are active:
om-deploy service status192.0.2.11 etcd active 192.0.2.12 etcd active 192.0.2.13 etcd active 192.0.2.11 origin-manager active 192.0.2.11 origin-scheduler active 192.0.2.12 origin-recorder active 192.0.2.13 origin-recorder active 192.0.2.12 origin-uploader active 192.0.2.13 origin-uploader activeThe three columns (host, unit, state) are separated by tabs. The state is the output of
systemctl is-active. A unit that is not running showsinactive,failedorunknown. A unit that crashes and is restarted by systemd every 5 seconds showsactivating.If
om-deploycannot connect to a host,service statusprints the rows of the other hosts, prints one error line for each unreachable host and exits with status 1. Here192.0.2.10is listed in a role and cannot be reached:om-deploy: deploy: status on "192.0.2.10": ssh: dial 192.0.2.10:22: dial tcp 192.0.2.10:22: i/o timeoutCreate an account, to get an API key for the Account API (see the How-To Guides), and check that the API answers:
curl -s http://192.0.2.11:9090/openapi.yaml | head -3openapi: 3.0.3 info: title: Origin Manager — Account API
The install rewrites topology.yaml and configuration.yaml in place when it encrypts
passwords.
If a step fails, om-deploy stops at that step. Fix the problem and run the same command again.
ew-vodingest License
The recorder and the uploader run ew-vodingest for every task. ew-vodingest needs the license
file /etc/edgeware/ew-vodingest/license.json on the host where it runs. You get the file from
AgileTV, see Licensing.
The ew-vodingest package installs a placeholder file at this path. With the placeholder every
recording and every upload fails at once, and om-deploy does not warn about it. The recorder logs
the reason in the last_line field of recording failed:
{"level":"error","ts":"2026-11-11T05:52:03.486Z","msg":"recording failed","service":"origin-recorder","content_id":"37","storage_name":"nas-1","channel":"sports-1","window":180,"exit_code":1,"detail":"last log line has no \"status=ok\"","last_line":"2026-11-11T05:52:03Z FTL license check error: empty expiry"}
The uploader logs the same text in the last_line and ingest_log fields of ingest failed. If
the file is missing, the text is
FTL license check error: open /etc/edgeware/ew-vodingest/license.json: no such file or directory.
Copy your license to every recorder and uploader host. The file must be readable by edgeware
(mode 0644 works). You do not need to restart the OM services, because ew-vodingest starts anew
for every task:
scp license.json root@192.0.2.12:/etc/edgeware/ew-vodingest/license.json
scp license.json root@192.0.2.13:/etc/edgeware/ew-vodingest/license.json
You must copy the license again in these cases:
After
om-deploy uninstalland a newinstall. Removing the package saves your license aslicense.json.rpmsave, and the next install puts the placeholder back. A new.rpmsavereplaces an older one, so keep your own copy of the license file. To restore it:cp -p /etc/edgeware/ew-vodingest/license.json.rpmsave /etc/edgeware/ew-vodingest/license.jsonOn every host that gets a recorder or uploader role later (see Changing a Deployment).
installputs the placeholder there.
An upgrade to the same ew-vodingest version keeps the license file. downgrade does not touch the
ew-vodingest package.
Changing a Deployment
To change the settings, or to move a role between hosts that already have its packages, edit
topology.yaml and configuration.yaml and run:
om-deploy configure --known-hosts ~/.ssh/known_hosts
configure is complete
configure checks the files, creates the edgeware account on the nodes that lack it, encrypts new
passwords, writes etcd_hosts, pushes the files to etcd and restarts the OM services one host at a
time. It prints the summary line after it has checked that the services run, see
Checks after a restart. The ssh:
host key lines on standard error come before it. See the
Configuration page.
To add a role to a host, or a host to the cluster, change the topology and run install.
configure installs no packages. If a host gets a role that it does not have yet, configure
fails, and the cluster is left half changed: configure has already pushed the new topology to
etcd and restarted the services that come before the failing one in role order.
om-deploy: ssh: 192.0.2.11: "systemctl restart origin-recorder.service" failed: Process exited with status 5
Failed to restart origin-recorder.service: Unit origin-recorder.service not found.
For example, to add a recorder on 192.0.2.11:
recorder:
hosts: [192.0.2.11, 192.0.2.12, 192.0.2.13]
om-deploy install --known-hosts ~/.ssh/known_hosts
install is complete
install installs the missing packages, pushes the files again, leaves a running etcd alone and
restarts the OM services in role order. It takes about a minute or more. It puts the placeholder
license on a new recorder or uploader host, so copy your license there.
To remove a role from a host, edit the topology and run configure, and then stop the role on
that host yourself. configure does not stop it. The unit keeps running and stays enabled,
om-deploy service status no longer lists it, and a removed recorder or uploader keeps taking
tasks from the shared queues. A removed manager keeps answering the API. On that host run:
systemctl disable --now origin-recorder
dnf remove -y origin-recorder
If the host has neither a recorder nor an uploader left, also remove ew-vodingest and delete the
/etc/edgeware/ew-vodingest/license.json.rpmsave that the removal leaves.
The etcd role cannot be changed in a running cluster. om-deploy creates the etcd cluster
only during install. configure and upgrade do not add or remove members. If you list fewer
or other hosts in the etcd role, only the endpoints that the OM services connect to change:
etcd_hosts on every OM node and the topology in etcd then name only the hosts you listed, and the
cluster keeps its members. The OM services then depend on those endpoints alone. Do not edit the
etcd role of a running cluster.
Service Control
Use om-deploy service to control the services on the whole cluster:
om-deploy service status
om-deploy service stop
om-deploy service start
om-deploy service restart
om-deploy service restart --role recorder
service status prints one line for each unit, see Initial Setup, and no summary
line. The other commands print one summary line on standard output when they have finished:
om-deploy service restart
services restarted
With --role, the line starts with the role:
om-deploy service restart --role recorder
recorder services restarted
service stop prints services stopped and service start prints services started. The
ssh: host key lines on standard error come before the summary line. A command that fails prints
no summary line.
start and restart act in role order, with etcd first. stop acts in reverse order, so the
OM services are stopped before etcd. restart --role recorder restarts only the recorders.
start and restart check the OM units after the restart, see
Checks after a restart. restart restarts the etcd members one at a
time, and waits for each of them, so a running cluster keeps its quorum.
Known limitation: after service stop, service start cannot bring the cluster back.
service stop stops etcd on every host. service start starts the etcd members one after the
other and waits for each of them. A member is ready only when the cluster has a quorum, so the
first start does not finish. After about 90 seconds om-deploy stops with exit status 1 and
starts nothing else:
om-deploy: ssh: 192.0.2.11: "systemctl start etcd.service" failed: Process exited with status 1
Job for etcd.service failed because a timeout was exceeded.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.
To bring the cluster back, start etcd on all etcd hosts without waiting, check that every endpoint is healthy, and then start the OM services:
On every etcd host run:
systemctl start --no-block etcdOn one etcd host, wait until every endpoint is healthy (about 2 seconds in the test):
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379,192.0.2.12:2379,192.0.2.13:2379 endpoint health192.0.2.11:2379 is healthy: successfully committed proposal: took = 3.143315ms 192.0.2.12:2379 is healthy: successfully committed proposal: took = 6.997611ms 192.0.2.13:2379 is healthy: successfully committed proposal: took = 6.626332msStart the OM services:
om-deploy service startservices started
On a node, the usual systemctl commands work on the unit of each role:
systemctl status origin-manager
systemctl restart origin-recorder
The units are etcd, origin-manager, origin-scheduler, origin-recorder and
origin-uploader. They restart automatically 5 seconds after a failure, for example after a crash
or after kill -KILL. A clean exit is not a failure. A service that you stop with kill, pkill
or systemctl kill exits normally, and systemd does not restart it. The role stays down and
service status shows inactive. Start it again with om-deploy service start --role <role>. It
prints <role> services started, for example recorder services started.
The services, including etcd, run as the system user edgeware, see System User.
Uninstall
To remove a deployment so that the nodes can be used again:
om-deploy uninstall --known-hosts ~/.ssh/known_hosts
uninstall is complete
uninstall stops and disables the services in reverse role order. It takes about 10 seconds with
three nodes. On each node of the topology it then removes:
- the role packages, including
ew-vodingeston recorder and uploader hosts /etc/edgeware/origin-manager, withetcd_hostsandsecret.key- the etcd data in
/var/lib/etcd(and in/var/lib/private/etcd, where builds that used dynamic users kept it),/etc/etcdand the etcd cluster settings - the copied repository in
/tmp/origin-manager-repoandorigin-manager-local.repo
It keeps:
- the user and the group
edgeware /etc/edgeware/ew-vodingest/license.json.rpmsave, which holds your license (only the newest copy)- the
om-deploypackage on the administration machine - all files on the storage systems, and the retained ingest logs in
/tmp - the data in the shared backend: the MySQL data (accounts, channels and content) and the keys that OM keeps in Redis (queue, statistics, results and cache). A new install uses the MySQL data again.
uninstall accepts what is already removed, so you can run it again. If a host cannot be reached,
it still cleans the other hosts, prints the first error, prints no uninstall is complete line
and exits with status 1. Each unreachable host adds about 15 seconds for every action, so the
command took 48 to 63 seconds in the test:
om-deploy: deploy: remove packages on 192.0.2.10: ssh: dial 192.0.2.10:22: dial tcp 192.0.2.10:22: i/o timeout
Known limitation: if the administration machine is also one of the nodes, uninstall deletes
your own files. It removes /etc/edgeware/origin-manager on every node, and on this machine that
holds your topology.yaml, configuration.yaml and secret.key. It also removes the example
files of the om-deploy package. Copy the three files before you run uninstall:
mkdir -p /root/om-backup
cp -p /etc/edgeware/origin-manager/topology.yaml \
/etc/edgeware/origin-manager/configuration.yaml \
/etc/edgeware/origin-manager/secret.key /root/om-backup/
Afterwards rpm -V om-deploy reports the two example files as missing:
missing c /etc/edgeware/origin-manager/configuration.yaml.example
missing c /etc/edgeware/origin-manager/topology.yaml.example
install.sh does not restore them (it prints Nothing to do.). dnf reinstall om-deploy does.
A second uninstall with the default paths fails, because the topology is gone:
om-deploy: deploy: read topology "/etc/edgeware/origin-manager/topology.yaml": open /etc/edgeware/origin-manager/topology.yaml: no such file or directory
Run a repeated uninstall with --topology /root/om-backup/topology.yaml. Before you install
again, put the three files back into /etc/edgeware/origin-manager/. A topology with encrypted
passwords needs its secret.key.
Secrets
Passwords are never stored as plain text in etcd. This covers the database and Redis passwords in
topology.yaml and the password of every storage system in configuration.yaml. A cluster
that was first installed with an older build that stored passwords as plain text can still hold
them in the etcd history, see Upgrades.
When you run install, configure or upgrade, om-deploy encrypts each plain text password
and rewrites your file in place. password becomes "<censored>" and a new encoded_password
holds the encrypted value, which starts with v1::
redis:
hosts: [redis-1.example.invalid]
port: 6379
password: "<censored>"
encoded_password: "v1:<ciphertext>"
The key is created on the administration machine, in /etc/edgeware/origin-manager/secret.key,
the first time a password is encrypted. It is copied to every node that runs an OM service
(nodes with only the etcd role do not get it), with owner edgeware and mode 0600, and it is
never stored in etcd. Back it up. If the key is lost, every password must be entered again.
The services read the key once, when they start, and keep it in memory. If you delete or replace the key file, running services are not affected, but the next restart fails:
origin-recorder: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: no such file or directory
A key that edgeware cannot read fails in the same way with permission denied, for example a key
that belongs to root and has mode 0600. When you restore a backup, keep the owner and the mode
(edgeware:edgeware, 0600). cp -p as root keeps them. Or run
om-deploy configure, which copies the key from the administration machine again and sets owner
and mode.
To change a password, replace "<censored>" in the file with the new plain text value and run
om-deploy configure. To remove a password, clear both password and encoded_password. This
works for the Redis password and for storage passwords. The database password is required: the
topology is refused with om-deploy: deploy: topology database role has no password.
If the key on the administration machine is lost, replace every "<censored>" in
topology.yaml and configuration.yaml with the plain text password and run
om-deploy configure. It creates a new key and copies it to all nodes. Copies of the two files that
were encrypted with the old key cannot be used any more: they fail with
decrypt (auth failed or wrong key).
Known limitation: do not run install, configure or upgrade while the key is missing and
the files hold only encrypted passwords. The command then copies no key, pushes the configuration
and restarts every service. All of them stop at start, and the command reports the first one. This
was tested with configure. install and upgrade use the same key step and should behave the
same way:
om-deploy: 192.0.2.11 origin-manager is not running: origin-manager: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: no such file or directory
Entering the passwords again and running configure repairs this.
Ingest command lines that contain URL passwords are logged with the password replaced by
xxxxx.
Security Notes
- etcd is set up with plain HTTP and without client authentication, and listens on all interfaces. Allow access to the etcd ports (2379 and 2380) only from the OM nodes and the administration machine.
- Without
--known-hosts,om-deploydoes not check SSH host keys. - The bundled repository is not signed (
gpgcheckis off). Use an installer tarball from a source you trust. - OM was tested on nodes that run SELinux in enforcing mode. OM ships no SELinux policy: the OM
services and etcd run unconfined (
unconfined_service_t), so SELinux does not restrict them. No denial was logged. To check your own nodes, runausearch -m avc,user_avc,selinux_err -ts today.
Troubleshooting
| Message | Cause and fix |
|---|---|
unsupported RHEL major version: '8' (need 9 or 10) | install.sh runs on a Red Hat 8 machine. Use a Red Hat 9 machine |
./install.sh: line 26: /etc/yum.repos.d/origin-manager-local.repo: Permission denied | install.sh was not run as root. Run it as root |
om-deploy: deploy: 192.0.2.12: unsupported RHEL major "8" | A node runs an unsupported Red Hat major version. Use a Red Hat 9 node |
om-deploy: deploy: topology has no etcd hosts | roles.etcd.hosts is empty. Add at least one host |
om-deploy: deploy: topology has no database hosts | roles.database.hosts is empty |
om-deploy: deploy: topology database role has no user | Set roles.database.user |
om-deploy: deploy: topology database role has no password | Set roles.database.password. The database password cannot be removed |
om-deploy: deploy: role "recorder" lists duplicate host "192.0.2.12" | A host is listed twice in one role. Remove the duplicate |
om-deploy: deploy: etcd client and peer ports must differ (both 2379) | Give client_port and peer_port different values |
om-deploy: deploy: invalid configuration "<file>": <reason> | configuration.yaml is not valid. Nothing was changed and the file was not rewritten. The reason is, for example, document is empty, document is not a mapping, log: invalid level "verbose": unrecognized level: "verbose", redis: cache_db/queue_db/result_db must differ (got 1/1/2), or one of the rules on the Configuration page. Fix the file and run the command again |
om-deploy: ssh: read key "/root/.ssh/id_rsa": ... | The SSH key does not exist. Pass --ssh-key |
om-deploy: deploy: create edgeware account on 192.0.2.12: ... | install, upgrade or configure could not create the user and the group edgeware on that host, and stopped before it installed or copied anything. The text after the host is the SSH error, for example ssh: dial 192.0.2.12:22: ... when the node cannot be reached, or ssh: 192.0.2.12: "<command>" failed: Process exited with status N followed by the output of that command. Fix the cause on that host and run the command again. See System User |
ssh: dial 192.0.2.12:22: ... | The node cannot be reached over SSH. The text follows a prefix such as om-deploy: deploy: create edgeware account on 192.0.2.12:. Check the host name, --ssh-port and the firewall |
knownhosts: key is unknown or knownhosts: key mismatch | The host is not in the known_hosts file, or the file has only some of its key types. A host name needs its own entry. Add all host keys with ssh-keyscan <host> >> ~/.ssh/known_hosts |
om-deploy: ssh: 192.0.2.12: "<command>" failed: Process exited with status N | The command failed on the node. The lines after the message are the output of the command. Read them and fix the cause on that node |
Unit origin-recorder.service not found | A role was added to the host with configure. Use om-deploy install to add roles, see Changing a Deployment |
om-deploy: 192.0.2.12 origin-uploader is not running: ... | The unit was not active 5 seconds after the restart. The text after the colon is up to the last three lines of the journal of the unit since the start, joined with a semicolon and a space, or the state of the unit when there is no line. Fix the cause and run the command again. Read more with journalctl -u origin-uploader -n 50 on that host |
Job for etcd.service failed because a timeout was exceeded (after service start) | service start after service stop. Follow the steps in Service Control |
om-deploy: deploy: etcd cluster not healthy: ... | etcd did not form a cluster within about a minute. Check systemctl status etcd on the etcd hosts and the ports between them |
om-deploy configure does not finish and prints only JSON lines with the message retrying of unary invoker failed and the error etcdserver: request timed out | etcd has no quorum: fewer than a majority of the etcd hosts run. configure has no time limit and no om-deploy: message. Stop the command, run systemctl start --no-block etcd on the stopped etcd hosts, and run it again |
om-deploy: deploy: read topology "<file>": open <file>: no such file or directory | The topology file does not exist. After uninstall on an administration machine that is also a node, use the copy you made, see Uninstall |
secret: read key "/etc/edgeware/origin-manager/secret.key": ... (in the log of every OM service) | The key file is missing (no such file or directory) or edgeware cannot read it (permission denied, for example when it belongs to root with mode 0600). See Secrets |
FTL license check error: empty expiry (in last_line of recording failed and ingest failed) | The ew-vodingest license is still the placeholder. Copy the license file, see ew-vodingest License |
FTL license check error: open /etc/edgeware/ew-vodingest/license.json: no such file or directory | The license file is missing on that host. Copy it |
node is not a member of the scheduler set; will own no work (in the log of origin-scheduler) | The scheduler does not find its node in the scheduler role. List the node by IPv4 address, or by the exact output of hostname, then run om-deploy configure. See Topology |
2.1 - Upgrades
Upgrade Process
om-deploy upgrade upgrades all nodes of the cluster from a new offline installer. It is a
rolling upgrade: the nodes are not all stopped at the same time, and etcd keeps its quorum.
Before You Start
Read the known limitations and the compatible product versions of the new version on the Releases page.
Make sure that
topology.yamlandconfiguration.yamlon the administration machine are the files that you want the cluster to run, and that they are in/etc/edgeware/origin-manager/. The upgrade pushes both to etcd and replaces what is stored there. An earlier build kept the two files in/etc/origin-manager/. If yours are still there, copy them first, or pass--topologyand--config. Without the filesom-deploystops at once and changes nothing:om-deploy: deploy: read topology "/etc/edgeware/origin-manager/topology.yaml": open /etc/edgeware/origin-manager/topology.yaml: no such file or directorymkdir -p /etc/edgeware/origin-manager cp -p /etc/origin-manager/topology.yaml /etc/origin-manager/configuration.yaml \ /etc/edgeware/origin-manager/Save a copy of the configuration and of the topology that are currently stored in etcd. The topology holds the encrypted passwords, so keep it together with the key:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 \ get /origin/config --print-value-only > config-backup.json ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 \ get /origin/topology --print-value-only > topology-backup.jsonBack up
secret.keyfrom/etc/edgeware/origin-manager/. The upgrade reuses the key and never replaces an existing one.cp -pkeeps the owner and the mode:cp -p /etc/edgeware/origin-manager/secret.key secret.key.bakA build from before password encryption has no key yet, and
cpfails withcannot stat '/etc/edgeware/origin-manager/secret.key'. See Upgrading from an Older Build.If the passwords are already encrypted and you cannot find the key, do not start the upgrade with the encrypted files. The command copies no key to the nodes and the services fail at their start. This was tested with
configure, andupgradeuses the same key step. Enter the plain text passwords again first, see Secrets.Make sure that the nodes can be reached over SSH and that etcd is healthy:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379,192.0.2.12:2379,192.0.2.13:2379 endpoint health192.0.2.11:2379 is healthy: successfully committed proposal: took = 3.143315ms 192.0.2.12:2379 is healthy: successfully committed proposal: took = 6.997611ms 192.0.2.13:2379 is healthy: successfully committed proposal: took = 6.626332msEvery endpoint must report
is healthy.om-deploy upgradedoes not check the cluster before it starts. After it restarts an etcd member it waits for the cluster to be healthy again, and it stops withdeploy: etcd cluster not healthywhen that does not happen.
If the cluster runs build 0.0.20 or earlier, read Dynamic Users and the etcd Data before you start. The first etcd restart fails unless you move the etcd data.
If a storage system is an FTP server and its path starts with /, and the server is not
chrooted, check the home directory of the FTP user before you start. The path of an FTP storage
system is now relative to the login directory of the FTP user, so /data and data are the same.
Uploads and the cleanup of deleted content used to read /data as a path from the root of the
server, and files in that old directory are no longer found. See
Storage Systems.
Standard Upgrade
Extract the new installer on the administration machine:
tar xzf origin-manager-installer-x.y.z.tar.gz cd origin-manager-installer-x.y.zInstall the new
om-deploy:./install.shRun the upgrade from the extracted directory:
om-deploy upgrade --known-hosts ~/.ssh/known_hostsOn success the command prints the
ssh:lines that show the host keys, on standard error, and thenupgrade is completeon standard output:ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint> ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint> ssh: 192.0.2.13:22 host key ssh-ed25519 SHA256:<fingerprint> upgrade is completeThe line names no version, because
upgradeinstalls the newest build in the offline repository. Use--topology,--configand--repoif the files are not in their default places, and the--ssh-*flags if you do not use the default SSH settings. The upgrade takes about a minute or more with three nodes. Most of the time goes to copying the offline repository to every node and installing the packages.Check that all units are active:
om-deploy service statusCheck the version.
om-deploy --versionshows only the version ofom-deployon the administration machine. It does not show what runs on the nodes:om-deploy --versionom-deploy x.y.z (commit <hash>, built <date>)To check a node, ask the package manager for the packages of its roles, or read the
versionfield of thestartingline in the log of a service:rpm -q origin-manager journalctl -u origin-manager -o cat | grep '"msg":"starting"' | tail -n 1origin-manager-x.y.z-el9.x86_64 {"level":"info","ts":"2026-11-11T12:35:16.013Z","msg":"starting","service":"origin-manager","version":"x.y.z (commit <hash>, built <date>)"}
What the Upgrade Does
om-deploy upgrade does the following, in order:
- Checks
topology.yamlandconfiguration.yaml, see Checks before a change. - Creates the user and the group
edgewareon every node where they are missing, see System User. An existing account is not changed. If this fails for a host, the command stops withom-deploy: deploy: create edgeware account on <host>: <cause>, before it changes a package. - Copies the new offline repository to each node and upgrades the role packages. No service is restarted yet.
- Encrypts new plain text passwords in your files and copies the key to the nodes, see Secrets.
- Pushes the topology and the configuration to etcd.
- Restarts etcd one node at a time, and waits until the cluster is healthy again before it restarts the next node.
- Restarts the OM services one host at a time, in role order:
origin-manager,origin-scheduler,origin-recorder,origin-uploader. - Waits 5 seconds and checks that every restarted OM unit is active. If one is not, the command
stops with
om-deploy: <host> <unit> is not running: <last journal lines>, see Checks after a restart. - Prints
upgrade is complete.
The files are checked before anything else: before the repository is copied and before a package is changed. If a check fails, the command stops with an error, and no node and no etcd value is touched:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": uploader: minimum_replication_factor (3) exceeds replication_factor (2)
Rolling Behavior
- etcd is restarted node by node, so quorum is kept as long as the cluster was healthy when the upgrade started.
- The OM services are restarted host by host. If a role has several hosts, the others keep
running while one restarts. A role with a single host is unavailable while it restarts. With
one
managerhost the Account API is not available for a short time (about 0.1 seconds in the test). - A recorder or uploader that is stopped gives its running ingest process a grace period
(
termination_delay_seconds, 60 seconds by default) to clean up before it is killed. In the test the ingest program of a recording ended at once and the recorder stopped in under a second. An uploader that was copying files to the storage systems needed 12 to 22 seconds. Expect a restart of these roles to take up to about 75 seconds when a task is running. - The task that was interrupted goes back to the queue. It starts again 19 to 35 seconds later,
possibly on another host. A catch-up recording whose start is close to the end of the buffer can
fall out of the buffer while it waits. The Catch-up Buffer Manager then answers
Code 416, both copies fail within milliseconds and the recording ends inerror. - The upgrade stops at the first error. Fix the problem and run
om-deploy upgradeagain. Before you run it again, check that etcd is healthy (see step 5 of Before You Start). When a restart step has failed, the packages, the key,etcd_hostsand the etcd contents are already changed, and a rerun does not check the cluster first.
Known limitation: an upload that is interrupted while it copies the files to the storage
systems leaves a partial file named .om-put-<hex> in the directory of the content on that storage
system. In the test the file was about 700 MB. The upload runs again and ends done, and the file
stays beside the finished files until you delete the content.
Rolling Back
To go back to an earlier version, run om-deploy downgrade with the version to install:
om-deploy downgrade --version x.y.z --known-hosts ~/.ssh/known_hosts
On success the command prints one line that names the version that you asked for. The ssh: host
key lines go to standard error, before it:
downgrade to x.y.z is complete
With --version 0.0.20 the line is downgrade to 0.0.20 is complete.
The RPMs of that version must be in the offline repository. Use the --repo directory of the
installer that came with that version, or add its RPMs to the repository you use. If the version
is missing, the command prints no summary line and fails after about 20 seconds, because the
repository is copied to the nodes first:
om-deploy: ssh: 192.0.2.11: "dnf downgrade -y --disablerepo='*' --enablerepo='origin-manager-local' origin-manager-9.9.9" failed: Process exited with status 1
Origin Manager (local) 2.9 MB/s | 3.0 kB 00:00
No package origin-manager-9.9.9 available.
Error: No packages marked for downgrade.
— version "9.9.9" may not be retained in the offline repo; supply the archived RPMs for that version
The downgrade:
- Copies the repository to the nodes and downgrades the OM role packages on every node that runs an OM service. The packages are pinned to the version that you asked for.
- Restarts the OM services in role order.
- Waits 5 seconds and checks that every restarted OM unit is active.
- Prints
downgrade to x.y.z is complete.
It does not touch etcd, the ew-vodingest package, or the configuration and topology stored in
etcd. If you also need the previous configuration, restore the earlier configuration.yaml and
run om-deploy configure.
Upgrading from an Older Build
This section applies when you upgrade a cluster that was installed with an older build. Two things differ in older builds:
- Builds from before password encryption (tested with OM 0.0.12) have no
secret.keyand store passwords as plain text. See Passwords and the Key. - Every build up to 0.0.20 ran the services as dynamic users, also the builds that already encrypt passwords. See Dynamic Users and the etcd Data.
An upgrade from OM 0.0.12, which has both differences, was tested.
Passwords and the Key
A build from before password encryption has no secret.key. The upgrade then creates the key,
encrypts the plain text passwords in topology.yaml and configuration.yaml, and copies the key
to the nodes. It rewrites the two files in place, in whatever directory they are. Back up the key
after the upgrade.
The old build stored the database and Redis passwords as plain text in etcd. etcd keeps its old revisions, so after the upgrade an earlier revision of the topology still holds them. Anyone who can reach the etcd client port can read it. In the test, revision 2 held both passwords:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/topology --rev 2
The old revisions stay until etcd is compacted. After such an upgrade, compact and defragment etcd (see the etcd documentation), and change the database and Redis passwords. This procedure was not tested.
Dynamic Users and the etcd Data
Older builds ran the services as systemd dynamic users. The new builds run every service, including
etcd, as the system user edgeware, see
System User.
Known limitation: etcd does not start after the upgrade. The old build kept the etcd data in
/var/lib/private/etcd, with /var/lib/etcd as a link to it. The new unit needs a real directory
/var/lib/etcd, and on Red Hat 9 (systemd 252) systemd cannot move the data there. The first etcd
restart fails, and om-deploy upgrade stops:
om-deploy: ssh: 192.0.2.11: "systemctl restart etcd.service" failed: Process exited with status 1
Job for etcd.service failed because the control process exited with error code.
See "systemctl status etcd.service" and "journalctl -xeu etcd.service" for details.
The log of the unit (journalctl -u etcd) shows why:
etcd.service: Failed to set up special execution directory in /var/lib: Permission denied
etcd.service: Failed at step STATE_DIRECTORY spawning /usr/bin/etcd: Permission denied
At that point the packages are upgraded, a new key is installed and the OM units still run the old binaries. Running the upgrade again fails in the same way. Move the etcd data on every etcd host, one host at a time, and keep the data:
On the etcd host run:
systemctl stop etcd rm /var/lib/etcd mv /var/lib/private/etcd /var/lib/etcd chown -R edgeware:edgeware /var/lib/etcd chmod 700 /var/lib/etcd systemctl reset-failed etcd systemctl start etcdWait until
etcdctl endpoint healthreports every endpoint healthy, and then do the same on the next etcd host.When all etcd hosts are done, run
om-deploy upgradeagain. When it has finished, it printsupgrade is complete.
Configuration Directory Moved
The configuration directory of OM is /etc/edgeware/origin-manager. A node that was installed
with an earlier build that used /etc/origin-manager keeps that directory after the upgrade, but
it is no longer read. When the upgrade has finished and om-deploy service status shows all
units active, remove it on each node where it holds nothing that you need:
rm -rf /etc/origin-manager
On the administration machine, move your files first. If you ran the upgrade with
--topology and --config from /etc/origin-manager/, the upgrade encrypted the passwords in
those files. They are now the only copies that match the new key, and rm -rf deletes them. After
that om-deploy service status fails until the files are in /etc/edgeware/origin-manager/:
mv /etc/origin-manager/topology.yaml /etc/origin-manager/configuration.yaml \
/etc/edgeware/origin-manager/
om-deploy upgrade writes etcd_hosts and secret.key to the new directory.
Common Upgrade Issues
A service does not start after the upgrade:
Look at the log of the unit that failed:
journalctl -u origin-manager -n 50Check that
/etc/edgeware/origin-manager/etcd_hostsexists on the node and lists etcd endpoints that can be reached.Check that
/etc/edgeware/origin-manager/secret.keyexists on the node, belongs toedgewareand has mode 0600. A key thatedgewarecannot read, for example one that belongs torootwith mode 0600 because it was restored from a backup with a plaincp, makes the service fail at its next restart withpermission denied.om-deploy configuresets owner and mode again.
The upgrade stops with an etcd health error (deploy: etcd cluster not healthy):
- Run
systemctl status etcdon the etcd hosts and make sure that at least a majority of them are running, then run the upgrade again.
The upgrade stops with "systemctl restart etcd.service" failed:
- You upgrade from a build that ran the services as dynamic users (0.0.20 or earlier). Move the etcd data as described in Dynamic Users and the etcd Data.
The upgrade stops with om-deploy: deploy: create edgeware account on <host>: <cause>:
om-deploycould not create the user and the groupedgewareon that host, for example because the node cannot be reached over SSH. No package was changed and nothing was copied. Fix the cause on that host and run the upgrade again. See System User.
The upgrade stops with an invalid configuration error:
- Fix
configuration.yamlas the message says and run the upgrade again. Nothing was changed on any node or in etcd.
The upgrade stops with om-deploy: <host> <unit> is not running:
- The unit was not active 5 seconds after its restart. The rest of the line is up to the last
three lines of its journal since the restart, joined with a semicolon and a space. Fix the cause, for example with
journalctl -u <unit> -n 50on that host, and run the upgrade again.
3 - Configuration
Configuration Overview
Origin Manager (OM) is configured with two YAML files that you keep on the administration machine:
| File | What it holds |
|---|---|
topology.yaml | Which hosts run which role, and how to connect to MySQL and Redis |
configuration.yaml | Everything else: log level, Redis databases, storage systems, origin servers, Catch-up Buffer Managers, and settings for the recorder, uploader and scheduler |
By default om-deploy reads both files from /etc/edgeware/origin-manager/. Use the
--topology and --config options to point to other files.
om-deploy pushes both files to the etcd cluster, and every OM service reads its
configuration from there. The only configuration file on an OM node is
/etc/edgeware/origin-manager/etcd_hosts, which lists the etcd endpoints. At start the services
also read the decryption key secret.key, see Password handling. Database
and Redis passwords are never stored as plain text on the nodes.
The two files are checked differently:
topology.yamlis strict.om-deployrejects a key that it does not know.configuration.yamlis not strict about keys.om-deployrejects a value of the wrong type (text where a number is expected), but it does not reject an unknown key. A key that is misspelt is ignored and its default is used. Check the spelling against the tables on this page. Numbers are not range checked, so a value such ascache_db: -1is accepted.
For example, this typo is accepted without a warning. Uploads still need only one copy, because
the misspelt key is ignored and minimum_replication_factor keeps its default of 1:
uploader:
minimum_replicaton_factor: 5
The example file configuration.yaml.example also lists uploader.repackage. No service reads
that key.
Most settings are picked up by the running services without a restart. See Dynamic Configuration Updates.
Changing the configuration
Edit
topology.yamlorconfiguration.yamlon the administration machine.Run
om-deploy configure:om-deploy configure --known-hosts ~/.ssh/known_hosts
On success the command prints one ssh: line on standard error for each node it connects to.
When it has restarted and checked all services, it prints configure is complete on standard
output and exits with status 0:
ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint>
ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint>
configure is complete
The command takes about 6 to 10 seconds with one host per role, because it waits 5 seconds before it checks the services (step 7 below). With ten services it takes about 12 seconds.
If a name in uploader.storages is not defined in storage, the command also prints a warning
on standard error. It still succeeds:
warning: upload storage system "nas-9" is not configured in storage
ssh: 192.0.2.11:22 host key ssh-ed25519 SHA256:<fingerprint>
ssh: 192.0.2.12:22 host key ssh-ed25519 SHA256:<fingerprint>
configure is complete
om-deploy configure does the following, in order:
- Checks
topology.yamlandconfiguration.yaml, including the rules that the services use when they start, see Configuration checks. If a check fails, the command stops. Nothing is changed on any node or in etcd, and the files are not rewritten. - Creates the user and the group
edgewareon every node of the topology where they are missing, see System User. An existing account is not changed. If this fails for a host, the command stops withom-deploy: deploy: create edgeware account on <host>: <cause>. Nothing is copied to the nodes and nothing is written to etcd. - Encrypts any plain text password in the two files (see Password handling) and copies the decryption key to the nodes.
- Rewrites the
etcd_hostsfile on every node that runs an OM service. - Saves the configuration that is currently stored in etcd to
configuration.yaml.bk, next to your configuration file. Only the latest backup is kept: every run replaces it. - Writes the topology and the configuration to etcd in one transaction.
- Restarts all OM services one host at a time, in role order. It then waits 5 seconds and
checks that every restarted service is
activeand that systemd has not restarted it in the meantime. etcd is not checked. - Prints
configure is complete.
If a service is not running at the check, the command exits with status 1, prints no
configure is complete line, and names the host, the unit and up to the last three lines of its
journal since the start, joined with a semicolon and a space:
om-deploy: 192.0.2.12 origin-uploader is not running: origin-uploader: uploader: ingest_script binary "/usr/bin/no-such-ingest": exec: "/usr/bin/no-such-ingest": stat /usr/bin/no-such-ingest: no such file or directory
At that point the topology and the configuration are already stored in etcd and all services
have been restarted. Fix the cause and run om-deploy configure again.
The check does not catch every problem:
- A service that fails more than 5 seconds after its start.
- An
ingest_scriptof a Catch-up Buffer Manager whose program does not exist. The recorder starts, and every recording fails. - Wrong database or Redis credentials, or an unreachable database or Redis host. The services start and keep retrying. See “The database or Redis cannot be reached” in Troubleshooting Configuration.
om-deploy configure does not install packages and does not change the etcd cluster. To add a
role to a host, or a new host to the topology, run om-deploy install with the new topology, see
the Installation page.
Use --ssh-user, --ssh-key, --ssh-port and --known-hosts to control how om-deploy
connects to the nodes. om-deploy install and om-deploy upgrade run the same checks first and
push both files in the same way.
Configuration checks
om-deploy configure, install and upgrade check the files before they change anything. The
checks include the rules that the services run when they start, so that a file that would stop a
service is not pushed. A rejected run takes a fraction of a second and prints one line:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": <reason>
| Rule | Checked when the topology has | <reason> |
|---|---|---|
| The file is a YAML mapping | always | document is empty (empty file, only comments, or ~), document is not a mapping (a list or a single value) |
| Every value has the right type | always | json: cannot unmarshal string into Go struct field ...redis.queue_db of type int |
minimum_replication_factor is not larger than replication_factor, for the recorder and for the uploader | always | recorder: minimum_replication_factor (2) exceeds replication_factor (1) |
log_level is a valid level | always | log: invalid level "verbose": unrecognized level: "verbose" |
manager.account_api_port is from 1 to 65535 (0 or no value selects 9090) | a manager host | manager: account_api_port (65536) must be between 1 and 65535 |
| The three Redis database indices differ | a scheduler, recorder or uploader host | redis: cache_db/queue_db/result_db must differ (got 1/1/2) |
The storage section is not empty | an uploader host (uploader message) or a recorder host (recorder message) | uploader: no storage systems configured and recorder: no storage systems configured |
| The Catch-up Buffer Manager rules hold, see Catch-up Buffer Managers | a scheduler or recorder host | config: catchup_buffer_managers "cbm-1" and "cbm-2" use the same storage "nas-1" |
uploader.ingest_script can be split into words | an uploader host | uploader: ingest_script: worker: unterminated quote in "/usr/bin/ew-vodingest --x \"y" |
A file that is not valid YAML is rejected before these rules, with the line of the error:
om-deploy: deploy: parse "/etc/edgeware/origin-manager/configuration.yaml": yaml: line 1: did not find expected ',' or ']'
The checks do not cover everything. om-deploy does not check:
- unknown keys, or numbers outside a sensible range
- that every local storage system has a
path, or that the basepathexists - that a program named in an
ingest_scriptexists (a missing program of a Catch-up Buffer Manager is found only when a recording fails; the uploader program is found when the service does not start) - that the database, Redis and storage hosts can be reached with the given credentials
- that
origin_servers.<name>.storageandintermediate_storage_forname a storage system (foruploader.storagesit prints a warning, see Uploader)
Topology Configuration
The topology has one section, roles, that maps each role to the hosts that run it.
Minimal topology
A single-node lab installation. Every role runs on one host, and MySQL and Redis are external:
roles:
etcd:
hosts: [192.0.2.10]
manager:
hosts: [192.0.2.10]
scheduler:
hosts: [192.0.2.10]
recorder:
hosts: [192.0.2.10]
uploader:
hosts: [192.0.2.10]
database:
hosts: [db-1.example.invalid]
user: om_user
password: change-me
redis:
hosts: [redis-1.example.invalid]
A single etcd host has no redundancy. Use at least three etcd hosts in production.
List the OM nodes (the etcd, manager, scheduler, recorder and uploader roles) by IPv4
address, as in these examples. This is the safest choice.
The scheduler finds itself among the hosts of the scheduler role:
- A host that is equal to one of the IP addresses of the node.
- If there is none, a host that is exactly equal to the output of
hostnameon the node.
The comparison is case-sensitive and names are not resolved, so a short name does not match a
fully qualified name. Only hosts of the scheduler role count: the IP address of the node in
another role, such as etcd, does not make it a scheduler.
Example, on a node where hostname prints sched-1 and that has the IP address 192.0.2.11:
roles.scheduler.hosts | Result |
|---|---|
[192.0.2.11] | Matches by IP address. The scheduler logs match ip |
[sched-1] | Matches by host name. The scheduler logs match hostname |
[sched-1.example.invalid] | No match. The name differs from the output of hostname |
[SCHED-1] | No match. The comparison is case-sensitive |
When the scheduler finds itself it logs one line:
{"level":"info","ts":"2026-11-11T12:37:34.101Z","msg":"scheduler identity matched topology host","service":"origin-scheduler","host":"sched-1","match":"hostname"}
If nothing matches, the scheduler logs
could not match any local address to a topology host; falling back to hostname and then
node is not a member of the scheduler set; will own no work. It starts no recordings and no
uploads until you correct the host and run om-deploy configure.
om-deploy connects to every listed host name as a host of its own, besides the IP addresses of
the same node. A name therefore needs its own entry in the known_hosts file, with all host key
types of the node. Without it om-deploy stops with knownhosts: key is unknown (no entry for
the name) or knownhosts: key mismatch (the name was scanned with only one key type):
om-deploy: deploy: upload key to "sched-1": ssh: dial sched-1:22: ssh: handshake failed: knownhosts: key is unknown
Add the entry, with all key types, and run the command again. Compare the fingerprints with the node before you trust them:
ssh-keyscan sched-1 >> ~/.ssh/known_hosts
Realistic topology
Three nodes, with the management plane on 192.0.2.11 and the workers on 192.0.2.12 and
192.0.2.13:
roles:
etcd:
hosts: [192.0.2.11, 192.0.2.12, 192.0.2.13]
manager:
hosts: [192.0.2.11]
scheduler:
hosts: [192.0.2.11]
recorder:
hosts: [192.0.2.12, 192.0.2.13]
uploader:
hosts: [192.0.2.12, 192.0.2.13]
database:
hosts: [db-1.example.invalid, db-2.example.invalid, db-3.example.invalid]
port: 3306
user: om_user
password: change-me
redis:
hosts: [redis-1.example.invalid]
port: 6379
password: change-me-too
Add a second host to scheduler to run two schedulers. The two schedulers share the work. They
do not take over for each other: if one is stopped or has crashed, its share of the recordings
and uploads stays pending until it is back (in a test, 3 of 6 recordings and 1 of 4 uploads).
To fail over, remove its host from roles.scheduler.hosts and run om-deploy configure. The
others then take over its share within about 30 seconds (one scheduler check).
Installed roles
om-deploy installs these roles on the hosts you list:
| Role | Service | What it does |
|---|---|---|
etcd | etcd | Stores the topology and the configuration |
manager | origin-manager | Serves the Account API |
scheduler | origin-scheduler | Starts recordings and uploads, collects the results and cleans up deleted content |
recorder | origin-recorder | Records channels |
uploader | origin-uploader | Fetches and stores uploaded files |
A host can have several roles. A role without hosts is not installed anywhere. Host names within
one role must be non-empty and unique, and must be host names or IPv4 addresses. IPv6 literals
are not validated and are not supported, in particular not in the etcd role.
om-deploy configure does not stop a service on a host that you remove from a role. The service
keeps running and stays enabled, and om-deploy service status no longer lists it. A removed
recorder or uploader keeps taking tasks from the shared queues (in a test, all 6 recording copies
and 2 of 6 uploads ran on hosts that had been removed), and a removed manager keeps answering API
requests. On that host, stop and disable the service yourself:
systemctl disable --now origin-recorder
| Key | Type | Default | Meaning |
|---|---|---|---|
roles.etcd.hosts | list of strings | none, required | Hosts of the etcd cluster. om-deploy install reads the list to create the cluster. If you change it later, only the endpoints that the OM services connect to change. The cluster keeps its members |
roles.etcd.client_port | integer | 2379 | etcd client port |
roles.etcd.peer_port | integer | 2380 | etcd peer port, used when om-deploy sets up the cluster. It must differ from the client port |
roles.manager.hosts | list of strings | none | Hosts that run origin-manager |
roles.scheduler.hosts | list of strings | none | Hosts that run origin-scheduler |
roles.recorder.hosts | list of strings | none | Hosts that run origin-recorder |
roles.uploader.hosts | list of strings | none | Hosts that run origin-uploader |
For example, om-deploy configure with roles.etcd.hosts: [192.0.2.11] is accepted without a
warning. The cluster still has its three members, but every OM service now uses the single
endpoint 192.0.2.11:2379. Do not shorten the etcd role of a running cluster.
External roles
MySQL and Redis are not installed by om-deploy. These roles only carry connection details.
| Key | Type | Default | Meaning |
|---|---|---|---|
roles.database.hosts | list of strings | none, required | Hosts of the MySQL/MariaDB cluster. OM tries them in the listed order and uses the first one that accepts a connection. Put the host that is most often up first: a dead first host adds 5 seconds to every new database connection |
roles.database.port | integer | 3306 | Database port |
roles.database.user | string | none, required | Database user |
roles.database.password | string | none, required | Database password, see Password handling |
roles.redis.hosts | list of strings | none, required | Redis host. When several are listed, OM uses the first one. There is no fallback to the others: if the first host does not answer, requests to create a recording or an upload hang and create nothing, and the scheduler can need 90 seconds to stop |
roles.redis.port | integer | 6379 | Redis port |
roles.redis.password | string | none | Redis password. Leave it out when Redis has no password |
Redis authentication is password only. There is no user name. Ports must be in the range 1 to 65535.
The database user needs read and write access to the databases Convoy_cfg, Convoy_acctapi,
Convoy_storage and Convoy_upload.
om-deploy rejects a topology that has no etcd, database or Redis hosts, a database role
without user or password, an empty or duplicate host, a port outside 1 to 65535, equal etcd
client and peer ports, or a key it does not know:
om-deploy: deploy: topology has no redis hosts
om-deploy: deploy: role "recorder" has an empty host
om-deploy: deploy: role "recorder" lists duplicate host "192.0.2.12"
om-deploy: deploy: topology database role has no password
om-deploy: deploy: database port 70000 out of range (1-65535)
om-deploy: deploy: redis port -1 out of range (1-65535)
om-deploy: deploy: etcd client and peer ports must differ (both 2379)
om-deploy: deploy: parse topology "/etc/edgeware/origin-manager/topology.yaml": yaml: unmarshal errors:
line 4: field managers not found in type ...
Password handling
Write passwords in plain text the first time. When you run om-deploy install, configure or
upgrade, om-deploy encrypts every plain text password it finds and rewrites the file with
mode 0600. The database and Redis passwords in topology.yaml and the password of every entry
in the storage section of configuration.yaml are handled this way.
Before:
database:
hosts: [db-1.example.invalid]
user: om_user
password: change-me
After the next om-deploy run:
database:
hosts: [db-1.example.invalid]
user: om_user
password: "<censored>"
encoded_password: "v1:<ciphertext>"
The services decrypt encoded_password when they load the configuration. The decryption key
is /etc/edgeware/origin-manager/secret.key (owner edgeware, mode 0600). om-deploy generates
it on the administration machine and copies it to every node that runs an OM service. It is never
stored in etcd. A service reads the key once, when it starts: if you delete or replace the file,
running services do not notice, but the next restart fails.
Back the key up, and restore it with its owner and mode (as root, cp -p keeps them). A key that
edgeware cannot read, for example one that is owned by root with mode 0600, makes every service
fail at its next restart with permission denied. If the key is lost, you must enter every
password again, see below.
Common password tasks:
| Task | What to do |
|---|---|
| Change a password | Replace "<censored>" with the new plain text password and run om-deploy configure. The old encoded_password is replaced |
| Remove a password | Clear both password and encoded_password. This works for the Redis password and for storage passwords. The database password is required and cannot be removed |
| Replace a lost key | Replace every "<censored>" in topology.yaml and configuration.yaml with the plain text password and run om-deploy configure. It creates a new key and copies it to all nodes. Copies of the two files that were encrypted with the old key cannot be used any more |
Known limitation. If the key on the administration machine is lost, do not run
om-deploy install, configure or upgrade with the encrypted files. The command finds no key,
skips the key distribution without a message, pushes the files and restarts every service, and all
of them fail with secret: read key ... no such file or directory. This was tested with
configure. install and upgrade use the same key step. Enter the plain text passwords first.
Two states are rejected, and the file is not changed:
om-deploy: deploy: storage "ftp-1" secret: secret: "<censored>" without encoded_password (corrupt state)
om-deploy: deploy: storage "ftp-1" secret: secret: empty password with encoded_password present (ambiguous state); to remove a password clear both fields
For the database and Redis passwords the messages start with database secret: and
redis secret:. For the database role, an empty password with an encoded_password gives
om-deploy: deploy: topology database role has no password instead.
A service that finds a password it cannot decrypt (for example because secret.key is missing
or different on that node) does not start. A running service ignores such an update and keeps
its last good configuration, see Dynamic Configuration Updates.
Application Configuration
Minimal configuration
This is the smallest configuration.yaml that can store uploads, register external content and
publish buffered live content. Everything not listed uses its default:
storage:
nas-1:
path: /srv/origin
origin_servers:
origin-1:
host: https://origin-1.example.invalid
storage: nas-1
capabilities: [http]
uploader:
storages: [nas-1]
To record channels you also need a catchup_buffer_managers entry with buffer_duration set, see
Catch-up Buffer Managers. A complete file is shown in
Complete Configuration Example.
General Settings
| Key | Type | Default | Meaning |
|---|---|---|---|
log_level | string | info | Log level of every OM service. An empty value selects info when a service starts. An empty value in a live update is ignored |
termination_delay_seconds | integer | 60 | Seconds that a stopping recording or upload process gets to clean up before it is killed |
The log levels are debug, info, warn, error, dpanic, panic and fatal. Use the
lowercase names: the level names are not case-sensitive, so DEBUG is also accepted. A service
does not start if log_level is not a valid level, and om-deploy rejects the file:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": log: invalid level "verbose": unrecognized level: "verbose"
log_level: warn
termination_delay_seconds: 60
- Set
log_level: warnorerrorand theinfolines of the OM services stop, for exampleupload done. The change is applied immediately, without a restart. It does not change the lines of the queue library, the Redis client and the etcd client. log_level: debugis applied immediately too, but in this version it adds only one message: the scheduler’sno catchup buffer managers configured; skipping dispatch tick, which is logged when there are no Catch-up Buffer Managers. It does not add diagnostics to the recorder, uploader or manager. The log of each ingest is always written at debug level, see Logging.- The recorder and uploader give a stopping ingest process
termination_delay_secondsto remove its partial output. Add 15 seconds for the service to finish. Keep the sum below the stop timeout of the systemd unit (90 seconds by default), otherwise systemd kills the service first. With the default of 60, a restart of a busy recorder can take up to about 75 seconds. In tests the recorder stopped in under a second and the uploader in 12 to 22 seconds (while it copied to the storage systems), so the full delay was not used.
Redis
The connection (host, port and password) comes from the redis role in the topology. The
redis section chooses which Redis databases OM uses on that server.
Minimal (all defaults, the section can also be left out):
redis:
cache_db: 0
queue_db: 1
result_db: 2
| Key | Type | Default | Meaning |
|---|---|---|---|
redis.cache_db | integer | 0 | Database for the cache that the Request Router reads |
redis.queue_db | integer | 1 | Database for the work queue between the scheduler, recorders and uploaders |
redis.result_db | integer | 2 | Database for recording results |
redis.cache_ttl_seconds | integer | 604800 (one week) | How long the cache entries in cache_db live. 0 selects the default. The recording result keys in result_db live for 7 days whatever the value is |
queue_db and result_db use 1 and 2 when they are 0 or not set. cache_db: 0 is a real
value, because database 0 is the one that the Request Router reads.
The three indices must be different. om-deploy configure, install and upgrade reject
files in which two are equal:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": redis: cache_db/queue_db/result_db must differ (got 1/1/2)
That is the result of setting cache_db: 1 without setting queue_db, because queue_db then
defaults to 1. Set all three explicitly when you move one of them.
The recorder, uploader and scheduler also refuse to start when two are equal. A service writes one plain text line to its log and exits:
origin-recorder: redis: cache_db/queue_db/result_db must differ (got 1/1/2)
origin-scheduler: scheduler: redis: cache_db/queue_db/result_db must differ (got 1/1/2)
Realistic, with a one-day cache lifetime:
redis:
cache_db: 0
queue_db: 3
result_db: 4
cache_ttl_seconds: 86400
Storage Systems
Each entry under storage is a storage system that holds recordings and uploaded files. A system
without host is a directory that every node that needs it can reach at path. A system with
host is an FTP server.
Minimal (a local directory):
storage:
nas-1:
path: /srv/origin
Realistic (a local directory and an FTP server in two data centers):
storage:
nas-1:
path: /srv/origin
data_center: dc1
tags: [sports]
ftp-1:
host: ftp.example.invalid
port: 21
username: om_ftp
password: change-me
path: origin
data_center: dc2
Keys of each entry under storage.<name>:
| Key | Type | Default | Meaning |
|---|---|---|---|
path | string | none | Base directory of the system. A local directory must already exist, and be writable by edgeware, on every recorder, uploader and scheduler node. For an FTP system path is relative to the login directory of the FTP user: a leading / means that directory, not the root of the server, so /origin and origin are the same |
host | string | none | Host name of an FTP system. Leave out for a local directory |
port | integer | 21 | FTP port |
username | string | none | FTP user |
password | string | none | FTP password. It is encrypted as described in Password handling |
data_center | string | none | Data center of the system. Recordings are spread over as many data centers as possible |
tags | list of strings | none | Tags that decide which uploads may use the system, see Uploads |
intermediate_storage_for | string | none | Name of the storage that this system stages recordings for. Must name an entry in storage |
Notes:
Give an FTP system
host,usernameandpasswordtogether. A recording treats a system as FTP only when all three are set. Withhostbut withoutusernameorpassword, the recorder treats the system as a local directory and writes topathon its own host instead of the FTP server. In a test that copy failed.The
pathof an FTP system is relative to the login directory: the directory where the FTP server puts the user after login. A leading/means that directory, so/dataanddataare the same, and/or an emptypathis the login directory itself. Recordings, uploads, the cleanup of deleted content andom-admin storage repairall use this rule, so they look in the same place. With this system:storage: ftp-1: host: ftp.example.invalid username: om_ftp password: change-me path: /data- On a chrooted server, where the FTP root of
om_ftpis/srv/ftp/om_ftpon the server, the files are in/srv/ftp/om_ftp/data.om_ftpsees them as/data. - On a server that is not chrooted, where the home directory of
om_ftpis/home/om_ftp, the files are in/home/om_ftp/data, and not in/dataat the root of the server.
Warning: uploads and cleanup used to treat a leading
/as the root of the server. If you rely on that on a server that is not chrooted, check the home directory of the FTP user before you upgrade: files in the old directory are no longer found.- On a chrooted server, where the FTP root of
The services run as the system user
edgeware. Make sure thatpathexists and thatedgewarecan write to it on every recorder, uploader and scheduler node. The scheduler removes the files of deleted content. For storage that is shared between nodes, every node must write with the same numeric uid and gid ofedgeware.om-deploycreates the account but does not align the ids, so you must make sure that they match, see System User.recorder.recording_temp_pathanduploader.upload_temp_pathmust exist and be writable byedgewareas well.om-deploydoes not check the base directory of a local system. If you mistypepath, a recording creates the missing directory and writes its copy there, while an upload to it fails for that destination withopen <path>: no such file or directory. Files that were written under the wrong path stay there after you correct it, because a delete looks only under the configured path.A system can stage recordings for another system. With
intermediate_storage_for: nas-1onstage-1, a recording that is written tostage-1is registered againstnas-1. When the recording is finished, the longest copy is moved tonas-1and the other copies are removed:storage: nas-1: path: /srv/origin stage-1: path: /srv/stage intermediate_storage_for: nas-1Only the check of the setting was tested: the configuration is accepted. The move at the end of a recording was not tested.
Set
data_centeron every system if you usereplication_factorabove 1. Systems without it all count as one data center, so copies are not spread.
Origin Servers
Origin servers deliver content from a storage system. When OM stores new content, it records which origin servers can deliver it.
origin_servers:
origin-1:
host: https://origin-1.example.invalid
storage: nas-1
capabilities: [http, http+webdav]
origin-2:
host: https://origin-2.example.invalid
storage: ftp-1
capabilities: [http]
roles: [upload]
Keys of each entry under origin_servers.<name>:
| Key | Type | Default | Meaning |
|---|---|---|---|
host | string | none | URL of the origin server. OM does not use it when it assigns origin servers |
storage | string | none | Name of the storage system that the server delivers from |
capabilities | list of strings | none | What the server can deliver. New content needs http |
roles | list of strings | all roles | The kinds of content the server may serve: recording or upload. When the key is left out, the server serves every role. An empty list [] excludes the server from every role |
A server is chosen for new content when it delivers from one of the content’s storage systems,
lists http in capabilities, and has no roles list or has the content’s role in it.
In the example above, an upload on ftp-1 gets origin-2. A recording on ftp-1 gets no
origin server, because origin-2 is limited to upload.
If no origin server matches, a request to create a recording or an upload fails with
503 service-unavailable-error:
{
"tag": "service-unavailable-error",
"message": "no storage available for the requested storage systems",
"details": null
}
Four details of the matching:
- A storage system that no matching origin server delivers from is still a destination. The
503 appears only when no origin server matches any of the content’s storage systems. A
recording that has the storage systems
nas-1andftp-1getsorigin-1only, andftp-1still gets a copy that no origin server delivers. - The values of
capabilitiesandrolesare case-sensitive.HTTPorRecordingmatch nothing and give a 503. - A value in
rolesother than the documented ones is accepted without a warning. om-deploydoes not check thatstorageof an origin server names a storage system.
Catch-up Buffer Managers
Each entry under catchup_buffer_managers is a recording source: a Catch-up Buffer Manager
that OM records channels from, and the storage system that its recordings are written to.
Minimal:
catchup_buffer_managers:
cbm-1:
host: cbm-1.example.invalid
port: 8090
storage: nas-1
ingest_script: /usr/bin/ew-vodingest
buffer_duration: 604800
Realistic, with two sources in two data centers:
catchup_buffer_managers:
cbm-1:
host: cbm-1.example.invalid
port: 8090
storage: nas-1
channel_groups: [sports, news]
ingest_script: /usr/bin/ew-vodingest --maxtime 7200
buffer_duration: 604800
cbm-2:
host: cbm-2.example.invalid
port: 8090
storage: ftp-1
ingest_script: /usr/bin/ew-vodingest --maxtime 7200
buffer_duration: 604800
Keys of each entry under catchup_buffer_managers.<name>:
| Key | Type | Default | Meaning |
|---|---|---|---|
host | string | none | Host of the Catch-up Buffer Manager that the recording is read from |
port | integer | none | Port of the Catch-up Buffer Manager |
storage | string | none, required | Storage system that recordings from this source are written to |
channel_groups | list of strings | all groups | Channel groups that this source records. When left out, the source records every channel group |
ingest_script | string | none, required | Command line of the ingest program, see below |
buffer_duration | integer, seconds | none | Length of the buffer that the Catch-up Buffer Manager keeps for each channel. OM does not ask the Catch-up Buffer Manager, so set it to that length whenever it keeps a buffer, also a short one. See below |
ingest_script is a complete command line, not only a path. The first word is the program and
the rest is passed to it unchanged, for example
/usr/bin/ew-vodingest --maxtime 7200 --thumbnails. OM does not check the options. If the
program rejects one, the recording fails and the recorder logs
ew-vodingest rejected its command line. Remove or correct the option.
The command line is split into words at spaces. Put a word that contains a space in single or
double quotes, for example --option "value with spaces". There is no shell: a backslash is not
an escape character, and $VAR, ~, *, | and > are passed unchanged. A quote that is not
closed is refused, see Configuration checks. YAML reads the value first,
so put the whole value in single quotes when it starts with a quote or contains : or #:
ingest_script: '"/opt/my ingest/ew-vodingest" --maxtime 7200'
buffer_duration decides how recordings are scheduled:
| Situation | Behavior |
|---|---|
buffer_duration set (above 0) | Recordings are made from the catch-up buffer after the program has aired. The start time may be in the past, but not before the start of the buffer. A recording is scheduled at its stop time plus recorder.buffered_schedule_delay. Pending recordings can be rescheduled |
No entry, or buffer_duration 0 | The start time must be at least 5 seconds in the future. A recording is scheduled at its start time. Rescheduling is not available. See the known limitation below |
Known limitation: recordings without a catch-up buffer end in error. With the ew-vodingest
delivered with this release, a recording that is scheduled at its start time does not work. The
recorder starts at the start time, ew-vodingest asks the Catch-up Buffer Manager for a time range
that has not been recorded yet and gets Code 416, and both copies fail within a second. The
retained ingest log of the recorder (see Logging) contains a line
like this:
ERR error="initialize: getEsfRangeInfo: ReadFull: could not read http://cbm-1.example.invalid:8090/news-1/esf_range_info.json?startTime=1794387211&stopTime=1794387241. Code 416"
Set the same buffer_duration on every Catch-up Buffer Manager.
A recording whose start time is already older than buffer_duration when the scheduler picks it
up is set to error.
A recording must fit in the buffer: its length plus recorder.buffered_schedule_delay must be
shorter than buffer_duration. Otherwise its start time has left the buffer when it is due, and it
is set to error.
om-deploy configure, install and upgrade check the rules in this table when the topology
has a scheduler or recorder host. They reject files that break one, with
om-deploy: deploy: invalid configuration "<file>": <message>. The services check the rules too.
If a rule is broken in the stored configuration, no recording is started, and the recorder does
not start:
| Rule | Message |
|---|---|
Every entry needs a storage | config: storage is a required parameter for catchup_buffer_managers "cbm-1" |
When a storage section exists, the storage must name an entry in it | config: catchup_buffer_managers "cbm-1" references unknown storage "nas-9" |
| Two entries must not use the same storage | config: catchup_buffer_managers "cbm-1" and "cbm-2" use the same storage "nas-1" |
Every entry needs an ingest_script | config: ingest_script is a required parameter for catchup_buffer_managers "cbm-1" |
All entries must have the same buffer_duration | config: catchup_buffer_managers "cbm-1" and "cbm-2" have different buffer_duration values (604800 vs 86400) |
If the stored configuration breaks a rule anyway, for example because it was written to etcd by
hand and a service was restarted afterwards, the scheduler logs two warnings every 30 seconds:
skipping recording poll: invalid catchup buffer manager config and
skipping recording dispatch: invalid catchup buffer manager config. Each is followed by the
message of the rule in its error field. While they last, no new recording is started, and
recordings that are already running are not finalized either.
With no entries at all, creating a recording fails with a 503 error when its start time is in the
future. A start time in the past gets 400 with
Scheduling HTTP recordings is not allowed earlier than 5 seconds in the future, because without
a Catch-up Buffer Manager there is no buffer. Recordings that were created earlier stay pending.
The scheduler logs this only at the debug level.
Recorder
Minimal (all defaults, the section can also be left out):
recorder:
number_of_instances: 1
Realistic, with two copies of every recording and a 10-minute schedule delay:
recorder:
number_of_instances: 4
recording_temp_path: /tmp
replication_factor: 2
minimum_replication_factor: 1
buffered_schedule_delay: 600
max_process_duration_seconds: 21600
| Key | Type | Default | Meaning |
|---|---|---|---|
recorder.number_of_instances | integer | 1 | Recording tasks that one origin-recorder runs at the same time. Each copy of a recording is one task |
recorder.recording_temp_path | string | system temporary directory | Existing directory under which each recording creates its own working directory. It must be writable by edgeware |
recorder.replication_factor | integer | 1 | Number of storage systems that one recording is copied to |
recorder.minimum_replication_factor | integer | 1 | Number of successful copies that a recording needs. It must not be larger than replication_factor |
recorder.buffered_schedule_delay | integer, seconds | 300 | Time added to the stop time of a recording to get the time it is scheduled. A value of 0 or below selects the default. Only used when buffer_duration is set |
recorder.max_process_duration_seconds | integer | 21600 (6 hours) | Longest time that one recording may run. After that the recording is aborted and its partial output is removed |
Examples of what a change does:
buffered_schedule_delay: 600: a recording that stops at 22:00 starts at 22:10 instead of 22:05.number_of_instances: 8: one recorder host runs up to eight recording tasks at the same time. Withreplication_factor: 2every recording is two tasks, so that is four channels. A host takes tasks until it hasnumber_of_instancesrunning, and further tasks go to the other recorder hosts.replication_factor: 2with two matching sources records every channel twice. Withminimum_replication_factor: 1the recording isdonewhen one copy is complete and the second copy has finished or has used up the grace time (recording_straggler_grace_seconds).max_process_duration_seconds: set it with generous margin. A recording that runs into the limit fails, and its partial files are removed.
Uploader
Minimal (the other keys use their defaults):
uploader:
storages: [nas-1]
Realistic:
uploader:
number_of_instances: 4
upload_temp_path: /tmp
ingest_script: /usr/bin/ew-vodingest --loglevel info
replication_factor: 2
minimum_replication_factor: 1
max_process_duration_seconds: 21600
cancel_poll_interval_seconds: 30
storages:
- nas-1
- ftp-1
| Key | Type | Default | Meaning |
|---|---|---|---|
uploader.storages | list of strings | none | Storage systems that uploads may be placed on. Every name must be defined in storage |
uploader.number_of_instances | integer | 1 | Uploads that one origin-uploader runs at the same time. A host takes uploads until it has this many running, and further uploads go to the other uploader hosts |
uploader.upload_temp_path | string | system temporary directory | Existing directory under which each upload creates its own working directory. It must be writable by edgeware |
uploader.ingest_script | string | /usr/bin/ew-vodingest | Command line of the ingest program, with the same meaning as for a Catch-up Buffer Manager. The program must exist on the uploader host, otherwise the uploader does not start. om-deploy does not check this |
uploader.replication_factor | integer | 1 | Number of copies that om-admin storage repair brings an uploaded file up to. It must not be smaller than minimum_replication_factor |
uploader.minimum_replication_factor | integer | 1 | Number of storage systems that must receive the file for the upload to succeed. A value below 1 counts as 1 |
uploader.max_process_duration_seconds | integer | 21600 (6 hours) | Longest time of one upload, from start to the last destination. After that the upload fails |
uploader.cancel_poll_interval_seconds | integer | 30 | How often a running upload re-reads its record to see a cancel. A delete also cancels the running ingest directly, so a deleted upload normally stops within about a second. If it is already copying to the storage systems, it can take several seconds |
The uploader and the recorder do not start when the storage section is empty, and
om-deploy rejects such a configuration when the topology has an uploader or a recorder host.
The uploader message comes first:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": uploader: no storage systems configured
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": recorder: no storage systems configured
A service that starts with an empty storage section logs the same text, for example
origin-uploader: uploader: no storage systems configured.
Every name in uploader.storages must be defined in storage. om-deploy accepts a name that is
not defined, but it prints a warning on standard error:
warning: upload storage system "nas-9" is not configured in storage
What happens to such a name:
The manager does not assign it to new uploads. It logs one warning for each request:
{"level":"warn","ts":"2026-11-11T12:45:12.646Z","msg":"storage system is not configured in storage; not assigned","service":"origin-manager","storage_system":"nas-9"}With
storages: [nas-1, ftp-1, nas-9]an upload goes tonas-1andftp-1. Withstorages: [nas-9]only, creating an upload fails with503 service-unavailable-error.The uploader logs
upload storage system is not configured on this hostwhen it starts.Content that was created while a storage system was defined, and that still names it after you removed it from
storage, is deleted without it. The scheduler logsreclaim: storage system is not configured; its files are left in place, and the files on that system stay where they are.
The recorder and the uploader have separate replication settings. The recorder values apply to recordings and the uploader values apply to uploads.
Examples of what a change does:
minimum_replication_factor: 2withstorages: [nas-1]: every upload fails, because only one destination is available. Add a second storage system or lower the value.storages: [nas-1, ftp-1]withminimum_replication_factor: 1: an upload is written to both systems and succeeds when at least one of them has the file. If one copy failed, the content isdoneand the other copy is complete, and the uploader tries to remove the failed partial copy. The list of storage systems of the content is not reduced:om-admin storage inspectand the delivery URIs still name both systems, so a request that is routed to the failed system finds nothing. Runom-admin storage repair <account>/<content>as the useredgewareto bring the copy back, see storage.storages: [nas-1, ftp-1]: the uploader fetches the source once and then copies the staged result to the storage systems one after the other, so the time of an upload grows with the number of systems. In a test, the copy of 765 MB took 35 seconds to the first system and 38 seconds to the second. The size that is stored is the size after repackaging, not the size of the source file.
An upload source must use http, https or ftp. For http and https the location must be a
SMIL file that lists the media files, see the SMIL manifest
page of the VoD ingest. The media files are fetched from the paths in the SMIL file. A bare media
file such as https://media.example.invalid/clip.mp4 is accepted by the API with 201, and the
upload then ends in error. The ingest itself fails in milliseconds, and the API shows error
when the scheduler has picked the upload up, usually within 30 seconds.
For ftp the input rules of ew-vodingest apply: it accepts a SMIL file or a directory, and not a
bare MP4 file, see Input locations.
A SMIL file over FTP was not tested with OM.
Any other scheme, such as file, is also accepted with 201 and then ends in error. The
uploader logs, for example,
downloading failed: uploader: source scheme "file" is not allowed (allowed: http, https, ftp).
Scheduler
Minimal (the section can be left out, all keys have defaults):
scheduler:
scheduler_window_size: 180
Realistic:
scheduler:
scheduler_window_size: 180
status_polling_interval: 30
recording_straggler_grace_seconds: 600
recording_job_timeout_seconds: 21600
| Key | Type | Default | Meaning |
|---|---|---|---|
scheduler.scheduler_window_size | integer, seconds | 180 | How far ahead the scheduler looks for recordings to start. A recording that is inside this window can no longer be rescheduled |
scheduler.status_polling_interval | integer, seconds | 30 | How often the scheduler checks the result of running recordings |
scheduler.recording_straggler_grace_seconds | integer, seconds | 600 | Once the minimum number of copies of a recording exists, how long to wait for the remaining copies. The scheduler notices the end of the grace at its next status check, so the wait can be up to status_polling_interval longer |
scheduler.recording_job_timeout_seconds | integer, seconds | 21600 (6 hours) | After the stop time of a recording, the longest time to wait for the minimum number of copies. After that the scheduler cancels the other copies, removes the copies that were complete, and sets the recording to error |
The scheduler looks for pending recordings every 30 seconds. A recording is queued when its
scheduled time is less than scheduler_window_size away, and it starts at its scheduled time.
Examples of what a change does:
scheduler_window_size: 600: recordings are queued 10 minutes before they start. They still start at the scheduled time. A recording can no longer be rescheduled in its last 10 minutes:PUTanswers412 reschedule is supported only for pending recordingsalthoughGETstill showspending. With the default of 180 this applies to the last 3 minutes.scheduler_window_size: 10: smaller than the 30 second check interval, so a recording can start up to one check interval late. In a test, recordings started up to 13.6 seconds late with 10, and within 3 seconds of their scheduled time with 180.recording_straggler_grace_seconds: 60: when the minimum number of copies is complete, the scheduler waits one minute, plus up to one status check, for the other copies and then stops them. In a test the other copy was stopped after 90 seconds.
The keys scheduler_polling_interval, agent_blackout_period, webtv_concurrency_limit and
log_level are accepted in this section but are not used.
Manager
account_api_port sets the port on which origin-manager serves the Account API. The default
is 9090, which is also used when the key is left out or is 0. The port is read when the service
starts, so a change needs a restart of origin-manager. A value outside 1 to 65535 fails the
checks of om-deploy, and a live update with such a value is ignored, see
Configuration checks and
Dynamic Configuration Updates. If such a value is still in the
configuration when origin-manager starts, for example because it was written to etcd without
om-deploy, the service does not start. It prints an error such as
account_api_port (70000) must be between 1 and 65535 and exits with status 1.
operator_api_port and log_level are accepted in this section but are not used. There is no
Operator API listener.
Storage Selection
Recordings
When you create a recording, OM picks the storage from the Catch-up Buffer Managers:
- A Catch-up Buffer Manager is eligible when its
channel_groupscontain the group of the channel. One withoutchannel_groupsis eligible for every channel. - The
storageof each eligible Catch-up Buffer Manager is a destination. If that storage hasintermediate_storage_for, the storage it names is used instead. - Duplicate destinations are removed.
When the recording starts, the scheduler records on at most recorder.replication_factor
destinations. It spreads the copies over as many data_center values as possible. The choice
is the same every time for a given recording.
The list of storage systems that the API shows for the recording (in the delivery URIs and in
om-admin storage inspect) and the origin servers are fixed when you create the recording, from
every eligible Catch-up Buffer Manager. The copies are chosen later, when the recording starts,
from the configuration at that time. With recorder.replication_factor: 1 and two eligible
sources, one copy is made, but the list keeps naming both storage systems. If you change
catchup_buffer_managers after a recording was created, the copies follow the new configuration
and the list does not change. Files that end on a storage system that is not in the list are not
removed when you delete the recording.
Example, with recorder.replication_factor: 2 and the two sources from
Catch-up Buffer Managers (cbm-1 serves sports and news, cbm-2
serves every group):
| Channel group | Eligible sources | Result |
|---|---|---|
sports | cbm-1, cbm-2 | Two copies, on nas-1 and ftp-1 |
kids | cbm-2 | One copy, on ftp-1 |
With recorder.minimum_replication_factor: 2 the kids recording is created, but when it is
due the scheduler sets it to error. The API does not say why. The scheduler logs
recording dispatch failed with the error text
could not meet minimum replication factor: got 1, need 2.
When the copies fail after the recording has started, or the minimum number of copies is not
complete when recording_job_timeout_seconds has passed, the scheduler logs
recording promotion left fewer than minimum replication; finalizing error instead, with the
number of complete copies (done_finals) and the minimum (mrf). It cancels the other copies and
also removes the copies that were complete.
If no source serves the group, creating the recording fails with a 503 error
(service-unavailable-error).
Uploads
When you create an upload, OM picks the storage from uploader.storages:
- Content without tags can use every storage in
uploader.storages. - Content with tags can use a storage that has no
tags(a catch-all) or that has at least one tag in common with the content. Tags are case-sensitive. - A name in
uploader.storagesthat is not defined instorageis never used, see Uploader.
Example, with uploader.storages: [nas-1, ftp-1], nas-1 tagged [sports] and ftp-1
without tags:
| Tags of the upload | Storage used |
|---|---|
| none | nas-1 and ftp-1 |
sports | nas-1 and ftp-1 |
news | ftp-1 |
The uploader writes the file to every selected storage. The upload succeeds when at least
uploader.minimum_replication_factor of them received it.
Complete Configuration Example
A three-node installation with two Catch-up Buffer Managers, one local storage system and one FTP storage system. The topology is the one in Realistic topology.
configuration.yaml:
log_level: info
termination_delay_seconds: 60
redis:
cache_db: 0
queue_db: 1
result_db: 2
cache_ttl_seconds: 604800
scheduler:
scheduler_window_size: 180
status_polling_interval: 30
recording_straggler_grace_seconds: 600
recording_job_timeout_seconds: 21600
recorder:
number_of_instances: 4
recording_temp_path: /tmp
replication_factor: 2
minimum_replication_factor: 1
buffered_schedule_delay: 300
uploader:
number_of_instances: 4
upload_temp_path: /tmp
ingest_script: /usr/bin/ew-vodingest
replication_factor: 2
minimum_replication_factor: 1
max_process_duration_seconds: 21600
cancel_poll_interval_seconds: 30
storages:
- nas-1
- ftp-1
storage:
nas-1:
path: /srv/origin
data_center: dc1
tags: [sports]
ftp-1:
host: ftp.example.invalid
port: 21
username: om_ftp
password: change-me
path: origin
data_center: dc2
origin_servers:
origin-1:
host: https://origin-1.example.invalid
storage: nas-1
capabilities: [http, http+webdav]
origin-2:
host: https://origin-2.example.invalid
storage: ftp-1
capabilities: [http]
catchup_buffer_managers:
cbm-1:
host: cbm-1.example.invalid
port: 8090
storage: nas-1
channel_groups: [sports, news]
ingest_script: /usr/bin/ew-vodingest --maxtime 7200
buffer_duration: 604800
cbm-2:
host: cbm-2.example.invalid
port: 8090
storage: ftp-1
ingest_script: /usr/bin/ew-vodingest --maxtime 7200
buffer_duration: 604800
Dynamic Configuration Updates
Every service watches the configuration in etcd. When a new value is stored, the service starts
using it. A value that cannot be parsed or decrypted, that is not a JSON object, or that breaks
one of the rules that om-deploy configure checks is ignored. The service keeps its last good
configuration and logs one warning. The warning names the key (/origin/config for the
configuration, /origin/topology for the topology) and the reason, and every service logs it:
{"level":"warn","ts":"2026-11-11T12:48:48.859Z","msg":"config: ignoring invalid /origin/config: uploader: no storage systems configured","service":"origin-manager"}
A topology that breaks a rule gives, for example,
config: ignoring invalid /origin/topology: topology has no etcd hosts. A service that cannot
load the configuration when it starts does not start.
Applied without a restart:
log_level, in every service.storage,origin_servers,uploader.storagesand the tags of storage systems: used byorigin-managerfor every new recording and upload.catchup_buffer_managers(includingingest_script, which applies from the next recording): used byorigin-scheduler, and byorigin-managerto choose the storage of every new recording.recorder.replication_factor,recorder.minimum_replication_factor,scheduler.scheduler_window_size,scheduler.recording_straggler_grace_secondsandscheduler.recording_job_timeout_seconds: used byorigin-scheduler.uploader.minimum_replication_factor: used byorigin-uploaderfor each new upload.- The list of hosts of the
schedulerrole: the schedulers read the new list at their next check.
Requires a restart of the service:
- The database and Redis connection (the
databaseandredisroles) and the etcd endpoints. redis.cache_db,redis.queue_db,redis.result_dbandredis.cache_ttl_seconds.manager.account_api_port, fororigin-manager.recorder.number_of_instances,recorder.recording_temp_path,uploader.number_of_instances,uploader.upload_temp_path,uploader.ingest_scriptanduploader.max_process_duration_seconds.termination_delay_seconds.recorder.buffered_schedule_delayandbuffer_duration, fororigin-manager.- The own host entry of a scheduler. A scheduler finds itself in the list of
schedulerhosts once, when it starts, so restart it after you rename its host.om-deploy configuredoes that.
Not tested without a restart. Restart the service after you change these:
recorder.max_process_duration_seconds. The recorder reads it when it starts. The scheduler uses the current value for the time limit of each new recording task.uploader.cancel_poll_interval_secondsandscheduler.status_polling_interval.- The host, port, user name and password of storage systems, for the uploader.
om-deploy configure restarts all OM services, so a change made with it always takes full
effect. To restart one role yourself:
om-deploy service restart --role recorder
recorder services restarted
Changing a value with etcdctl
To change one value without a restart, edit the stored document directly. Run these commands on
an etcd node, where etcdctl is installed. This example sets the log level to warn:
Read the stored configuration:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/config --print-value-only > config.jsonChange the value in
config.jsonwith an editor, or withjq:jq -c '.log_level = "warn"' config.json > config-new.jsonStore the new document:
ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 put /origin/config "$(cat config-new.json)"
The stored document holds the encrypted passwords (encoded_password), never the plain text.
Keep the files private anyway. The topology is stored in /origin/topology and is changed the
same way.
A change made this way is not written to configuration.yaml on the administration machine. The
next om-deploy configure replaces the stored document with that file, so make the same change in
the file.
Troubleshooting Configuration
A service exits with
redis: cache_db/queue_db/result_db must differ: two of the three Redis database indices are equal.om-deployrejects such files, so the value reached etcd another way. Give each index a different value. Remember thatqueue_dbandresult_dbdefault to 1 and 2.Recordings stay
pendingand the scheduler logs two warnings every 30 seconds for an invalid catchup buffer manager config: the warnings areskipping recording pollandskipping recording dispatch. Check the rules in Catch-up Buffer Managers. Theerrorfield of the warning names the entry and the rule. Recordings also staypendingwhen there are nocatchup_buffer_managersat all.A recording ends in
errorand the recorder logs that ew-vodingest rejected its command line: the ingest program does not accept an option iningest_script. Remove or correct the option.A recording ends in
error: the API does not say why. Look at the scheduler log:recording dispatch failedwithcould not meet minimum replication factor: fewer sources serve the channel group thanrecorder.minimum_replication_factor. Add a source for the group or lower the minimum.recording promotion left fewer than minimum replication; finalizing error: copies failed after the recording started, or the minimum number of copies was not complete afterrecording_job_timeout_seconds. Look at the recorder logs (recording failed) and at the retained ingest logs on the recorder hosts.- Neither line, and the Catch-up Buffer Managers have no
buffer_duration: see the known limitation in Catch-up Buffer Managers.
Creating a recording or upload fails with
503 service-unavailable-error: no storage or no origin server matches. Check that a Catch-up Buffer Manager serves the channel group (for recordings) or that a storage inuploader.storagesmatches the tags (for uploads), and that an origin server with the capabilityhttpdelivers from that storage and has the rightroles. The values ofcapabilitiesandrolesare case-sensitive. A storage name that is not defined instorageis not used, see Uploader.An upload ends in
errorwithin about 30 seconds and the ingest log hasSMILToIngAsset failed: open : no such file or directory: the location of the upload is not a SMIL file. Forhttpandhttpsuse the URL of a SMIL file, see Uploader.om-deployrejects the files withno storage systems configured, or the uploader or recorder does not start with it: add the storage systems to thestoragesection.om-deploy configurefails with<host> <unit> is not running: the configuration is already stored and all services were restarted, but the named service did not stay up. The message ends with up to the last three lines of its journal since the start. For example, when the program ofuploader.ingest_scriptcannot be found, install the program on the uploader host or correct the first word ofingest_script. Then runom-deploy configureagain. The commandom-deploy service statusshowsactivatingfor a service that keeps restarting after crashes.om-deployreportsinvalid configuration "<file>": <reason>: the reason is one of the rules in Configuration checks. Correct the file and run the command again. Forminimum_replication_factor ... exceeds replication_factor, lower the minimum or raise the factor in the named section (recorderoruploader). A value that is not set counts as 1.A service reports
no redis host configured in topology: theredisrole has no host.om-deployitself rejects such a topology (topology has no redis hosts), so you see this line only when/origin/topologywas edited by hand and a service was restarted. Add a host and runom-deploy configure.A service does not start and the log mentions
secret:: a password cannot be decrypted. If the key on the administration machine is intact, runom-deploy configure. It copies that key to all nodes and sets the owneredgewareand the mode 0600. If the key on the administration machine is lost, enter the plain text passwords again and runom-deploy configure, see Password handling.A configuration change has no effect: check the lists in Dynamic Configuration Updates. Settings that are read at start need a restart, which
om-deploy configuredoes for you. If you changed the stored document withetcdctl, look forconfig: ignoring invalidin the logs of the services: the value was rejected.The scheduler logs
node is not a member of the scheduler set; will own no work, orcould not match any local address to a topology host; falling back to hostname: the scheduler could not find its node in theschedulerrole. List the node by IPv4 address, or use the exact output ofhostname, as described in Minimal topology, then runom-deploy configure. Until then no recordings or uploads are started.The database or Redis cannot be reached:
om-deploy configureaccepts a wrong password or an unresolvable host, and the services stayactive. Look for these causes in theerrorfield of the logs:Error 1045 (28000): Access denied for user ...: wrong database user or password.WRONGPASS invalid username-password pair or user is disabled.orNOAUTH Authentication required.: wrong or missing Redis password.no such hostori/o timeout: the host name does not resolve or the host does not answer.
The symptoms: with a wrong database, every authenticated API request returns
500and the manager logs nothing for it; at start the manager logsmysql not reachable at startup; will retry on demand. With a wrong Redis, requests to create content still return201but nothing runs, the content stayspending, and the scheduler logsredis unavailable; skipping dispatch tick. If the Redis host does not answer at all (i/o timeout), a request to create a recording or an upload gets no answer (in the test it still waited after 30 seconds) and creates nothing, see External roles. Checkhosts,portand credentials in thedatabaseandredisroles from each OM node, then runom-deploy configureto push the corrected topology.om-deploy configuredoes not finish and prints only JSON lines with the messageretrying of unary invoker failedand the erroretcdserver: request timed out: etcd has lost its quorum, andconfigurewaits for it. It has no time limit and prints noom-deploy:message. Stop it, and on every stopped etcd host runsystemctl start --no-block etcd. Whenetcdctl endpoint healthreports every endpoint healthy, run the command again.A recording or upload ends in
errorwithin about 30 seconds and the log hasFTL license check error: empty expiry:ew-vodingesthas no valid license on that node. The package installs a placeholder/etc/edgeware/ew-vodingest/license.json. Copy your license file there on every recorder and uploader node. The steps, also after anuninstall, are in ew-vodingest License. To get the file, see Licensing. A message that ends inopen /etc/edgeware/ew-vodingest/license.json: no such file or directorymeans the file is missing.
4 - Logging
Log Destination
origin-manager, origin-scheduler, origin-recorder and origin-uploader write their logs to
standard error. Under systemd this goes to the system journal. The services do not create log
files of their own.
View the logs of a service on the node where it runs:
journalctl -u origin-manager -f
journalctl -u origin-recorder --since "1 hour ago"
journalctl -u origin-scheduler -n 100
The units are origin-manager, origin-scheduler, origin-recorder, origin-uploader and
etcd. Retention and rotation of the journal are controlled by the journald configuration of
the host.
The journal stores every OM line with the priority info, whatever the level in the JSON line.
A filter on the journal priority therefore finds no OM line, not even for the errors that the
service logged:
journalctl -u origin-scheduler -p err
-- No entries --
Filter on the JSON level field instead, see Log Format.
What Is Not Logged
- The manager logs nothing for the requests that it serves, at any level. A failed request (400, 401, 404 or 500) leaves no line either.
- The scheduler logs nothing when it dispatches or finishes a recording or an upload without an error. With two schedulers, no line says which one dispatched a task.
- Nothing is logged when the cleanup of a deleted content item works.
- While etcd has no quorum, the running services log nothing about it. They keep working with the last configuration that they have.
Log Format
The OM services write each log entry as one line of JSON. These fields are always present in these lines:
| Field | Description |
|---|---|
level | debug, info, warn or error |
ts | Timestamp in ISO 8601 format, in the time zone of the host |
msg | Log message |
service | Daemon that wrote the line, for example origin-manager |
A line can carry more fields that give context, such as error, path, title or
version. Example, from origin-recorder at start:
{"level":"info","ts":"2026-11-02T10:30:45.123+0700","msg":"origin-recorder starting","service":"origin-recorder","version":"x.y.z (commit <hash>, built <date>)","queue":"recording","concurrency":4}
Other Lines in the Journal
The journal of an OM unit also holds lines that are not in this format. None of them has the
service field, and log_level does not change them:
Plain text start errors. When a service cannot start, it prints one plain text line that starts with the name of the service, and exits. These lines explain why a service does not start:
origin-uploader: config: database secret: secret: decrypt (auth failed or wrong key): cipher: message authentication failed origin-manager: listen tcp :9090: bind: address already in useQueue library lines. The recorder, the uploader and the scheduler use a queue library that writes its own lines, five at every restart of a worker. During a Redis outage it also writes
ERROR:lines, 20 or more per worker in the test:asynq: pid=145136 2026/11/11 10:20:50.151565 INFO: Starting graceful shutdownRedis client lines. They appear when Redis cannot be reached (shortened):
redis: 2026/11/11 09:56:45 ...: redis: connection pool: failed to dial after 5 attempts: dial tcp 192.0.2.20:6379: connect: connection refusedetcd client lines. They are JSON, but they have no
servicefield and thetshas microseconds. They appear when an endpoint inetcd_hostsdoes not answer (shortened):{"level":"warn","ts":"2026-11-11T10:21:59.299101Z","logger":"etcd-client",...,"msg":"retrying of unary invoker failed","target":"etcd-endpoints://0x14a95f630780/192.0.2.11:2999","attempt":0,...}The
etcdunit has its own JSON format, also without aservicefield and with a microsecondts.systemd lines.
journalctl -ualso shows the messages of systemd about the unit, for exampleStarted origin-manager.serviceand/usr/lib/systemd/system/origin-manager.service:4: Invalid URL, ignoring: TBD. The second one is harmless.
Filtering the Log
You can filter the OM lines with standard tools. Use jq with -R and fromjson?, so that it
reads each line as text and skips the lines that are not JSON. For example, show only errors of the
manager:
journalctl -u origin-manager -o cat | jq -cR 'fromjson? | select(.level == "error")'
{"level":"error","ts":"2026-11-11T17:15:20.351+0700","msg":"server failed","service":"origin-manager","error":"listen tcp :9090: bind: address already in use"}
A plain jq 'select(.level == "error")' stops at the first line that is not JSON, and prints
nothing:
parse error: Invalid numeric literal at line 1, column 47
The filter also hides the plain text start errors. To see why a service does not start, read the
journal without jq: journalctl -u <unit> -n 100.
Useful Messages
| Service | Level | Message | Meaning |
|---|---|---|---|
| all | info | starting, origin-recorder starting, origin-uploader starting | The service started. The line shows the version |
| all | warn | config: ignoring invalid /origin/config: <reason> (also /origin/topology) | A live update broke a rule that om-deploy configure checks. The service ignored it and keeps its last configuration. One line per service. See Dynamic Configuration Updates |
| manager, scheduler | info | shutting down | The service got SIGTERM. Not logged at warn or error |
| recorder, uploader | info | worker consuming queue, worker draining | The worker started to take tasks, or got SIGTERM and stops |
origin-manager | info | account API listening | The Account API is about to listen. The addr field shows :9090. The line is logged before the port is opened, so it also appears before server failed |
origin-manager | error | server failed | The API listener failed, for example with address already in use. A plain text line follows and the service exits |
origin-manager | warn | mysql not reachable at startup; will retry on demand, redis not reachable at startup; will retry on demand | A backend could not be reached at start, or refused the credentials. The service keeps running. The error field shows the cause, for example Error 1045 ... Access denied, WRONGPASS, NOAUTH Authentication required, no such host or i/o timeout |
origin-manager | warn | storage system is not configured in storage; not assigned | uploader.storages names a storage system that is not defined in storage. New uploads do not use it |
origin-manager | warn | reclaim: storage systems lookup failed; job will re-resolve | The cleanup of a deleted content item could not look up its storage systems. The line has no content id |
| manager, scheduler | warn | cache write-through: ... failed | A write to the Redis cache failed, for example set content failed |
origin-scheduler | info | scheduler identity matched topology host | The scheduler found itself in the scheduler role. host is the topology entry, and match is ip or hostname |
origin-scheduler | warn | could not match any local address to a topology host; falling back to hostname | No host of the scheduler role equals an IP address of the node or the output of hostname |
origin-scheduler | warn | node is not a member of the scheduler set; will own no work | The scheduler does not find its node in the scheduler role. It starts no recordings and no uploads. A running scheduler can also log it once during om-deploy configure, just before it is restarted |
origin-scheduler | info | reclaim consumer started | The scheduler cleans up deleted content |
origin-scheduler | warn | skipping recording dispatch: invalid catchup buffer manager config, skipping recording poll: invalid catchup buffer manager config | The catchup_buffer_managers section breaks a rule. No recordings start, and running recordings are not finished. Both lines are logged every 30 seconds |
origin-scheduler | warn | redis unavailable; skipping dispatch tick, redis unavailable; skipping upload dispatch tick | Redis could not be reached. The scheduler tries again at the next check |
origin-scheduler | debug | no catchup buffer managers configured; skipping dispatch tick | There are no Catch-up Buffer Managers, so recordings stay pending. Only logged at debug |
origin-scheduler | warn | marked recordings failed: content aged out of the catch-up buffer | The start time of a recording is older than buffer_duration |
origin-scheduler | error | recording dispatch failed | A due recording cannot be dispatched. The error field gives the reason, for example could not meet minimum replication factor: got 1, need 2 |
origin-scheduler | warn | recording promotion left fewer than minimum replication; finalizing error | When the copies ended, fewer copies than the minimum were complete. The recording ends in error. The line has title, done_finals and mrf |
origin-scheduler | warn | remove partial on error failed | The partial files of a failed recording could not be removed |
origin-scheduler | warn | recovery: re-dispatched a recording whose recorder went silent | A recording was queued again because its recorder stopped reporting. It is also logged when no recorder ever took the task, for example when the recorder is stopped |
origin-scheduler | warn | reclaim: job failed | An attempt to clean up a deleted content item failed. retried, max_retry and will_retry show the attempts. The level is error on the last attempt |
origin-scheduler | warn | reclaim: storage system cleanup failed | One storage system could not be cleaned. storage_system and error show which and why |
origin-scheduler | warn | reclaim: storage system is not configured; its files are left in place | A deleted content item still refers to a storage system that is no longer in storage. Its files on that system stay. The content_id field is the internal numeric id |
| scheduler, uploader | warn | FTP server <system>/<host> lacks MFMT/MDTM-write; ... | The FTP server cannot set file times. The message says that the repair of copies may be unreliable. It is logged at every connection to that server |
origin-recorder | info | starting ingest | An ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. timeout is the time limit |
origin-recorder | info | recording done | One copy of a recording is complete on this host |
origin-recorder | error | recording failed | One copy of a recording failed. exit_code, detail and last_line show why |
origin-recorder | error | ew-vodingest rejected its command line | ingest_script has an option that the ingest program does not accept. Logged instead of recording failed |
origin-recorder | error | ingest overran its bound and was aborted | The recording ran longer than recorder.max_process_duration_seconds. Logged instead of recording failed |
origin-recorder | warn | recording interrupted before it concluded — leaving the result key for the retry | The recorder stopped while it recorded. The task goes back to the queue |
origin-uploader | info | starting ingest | An ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. budget is the time limit |
origin-uploader | error | ingest failed | The ingest of an upload failed. ingest_log holds the ingest log, which gives the reason |
origin-uploader | error | upload failed | The upload failed. The comment is general, for example downloading failed: ingest reported status=error. The API shows the same text in additional_state_info, and om content get shows it after the state. The reason is in ingest_log of the ingest failed line before it |
origin-uploader | info | upload done | The upload finished. destinations and failed show how many storage systems got a copy |
origin-uploader | error | upload overran its budget and was aborted | The upload ran longer than uploader.max_process_duration_seconds |
origin-uploader | warn | upload to destination failed, could not remove copies | A copy to one storage system failed, or the partial copy could not be removed. system and error show which and why |
origin-uploader | warn | upload interrupted before it concluded — leaving the row for the retry | The uploader stopped during an upload. The task goes back to the queue |
origin-uploader | warn | upload storage system is not configured on this host | uploader.storages names a storage system that is not defined in storage |
| recorder, uploader | info | retaining ingest log for diagnosis | The ingest log of a task that did not succeed was kept. See Ingest Logs. The recorder line has a state (failed or cancelled), the uploader line has none |
The content_id field of the recorder lines is the internal numeric id of the content item, written
as a string. It is not the content_id of the API.
Log Levels
The log level is the top-level log_level in configuration.yaml:
debug: in this version, one extra message: the scheduler’sno catchup buffer managers configured; skipping dispatch tick. It adds nothing to the manager, the recorder and the uploaderinfo: normal operation (default)warn: unexpected situations that do not stop operationerror: failures
log_level: info
The setting applies to every OM service, but only to the OM lines, not to the lines in
Other Lines in the Journal. If it is empty, the level is info. The
values dpanic, panic and fatal are also accepted. The names are not case-sensitive, and
DEBUG and warning are accepted too. Use the lower case names above. The log of each ingest is
always written at debug level, see Ingest Logs.
om-deploy install, configure and upgrade refuse a log_level that is not a level, and change
nothing:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": log: invalid level "verbose": unrecognized level: "verbose"
A service does not start when it reads such a value from etcd. It prints a plain text line, not JSON, and exits:
origin-manager: log: invalid level "verbose": unrecognized level: "verbose"
Changing the Level at Runtime
Running services read the configuration from etcd and watch it for changes, so a new
log_level applies immediately and without a restart. An update that breaks a rule that
om-deploy configure checks, for example an invalid log_level, is ignored as a whole. The
service keeps its last good configuration and logs one warning, on every service:
{"level":"warn","ts":"2026-11-11T12:47:00.924Z","msg":"config: ignoring invalid /origin/config: log: invalid level \"verbose\": unrecognized level: \"verbose\"","service":"origin-recorder"}
An empty log_level in an update is ignored without a warning, and the previous level stays in
effect. A service that starts while the value is empty uses info.
To change the level:
Edit
log_levelinconfiguration.yaml:log_level: debugPush the configuration:
om-deploy configure --known-hosts ~/.ssh/known_hostsconfigure is completeThis also restarts the OM services, one host at a time. The command prints
configure is completewhen it has checked that they run. To change the level without a restart, change thelog_levelvalue in the JSON document stored at/origin/configin etcd and write the document back. Run these commands on a node that hasetcdctl:ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/config --print-value-only > config.jsonEdit
log_levelinconfig.json, and then write the document back:ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 put /origin/config "$(cat config.json)"The stored document holds the encrypted passwords, so keep
config.jsonprivate and delete it when you are done. The nextom-deploy configurepushes the content of yourconfiguration.yamlto etcd again, so change the file as well.Check the effect. The visible sign of a change is that lines stop. After you set
warnorerror, theinfolines, for exampleupload doneandshutting down, are no longer logged. This counts theupload donelines of the last 5 minutes. It prints0for an upload that finished after the change:journalctl -u origin-uploader --since "5 minutes ago" -o cat | grep -c '"upload done"'debugadds no lines to the recorder, the uploader and the manager. Only the scheduler logs one more message, and only when there are no Catch-up Buffer Managers.
Ingest Logs
The recorder and the uploader run ew-vodingest for every task. OM asks ew-vodingest to write
its own log to a file at debug level. You can change the level with --loglevel in the
ingest_script setting, because the last occurrence of the flag wins:
uploader:
ingest_script: /usr/bin/ew-vodingest --loglevel info
The ingest log is created in /tmp, or in the directory that TMPDIR names for the service. It is
not created in the configured recording_temp_path or upload_temp_path. File names:
| Service | File name pattern |
|---|---|
origin-recorder | ingest-<content id>-<storage>-<random>.log |
origin-uploader | ingest-upload-<upload id>-<random>.log |
In the file name of a recording, <content id> is the internal numeric id of the content item, not
the content_id of the API. For example, ingest-37-nas-1-3857201.log is the log of the copy to
nas-1 of the recording whose internal id is 37.
OM reads the ingest log to decide the result of the task, and handles the file like this:
- When the task finishes successfully, the log is removed.
- In every other case (failed, cancelled, interrupted), the log is kept for diagnosis, and the
service logs
retaining ingest log for diagnosiswith thepathof the file.
OM never deletes the retained logs. Remove old files when you no longer need them.
To find the retained ingest log of a failed task, search the service log for the message and
read the file at the path it shows:
journalctl -u origin-recorder -o cat | grep "retaining ingest log"
The line of the recorder has the recording in content_id, storage_name, channel and
window, and the state of the task:
{"level":"info","ts":"2026-11-11T09:50:35.939Z","msg":"retaining ingest log for diagnosis","service":"origin-recorder","content_id":"1180","storage_name":"nas-1","channel":"sports-1","window":60,"path":"/tmp/ingest-1180-nas-1-2655965567.log","state":"failed"}
The line of the uploader has the upload in upload_id, content_id, asset_path and source, and
no state:
{"level":"info","ts":"2026-11-11T10:18:19.836Z","msg":"retaining ingest log for diagnosis","service":"origin-uploader","upload_id":59,"content_id":1191,"asset_path":"v/a/7/3/v_clip1_<hex>","source":"ftp://user:xxxxx@ftp.example.invalid:2121/clip.smil","path":"/tmp/ingest-upload-59-2932332871.log"}
When OM logs an ingest command line, any password in a URL is replaced by xxxxx.
Troubleshooting
A service does not start: run
journalctl -u <unit> -n 100. The reason is a plain text line, see Other Lines in the Journal. These are the lines that you can see:origin-uploader: read etcd_hosts "/etc/edgeware/origin-manager/etcd_hosts": open /etc/edgeware/origin-manager/etcd_hosts: no such file or directory: the file is missing.om-deploy configurewrites it again.origin-uploader: config: initial load: context deadline exceeded: the service could not read its configuration from etcd within 15 seconds. The line does not name etcd. The etcd client line before it (retrying of unary invoker failed) names the endpoint intarget. Checketcd_hostsand that etcd has a quorum.origin-uploader: config: database secret: secret: decrypt (auth failed or wrong key): cipher: message authentication failed: the key on the node is not the key that encrypted the passwords.origin-recorder: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: permission denied: the key file is missing (no such file or directory) oredgewarecannot read it (permission denied, for example a key that belongs torootwith mode 0600).
A password cannot be decrypted: check that
/etc/edgeware/origin-manager/secret.keyon the node is the key that was used to encrypt the passwords. If the key on the administration machine is intact, runom-deploy configureto copy it to the nodes again. It also sets the owner (edgeware) and the mode (0600). If the key on the administration machine is lost, enter the plain text passwords again and runom-deploy configure. It creates a new key and copies it to all nodes. See Secrets.An ingest fails: find the retained ingest log path in the service log, then read the file on the recorder or uploader host. For an upload, the reason is also in the
ingest_logfield of theingest failedline, which comes just beforeupload failed.log_level: debugdoes not add anything for this.Every recording and upload fails at once: look for
FTL license check errorin thelast_linefield ofrecording failedoringest failed. Theew-vodingestlicense is missing, see ew-vodingest License.Too much output: set
log_leveltowarnorerror. This reduces the OM lines only. The queue library, Redis client and etcd client lines stay, and there can be 20 or more of them per worker during a Redis outage.Check the whole cluster:
om-deploy service statusshows the state of every unit on every host.
5 - How-To Guides
Common Tasks
This page shows how to do the common Origin Manager (OM) tasks. Channel and content tasks use the
om command line tool, or curl where om has no subcommand. Account and operator tasks use
om-admin, which runs on a manager node (a node that has the manager role).
The examples assume that om can find the API and your key:
export ACCT_CLI_HOST=om-1.example.invalid:9090
export ACCT_CLI_APIKEY=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77
The curl examples use the same address and key, and send the key in the X-Account-API-Key
header:
export OM_API=http://om-1.example.invalid:9090
export API_KEY=$ACCT_CLI_APIKEY
The samples on this page, on the CLI page and on the API page come from one setup, the
Complete Configuration Example. There,
the Catch-up Buffer Manager cbm-1 (storage nas-1) serves the channel groups sports and
news, and cbm-2 (storage ftp-1) serves every group. A recording of a channel in the group
sports is stored on nas-1 and ftp-1, and one of a channel in the group default only on
ftp-1. Your storage names are the ones in your own configuration.
Creating an Account and an Operator
Run these commands with om-admin on a manager node. A new installation has no account yet, so
this is the first step.
Create an account:
om-admin account create example-account
created account "example-account" (api-key 3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77)
This also creates a distribution without origin servers, named after the account. It is the
default distribution of the account. Its name is the cache
name, which the Request Router uses to find the account of a request. Use
om-admin account create example-account cache.example.invalid to give the distribution another
cache name, or add -N to skip the distribution. See
Serving the Content of an Account through the Request Router.
Use the printed key with om -k or in the X-Account-API-Key header. To see it again later:
om-admin account list -v
example-account api-key=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77 domain=example-account
Warning: -v prints the API key of every account. Run it only where nobody else can read the
output, and do not paste the output into tickets or chat.
The line starts with two spaces, because account create does not make the new account the
default account. The default account starts with *. To make this account the default, run
om-admin account set-default example-account, and the line starts with * instead of the two
spaces.
Create an operator:
om-admin operator create admin@example.invalid
om-admin operator passwd admin@example.invalid change-me
created operator "admin@example.invalid" with API key 7d1e4b92-0a6c-4f35-9e18-5c2a8d3b6f01
set password for "admin@example.invalid"
An operator can call the Account API for any account. Send the key of the operator in
X-Operator-API-Key together with the name of the account in X-Account:
curl -H "X-Operator-API-Key: 7d1e4b92-0a6c-4f35-9e18-5c2a8d3b6f01" \
-H "X-Account: example-account" $OM_API/api/2/channel
Replace an API key. The old key stops working at once.
om-admin account set-param example-account api-key "$(uuidgen)"
om-admin operator set api-key admin@example.invalid
set api-key on "example-account"
api-key for "admin@example.invalid" is now b4e8c1d7-2f90-4a53-86d1-0c7e3a9f5b22
Creating a Channel
om channel add news-1 -t "News One" -g default
The response is the new channel:
{
"channel_group": "default",
"channel_id": "news-1",
"channel_type": "mbr_ts_multicast",
"creation_time": "2026-11-02T10:00:00Z",
"mbr_ts_multicast": {},
"modification_time": "2026-11-02T10:00:00Z",
"title": "News One"
}
Check that it exists:
om channel get news-1
+--------------+----------+---------+------------------+---------+
| Channel ID | Title | Group | Type | Extra |
|--------------+----------+---------+------------------+---------|
| news-1 | News One | default | mbr_ts_multicast | |
+--------------+----------+---------+------------------+---------+
The same with curl:
curl -X POST $OM_API/api/2/channel \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel_id":"news-1","title":"News One","channel_type":"mbr_ts_multicast","mbr_ts_multicast":{}}'
A channel_id cannot be empty, contain / or a space, start with __, or be . or ... The
API refuses these ids with 400. om also refuses a dot, ?, # and %. mbr_ts_multicast is
the only channel type, so -T can be left out. The channel group decides which Catch-up Buffer
Managers record the channel. Recordings and buffered live content are created against a channel,
so create the channel first.
The channel_id must be unique in the whole deployment, not only in your account. This includes
the channels of other accounts and of a Convoy system that uses the same database. Creating the
same channel_id twice fails:
om: data-exists: Data already exists.
If om channel get says missing-resource for an id that was refused with data-exists, the id
belongs to another account. Choose another id.
Scheduling a Recording
Schedule a recording of an existing channel. Times are RFC 3339 timestamps. Recordings need a
catch-up buffer: set the same buffer_duration on every Catch-up Buffer Manager (all entries must
have the same value), see
Catch-up Buffer Managers. A recording
without a catch-up buffer is accepted, but it ends in error.
om content record match-1 -t "Evening match" -c news-1 \
-b 2026-12-01T20:00:00Z -e 2026-12-01T22:00:00Z
The output is the new content, followed by its entity tag. The recording object shows the
channel and the window:
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match"
}
etag: 5f1c2b3a-0000-4000-8000-000000000001
The storage systems in delivery_uris (s:ftp-1) are fixed when the recording is created, see
Delivery URIs.
How the start time is treated depends on the catch-up buffer (buffer_duration in the
configuration):
| Setup | Start time | When the recording runs |
|---|---|---|
| With a catch-up buffer | In the past or in the future, but not before the start of the buffer | After the stop time, plus recorder.buffered_schedule_delay (300 seconds by default). A recording of 20:00 to 22:00 runs at about 22:05 |
| Without a catch-up buffer | At least 5 seconds in the future | At the start time, but the recording ends in error (see the limitation below) |
Known limitation: a recording without a catch-up buffer ends in error. The recorder starts
at the start time and asks the Catch-up Buffer Manager for a time range that has not been
recorded yet. With the ew-vodingest delivered with this release, the manager answers Code 416
and every copy fails within a second. Do not schedule recordings before you have set
buffer_duration on every Catch-up Buffer Manager.
A recording can fail to be created. The common errors:
| Error | Cause |
|---|---|
om: bad-request: Bad request: Channel does not exist: news-9 | The channel does not exist in your account |
om: bad-request: Bad request: Stop time must be greater than start time | The stop time is not after the start time |
om: bad-request: Bad request: Scheduling HTTP recordings is not allowed earlier than 5 seconds in the future | No catch-up buffer, and the start time is less than 5 seconds in the future or in the past |
om: bad-request: Bad request: Cannot schedule HTTP recording to start before the start of the catch-up buffer. | With a catch-up buffer, the start time is older than the buffer |
om: service-unavailable-error: no storage available for the requested storage systems | No Catch-up Buffer Manager serves the channel group, or no origin server delivers from its storage |
Checking the State of a Recording
om content get match-1
title: Evening match
service: HTTP
state: pending
playable: no
duration: 7200 seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
recording:
channel: news-1
start time: 2026-12-01T20:00:00Z
stop time: 2026-12-01T22:00:00Z
delivery URIs:
dash: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd
hls: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8
mss: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000001
The line state: shows the state. The other lines are the title, the window of the recording, the
delivery paths and, as the last line, the entity tag. See content
for every line. The state follows the recording:
| State | Meaning |
|---|---|
pending | Waiting to be started |
ongoing | Recording |
done | Finished. A recording is done when at least recorder.minimum_replication_factor copies are complete, also when OM cancelled the other copies |
error | Failed |
N/A | Not a recording. Buffered live and external content have no job |
You may not see ongoing. A recording whose time window is already in the catch-up buffer is
recorded in seconds, and the scheduler checks the recordings only every
scheduler.status_polling_interval seconds (30 by default). The state then changes from
pending straight to done.
When the recording has finished, state is done and playable is yes. The line modified:
shows the time that the recording changed last, so it is later than created::
om content get match-1 | grep -E '^(state|playable|modified):'
state: done
playable: yes
modified: 2026-12-01T22:06:09Z
To play the recording, take a path from the delivery URIs: lines of the same output and put the
address of the repackager in front of it. See Delivery URIs.
The host name in that address must be a cache name of a distribution of your account. The Request
Router serves any other host name for the default account, see
Serving the Content of an Account through the Request Router.
To list only the recordings in one state, see Listing and Filtering Content.
When a Recording Ends in error
When a recording fails, om content get shows the state error and no reason, because the API
does not say why a recording failed (additional_state_info stays null):
om content get match-1 | grep -E '^state:'
state: error
Read the logs of the scheduler and of the recorder (see the Logging page). These are the lines to look for:
| Service | msg | Meaning |
|---|---|---|
origin-scheduler | recording dispatch failed | The recording could not be started. The error field has the reason, for example could not meet minimum replication factor: got 1, need 2 |
origin-scheduler | recording promotion left fewer than minimum replication; finalizing error | Fewer copies than recorder.minimum_replication_factor finished. This also happens when scheduler.recording_job_timeout_seconds passes. The scheduler then removes the complete copies too |
origin-scheduler | marked recordings failed: content aged out of the catch-up buffer | The start of the recording left the catch-up buffer before the recording started |
origin-recorder | recording failed | One copy failed. last_line is the last line of the ingest log |
origin-recorder | ew-vodingest rejected its command line | The ingest_script has a flag that ew-vodingest does not accept |
origin-recorder | ingest overran its bound and was aborted | A copy ran longer than recorder.max_process_duration_seconds |
journalctl -u origin-recorder -o cat | grep '"recording failed"'
{"level":"error","ts":"2026-11-11T08:44:43.076Z","msg":"recording failed","service":"origin-recorder","content_id":"1102","storage_name":"nas-1","channel":"sports-1","window":60,"exit_code":1,"detail":"ingest reported status=error","last_line":"2026-11-11T08:44:43Z ERR status=error, duration_ms=0"}
detail and last_line often only say status=error. The reason is then in the retained ingest
log, which the recorder announces with retaining ingest log for diagnosis (see
Ingest Logs). A license problem of ew-vodingest shows
in last_line, as FTL license check error: empty expiry. See
ew-vodingest License for the fix.
Rescheduling a Pending Recording
You can move a recording while it is pending, and only when a catch-up buffer is configured.
The scheduler claims a recording scheduler.scheduler_window_size seconds (180 by default) before
the time that it is due to run. From then on a reschedule fails with
412 reschedule is supported only for pending recordings, although om content get still shows
pending. The recording of 20:00 to 22:00 above runs at about 22:05, so reschedule it before about
22:02. Reschedule more than scheduler_window_size seconds before the recording is due.
Read the entity tag (the last line of om content get), then send the new window:
om content get match-1
om content reschedule match-1 -E 5f1c2b3a-0000-4000-8000-000000000001 \
-b 2026-12-01T20:30:00Z -e 2026-12-01T22:30:00Z
-b and -e are both optional, but you need at least one. A value that you leave out keeps its
current value. The response is the updated content with a new entity tag, and the duration
follows the new window. Read the content again to see the new window in the recording: lines:
om content get match-1 | grep -E '^ (start|stop) time:'
start time: 2026-12-01T20:30:00Z
stop time: 2026-12-01T22:30:00Z
om requires -E, but the API does not compare the tag on a reschedule. A stale or invented tag
is accepted, and the window changes. The same with curl, which needs no If-Match header:
curl -X PUT $OM_API/api/2/content/match-1 \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"recording": {"start_time": "2026-12-01T20:30:00Z", "stop_time": "2026-12-01T22:30:00Z"}}'
Failures:
| Status | message | Note |
|---|---|---|
400 | Bad request: Rescheduling of finished HTTP recordings is not supported | |
400 | Bad request: Rescheduling of live HTTP recordings is not supported | No catch-up buffer is configured |
400 | Bad request: Stop time must be greater than start time | |
404 | No resource available at given URI. | There is no such content, or it is not a recording |
412 | reschedule is supported only for pending recordings | The scheduler has already claimed the recording (scheduler_window_size seconds before it is due), while om content get still shows pending |
412 | etag mismatch | The content was changed by someone else at the same moment. A stale entity tag does not cause this. Run om content get and try again |
Creating an Upload
An upload makes OM fetch media from a URL and store it on the storage systems that match the tags
of the content. The supported protocols are http, https and ftp.
For http:// and https:// the URL must point to a SMIL file that lists the media files.
A URL of a bare media file, such as https://media.example.invalid/vod/clip.mp4, is accepted when
you create the upload (201), but the upload then ends in error as soon as the uploader picks
it up. OM fetches the media files from the paths in the SMIL file. This SMIL file lists one MP4
file, given by its file name, that lies next to it:
<?xml version="1.0" encoding="UTF-8"?>
<smil>
<body>
<switch>
<video src="clip.mp4" system-bitrate="800000"/>
</switch>
</body>
</smil>
The format is described on the SMIL manifest page of
ew-vodingest. For ftp:// the input rules of ew-vodingest apply: it accepts a SMIL file or a
directory there, and not a bare MP4 file, see
Input locations. A SMIL file over
FTP was not tested with OM. Any other scheme, such as file:// or s3://, is also accepted
when you create the upload, and the upload then ends in error.
om content upload clip-1 -t "Trailer clip" -l https://media.example.invalid/vod/clip.smil
The output is the new content. The upload object has the location, and the state is pending:
{
"additional_state_info": null,
"content_duration_ms": "N/A",
"content_id": "clip-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"service": "HTTP",
"source": "upload",
"state": "pending",
"tag": [],
"title": "Trailer clip",
"upload": {
"location": "https://media.example.invalid/vod/clip.smil"
}
}
etag: 5f1c2b3a-0000-4000-8000-000000000006
Follow the progress with om content get clip-1. Here are the lines state: and playable: of
the output:
om content get clip-1 | grep -E '^(state|playable):'
state: pending
playable: no
The state changes by itself:
| State | Meaning |
|---|---|
pending | Waiting to be picked up |
ongoing | Downloading, checking or storing |
done | Finished |
error | Failed or cancelled |
When the upload has finished, the same command shows done and yes:
state: done
playable: yes
To give the upload tags, so that it is stored only on the matching storage systems, use the API:
curl -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "clip-2",
"title": "Sports clip",
"service": "HTTP",
"source": "upload",
"tag": ["sports"],
"upload": { "location": "https://media.example.invalid/vod/clip-2.smil" }
}'
In the example setup nas-1 is tagged sports and ftp-1 has no tags. The upload above is
stored on both, and an upload tagged promo only on ftp-1. The tags show in parentheses after
the state:
om content get clip-2 | grep -E '^(state|playable):'
state: ongoing (tag:sports)
playable: no
Creating content with a content_id that already exists fails with
om: data-exists: Data already exists. (409). If no storage system or origin server matches,
the answer is 503 service-unavailable-error.
If an upload ends in error, om content get shows a short reason after the state. Here
clip-1 was created with -l https://media.example.invalid/vod/missing.smil, a SMIL file that
does not exist:
om content get clip-1 | grep -E '^(state|playable):'
state: error (downloading failed: ingest reported status=error)
playable: no
The reason is general, and an upload that has tags shows the tags (tag:sports) in its place. The
details are in the log of origin-uploader, in the ingest_log field of the ingest failed line.
That line comes just before the upload failed line:
journalctl -u origin-uploader -o cat | grep -E '"(ingest failed|upload failed)"'
{"level":"error","ts":"2026-11-11T12:54:06.449Z","msg":"ingest failed","service":"origin-uploader","upload_id":80,"content_id":1226,"asset_path":"v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05","source":"https://media.example.invalid/vod/missing.smil","exit_code":1,"comment":"downloading failed: ingest reported status=error","last_line":"2026-11-11T12:54:06Z ERR status=error, duration_ms=0","ingest_log":"2026-11-11T12:54:06Z ERR error=\"SMILToIngAsset failed: could not read https://media.example.invalid/vod/missing.smil. Code 404\"\n..."}
{"level":"error","ts":"2026-11-11T12:54:06.451Z","msg":"upload failed","service":"origin-uploader","upload_id":80,"content_id":1226,"asset_path":"v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05","source":"https://media.example.invalid/vod/missing.smil","comment":"downloading failed: ingest reported status=error"}
(The ingest_log is shortened here.) The SMIL file does not exist, which is the Code 404. The
comment of upload failed is the reason that om content get shows. It is usually only
downloading failed: ingest reported status=error, so look in ingest_log for the detail. The
comment has more detail only when ew-vodingest stops without a status line, for example when it
exits with status 2 because of a flag in ingest_script that it does not accept, or when a signal
kills it. See Content state for these forms. The
ingest_log text is also in the retained ingest log file, see
Ingest Logs.
If the ingest_log says SMILToIngAsset failed: open : no such file or directory, the location
is not a SMIL file, for example a bare .mp4 URL. It fails like this whether or not that file
exists.
Known limitation: if the uploader is stopped while it copies the file to a storage system, for
example during a restart or an upgrade, OM runs the upload again. The interrupted copy leaves a
partial file named .om-put-<hex> in the destination directory, next to the finished files. It can
be as large as the largest track of the asset. Deleting the content removes it.
Publishing Buffered Live Content
Buffered live content publishes the live buffer of a channel. The content_id must be the same
as the channel name, and the channel must exist. No storage system is needed for it.
om content live news-1 -t "News One live" -c news-1
The output is the new content. The state is N/A, because nothing runs behind buffered live
content, and playable is true. The buffered_live object has the channel:
{
"additional_state_info": null,
"buffered_live": {
"channel": "news-1"
},
"content_duration_ms": "N/A",
"content_id": "news-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/cg:default/__c/news-1/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/cg:default/__c/news-1/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/cg:default/__c/news-1/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": true,
"service": "HTTP",
"source": "buffered_live",
"state": "N/A",
"tag": [],
"title": "News One live"
}
etag: 5f1c2b3a-0000-4000-8000-000000000011
The URLs use the channel group of the channel (cg:default). The player URL is the address of the
repackager followed by one of the delivery_uris values, here hls:
http://repackager.example.invalid/__cl/cg:default/__c/news-1/__op/hls-default/__f/index.m3u8
See Delivery URIs.
Failures:
| Error | Cause |
|---|---|
om: bad-request: Bad request: Content ID (live-news) and channel name (news-1) must be the same | The content_id is not the channel name |
om: bad-request: Bad request: Channel does not exist: news-9 | The channel does not exist |
om: data-exists: Data already exists. | Content with that content_id exists |
Registering External Content
External content registers an asset that is already hosted somewhere else. OM stores a record for
it. It creates no storage entry, schedules no job and never touches any files. om has no
subcommand for it, so use the API:
curl -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "trailer-1",
"title": "Trailer",
"service": "HTTP",
"source": "external",
"external": {
"storage_name": "trailers/trailer-1",
"content_duration_ms": 90000
},
"tag": ["promo"]
}'
The answer is 201 Created. The important fields of the response:
{
"content_duration_ms": "90000",
"content_id": "trailer-1",
"external": {
"storage_name": "3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1"
},
"playable": false,
"source": "external",
"state": "N/A",
"tag": [
"promo"
]
}
om content get trailer-1 shows the item. The state is N/A, the tag follows the state, and the
external: line has the storage name. See content.
OM keeps a storage_name that contains an @ as it is. Otherwise it adds a random prefix
(<hex>@) as above. If you leave out the external object, the storage name is the content_id.
The delivery location comes from the part after the @ (here trailers/trailer-1). When the
stored name has no @, the location is the whole name. The content name in the delivery URL is
the full stored name, so the hls value in delivery_uris is:
/__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/hls-default/__f/index.m3u8
See Delivery URIs.
A repeated content_id, or a storage_name that is already used, gives 409 data-exists. To
change external content later, send PUT /api/2/content/<content_id> with title,
content_duration_ms, external or tag:
curl -X PUT $OM_API/api/2/content/trailer-1 \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Trailer (HD)", "tag": ["promo", "hd"]}'
om content update can change the title and the duration.
Listing and Filtering Content
List all content of your account:
om content list
+--------------+---------------+-----------+---------+------------+----------------------+----------------------+
| Content ID | Title | Service | State | Playable | Start | Stop |
|--------------+---------------+-----------+---------+------------+----------------------+----------------------|
| match-1 | Evening match | HTTP | pending | no | 2026-12-01T20:30:00Z | 2026-12-01T22:30:00Z |
| final-1 | The final | HTTP | pending | no | 2026-12-01T20:00:00Z | 2026-12-01T22:00:00Z |
| news-1 | News One live | HTTP | N/A | yes | - | - |
+--------------+---------------+-----------+---------+------------+----------------------+----------------------+
The same list as CSV:
om content list --csv
Content ID,Title,Service,State,Playable,Start,Stop
match-1,Evening match,HTTP,pending,no,2026-12-01T20:30:00Z,2026-12-01T22:30:00Z
final-1,The final,HTTP,pending,no,2026-12-01T20:00:00Z,2026-12-01T22:00:00Z
news-1,News One live,HTTP,N/A,yes,-,-
The Start and Stop columns hold the window of a recording, and - for other sources.
Playable is yes or no. om lists everything. To filter, call the API with query
parameters:
| Parameter | Values |
|---|---|
source | recording, upload, buffered_live, external |
service | HTTP |
state | pending, ongoing, done, error |
title | A part of the title. Upper and lower case are the same |
limit | Page size, default 100, at most 1000 |
offset | Number of items to skip, default 0 |
# Recordings that have not started yet
curl -s -H "X-Account-API-Key: $API_KEY" \
"$OM_API/api/2/content?source=recording&state=pending" | grep -E '"(content_id|total)"'
# Titles that contain "news", second page of 50
curl -s -H "X-Account-API-Key: $API_KEY" \
"$OM_API/api/2/content?title=news&limit=50&offset=50" | grep -E '"(next|total)"'
"content_id": "match-1",
"content_id": "final-1",
"total": 2
"next": "/api/2/content?limit=50&offset=100&title=news",
"total": 230
The response has a content array and a total count. When more items remain it also has a
next link that keeps the filters. A value outside the allowed values gives 400 bad-repr, for
example invalid state filter, invalid source filter or invalid service filter. Only
source is case sensitive: state=PENDING and service=http work, but source=Recording gives
400.
Content that is deleted but not yet cleaned up is listed by GET /api/1/content-pending-deletes,
with the same paging.
Deleting Content
om content delete match-1
match-1 is deleted
om prints this line when the API has accepted the delete. The API itself answers 204 with an
empty body. What happens next depends on the source:
| Source | What happens |
|---|---|
recording | The item is marked deleted and delivery stops. A cleanup then cancels the recording if it is still pending or running, removes the files from every storage system that holds them, and removes the records |
upload | The same as for a recording, with a running upload cancelled |
buffered_live | The item is marked deleted and delivery stops. The cleanup runs. There are no files to remove |
external | The item is removed at once. No cleanup runs and no files are removed. It does not appear in the pending deletes list |
Until the cleanup has finished, a deleted recording, upload or buffered live item is listed by
GET /api/1/content-pending-deletes. With working storage the cleanup takes one or two seconds.
It leaves the empty hash directories (for example r/3/b/7) on every storage system.
Deleting a content_id that does not exist prints no is deleted line. The error goes to standard
error, and the exit status is 1:
om content delete no-such-content
om: missing-resource: No resource available at given URI.
One exception, a known limitation: a second DELETE of a recording or upload during its cleanup
(the first one or two seconds) answers 204 again, although GET already gives 404. om
then prints match-1 is deleted again.
When the Cleanup Does Not Finish
If the cleanup cannot finish, the item stays in the pending deletes list. Typical causes are a
storage base directory that does not exist or cannot be written on the node that runs
origin-scheduler, an FTP server that refuses the delete, and files that the services may not
remove (for example files that belong to root). OM retries by itself, at most 25 times, with a
delay that grows with every attempt (about 40 minutes after the seventh failure). There is no
command that retries at once.
origin-scheduler logs every failed attempt, with the reason in error. This is the log of a
recording of a channel in the group sports, which is stored on nas-1 and ftp-1. The base
directory of nas-1 is missing on the scheduler node:
journalctl -u origin-scheduler -o cat | grep '"reclaim: '
{"level":"warn","ts":"2026-11-11T06:48:18.687Z","msg":"reclaim: storage system cleanup failed","service":"origin-scheduler","storage_system":"nas-1","storage_name":"r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358","content_id":"40","error":"open /srv/origin: no such file or directory"}
{"level":"warn","ts":"2026-11-11T06:48:18.689Z","msg":"reclaim: job failed","service":"origin-scheduler","content_id":"40","account_id":"9","filename":"final-1","storage_name":"r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358","error":"reclaim: connect \"nas-1\": open /srv/origin: no such file or directory","retried":7,"max_retry":25,"will_retry":true}
Fix the cause, for example create the directory on the scheduler node. The next retry then removes
the files and the item leaves the list. A storage system that is no longer in the storage
configuration does not block the cleanup. The scheduler logs
reclaim: storage system is not configured; its files are left in place, the item is cleaned up
without that system, and its files stay where they are.
Setting the Origin Servers of a Cache Host
om-admin account create creates a distribution for the account, without origin servers. Use the
API to say which origin servers sit behind the cache host. Read the distribution to get its entity
tag, then replace it:
curl -i -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/distribution/example-account
HTTP/1.1 200 OK
Content-Type: application/json
Etag: "a1b2c3d4-0000-4000-8000-000000000001"
curl -X PUT $OM_API/api/1/distribution/example-account \
-H "X-Account-API-Key: $API_KEY" \
-H 'If-Match: "a1b2c3d4-0000-4000-8000-000000000001"' \
-H "Content-Type: application/json" \
-d '{"cache_host": "example-account", "origins": [{"host": "origin-1.example.invalid", "port": 8080}]}'
The cache_host is also the cache name of the distribution. The Request Router uses it to find the
account of a request, see the next section.
A distribution that has origin servers is no longer the
default distribution of its account. After this request
example-account has no default distribution, so om-admin account list -v shows an empty
domain= for it.
Serving the Content of an Account through the Request Router
The Request Router (RR) serves the streams to the players. It chooses the account of a request from
the HTTP Host header. It takes the host name from the header, without the port and without the
brackets of an IPv6 address, and looks for a distribution whose cache name is equal to it, as
written:
- If a distribution has that cache name, the RR serves the request for the account of that distribution. It uses the channels and content of that account.
- If no distribution has that cache name, the RR serves the request for the default account and
its default distribution. The default account is the account
that
om-admin account listmarks with*.
This is why a request with an unknown Host sees only the channels and content of the default
account. A channel or content item of another account is not found, although it exists.
The /__a/<account> part of a CCMI URL does not choose the account. OM never puts it in
delivery_uris, and the RR ignores it when it chooses the account. The API key does not choose the
account either.
Finding the Cache Name of an Account
List the distributions of the account with the key of the account. The v2 list calls the value
cache_name. The examples continue from the previous section, where the distribution of
example-account got one origin server:
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/distribution
Response: 200 OK.
{
"distributions": [
{
"cache_name": "example-account",
"storage_id": "0192f6a2-7c3e-7d52-9c1b-3f2a8e5d4c10",
"origins": [
{
"host": "origin-1.example.invalid",
"port": 8080
}
]
}
]
}
The v1 body of a distribution calls the same value cache_host:
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/distribution/example-account
Response: 200 OK.
{
"cache_host": "example-account",
"origins": [
{
"host": "origin-1.example.invalid",
"port": 8080
}
]
}
When om-admin account create is run without a cachehost, the distribution gets the account
name as its cache name, and it shows "origins": [] because it has no origin servers. An account
can have more than one distribution (see
Create a distribution), and each cache name
selects the account.
om-admin account list -v shows the cache name of the
default distribution of the account as domain=. It does not
show other distributions of the account. It is empty when the account has no default distribution:
in the example above example-account has only a distribution with an origin server. The command
also prints the API keys, see the warning in
Creating an Account and an Operator.
Setting the Cache Name
A cache name is unique in the whole deployment, also across accounts. Name it when you create the
account. The second argument of om-admin account create is the cache name:
om-admin account create news-team news.example.invalid
created account "news-team" (api-key 5e7a1c93-2d48-4b60-9f17-8a3c6e0d2b45)
If a distribution already has that cache name, the account is created without a distribution and
om-admin prints a warning. Requests for that host name keep going to the account that owns the
name:
om-admin account create sports-team news.example.invalid
warning: there was already a distribution called news.example.invalid; use 'om-admin account set-domain' to fix
created account "sports-team" (api-key 0b9d4f61-8c27-4e35-a1d6-7f3e2c5b9a48)
To change the cache name of an existing account, replace its distribution with
PUT /api/1/distribution/{cache_name}. The path has the current cache name and the body has the
new one in cache_host. The request replaces the whole distribution, so send the origin servers
again. If you leave origins out, the distribution ends with none. If-Match is optional. If you
send it, it must be the current entity tag, the ETag header of a GET of the distribution, as in
the previous section:
curl -i -X PUT $OM_API/api/1/distribution/example-account \
-H "X-Account-API-Key: $API_KEY" \
-H 'If-Match: "b2c3d4e5-0000-4000-8000-000000000002"' \
-H "Content-Type: application/json" \
-d '{"cache_host": "media.example.invalid", "origins": [{"host": "origin-1.example.invalid", "port": 8080}]}'
Response: 200 OK with the new entity tag in ETag.
HTTP/1.1 200 OK
Content-Type: application/json
Etag: "e7f81a2b-0000-4000-8000-000000000003"
{
"cache_host": "media.example.invalid",
"origins": [
{
"host": "origin-1.example.invalid",
"port": 8080
}
]
}
After this change media.example.invalid selects the account, and example-account no longer
does. If another distribution already has the new name, the answer is 409:
{
"tag": "data-exists",
"message": "Data already exists.",
"details": null
}
om-admin account set-domain <name> <domain> renames the
default distribution of an account in one command, and leaves
its origin servers and the other distributions of the account as they are. There is no separate
domain setting: the domain= value in account list -v is this cache name.
om-admin account set-domain news-team news-2.example.invalid
set domain of "news-team" to "news-2.example.invalid"
The command does not rename a distribution that has origin servers. Use the PUT above for that.
If the account has no default distribution, set-domain creates one, without origin servers. For
example, example-account has only the distribution media.example.invalid, which has an origin
server. After this command the account has two distributions, and both cache names select it:
om-admin account set-domain example-account cache-2.example.invalid
om-admin account list -v
set domain of "example-account" to "cache-2.example.invalid"
example-account api-key=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77 domain=cache-2.example.invalid
If another distribution already has the name, the command exits with status 1 and prints:
om-admin: account: already exists
If someone changes the distribution while the command runs, it also exits with status 1. Run it again:
om-admin: account: distribution was changed by someone else; retry
The RR keeps its own cache, also of names that it did not find. After any of these changes, a new or changed cache name may take a short time before the RR sees it. How long this takes was not measured.
Testing with curl
Send a request to the RR and set the Host header to the cache name. The path is the live path of
a channel, the same form that buffered live content has in delivery_uris. Here
rr.example.invalid stands for the address of your RR, with the port if it is not 80, and
news-1 is the channel from Creating a Channel:
curl -H "Host: media.example.invalid" \
"http://rr.example.invalid/__cl/cg:default/__c/news-1/__op/hls-default/__f/index.m3u8"
An HLS playlist starts with the line #EXTM3U. It means that the RR found the channel in the
account that owns the cache name. Repeat the request with a host name that no distribution uses,
for example -H "Host: unknown.example.invalid". The RR then looks in the default account, and a
channel of another account is not found there.
Testing with a Browser Player
A browser, and a player that runs in it such as the DASH-IF reference player (dash.js), cannot set
the Host header. Host is a forbidden header name for scripts. So the host name in the manifest
URL must be the cache name, and the cache name must lead to the RR. Use one of these:
A hosts file entry. On the machine that runs the browser, add a line that points the cache name to the RR, here at the example address
192.0.2.10, in/etc/hosts:192.0.2.10 media.example.invalidThen use the cache name in the manifest URL. A port in the URL is ignored when the RR looks up the cache name, so
http://media.example.invalid:8080/...works the same way:http://media.example.invalid/__cl/cg:default/__c/news-1/__op/dash-default/__f/manifest.mpdA DNS entry. Give the distribution a real DNS name as its cache name, and let that name point to the RR in DNS. Use the same manifest URL form with that name.
A reverse proxy. Put a proxy in front of the RR that sets the
Hostheader to the cache name (in nginx,proxy_set_header Host media.example.invalid;). Give the player the address of the proxy.
A player page that is loaded from another origin than the manifest URL needs CORS headers in the answers of the RR. This guide did not test that. If the browser reports a CORS error, check the headers of the RR first.
Changing the Default Account
om-admin account set-default <name> changes the default account for the whole system, not for
one distribution:
om-admin account set-default news-team
om-admin account list
default account is now "news-team"
example-account
* news-team
sports-team
Warning: after this change the RR serves every request whose Host matches no cache name for
news-team. Those requests see the channels and content of news-team and no longer those of the
old default account. Check which clients use a host name that no distribution has before you
change it.
Inspecting the Storage of a Content Item
Use om-admin to see where a recording or an upload is stored.
om-admin content show example-account/clip-1
om-admin content storage-name example-account/clip-1
om-admin storage inspect example-account/clip-1
example-account/clip-1 (Trailer clip)
v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05
storage: v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05
storage systems: nas-1, ftp-1
origin servers: origin-1, origin-2
required capability: http
required role: upload
cache: origin-1,origin-2
content show prints account/file (title), or file (title) for the default account (add
-n to always print the account). content storage-name prints the internal storage name.
To go the other way, from a storage name to the content, run
om-admin content external-name <storage_name>.
storage inspect shows the storage systems and origin servers that were assigned when the content
was created. It does not show which copies exist: it lists both systems for an upload whose copy
failed, or that wrote nothing. The order of the origin servers can differ from one content item
to the next.
If the origin servers are wrong, assign the storage systems again, or repair the content across
its storage systems. Run storage repair as the user edgeware, the account that owns the storage
files:
om-admin storage assign example-account/clip-1 nas-1 ftp-1
runuser -u edgeware -- om-admin storage repair example-account/clip-1
assigned "example-account/clip-1" to origin servers: origin-1, origin-2
repaired content "example-account/clip-1"
runuser -u edgeware -- runs the same om-admin program under another user. The base directory
of every local storage system must exist on this node and be writable by edgeware.
Known limitation: do not run om-admin storage repair as root. The command writes the files
with the identity of the user that runs it. Run as root, it creates the repaired copy, and any new
hash directory, owned by root (tested). The services run as edgeware, so a later delete of that
content fails with permission denied and stays in the pending deletes list (see
When the Cleanup Does Not Finish). The root-owned directory
also blocks later content that hashes to it. To recover, remove the root-owned files and
directories by hand, or change their owner to edgeware.
Neither command works on external content, archived recordings or content of the kind channel.
Known limitation: buffered live content has no storage, but assign and repair do not
refuse it. They print success and create a storage entry for it. Do not run them on buffered live
content.
Scenarios
From an empty system to a finished recording
This scenario assumes that OM is installed and that catchup_buffer_managers (with a
buffer_duration) and storage are configured, as in the
Complete Configuration Example.
Create an account on a manager node and note the key:
om-admin account create example-accountcreated account "example-account" (api-key 3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77)Tell
omwhere the API is and which key to use:export ACCT_CLI_HOST=om-1.example.invalid:9090 export ACCT_CLI_APIKEY=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77Create the channel. The group
sportsmust be served by a Catch-up Buffer Manager:om channel add sports-1 -t "Sports One" -g sportsSchedule a recording for tomorrow evening:
om content record final-1 -t "The final" -c sports-1 \ -b 2026-12-01T20:00:00Z -e 2026-12-01T22:00:00ZCheck the state. It is
pendinguntil the recording is due. The last line is the entity tag:om content get final-1title: The final service: HTTP state: pending playable: no duration: 7200 seconds created: 2026-11-30T09:00:00Z modified: 2026-11-30T09:00:00Z recording: channel: sports-1 start time: 2026-12-01T20:00:00Z stop time: 2026-12-01T22:00:00Z delivery URIs: dash: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/dash-default/__f/manifest.mpd hls: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/hls-default/__f/index.m3u8 mss: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/mss-default/__f/Manifest etag: 5f1c2b3a-0000-4000-8000-000000000001The match is delayed by 30 minutes. Move the recording while it is still
pending, and more thanscheduler_window_sizeseconds before it is due:om content reschedule final-1 -E 5f1c2b3a-0000-4000-8000-000000000001 \ -b 2026-12-01T20:30:00Z -e 2026-12-01T22:30:00ZWhen the recording has run, the state is
done, the recording is playable, andmodified:shows when the recording job finished. The window is the new one:om content get final-1title: The final service: HTTP state: done playable: yes duration: 7200 seconds created: 2026-11-30T09:00:00Z modified: 2026-12-01T22:36:08Z recording: channel: sports-1 start time: 2026-12-01T20:30:00Z stop time: 2026-12-01T22:30:00Z delivery URIs: dash: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/dash-default/__f/manifest.mpd hls: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/hls-default/__f/index.m3u8 mss: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/mss-default/__f/Manifest etag: 8c3e1f60-9b2d-4a17-b5e4-3d6f0a1c7e92Read the delivery URLs from the
delivery URIs:lines of the same output. The groupsportsis served by both Catch-up Buffer Managers, so the recording is onnas-1andftp-1. The player URL is the address of the repackager followed by one of the paths, herehls:om content get final-1 | grep '^ hls:'hls: /__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/hls-default/__f/index.m3u8http://repackager.example.invalid/__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/hls-default/__f/index.m3u8See Delivery URIs for the other protocols.
Delete the recording when you no longer need it. The item stops being served at once. Until the cleanup has removed the files (one or two seconds), it is still listed as a pending delete:
om content delete final-1 curl -s -H "X-Account-API-Key: $ACCT_CLI_APIKEY" \ http://$ACCT_CLI_HOST/api/1/content-pending-deletes | grep totalfinal-1 is deleted "total": 1When the cleanup is done,
totalis 0.
Uploading a file and publishing it
Create the upload. The location is a SMIL file, because it is an
httpsURL. The tagsportslimits the storage systems to those that have the tag, or have no tags:curl -X POST $OM_API/api/2/content \ -H "X-Account-API-Key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"content_id":"clip-2","title":"Sports clip","service":"HTTP","source":"upload", "tag":["sports"],"upload":{"location":"https://media.example.invalid/vod/clip-2.smil"}}'Wait for the upload to finish. Check the state until it is
done. The tag shows in parentheses after the state. The last line of the full output is the entity tag:om content get clip-2title: Sports clip service: HTTP state: ongoing (tag:sports) playable: no duration: N/A seconds created: 2026-11-02T10:00:00Z modified: 2026-11-02T10:00:00Z upload: location: https://media.example.invalid/vod/clip-2.smil delivery URIs: dash: /__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/dash-default/__f/manifest.mpd hls: /__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/hls-default/__f/index.m3u8 mss: /__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/mss-default/__f/Manifest etag: 5f1c2b3a-0000-4000-8000-000000000021When the state is
done, the file is on the storage systems and thedelivery URIs:lines of the output hold the delivery paths for MSS, HLS and DASH. They are paths without a host name:om content get clip-2 | grep -E '^(state| hls):'state: done (tag:sports) hls: /__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/hls-default/__f/index.m3u8Give the player the address of the repackager, followed by the
hlsvalue:http://repackager.example.invalid/__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/hls-default/__f/index.m3u8See Delivery URIs for what each part of the URL means.
Registering and updating hosted content
Register an asset that is already on a storage system, with a title and a duration:
curl -X POST $OM_API/api/2/content \ -H "X-Account-API-Key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"content_id":"film-0042","title":"Film 42","service":"HTTP","source":"external", "external":{"storage_name":"ab12@archive-store","content_duration_ms":5400000}}'Correct the title later.
If-Matchis optional, so this request needs no entity tag:curl -X PUT $OM_API/api/2/content/film-0042 \ -H "X-Account-API-Key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{"title":"Film 42 (restored)"}'Remove the record. OM never removes the files of external content:
curl -i -X DELETE -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/content/film-0042HTTP/1.1 204 No Content
Troubleshooting
401 Unauthorized
The API answers 401 with {"tag":"unauthorized", ...}. The message tells you why:
| Message | Cause |
|---|---|
Bad or missing API key. | The request has neither an X-Account-API-Key nor an X-Operator-API-Key header. With om, check -k or ACCT_CLI_APIKEY |
Account API key is invalid | The account key is not known. A key that was replaced stops working at once |
Missing account name when authenticating with Operator API key | An operator key was sent without the X-Account header |
Operator API key is invalid | The operator key is not known |
Account name is invalid | The account in X-Account does not exist |
If an account key is present but wrong, the request fails even if a valid operator key is sent
too. om itself stops with api key required when it has no key at all. Show the account keys
with om-admin account list -v.
404 for a Missing Channel
om channel get <id> and om channel delete <id> return missing-resource (404) when your
account has no channel with that id. Check that:
- The id is spelled as it was created. Run
om channel listto see the ids. - You use the key of the account that owns the channel. A channel that belongs to another account is reported as missing.
Creating a recording or buffered live item for a channel that does not exist gives
400 bad-request with Channel does not exist: <channel>, not 404. om refuses channel ids
that contain a dot before it sends anything, so such a channel cannot be managed with
om channel get or om channel delete.
A Recording Stays in pending
pending covers a recording that is waiting, so a recording that is not due yet is expected to be
pending. Check these causes:
- It is not due. With a catch-up buffer a recording is scheduled at its stop time plus
recorder.buffered_schedule_delay(300 seconds by default), so it stayspendingfor a few minutes after the stop time. The scheduler picks it upscheduler.scheduler_window_sizeseconds (180 by default) before that time. Without a catch-up buffer it is queuedscheduler_window_sizeseconds before the start time, and then ends inerror(see Scheduling a Recording). The scheduler looks for recordings every 30 seconds. origin-scheduleris not running. Runom-deploy service status.- The scheduler does not find its node in the topology. It then logs
node is not a member of the scheduler set; will own no workand starts nothing. List the node inroles.scheduler.hostsby one of its IP addresses, or by exactly the output ofhostnameon that node. The comparison withhostnameis case sensitive, and a fully qualified name does not match a shorthostname. A host that is only listed in another role, for exampleetcd, does not count. - The configuration of the Catch-up Buffer Managers is not valid. The scheduler logs two
warnings every 30 seconds,
skipping recording poll: invalid catchup buffer manager configandskipping recording dispatch: invalid catchup buffer manager config. The rule that is broken is in theerrorfield (see the Configuration page). - No Catch-up Buffer Manager is configured at all. The scheduler logs nothing at the
infolevel, so the recording stayspendingwithout a message. Atlog_level: debugit logsno catchup buffer managers configured; skipping dispatch tick. origin-recorderis not running, or all recorders are busy. A recorder runsrecorder.number_of_instancesrecording copies at the same time, and the others wait. A recording has one copy for each storage system, up torecorder.replication_factor. Withreplication_factor: 2, the 8 copies ofnumber_of_instances: 8are 4 recordings.- Redis cannot be reached. The scheduler logs
redis unavailable; skipping dispatch tick.
A recording that is due but has fewer Catch-up Buffer Managers for its channel group than
recorder.minimum_replication_factor (for example because the configuration changed after you
created it) is not left in pending. It ends in error. The scheduler logs
recording dispatch failed, and its error field is
could not meet minimum replication factor: got 1, need 2. A recording that fails later (a
copy fails, or scheduler.recording_job_timeout_seconds passes) is logged as
recording promotion left fewer than minimum replication; finalizing error instead. See
When a Recording Ends in error.
Check the logs of the scheduler and the recorder on the nodes where they run:
journalctl -u origin-scheduler -n 50 -o cat
journalctl -u origin-recorder -n 50 -o cat
An Upload Stays in pending
origin-scheduleris not running, or it does not find its node in the topology (see above). It starts the pending uploads.origin-uploaderis not running. It refuses to start when no storage systems are configured:uploader: no storage systems configuredCheck that the
storagesection is set, and that the service is active.All uploaders are busy. An uploader runs
uploader.number_of_instancesuploads at the same time.
A Request Fails with 503
503 service-unavailable-error with no storage available for the requested storage systems
means that OM found no storage and origin server for a new recording or upload. For a recording,
check that a Catch-up Buffer Manager serves the channel group. If no Catch-up Buffer Manager is
configured at all, a recording with a start time in the past gets
400 ... not allowed earlier than 5 seconds in the future instead. For an upload, check that
uploader.storages has a storage system that matches the tags, and that each name in
uploader.storages is defined in storage: OM does not assign a name that is missing there, so
an upload that has no other system gets the 503. In both cases, an origin server with the
capability http must deliver from that storage system. See the
Configuration page.
The Request Router Does Not Find a Channel or Content Item
The channel or content item exists in the Account API, but a request through the Request Router (RR) finds nothing, or it finds the content of another account. Check these causes:
- The host name is not a cache name of the account. The RR then serves the request for the
default account. Read the cache names with
GET /api/2/distributionand use one of them as the host name of the URL, or as theHostheader. See Finding the Cache Name of an Account. - The cache name is written differently. The RR compares the host name as it is written, after it removes the port. Write the name in the URL exactly as it is in the distribution.
- The cache name is new or was changed a moment ago. The RR keeps its own cache, also of names that it did not find. It may take a short time before it sees the change. This was not measured.
- A browser player cannot reach the RR under the cache name. A browser cannot set the
Hostheader. Make the cache name resolve to the RR, see Testing with a Browser Player.
6 - API Reference
Overview
Origin Manager (OM) has one HTTP management API, the Account API. It manages the resources of one account: channels, content (recordings, uploads, buffered live and external assets) and distributions.
- Port:
9090by default, set withmanager.account_api_port - Content type:
application/jsonfor request and response bodies - Authentication: an API key in a request header, see Authentication
- Machine-readable description: the OpenAPI document is served at
/openapi.yaml. It is the only route that does not need an API key.
The examples on this page use three shell variables. The keys are throwaway examples. The account
key comes from om-admin account create, and the operator key from om-admin operator create,
see Creating an Account and an Operator:
export OM_API=http://om-1.example.invalid:9090
export API_KEY=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77
export OPERATOR_KEY=7d1e4b92-0a6c-4f35-9e18-5c2a8d3b6f01
The samples come from the setup of the
Complete Configuration Example, as on
the How-To page. There nas-1 (tagged sports) and ftp-1 are the
storage systems, cbm-1 serves the channel groups sports and news, and cbm-2 serves every
group. A channel in the group default, such as news-1, is therefore stored on ftp-1 only.
The storage names in your delivery URLs come from your own configuration.
curl $OM_API/openapi.yaml | head -3
openapi: 3.0.3
info:
title: Origin Manager — Account API
JSON responses use two-space indentation. The order of the keys in an object is not significant.
Time stamps are in UTC. Header names are not case sensitive, and the curl -i examples show only
the headers that matter.
Routes
| Resource | Routes |
|---|---|
| Channels | POST /api/2/channel, GET /api/2/channel, GET /api/2/channel/{channel_id}, DELETE /api/2/channel/{channel_id} |
| Content | POST /api/2/content, GET /api/2/content, GET /api/2/content/{content_id}, PUT /api/2/content/{content_id}, DELETE /api/2/content/{content_id} |
| Content pending deletes | GET /api/1/content-pending-deletes |
| Distributions | POST /api/1/distribution, GET /api/1/distribution, GET /api/1/distribution/{cache_name}, PUT /api/1/distribution/{cache_name}, DELETE /api/1/distribution/{cache_name}, GET /api/2/distribution |
| API description | GET /openapi.yaml (no authentication) |
Only these routes are served. OM covers HTTP and WebTV content, so the older routes for
recordings and uploads under /api/1/ do not exist. A request with a valid key to a path or
method that is not served gets a plain text answer instead of the JSON error body:
curl -i -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/recording
HTTP/1.1 404 Not Found
Content-Type: text/plain; charset=utf-8
404 page not found
A wrong method on a served path gets 405 Method Not Allowed, also as plain text.
Without a valid key the key check runs first. Every request that has no key, also one for a path
or method that is not served, gets the JSON 401 Bad or missing API key. Only GET /openapi.yaml
is exempt. DELETE /openapi.yaml also gets 401.
Authentication
Every request except GET /openapi.yaml must carry credentials in one of two forms.
Account API key. Send the key in the X-Account-API-Key header. The request acts on the
account that owns the key.
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/channel
Operator API key. Send the key in X-Operator-API-Key together with the name of the target
account in X-Account. The request acts on the account named in X-Account.
curl -H "X-Operator-API-Key: $OPERATOR_KEY" -H "X-Account: example-account" \
$OM_API/api/2/channel
Keys are checked against the database on every request, so a key that you rotate or delete stops working at once. The rules are:
- If
X-Account-API-Keyis present it is used andX-Operator-API-Keyis ignored. A wrong account key gives401, even when a valid operator key is sent too. A header with an empty value counts as absent. - If only
X-Operator-API-Keyis present,X-Accountis required. The account name inX-Accountis matched without regard to case:X-Account: EXAMPLE-ACCOUNTfindsexample-account. - If neither key is present, the request gets
401.
An authentication failure returns 401 Unauthorized. The message tells you why:
curl -i $OM_API/api/2/channel
HTTP/1.1 401 Unauthorized
Content-Type: application/json
{
"tag": "unauthorized",
"message": "Bad or missing API key.",
"details": null
}
| Situation | Message |
|---|---|
| No key header at all | Bad or missing API key. |
| Account key not found | Account API key is invalid |
Operator key used without X-Account | Missing account name when authenticating with Operator API key |
| Operator key not found | Operator API key is invalid |
X-Account names an unknown account | Account name is invalid |
If OM cannot reach its database while it checks a key, the answer is 500 with the tag
internal-server-error and the message Internal server error, so that an outage is not mistaken
for a wrong key. The text of a 500 message depends on where the failure happens, see
Error Handling.
An account sees and changes only its own resources. A resource that belongs to another account
is reported as 404. The one exception is the uniqueness of channel ids: a channel_id is unique
in the whole deployment, so creating a channel with an id that another account uses fails with
409 data-exists, while a GET for that id answers 404.
Channels
Channels describe the live sources that recordings and buffered live content refer to. OM
accepts only the channel type mbr_ts_multicast.
Create a channel
POST /api/2/channel
Fields:
channel_id(string, required): unique identifier of the channel in the whole deployment, not only in the account. If another account owns the id, the request fails with409 data-exists. It must not be empty, start with__, contain a space or/, or be.or... Other ids with dots, such astrailer.mp4, are valid.title(string, required): display title. An empty title is accepted for a channel.channel_type(string, required): must bembr_ts_multicast.mbr_ts_multicast(object, required): data for the channel type. The key is named after the value ofchannel_type. OM stores the object as it is and does not use its content: the Catch-up Buffer Manager finds the channel by its name, and recordings and buffered live content work with{}. Use{}.channel_group(string, optional): channel group. Defaultdefault. The group decides which Catch-up Buffer Managers record the channel. An empty string""is stored as an empty group, not replaced bydefault.egress_encryption(object, optional): DRM settings.drm_content_id_source:api_defined(needsdrm_content_id) orauto_generated(OM generates the id). Without a source, adrm_content_idthat you send is stored asapi_defined. Content behaves differently, see Create content.drm_content_id: 1 to 128 characters.
Request:
curl -i -X POST $OM_API/api/2/channel \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel_id":"news-1","title":"News One","channel_type":"mbr_ts_multicast","mbr_ts_multicast":{}}'
Response: 201 Created, with the path of the new channel in the Location header.
HTTP/1.1 201 Created
Content-Type: application/json
Location: /api/2/channel/news-1
{
"channel_group": "default",
"channel_id": "news-1",
"channel_type": "mbr_ts_multicast",
"creation_time": "2026-11-02T10:00:00Z",
"mbr_ts_multicast": {},
"modification_time": "2026-11-02T10:00:00Z",
"title": "News One"
}
Common errors:
The
channel_idalready exists, in your account or in another one:409 Conflict. If you cannot see the channel (GETgives404), it belongs to another account.{ "tag": "data-exists", "message": "Data already exists.", "details": null }The
channel_idis not valid, herenews/1:400 Bad Request.{ "tag": "bad-repr", "message": "Bad resource representation (syntax error): \"/\" not allowed in ID", "details": null }The
channel_idis.or..:400 Bad Request.{ "tag": "bad-repr", "message": "Bad resource representation (syntax error): ID must not be \".\"", "details": null }
These are the other messages of a channel create. All are 400 Bad Request with the tag
bad-repr. Each message starts with Bad resource representation (syntax error):, a space and
the text in this table:
| Cause | message ends with |
|---|---|
channel_id is empty | ID must not be empty |
channel_id starts with __ | "^__" not allowed in ID |
channel_id contains a space | " " not allowed in ID |
channel_id is missing | channel_id is required |
title is missing | title is required |
title is not a string | title must be a string |
channel_type is missing | channel_type is required |
channel_type is another type | channel_type must be mbr_ts_multicast |
The mbr_ts_multicast object is missing | field 'mbr_ts_multicast' is missing |
drm_content_id_source is not api_defined or auto_generated | invalid drm_content_id_source |
drm_content_id is empty | drm_content_id must be at least 1 character |
drm_content_id is longer than 128 characters | drm_content_id must be at most 128 characters |
api_defined without a drm_content_id | drm_content_id_source is api_defined, but no drm_content_id was specified. |
| The body is not valid JSON | malformed JSON body |
A channel with DRM settings:
curl -X POST $OM_API/api/2/channel \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"channel_id":"drm-1","title":"DRM One","channel_type":"mbr_ts_multicast",
"mbr_ts_multicast":{},"channel_group":"sports",
"egress_encryption":{"drm_content_id_source":"api_defined","drm_content_id":"drm-key-1"}}'
{
"channel_group": "sports",
"channel_id": "drm-1",
"channel_type": "mbr_ts_multicast",
"creation_time": "2026-11-02T10:00:00Z",
"egress_encryption": {
"drm_content_id": "drm-key-1",
"drm_content_id_source": "api_defined"
},
"mbr_ts_multicast": {},
"modification_time": "2026-11-02T10:00:00Z",
"title": "DRM One"
}
egress_encryption appears in responses only when the channel has a DRM content id.
Get a channel
GET /api/2/channel/{channel_id}
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/channel/news-1
Response: 200 OK with the channel object shown above. For a channel that does not exist, the
answer is 404 Not Found:
{
"tag": "missing-resource",
"message": "No resource available at given URI.",
"details": null
}
List channels
GET /api/2/channel
GET /api/2/channel?cursor=<cursor>
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/channel
Channels are returned 100 at a time, in a stable order. There is no total. When more channels
remain, the response has a next value with the path and query of the next page, for example
"next": "/api/2/channel?cursor=42". On the last page next is missing. See
Pagination. The list cannot be filtered.
{
"channels": [
{
"channel_group": "default",
"channel_id": "news-1",
"channel_type": "mbr_ts_multicast",
"creation_time": "2026-11-02T10:00:00Z",
"mbr_ts_multicast": {},
"modification_time": "2026-11-02T10:00:00Z",
"title": "News One"
}
]
}
Delete a channel
DELETE /api/2/channel/{channel_id}
curl -i -X DELETE -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/channel/news-1
HTTP/1.1 204 No Content
Deleting a channel that does not exist gives the 404 shown above.
A channel can be deleted while buffered live content with the same name still exists. The delete
works (204), and that content then answers get and update with
400 Bad request: Channel "<id>" does not exist, see
When no delivery URIs are returned. Delete the buffered
live content first.
Content
A content item is a playable asset. Its source decides how it is produced:
| Source | Meaning |
|---|---|
recording | A scheduled recording of a channel over a time window |
upload | A file that OM fetches from a URL and stores |
buffered_live | The live buffer of a channel, addressed by the channel name |
external | An asset that is already hosted elsewhere. OM only registers it |
Only the service HTTP is accepted.
Create content
POST /api/2/content
Fields that are common to all sources:
content_id(string, required): unique identifier of the content in the account. It is used as a file name. ASCII only. It must not be empty, start with__, contain a space or/, or be.or... Other ids with dots, such astrailer.mp4, are valid.title(string, required): display title.service(string, required):HTTP.source(string, required):recording,upload,buffered_liveorexternal.content_duration_ms(integer, optional): duration in milliseconds. For recordings OM replaces it with the length of the recording window.tag(array of strings, optional): tags. Spaces around a tag are removed and empty tags are dropped. Tags of an upload decide which storage systems are used. A tag with a comma is split into two tags for recordings, uploads and buffered live content:["x,y"]becomes["x","y"]. Forexternalcontent a tag must not contain,or;, see External.ad_marker_detection(object, optional):{"enabled": true}. Not used forexternalcontent.egress_encryption(object, optional): DRM settings, as for channels. Without adrm_content_id_sourceit isauto_generated, and adrm_content_idthat you send is dropped and replaced by a generated one (a channel keeps it asapi_defined). Send"drm_content_id_source": "api_defined"with yourdrm_content_idto keep it. Forrecordingandbuffered_livecontent the source can also beinherited_from_channel. The id is then taken from the channel, and the request fails if the channel has none.
The response for every source is 201 Created with the content (see
Content representation), the entity tag in the ETag header and the
path of the new item in the Location header.
These errors apply to every source. They are 400 Bad Request. The tag is bad-repr, and the
message starts with Bad resource representation (syntax error):, a space and the text in this
table, unless the table says otherwise:
| Cause | message ends with |
|---|---|
content_id, title, service or source is missing | <field> is required |
content_id is empty, starts with __, or contains a space or / | ID must not be empty, "^__" not allowed in ID, " " not allowed in ID or "/" not allowed in ID |
content_id is . or .. | ID must not be "." (or "..") |
content_id is not ASCII | Only ASCII characters allowed in "content_id" |
service is not HTTP (the check is case sensitive) | invalid service |
source is not one of the four | invalid source |
title is empty or not a string | title must be a non-empty string |
tag is not an array of strings | invalid tag |
ad_marker_detection is not valid | invalid ad_marker_detection |
drm_content_id_source is api_defined without an id | drm_content_id missing |
inherited_from_channel for an upload or external content | drm_content_id_source=inherited_from_channel is only valid for recordings and buffered live |
inherited_from_channel, and the channel has no DRM content id (tag bad-request, prefix Bad request:) | Cannot use inherited_from_channel, because the channel has no "drm_content_id" |
| The body is not valid JSON | malformed JSON body |
Recording
Schedules a recording of a channel.
curl -i -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "match-1",
"title": "Evening match",
"service": "HTTP",
"source": "recording",
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
}
}'
HTTP/1.1 201 Created
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000001"
Location: /api/2/content/match-1
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match"
}
The response has a recording object with the channel and the window of the recording, from the
recording job. See Content representation.
The rules for a recording:
recording.channel,recording.start_timeandrecording.stop_timeare required. A time is an ISO 8601 string:2026-12-01T20:00:00Z, with an offset (2026-12-01T21:00:00+01:00), without a zone (read as UTC) or a plain date.- The channel must exist in the account.
stop_timemust be later thanstart_time.- With a catch-up buffer (
buffer_durationis set),start_timemust not be earlier than the start of the buffer. Without a catch-up buffer,start_timemust be at least 5 seconds in the future. - OM chooses the storage from the Catch-up Buffer Managers that serve the channel group.
Known limitation: a recording without a catch-up buffer ends in error. The rules above are
enforced, and the request is accepted, but the recorder asks the Catch-up Buffer Manager for a
time range that has not been recorded yet. With the ew-vodingest delivered with this release, the
manager answers Code 416, every copy fails within a second and the state becomes error. Set the
same buffer_duration on every Catch-up Buffer Manager before you create recordings, see the
Configuration page.
The new item starts in state pending. Errors that are specific to recordings:
| Cause | Status | message |
|---|---|---|
| Channel does not exist | 400 | Bad request: Channel does not exist: nope |
stop_time is not after start_time | 400 | Bad request: Stop time must be greater than start time |
| Start is less than 5 seconds in the future (or in the past) and there is no catch-up buffer | 400 | Bad request: Scheduling HTTP recordings is not allowed earlier than 5 seconds in the future |
| Start is before the start of the catch-up buffer | 400 | Bad request: Cannot schedule HTTP recording to start before the start of the catch-up buffer. |
recording is missing | 400 | Bad resource representation (syntax error): recording is required |
channel is missing | 400 | Bad resource representation (syntax error): channel is required |
start_time is missing | 400 | Bad resource representation (syntax error): start_time is required |
stop_time is missing | 400 | Bad resource representation (syntax error): stop_time is required |
| A time cannot be read | 400 | Bad resource representation (syntax error): invalid start_time (or invalid stop_time) |
| No storage or origin server for the channel group | 503 | no storage available for the requested storage systems |
For example, a channel that does not exist:
{
"tag": "bad-request",
"message": "Bad request: Channel does not exist: nope",
"details": null
}
Upload
Creates an item whose media OM fetches from a URL. For http and https the URL must be the URL
of a SMIL file that lists the media files, see the rules below.
curl -i -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "promo-1",
"title": "Promo clip",
"service": "HTTP",
"source": "upload",
"tag": ["promo"],
"upload": {
"location": "https://media.example.invalid/vod/promo.smil"
}
}'
HTTP/1.1 201 Created
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000008"
Location: /api/2/content/promo-1
{
"additional_state_info": "tag:promo",
"additional_state_information": "tag:promo",
"content_duration_ms": "N/A",
"content_id": "promo-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"service": "HTTP",
"source": "upload",
"state": "pending",
"tag": [
"promo"
],
"title": "Promo clip",
"upload": {
"location": "https://media.example.invalid/vod/promo.smil"
}
}
upload.location(string, required): the URL that the uploader fetches the media from. The scheme must behttp,httpsorftp.- For
httpandhttpsthe location must be a SMIL file. The media files are fetched from the paths in the SMIL file. A bare media URL such asclip.mp4is accepted with201, but the upload then ends inerror. See the SMIL manifest page of ew-vodingest, and the How-To page for an example. - For
ftpthe input rules of ew-vodingest apply: it accepts a SMIL file or a directory, and not a bare MP4 file, see Input locations. A SMIL file over FTP was not tested with OM. - With another scheme (for example
fileors3) the request is accepted, but the upload ends inerror. Itscommentin the uploader log, and itsadditional_state_info, then isdownloading failed: uploader: source scheme "s3" is not allowed (allowed: http, https, ftp).
- For
- OM chooses the storage from
uploader.storages, taking thetagvalues into account. In the example setup the tagpromomatchesftp-1only, becausenas-1is taggedsports. - The response has an
uploadobject with thelocation. A password in the location is removed from the response: forftp://ingest:change-me@ftp.example.invalid/vod/promo.smilit showsftp://ingest@ftp.example.invalid/vod/promo.smil. A location that has no host name and contains@, such asuser:password@ftp.example.invalid/file.ts, is not shown at all:locationis an empty string. - When an upload ends in
error,additional_state_infogives a short reason, see Content state. The details are in theingest_logfield of theingest failedline in the log oforigin-uploader, see the How-To page.
Errors that are specific to uploads:
| Cause | Status | message |
|---|---|---|
upload is missing | 400 | Bad resource representation (syntax error): upload is required |
upload.location is missing | 400 | Bad resource representation (syntax error): location is required |
upload.location is empty or not a string | 400 | Bad resource representation (syntax error): location must be a non-empty string |
| No storage or origin server matches | 503 | no storage available for the requested storage systems |
{
"tag": "service-unavailable-error",
"message": "no storage available for the requested storage systems",
"details": null
}
Buffered live
Exposes the live buffer of a channel as content.
curl -i -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "news-1",
"title": "News One live",
"service": "HTTP",
"source": "buffered_live",
"buffered_live": { "channel": "news-1" }
}'
HTTP/1.1 201 Created
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000011"
Location: /api/2/content/news-1
{
"additional_state_info": null,
"buffered_live": {
"channel": "news-1"
},
"content_duration_ms": "N/A",
"content_id": "news-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/cg:default/__c/news-1/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/cg:default/__c/news-1/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/cg:default/__c/news-1/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": true,
"service": "HTTP",
"source": "buffered_live",
"state": "N/A",
"tag": [],
"title": "News One live"
}
buffered_live.channel(string, required): the channel. It must exist in the account.content_idmust be the same as the channel name.- No storage system is needed, so the request does not depend on the
storageconfiguration. The delivery URLs use the channel group (cg:default). - The content has the
stateN/Aand can be played at once. - The response has a
buffered_liveobject with thechannel.
Errors that are specific to buffered live content:
| Cause | Status | message |
|---|---|---|
content_id differs from the channel name | 400 | Bad request: Content ID (live-news) and channel name (news-1) must be the same |
| Channel does not exist | 400 | Bad request: Channel does not exist: nope |
buffered_live is missing | 400 | Bad resource representation (syntax error): buffered_live is required |
buffered_live.channel is missing | 400 | Bad resource representation (syntax error): channel is required |
External
Registers an asset that is already hosted on a storage system. OM only stores the record. It does not copy, fetch or check any file.
curl -i -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "trailer-1",
"title": "Trailer",
"service": "HTTP",
"source": "external",
"tag": ["promo"],
"external": {
"storage_name": "trailers/trailer-1",
"content_duration_ms": 90000
}
}'
HTTP/1.1 201 Created
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000013"
Location: /api/2/content/trailer-1
{
"additional_state_info": "tag:promo",
"additional_state_information": "tag:promo",
"content_duration_ms": "90000",
"content_id": "trailer-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/mss-default/__f/Manifest"
},
"external": {
"storage_name": "3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"service": "HTTP",
"source": "external",
"state": "N/A",
"tag": [
"promo"
],
"title": "Trailer"
}
- The
externalobject is optional. When it is present,external.storage_nameis required, with 1 to 255 characters. - If
storage_namecontains an@, OM keeps it as it is. Otherwise OM stores it as<32 hex characters>@<storage_name>, as in the example. The stored value is returned inexternal.storage_name. The stored name must not be longer than 255 characters. - If the
externalobject is left out, the storage name is thecontent_id. - The delivery URLs are built from the stored name. The location is the part after the first
@, up to the next@if there is one, or the whole name when there is no@. The content name is the whole stored name. With"storage_name": "ab12@archive-store"the HLS URL is/__cl/s:archive-store/__c/ab12@archive-store/__op/hls-default/__f/index.m3u8. See Delivery URIs. external.content_duration_mshas no minimum, and it wins over the top-levelcontent_duration_ms. A top-levelcontent_duration_mson external content must be at least 1. Durations below 1000 ms are shown as"N/A".- Tags must not contain
,or;. - OM creates no storage entry and does not check the storage, so this request never fails with
503. - The content has the
stateN/A.playableisfalsefor external content.
Errors that are specific to external content:
| Cause | Status | message |
|---|---|---|
The content_id or the stored storage_name is already used | 409 | Data already exists. |
storage_name is empty | 400 | Bad resource representation (syntax error): storage_name must not be empty |
storage_name is not a string | 400 | Bad resource representation (syntax error): invalid storage_name |
The stored storage_name is longer than 255 characters | 400 | Bad resource representation (syntax error): storage_name must be at most 255 characters |
external is present without storage_name | 400 | Bad resource representation (syntax error): storage_name is required |
A tag contains , or ; | 400 | Bad resource representation (syntax error): tag must not contain "," or ";" |
A top-level content_duration_ms below 1 | 400 | Bad resource representation (syntax error): content_duration_ms must be at least 1 |
Content representation
Create, get, update and list return the same object. The recording response shown above is an example. These are its fields:
content_id,title,serviceandsource: as given when the content was created.state(string): see Content state.playable(boolean):truewhen the content is available for playback. A new recording or upload becomes playable when it has finished. Buffered live content is playable at once. External content is never marked playable.content_duration_ms(string): the duration in milliseconds as a string, or"N/A"when it is unknown or not positive (for external content also when it is below 1000 ms).tag(array of strings): the tags, or an empty array.delivery_uris(object): the delivery URLsmss,hlsanddash. Each is a path without a host name that ends with the presentation file of its protocol. Present when the delivery location is known. For a recording or upload it is built from the storage systems. For buffered live content it is built from the channel group. See Delivery URIs.recording(object or string): only forrecordingcontent, from the recording job. It holds the channel and the window of the recording, and no other field:channel(the channel of the recording, as sent when it was created),start_timeandstop_time(UTC, for example2026-12-01T20:00:00Z).upload(object or string): only foruploadcontent, from the upload job. It holdslocation, the URL that the upload was created with. A password in the URL is removed:ftp://ingest:change-me@ftp.example.invalid/vod/promo.smilis shown asftp://ingest@ftp.example.invalid/vod/promo.smil. A location that has no host name and contains@, such asuser:password@ftp.example.invalid/file.ts, is withheld:locationis then an empty string. Nothing else is removed, so do not put a secret in the path or the query of a location. The host name is written in lower case.buffered_live(object): only forbuffered_livecontent. It holdschannel, the channel name, which is the same as thecontent_id.external(object): only forexternalcontent. It holdsstorage_name, the full stored name.egress_encryption(object): only when a DRM content id is set.ad_marker_detection(object): when it was set.additional_state_info(string ornull): always present. It holdstag:<tags>when the content has tags. Without tags, an upload shows the reason that the uploader stored with the upload job, see Content state.additional_state_informationhas the same text and is present only when it is not empty.creation_timeandmodification_time(string): time stamps in UTC. For a recording,modification_timeis the later of the last change of the content and the last change of the recording job, so it moves when the recording changes state.
The name of the source object is the value of source. A recording or upload item whose job
record does not exist has the string "N/A" instead of the object, and its state is "N/A" as
well. This is how the four source objects look, shown with their source:
{
"source": "recording",
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
}
}
{
"source": "upload",
"upload": {
"location": "https://media.example.invalid/vod/promo.smil"
}
}
{
"source": "buffered_live",
"buffered_live": {
"channel": "news-1"
}
}
{
"source": "external",
"external": {
"storage_name": "3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1"
}
}
An upload whose job record is missing looks like this. A recording is the same, with
"recording": "N/A":
{
"source": "upload",
"state": "N/A",
"upload": "N/A"
}
Delivery URIs
delivery_uris has one URL for each streaming protocol. A player plays the content with one of
them. Every URL ends with /__f/ and the presentation file of its protocol:
| Key | Protocol | Output profile | Presentation file |
|---|---|---|---|
mss | Microsoft Smooth Streaming | mss-default | Manifest |
hls | HLS | hls-default | index.m3u8 |
dash | MPEG-DASH | dash-default | manifest.mpd |
OM always writes the output profiles and presentation files in this table. There is no
configuration key to change them, and OM does not know the output profiles and presentations that
are configured in your repackager. To use another one, replace the __op or __f part of the URL.
The URL format is the CCMI URL format of AgileTV Origin. The location, the output profile and the
presentation must be defined in the configuration of the repackager. See CCMI URLs
for the whole format.
The URL is a path
The values have no scheme and no host name, because OM does not know the address of your repackager. The URL for a player is the address of the repackager followed by the value:
curl -s -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/content/promo-1 | grep '"hls"'
"hls": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/hls-default/__f/index.m3u8",
The three player URLs of promo-1, with the repackager at repackager.example.invalid:
http://repackager.example.invalid/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/hls-default/__f/index.m3u8
http://repackager.example.invalid/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/dash-default/__f/manifest.mpd
http://repackager.example.invalid/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/mss-default/__f/Manifest
The host name in the player URL (here repackager.example.invalid) must be a cache name of a
distribution of the account and must lead to the Request Router, which serves any other host name
for the default account. See
Serving the Content of an Account through the Request Router.
Parts of a URL
The parts always come in this order. This is the HLS URL of promo-1, split into its parts:
| Order | Part | In the example | Meaning |
|---|---|---|---|
| 1 | /__cl/<location> | /__cl/s:ftp-1 | Content location: s: and the storage systems that hold the file, or cg: and a channel group |
| 2 | /__c/<content name> | /__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48 | Name of the content on that location. It can contain / |
| 3 | /__op/<profile> | /__op/hls-default | Output profile of the protocol |
| 4 | /__dci/<drm content id> | none | Only for content with a DRM content id. Left out otherwise |
| 5 | /__f/<file> | /__f/index.m3u8 | Presentation file of the protocol. Always the last part |
The location and the content name depend on the source:
| Source | __cl | __c |
|---|---|---|
recording | s: and the storage systems of the recording, separated by commas | The storage name that OM generated. It starts with r/ |
upload | s: and the storage systems of the upload, separated by commas | The storage name that OM generated. It starts with v/ |
buffered_live | cg: and the channel group of the channel | The content_id, which is the channel name |
external | s: and the part of the stored name after the first @ (up to the next @, if any) | The whole stored name, as in external.storage_name |
The generated storage name is not the content_id. To see it, run
om-admin content storage-name <account>/<content_id>, see
Inspecting the Storage of a Content Item.
One storage system
A recording or an upload that is stored on ftp-1 has s:ftp-1. The
Recording and Upload examples above show the full responses. The HLS
URL of the upload is:
/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/hls-default/__f/index.m3u8
Several storage systems
When the content is on more than one storage system, __cl lists all of them after s:,
separated by commas. The names after s: are names of storage systems, not addresses. The
repackager does not read from an FTP server. It resolves the location with its own configuration,
for example from an origin server that delivers the files of ftp-1 over HTTP, see
Origin Servers.
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/content/clip-2
Response: 200 OK.
{
"additional_state_info": "tag:sports",
"additional_state_information": "tag:sports",
"content_duration_ms": "N/A",
"content_id": "clip-2",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"service": "HTTP",
"source": "upload",
"state": "pending",
"tag": [
"sports"
],
"title": "Sports clip",
"upload": {
"location": "https://media.example.invalid/vod/clip-2.smil"
}
}
The list of storage systems is built when the content is created, from the systems that match at
that time. Known limitation: it does not shrink when fewer copies are made. This happens when
recorder.replication_factor is lower than the number of sources, and when one destination of an
upload fails. A recording with replication_factor: 1 and two sources has one copy, but its URLs
and its origin servers still name both storage systems, so a request that is routed to the system
without a copy finds nothing. After a failed copy, om-admin storage repair <account>/<content>
brings the copy back. Run it as the user edgeware, see the
CLI page.
Buffered live content
Buffered live content uses the channel group of its channel, written as cg:<group>. The content
name is the content_id. The Buffered live example above shows the full response
for the group default. For a channel in the group sports, with the content_id sports-1, the
HLS URL is:
/__cl/cg:sports/__c/sports-1/__op/hls-default/__f/index.m3u8
External content
External content uses s: and the part of the stored name after the @. The content name is the
whole stored name. The External example above shows the full response. The HLS URL
for the stored name 3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1 is:
/__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/hls-default/__f/index.m3u8
DRM
When the content has a DRM content id, /__dci/<drm content id> comes after the output profile
and before /__f/. The id is the egress_encryption.drm_content_id of the same item, whether you
set it (api_defined), OM generated it (auto_generated) or it came from the channel
(inherited_from_channel).
curl -i -X POST $OM_API/api/2/content \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_id": "clip-3",
"title": "Protected clip",
"service": "HTTP",
"source": "upload",
"upload": {
"location": "https://media.example.invalid/vod/clip-3.smil"
},
"egress_encryption": {
"drm_content_id_source": "api_defined",
"drm_content_id": "drm-key-1"
}
}'
HTTP/1.1 201 Created
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000031"
Location: /api/2/content/clip-3
{
"additional_state_info": null,
"content_duration_ms": "N/A",
"content_id": "clip-3",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/dash-default/__dci/drm-key-1/__f/manifest.mpd",
"hls": "/__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/hls-default/__dci/drm-key-1/__f/index.m3u8",
"mss": "/__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/mss-default/__dci/drm-key-1/__f/Manifest"
},
"egress_encryption": {
"drm_content_id": "drm-key-1",
"drm_content_id_source": "api_defined"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"service": "HTTP",
"source": "upload",
"state": "pending",
"tag": [],
"title": "Protected clip",
"upload": {
"location": "https://media.example.invalid/vod/clip-3.smil"
}
}
The player URL of the HLS stream is:
http://repackager.example.invalid/__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/hls-default/__dci/drm-key-1/__f/index.m3u8
When no delivery URIs are returned
The object is left out of the response, or the request fails, in these cases:
| Situation | Result |
|---|---|
The service of the content is not HTTP. OM creates only HTTP content, but the database can hold content that was created elsewhere | 200, no delivery_uris |
| A recording or an upload whose storage entry no longer exists | 200, no delivery_uris |
| Looking up the storage systems (for buffered live content, the channel) fails for another reason, such as a database error | The whole request fails with 500 and the tag internal-server-error. This applies to get, update and list |
| Buffered live content whose channel was deleted. Get and update | 400 with the message Bad request: Channel "news-1" does not exist |
| Buffered live content whose channel was deleted. List | 200, and the item has URLs with an empty group, such as /__cl/cg:/__c/news-1/__op/hls-default/__f/index.m3u8. They do not play |
For the missing channel on a get:
{
"tag": "bad-request",
"message": "Bad request: Channel \"news-1\" does not exist",
"details": null
}
Content state
state is not stored with the content. It follows the recording or upload behind the content:
| State | Meaning |
|---|---|
pending | The recording is waiting to start or has been handed to a recorder, or the upload has not started |
ongoing | The recording is in progress, or the upload is being downloaded, checked or stored |
done | The recording has finished, or the upload has completed. A recording is done when at least recorder.minimum_replication_factor copies are complete, also when OM cancelled the other copies |
error | The recording failed, or the upload failed or was cancelled |
N/A | Nothing runs behind the content: buffered_live and external content. Also a recording or upload whose job record does not exist |
A recording gives no reason for error. additional_state_info stays null, or holds only
the tags. The reason is in the logs of the scheduler and the recorder. See
When a Recording Ends in error on the
How-To page, and the Logging page.
An upload gives a short reason. The uploader stores a comment with the upload job, and
additional_state_info and additional_state_information show it. For an upload that failed:
{
"additional_state_info": "downloading failed: ingest reported status=error",
"additional_state_information": "downloading failed: ingest reported status=error",
"state": "error",
"upload": {
"location": "https://media.example.invalid/vod/missing.smil"
}
}
The comment starts with one of these texts. The details of a failed ingest are only in the log
of origin-uploader, see Creating an Upload on the
How-To page.
| Comment | State | Meaning |
|---|---|---|
downloading failed: <detail> | error | The ingest failed. The <detail> is general, for example ingest reported status=error, or the reason that the source was refused |
downloading failed: ingest was killed by a signal | error | A signal that OM did not send ended the ingest program |
downloading failed: ingest exited <n>; last log line: <line> | error | The ingest program exited with a code other than 0 and 2, and its last log line has no status=ok or status=error. A password in a URL in <line> is replaced by xxxxx, also when the URL has no user name, as in https://:secret@host/file |
validation failed: <detail> | error | The ingest ran, but the result is not valid, for example staged output holds no files |
<n> of <m> destinations succeeded, minimum_replication_factor=<k> | error | Fewer storage systems than uploader.minimum_replication_factor got a copy |
uploading partially done, failed on destinations: <systems> | done | The upload finished, but the copy to the named storage systems failed. See Several storage systems |
For example, an ingest that was killed, and an ingest that stopped on the placeholder license of
ew-vodingest (see ew-vodingest License):
downloading failed: ingest was killed by a signal
downloading failed: ingest exited 1; last log line: 2026-11-11T05:58:32Z FTL license check error: empty expiry
Known limitation: an upload that has tags shows the tags (tag:promo) in
additional_state_info, and the reason is not shown. Use the log of origin-uploader for it.
A recording may go from pending straight to done, without ongoing. A recording whose time
window is already in the catch-up buffer is recorded in seconds, and the state follows only when
the scheduler checks the recordings (every scheduler.status_polling_interval seconds, 30 by
default).
Get content
GET /api/2/content/{content_id}
curl -i -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/content/match-1
Response: 200 OK with the content and its current entity tag in the ETag header. Use the tag
as If-Match when you update the content. For an unknown or deleted item the answer is
404 Not Found with the missing-resource error shown for channels. For buffered_live
content whose channel was deleted the answer is 400 Bad Request.
This is the answer for match-1 after the recording has finished. The state is done, the
item is playable, and modification_time is the time of the last change of the recording job,
which is later than the creation_time:
HTTP/1.1 200 OK
Content-Type: application/json
Etag: "9d4b7e12-5a3c-4c68-b0f1-2e8a6d1c3b57"
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-12-01T22:06:09Z",
"playable": true,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "done",
"tag": [],
"title": "Evening match"
}
List content
GET /api/2/content
GET /api/2/content?source=recording&state=pending&title=match&offset=0&limit=50
Query parameters:
| Parameter | Values |
|---|---|
source | recording, upload, buffered_live or external |
service | HTTP |
state | pending, ongoing, done or error. This is the content state, and N/A is not accepted |
title | A part of the title |
offset | Position of the first item. Default 0 |
limit | Items per page. Default 100. At most 1000. A larger value is lowered to 1000 |
Deleted items are not listed. The title, state and service filters ignore case (state=PENDING
and service=http work). source is case sensitive: source=Recording gives 400.
curl -H "X-Account-API-Key: $API_KEY" \
"$OM_API/api/2/content?source=recording&state=pending&limit=1"
{
"content": [
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match"
}
],
"next": "/api/2/content?limit=1&offset=1&source=recording&state=pending",
"total": 2
}
total is the number of items that match the filters, over all pages. next is present only
when more items remain, and it keeps the filters. See Pagination.
An invalid filter value gives 400 Bad Request:
curl -H "X-Account-API-Key: $API_KEY" "$OM_API/api/2/content?state=N/A"
{
"tag": "bad-repr",
"message": "Bad resource representation (syntax error): invalid state filter",
"details": null
}
The messages for the other filters are invalid source filter and invalid service filter.
Update content
PUT /api/2/content/{content_id}
Changes the title or the duration, changes the tags and storage name of external content, or reschedules a pending recording. The update uses the entity tag for optimistic locking.
Header:
If-Match(optional): the entity tag from an earlier get, create or update, as returned inETag(with or without the quotes). If it is not the current tag, the request fails with412 Precondition Failed.*matches any current tag, and several tags separated by commas match if one of them is current. WithoutIf-Match, the update is still refused with412if someone else changed the item after OM read it. A reschedule does not checkIf-Match, see Reschedule a pending recording.
Response: 200 OK with the updated content and the new entity tag in the ETag header.
Rename or change the duration
curl -i -X PUT $OM_API/api/2/content/promo-1 \
-H "X-Account-API-Key: $API_KEY" \
-H 'If-Match: "5f1c2b3a-0000-4000-8000-000000000008"' \
-H "Content-Type: application/json" \
-d '{"title": "Promo clip (final)", "content_duration_ms": 31000}'
HTTP/1.1 200 OK
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000009"
{
"additional_state_info": "tag:promo",
"additional_state_information": "tag:promo",
"content_duration_ms": "31000",
"content_id": "promo-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/v/c/5/2/v_promo1_c52e8a07d91b34f6a8e0b7253c9d1f48/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:10:00Z",
"playable": false,
"service": "HTTP",
"source": "upload",
"state": "pending",
"tag": [
"promo"
],
"title": "Promo clip (final)",
"upload": {
"location": "https://media.example.invalid/vod/promo.smil"
}
}
title(string, optional): must not be empty. An empty title givesBad resource representation (syntax error): invalid title.content_duration_ms(integer, optional).- Every successful
PUTgives the content a new entity tag, also aPUTwith the body{}that changes nothing.
If the entity tag is old, the answer is 412 Precondition Failed. Read the content again and use
the new tag:
{
"tag": "precondition-failed",
"message": "etag mismatch",
"details": null
}
Update external content
For external content the body can also contain external and tag:
curl -X PUT $OM_API/api/2/content/trailer-1 \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Trailer (HD)", "tag": ["promo", "hd"]}'
The response is the content with "title": "Trailer (HD)", "tag": ["promo", "hd"],
"additional_state_info": "tag:promo,hd" and a new ETag.
- If the
externalobject is present,storage_nameis required, and the same rules as for create apply. Renaming to a storage name that is already used gives409 Conflict. - A duration is applied only when it is at least 1000 ms. From 1 to 999 ms it is ignored. A value
of
0is refused with400 Bad resource representation (syntax error): content_duration_ms must be at least 1. - A tag list that is not empty replaces all tags. An empty list is ignored, so tags cannot be
removed. Tags must not contain
,or;. This rule is only forexternalcontent: for the other sources a comma splits a tag on create (see Create content). - For other sources
externalandtagare ignored.
Reschedule a pending recording
A body with a recording object reschedules a recording:
curl -i -X PUT $OM_API/api/2/content/match-1 \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"recording": {"start_time": "2026-12-01T20:30:00Z", "stop_time": "2026-12-01T22:30:00Z"}}'
The response is 200 OK with the content, the new window length in content_duration_ms and a
new ETag. The recording object shows the new window:
HTTP/1.1 200 OK
Content-Type: application/json
Etag: "5f1c2b3a-0000-4000-8000-000000000002"
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:10:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:30:00Z",
"stop_time": "2026-12-01T22:30:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match"
}
start_timeandstop_timeare both optional. A value that you leave out keeps its current value. An empty object ("recording": {}) changes no times. Atitleorcontent_duration_msin the same body is still applied.- The new window is checked like a new recording: the stop must be after the start, and the start must not be before the start of the catch-up buffer. The duration is set to the length of the new window.
- Rescheduling is available only when
buffer_durationis set. Without it the request fails. If-Matchis not checked on this path: a stale or invented tag is accepted. The commandom content reschedulerequires-E, but the value has no effect. OM refuses the change with412if someone else changed the item at the same moment.- A reschedule fails with
412once the scheduler has claimed the recording. That happensscheduler.scheduler_window_sizeseconds (180 by default) before the recording is due to run, which is its stop time plusrecorder.buffered_schedule_delay.GETstill showspendingthen. Reschedule earlier than that. - A
recordingobject for content that is not a recording (upload,buffered_live) gives404 Not Found. Forexternalcontent it is ignored.
| Cause | Status | message |
|---|---|---|
The scheduler has already claimed the recording (scheduler_window_size seconds before it is due) while GET still shows pending | 412 | reschedule is supported only for pending recordings |
The item was changed by someone else at the same moment (a stale If-Match does not cause this) | 412 | etag mismatch |
| The recording has finished or failed | 400 | Bad request: Rescheduling of finished HTTP recordings is not supported |
| There is no catch-up buffer | 400 | Bad request: Rescheduling of live HTTP recordings is not supported |
| The new stop is not after the new start | 400 | Bad request: Stop time must be greater than start time |
| The new start is before the start of the buffer | 400 | Bad request: Cannot schedule HTTP recording to start before the start of the catch-up buffer. |
{
"tag": "precondition-failed",
"message": "reschedule is supported only for pending recordings",
"details": null
}
Delete content
DELETE /api/2/content/{content_id}
curl -i -X DELETE -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/content/match-1
HTTP/1.1 204 No Content
A deleted item is no longer delivered and disappears from get and list. Content of every source
except external is only marked as deleted: a cleanup in the background stops a running recording
or upload and removes the files and the records, and until it has finished the item is listed by
content pending deletes. external content is removed at once, without a cleanup, and never
appears in content pending deletes.
An unknown content_id gives 404 Not Found. A 500 is returned when the cleanup could not be
queued. Known limitation: a second DELETE of a recording or upload while its cleanup is still
running (the first one or two seconds) answers 204 again, although GET already gives 404.
Content pending deletes
GET /api/1/content-pending-deletes
GET /api/1/content-pending-deletes?offset=0&limit=100
Lists the content of the account that is deleted but not yet cleaned up. The response has the
same shape and the same offset and limit paging as the content list (content, total and
next). It accepts only offset and limit.
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/content-pending-deletes
Each item has the full content representation. Shortened here:
{
"content": [
{
"content_id": "match-1",
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"source": "recording",
"state": "done",
"title": "Evening match",
"...": "..."
}
],
"total": 1
}
The state of an item is the state of its recording or upload job while the job record exists:
done or error, or pending for a job that has not run yet. Afterwards it is N/A, and the
recording or upload object is the string "N/A".
When the cleanup is done, the list is empty: {"content": [], "total": 0}. With working storage
that takes one or two seconds. If the cleanup cannot finish (a storage base directory that is
missing or not writable on the scheduler node, an FTP server that refuses the delete, files that
the services may not remove), the item stays in the list. OM retries up to 25 times, with a growing
delay, and there is no way to trigger a retry. origin-scheduler logs every failed attempt, see
When the Cleanup Does Not Finish.
Distributions
A distribution links a cache host name to the origin servers that serve it. The cache_host is
unique in the deployment.
The cache host name is also the cache name of the distribution. The Request Router matches it
against the Host header of a request to choose the account, see
Serving the Content of an Account through the Request Router.
The v1 routes call the field cache_host in their bodies, and the {cache_name} in their paths
holds the same value. The v2 list calls it cache_name:
| Routes | Field in the body |
|---|---|
POST /api/1/distribution and PUT /api/1/distribution/{cache_name} (request and response), GET /api/1/distribution/{cache_name}, GET /api/1/distribution | cache_host |
GET /api/2/distribution | cache_name |
Create a distribution
POST /api/1/distribution
cache_host(string, required).origins(array, optional): each origin needshost.portis 1 to 65535 and defaults to 80.timeoutis optional, 1 to 65535 seconds.
curl -i -X POST $OM_API/api/1/distribution \
-H "X-Account-API-Key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cache_host": "cache.example.invalid",
"origins": [
{ "host": "origin-1.example.invalid", "port": 8080, "timeout": 10 },
{ "host": "origin-2.example.invalid" }
]
}'
Response: 201 Created with the distribution and its entity tag in the ETag header. The
representation leaves out port when it is 80 and leaves out a timeout that is not set:
HTTP/1.1 201 Created
Content-Type: application/json
Etag: "a1b2c3d4-0000-4000-8000-000000000001"
{
"cache_host": "cache.example.invalid",
"origins": [
{
"host": "origin-1.example.invalid",
"port": 8080,
"timeout": 10
},
{
"host": "origin-2.example.invalid"
}
]
}
Common errors:
| Cause | Status | message |
|---|---|---|
The cache_host exists | 409 | Data already exists. |
cache_host is missing | 400 | Bad resource representation (syntax error): cache_host is required |
| A port is outside 1 to 65535 | 400 | Bad resource representation (syntax error): origin port out of range |
A timeout is outside 1 to 65535 | 400 | Bad resource representation (syntax error): origin timeout out of range |
An origin has no host | 400 | Bad resource representation (syntax error): origin host is required |
| The body is not valid JSON | 400 | Bad resource representation (syntax error): unexpected EOF (for a truncated body) |
Get a distribution
GET /api/1/distribution/{cache_name}
{cache_name} is the cache_host of the distribution.
curl -i -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/distribution/cache.example.invalid
Response: 200 OK with the same representation as above and the entity tag in ETag. An unknown
cache_host gives 404 Not Found.
Replace a distribution
PUT /api/1/distribution/{cache_name}
The body is the same as for create and replaces the cache host and the origins:
curl -i -X PUT $OM_API/api/1/distribution/cache.example.invalid \
-H "X-Account-API-Key: $API_KEY" \
-H 'If-Match: "a1b2c3d4-0000-4000-8000-000000000001"' \
-H "Content-Type: application/json" \
-d '{"cache_host": "cache.example.invalid", "origins": [{ "host": "origin-3.example.invalid", "port": 8080 }]}'
{
"cache_host": "cache.example.invalid",
"origins": [
{
"host": "origin-3.example.invalid",
"port": 8080
}
]
}
The response is 200 OK with the new entity tag in ETag. If If-Match is sent and is not the
current tag (quotes are ignored), or someone else changed the distribution meanwhile, the answer is
412 Precondition Failed with the message etag mismatch. Unlike for content, * is not a
wildcard here.
{cache_name} in the path is the current cache name. A different cache_host in the body renames
the distribution: the old cache name stops selecting the account and the new one starts to. If
another distribution already has the new name, the answer is 409 with Data already exists..
The request replaces the origins too, so an origins array that you leave out becomes empty. A
cache name that does not exist, or that belongs to another account, gives 404.
A distribution that has origin servers is not the default distribution of its account, see
om-admin account. If you replace the default distribution with
a body that has origins, the account has no default distribution until it has another distribution
without origin servers. om-admin account set-domain creates one.
Delete a distribution
DELETE /api/1/distribution/{cache_name}
curl -i -X DELETE -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/distribution/cache.example.invalid
HTTP/1.1 204 No Content
List distributions
GET /api/1/distribution
GET /api/2/distribution
GET /api/2/distribution?limit=50&cursor=<cursor>
Both routes list the distributions of the account, with cursor and limit paging (default 100,
at most 1000). The v2 route returns:
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/2/distribution
{
"distributions": [
{
"cache_name": "cache.example.invalid",
"storage_id": "0192f6a2-7c3e-7d52-9c1b-3f2a8e5d4c10",
"origins": [
{
"host": "origin-3.example.invalid",
"port": 8080
}
]
}
]
}
storage_id is an identifier that is used as the delivery path prefix. In the v2 shape port is
always present. A distribution that has no origins, such as the one that om-admin account create
makes, is listed with "origins": []. The v1 list has the same distributions and next keys,
with each distribution in the v1 shape, which names the cache name cache_host:
curl -H "X-Account-API-Key: $API_KEY" $OM_API/api/1/distribution
{
"distributions": [
{
"cache_host": "cache.example.invalid",
"origins": [
{
"host": "origin-3.example.invalid",
"port": 8080
}
]
}
]
}
When more distributions remain, next holds the path and query of the next page, for example
/api/2/distribution?cursor=17&limit=50.
POST /api/2/distribution is not implemented:
{
"tag": "not-implemented",
"message": "Not implemented.",
"details": null
}
The status is 501 Not Implemented.
Pagination
OM uses two paging styles.
Content and content pending deletes: offset and limit. Use offset (default 0) and limit
(default 100, at most 1000). The response has total, the number of matching items. When more
items remain, next holds a link with the next offset and the same limit and filters. Follow
next until it is missing. A value of offset that is not a number or is negative, and a limit
that is not a number or is not positive, are ignored and the default is used. A query parameter
that OM does not know, such as foo=bar, has no effect, but it is copied into next. The same
holds for the content pending deletes list, which ignores filters such as state=pending.
curl -H "X-Account-API-Key: $API_KEY" "$OM_API/api/2/content?source=recording&limit=2"
{
"content": [ "..." ],
"next": "/api/2/content?limit=2&offset=2&source=recording",
"total": 5
}
Channels and distributions: cursor. Channels use a cursor and a fixed page size of 100.
Distributions use a cursor and an optional limit. The cursor is taken from the previous page.
Do not build it yourself. When more items remain the response has next, the path and query of
the next page. These responses have no total. A cursor that is not a positive number is ignored
and the first page is returned.
curl -H "X-Account-API-Key: $API_KEY" "$OM_API/api/2/channel?cursor=42"
Error Handling
Errors use HTTP status codes and a JSON body:
{
"tag": "missing-resource",
"message": "No resource available at given URI.",
"details": null
}
tag: error tag. It decides the HTTP status.message: description for people.details: always present. It isnullfor all errors that OM produces now.
Messages for a request that cannot be accepted start with a fixed text. A bad-repr message
starts with Bad resource representation (syntax error): and a bad-request message starts with
Bad request:, followed by a space and the reason.
The message of a 500 differs by place. It is Internal server error when OM cannot check the
API key, Internal error. for a failure in a channel, content or distribution request, and
internal server error (all lower case) for any other unexpected failure. Do not match on the
text, use the status and the tag.
| Tag | HTTP status | Typical causes |
|---|---|---|
unauthorized | 401 | Missing or wrong API key, operator key without X-Account, unknown account name |
bad-request | 400 | A request that is well formed but cannot be accepted: unknown channel, invalid recording window, buffered live content_id different from the channel, rescheduling not possible, inherited DRM id with no id on the channel |
bad-repr | 400 | Malformed JSON, missing or wrongly typed field, invalid content_id or channel_id, unsupported channel_type, service or source, invalid list filter, invalid storage_name |
missing-resource | 404 | The channel, content item or distribution does not exist, was deleted, or belongs to another account |
data-exists | 409 | A channel, content item (content_id or external storage name) or distribution (cache_host) already exists |
precondition-failed | 412 | The If-Match entity tag is not current (not for a reschedule), the item changed meanwhile, or the scheduler has already claimed the recording to reschedule |
internal-server-error | 500 | An unexpected failure, such as a database error, or a cleanup that could not be queued. The message depends on where it happens, see below |
not-implemented | 501 | POST /api/2/distribution |
service-unavailable-error | 503 | No storage or origin server is available for a new recording or upload |
7 - Command Line Tools
om and om-admin command line toolsOverview
Origin Manager (OM) has three command line tools:
| Tool | Use it to | Talks to |
|---|---|---|
om | Manage channels and content | The Account API, over HTTP |
om-admin | Manage accounts, operators and storage, and look up content | The database and cache directly |
om-deploy | Install, configure, upgrade, downgrade, control and uninstall OM | The nodes, over SSH |
om and om-admin come with the origin-manager package, so they are on the nodes that have the
manager role. om-deploy is described on the Installation
page and is not covered here.
om and om-admin print their version when called with --version:
om --version
om x.y.z (commit <hash>, built <date>)
om
om is a client of the Account API. It sends the same requests as any other API client, so it
follows the same authentication and validation rules as the API.
It has only two groups, channel and content. It cannot manage distributions and it cannot
register external content: use the API for those.
Synopsis
om [-k api-key] [-H host] <group> <subcommand> [args]
Global flags
The global flags must come before the <group> argument.
| Flag | Environment variable | Default | Description |
|---|---|---|---|
-k, --api-key <key> | ACCT_CLI_APIKEY | none | Account API key |
-H, --host <host> | ACCT_CLI_HOST | localhost:9090 | Address of the Account API |
--version | Print the version and exit | ||
-h, --help | Print the usage text and exit with status 0 |
A flag on the command line wins over the environment variable. The default host uses port 9090,
the default port of the manager. If manager.account_api_port has another value, give the address
with -H or ACCT_CLI_HOST.
The host is written as [scheme://]host:port. Without a scheme om uses http://. Use an
https:// prefix when the API is served over TLS. Only the lowercase prefixes http:// and
https:// are recognized. With ftp:// or HTTP://, om puts http:// in front of the whole
text and fails with a DNS error. The API key is sent in the X-Account-API-Key header.
Set the address and key once for a shell session:
export ACCT_CLI_HOST=om-1.example.invalid:9090
export ACCT_CLI_APIKEY=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77
om channel list
om reads the same environment variables as the Convoy CLI. In a shell where you use both,
ACCT_CLI_HOST decides which Account API both tools talk to. The API key works for both, because
they share the accounts in MySQL.
Or give them on every call:
om -H https://om.example.invalid -k 3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77 channel list
Without a key, om stops before it sends anything:
om: api key required: pass -k/--api-key or set ACCT_CLI_APIKEY
Output and errors
content list,channel listandchannel getprint a table.content getprints a detail view of one content item, see content.channel listandcontent listaccept--csvto print CSV with a header row instead. Both list commands follow thenextlinks of the API, so they print the whole collection, not only the first page.A table has a border line at the top and at the bottom, a header row, and a separator line under the header. Each column is as wide as its longest cell, but at least as wide as its header plus two characters. The text is left aligned, with one space on each side. A list with no items prints the borders, the header row and the separator line only.
CSV has the same columns as the table, without borders and colors. A list with no items prints the header row only.
On a terminal, the
Statecolumn ofcontent listis colored:erroris red, andpendingandongoingare yellow. There is no color when the output goes to a pipe or a file, with--csv, or when the environment variableNO_COLORis set to a value that is not empty.content getprints the lineetag: <value>as the last line of its output.omneeds the entity tag forcontent updateandcontent reschedule. Onlycontent updatechecks it.Commands that create or change something (
add,record,live,upload,rescheduleandupdate) print the response body, followed by anetag: <value>line when the response has anETagheader.channel deleteandcontent deleteprint one line,<id> is deleted, on standard output.<id>is the id that you gave.omprints the line when the API answers204. When the delete fails, nothing is printed on standard output, and the error goes to standard error as described in the next rule.Errors go to standard error as
om: <message>and the exit status is 1. When the API rejects a request, the message is<tag>: <message>, taken from the error body of the API:om: missing-resource: No resource available at given URI. om: unauthorized: Account API key is invalid om: precondition-failed: etag mismatchA response without an error body is shown as
http-error: <HTTP status text>.A request times out after 30 seconds. Redirects are not followed.
Running
omwithout a group, or with an unknown group, prints the usage text and exits with status 1.
A list with no items, as a table and as CSV:
om content list
+--------------+---------+-----------+---------+------------+---------+--------+
| Content ID | Title | Service | State | Playable | Start | Stop |
|--------------+---------+-----------+---------+------------+---------+--------|
+--------------+---------+-----------+---------+------------+---------+--------+
om content list --csv
Content ID,Title,Service,State,Playable,Start,Stop
Identifier rules
om checks identifiers before it sends a request, so an identifier can never change the request
path.
- A
channel_idmust not be empty and must not contain/,?,#,%or.. - A
content_idmust not be empty, must not contain/,?,#or%, and must not be.or... Acontent_idis a file name, so other dots are allowed (trailer.mp4).
om channel get news.1
om: invalid channel_id "news.1": character "." is not allowed
om content get .
om: invalid content_id ".": must not be a path-traversal segment
The API applies more rules when a channel or content item is created. Neither a channel_id nor
a content_id may be empty, start with __, contain a space or /, or be . or ... A
content_id must also be ASCII only. The API refuses . and .. with
400 Bad resource representation (syntax error): ID must not be ".", see the
API page.
channel
| Subcommand | Description |
|---|---|
channel get <channel_id> | Show one channel |
channel list [--csv] | List channels |
channel add <channel_id> -t TITLE [-g GROUP] [-T TYPE] | Create a channel |
channel delete <channel_id> | Delete a channel. Prints <channel_id> is deleted |
The columns of get and list are Channel ID, Title, Group, Type and Extra. Extra
shows the values of the object that belongs to the channel type (mbr_ts_multicast), as
key=value pairs separated by a comma and a space. A true or false value shows as True or
False. Extra is empty when the object is empty, which is what om channel add creates. It is
- when the channel has no such object.
Flags for channel add. The channel_id comes first, the flags follow it.
| Flag | Description |
|---|---|
-t, --title | Channel title. Required |
-g, --group | Channel group. Optional. The API uses default when it is left out |
-T, --type | Channel type. Default and only accepted value: mbr_ts_multicast |
Create a channel and look at it:
om channel add news-1 -t "News One" -g default
{
"channel_group": "default",
"channel_id": "news-1",
"channel_type": "mbr_ts_multicast",
"creation_time": "2026-11-02T10:00:00Z",
"mbr_ts_multicast": {},
"modification_time": "2026-11-02T10:00:00Z",
"title": "News One"
}
om channel get news-1
+--------------+----------+---------+------------------+---------+
| Channel ID | Title | Group | Type | Extra |
|--------------+----------+---------+------------------+---------|
| news-1 | News One | default | mbr_ts_multicast | |
+--------------+----------+---------+------------------+---------+
List all channels, as a table or as CSV:
om channel list
+--------------+------------+---------+------------------+---------+
| Channel ID | Title | Group | Type | Extra |
|--------------+------------+---------+------------------+---------|
| news-1 | News One | default | mbr_ts_multicast | |
| sports-1 | Sports One | sports | mbr_ts_multicast | |
+--------------+------------+---------+------------------+---------+
om channel list --csv
Channel ID,Title,Group,Type,Extra
news-1,News One,default,mbr_ts_multicast,
sports-1,Sports One,sports,mbr_ts_multicast,
Delete a channel. A successful delete prints <channel_id> is deleted on standard output. Getting
the channel afterwards is an error, which om prints on standard error:
om channel delete news-1
om channel get news-1
news-1 is deleted
om: missing-resource: No resource available at given URI.
Deleting a channel that does not exist fails in the same way. No is deleted line is printed, and
the exit status is 1:
om channel delete no-such-channel
om: missing-resource: No resource available at given URI.
A channel can be deleted while buffered live content with the same name still exists. That
content then answers content get and content update with an error, until you delete it too:
om: bad-request: Bad request: Channel "news-1" does not exist
content
| Subcommand | Description |
|---|---|
content get <content_id> | Show one content item and its entity tag |
content list [--csv] | List content |
content record <content_id> -t TITLE -c CHANNEL -b START -e STOP | Schedule a recording |
content live <content_id> -t TITLE -c CHANNEL | Create buffered live content |
content upload <content_id> -t TITLE -l LOCATION | Create content from an upload |
content reschedule <content_id> -E ETAG [-b START] [-e STOP] | Change the window of a recording |
content update <content_id> -E ETAG [-t TITLE] [-d DURATION_MS] | Change the title or the duration |
content delete <content_id> | Delete content. Prints <content_id> is deleted |
The columns of list are Content ID, Title, Service, State, Playable, Start and
Stop. Playable is yes or no. Start and Stop are the window of a recording, and - for
the other sources. om has no list filters, so use the API directly to filter. It has no
subcommand to register external content either. Use the API for that, see
Registering External Content.
Every create command sends the service HTTP, which is the only service OM accepts.
Flags. The content_id always comes first, the flags follow it.
| Command | Flag | Description |
|---|---|---|
record | -t, --title | Title. Required |
record | -c, --channel | Channel to record. Required |
record | -b, --start | Start time, RFC 3339. Required |
record | -e, --stop | Stop time, RFC 3339. Required |
live | -t, --title | Title. Required |
live | -c, --channel | Channel. Required. The content_id must be the same as the channel name |
upload | -t, --title | Title. Required |
upload | -l, --location | URL that the media is fetched from. Required. For http and https it must be the URL of a SMIL file, see Creating an Upload |
reschedule | -E, --etag | Entity tag from content get. Required by om, but the API does not check it |
reschedule | -b, --start | New start time, RFC 3339 |
reschedule | -e, --stop | New stop time, RFC 3339 |
update | -E, --etag | Entity tag from content get. Required |
update | -t, --title | New title |
update | -d, --duration | New duration in milliseconds |
reschedule needs at least one of --start and --stop. update needs at least one of
--title and --duration. An explicit -d 0 is sent to the API. The entity tag is sent in the
If-Match header. For content update, the API answers 412 if the content has changed since
you read the tag:
om: precondition-failed: etag mismatch
For content reschedule, om still requires -E, but the API does not compare the tag. A stale
or invented tag (--etag x) is accepted, and the window changes. The API answers 412 on a
reschedule only when the scheduler has already claimed the recording or when someone else changes
the content at the same moment, see
Rescheduling a Pending Recording.
If a required flag is missing, om says so before it sends anything:
om content record match-1 -t "Evening match"
om: content record: --title/-t, --channel/-c, --start/-b and --stop/-e are required
Schedule a recording. Times are RFC 3339:
om content record match-1 -t "Evening match" -c news-1 \
-b 2026-12-01T20:00:00Z -e 2026-12-01T22:00:00Z
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match"
}
etag: 5f1c2b3a-0000-4000-8000-000000000001
The response has a recording object with the channel and the window, and delivery_uris with
the delivery paths. See Content representation
and Delivery URIs.
Look at the content. om content get prints the content item as a list of lines, and the entity
tag as the last line:
om content get match-1
title: Evening match
service: HTTP
state: pending
playable: no
duration: 7200 seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
recording:
channel: news-1
start time: 2026-12-01T20:00:00Z
stop time: 2026-12-01T22:00:00Z
delivery URIs:
dash: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd
hls: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8
mss: /__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000001
These are the lines, in this order:
| Line | Meaning |
|---|---|
title: | The title |
service: | The service, always HTTP |
state: | The state, see Content state. A text in parentheses follows when the API has one in additional_state_information: the tags of the content, or the reason of a failed upload |
playable: | yes or no |
duration: | The duration in whole seconds, rounded down, or N/A seconds when it is not known |
created: and modified: | The times of creation and of the last change, in UTC. For a recording, modified: is the later of the last change of the content and of the recording job |
<source>: | The source (recording, upload, buffered_live or external), then one indented line for each value of the source object. A key is written with spaces instead of underscores. Only the <source>: line is printed when the source object is "N/A" or missing |
delivery URIs: | The dash:, hls: and mss: paths of the content. Printed only when the API returns delivery paths. They have no host name: put the address of your repackager in front of one of them |
drm: | The DRM content id and its source, as drm: <id> (<source>). Printed only for content with a DRM content id |
etag: | The entity tag. This is the last line, and om prints it only when the API sends an ETag header |
Change the title with the entity tag from the output:
om content update match-1 -E 5f1c2b3a-0000-4000-8000-000000000001 -t "Evening match (final)"
The response is the content with the new title, followed by the new tag:
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:05:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:00:00Z",
"stop_time": "2026-12-01T22:00:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match (final)"
}
etag: 5f1c2b3a-0000-4000-8000-000000000002
Move the window of a pending recording. This works only when the recorder uses a catch-up buffer,
and only until the scheduler claims the recording, scheduler.scheduler_window_size seconds
before it is due. The recording object in the response has the new window:
om content reschedule match-1 -E 5f1c2b3a-0000-4000-8000-000000000002 \
-b 2026-12-01T20:30:00Z -e 2026-12-01T22:30:00Z
{
"additional_state_info": null,
"content_duration_ms": "7200000",
"content_id": "match-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:ftp-1/__c/r/2/6/0/r_match1_26045eed8babc290c1a16217f8163e47/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:10:00Z",
"playable": false,
"recording": {
"channel": "news-1",
"start_time": "2026-12-01T20:30:00Z",
"stop_time": "2026-12-01T22:30:00Z"
},
"service": "HTTP",
"source": "recording",
"state": "pending",
"tag": [],
"title": "Evening match (final)"
}
etag: 5f1c2b3a-0000-4000-8000-000000000003
Create buffered live content and upload content:
om content live news-1 -t "News One live" -c news-1
{
"additional_state_info": null,
"buffered_live": {
"channel": "news-1"
},
"content_duration_ms": "N/A",
"content_id": "news-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/cg:default/__c/news-1/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/cg:default/__c/news-1/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/cg:default/__c/news-1/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": true,
"service": "HTTP",
"source": "buffered_live",
"state": "N/A",
"tag": [],
"title": "News One live"
}
etag: 5f1c2b3a-0000-4000-8000-000000000011
om content upload clip-1 -t "Trailer clip" -l https://media.example.invalid/vod/clip.smil
{
"additional_state_info": null,
"content_duration_ms": "N/A",
"content_id": "clip-1",
"creation_time": "2026-11-02T10:00:00Z",
"delivery_uris": {
"dash": "/__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/dash-default/__f/manifest.mpd",
"hls": "/__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/hls-default/__f/index.m3u8",
"mss": "/__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/mss-default/__f/Manifest"
},
"modification_time": "2026-11-02T10:00:00Z",
"playable": false,
"service": "HTTP",
"source": "upload",
"state": "pending",
"tag": [],
"title": "Trailer clip",
"upload": {
"location": "https://media.example.invalid/vod/clip.smil"
}
}
etag: 5f1c2b3a-0000-4000-8000-000000000006
The location of an https upload is a SMIL file. A bare .mp4 URL is accepted, but the upload
then ends in error.
List the content:
om content list
+--------------+-----------------------+-----------+---------+------------+----------------------+----------------------+
| Content ID | Title | Service | State | Playable | Start | Stop |
|--------------+-----------------------+-----------+---------+------------+----------------------+----------------------|
| match-1 | Evening match (final) | HTTP | pending | no | 2026-12-01T20:30:00Z | 2026-12-01T22:30:00Z |
| news-1 | News One live | HTTP | N/A | yes | - | - |
| clip-1 | Trailer clip | HTTP | pending | no | - | - |
+--------------+-----------------------+-----------+---------+------------+----------------------+----------------------+
The same list as CSV:
om content list --csv
Content ID,Title,Service,State,Playable,Start,Stop
match-1,Evening match (final),HTTP,pending,no,2026-12-01T20:30:00Z,2026-12-01T22:30:00Z
news-1,News One live,HTTP,N/A,yes,-,-
clip-1,Trailer clip,HTTP,pending,no,-,-
The source lines of content get depend on the source. When the upload clip-1 has finished,
om content get shows its location. The API removes a password from the location, and it shows an
empty location when the location has no host name and contains @. So om never prints a
password, see Content representation:
om content get clip-1
title: Trailer clip
service: HTTP
state: done
playable: yes
duration: 31 seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:02:14Z
upload:
location: https://media.example.invalid/vod/clip.smil
delivery URIs:
dash: /__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/dash-default/__f/manifest.mpd
hls: /__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/hls-default/__f/index.m3u8
mss: /__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000007
If an upload fails, the reason follows the state. Here clip-1 was created with a location whose
SMIL file missing.smil does not exist:
om content get clip-1
title: Trailer clip
service: HTTP
state: error (downloading failed: ingest reported status=error)
playable: no
duration: N/A seconds
created: 2026-11-11T12:53:58Z
modified: 2026-11-11T12:53:58Z
upload:
location: https://media.example.invalid/vod/missing.smil
delivery URIs:
dash: /__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/dash-default/__f/manifest.mpd
hls: /__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/hls-default/__f/index.m3u8
mss: /__cl/s:nas-1,ftp-1/__c/v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000010
An upload that has tags shows the tags instead of the reason, for example done (tag:sports).
Buffered live content shows its channel. The state is N/A and the content is playable at once:
om content get news-1
title: News One live
service: HTTP
state: N/A
playable: yes
duration: N/A seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
buffered_live:
channel: news-1
delivery URIs:
dash: /__cl/cg:default/__c/news-1/__op/dash-default/__f/manifest.mpd
hls: /__cl/cg:default/__c/news-1/__op/hls-default/__f/index.m3u8
mss: /__cl/cg:default/__c/news-1/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000011
External content shows its stored storage name. Its tags show after the state, and it is never playable:
om content get trailer-1
title: Trailer
service: HTTP
state: N/A (tag:promo)
playable: no
duration: 90 seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
external:
storage name: 3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1
delivery URIs:
dash: /__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/dash-default/__f/manifest.mpd
hls: /__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/hls-default/__f/index.m3u8
mss: /__cl/s:trailers/trailer-1/__c/3b1f0c8e5d6a4f7b9c2d1e0f8a7b6c5d@trailers/trailer-1/__op/mss-default/__f/Manifest
etag: 5f1c2b3a-0000-4000-8000-000000000013
Content with a DRM content id has a drm: line, and the id is also part of the delivery paths:
om content get clip-3
title: Protected clip
service: HTTP
state: pending
playable: no
duration: N/A seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
upload:
location: https://media.example.invalid/vod/clip-3.smil
delivery URIs:
dash: /__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/dash-default/__dci/drm-key-1/__f/manifest.mpd
hls: /__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/hls-default/__dci/drm-key-1/__f/index.m3u8
mss: /__cl/s:nas-1,ftp-1/__c/v/1/4/d/v_clip3_14d093fbe5374e8c31d7a24ffa4d5fce/__op/mss-default/__dci/drm-key-1/__f/Manifest
drm: drm-key-1 (api_defined)
etag: 5f1c2b3a-0000-4000-8000-000000000031
When the API has no job record for a recording or an upload, the state is N/A and only the
source name is printed. This is an upload without a job record, cut after the eighth line:
om content get clip-1 | head -8
title: Trailer clip
service: HTTP
state: N/A
playable: no
duration: N/A seconds
created: 2026-11-02T10:00:00Z
modified: 2026-11-02T10:00:00Z
upload:
Delete content. A successful delete prints <content_id> is deleted:
om content delete match-1
match-1 is deleted
om prints the line as soon as the API has accepted the delete. The cleanup of the files runs
afterwards, see Deleting Content. A second delete of
a recording or upload during its cleanup is answered with 204 again, so om prints the line
again.
An id that does not exist, or that is not valid, prints nothing on standard output. The error goes to standard error, and the exit status is 1:
om content delete no-such-content
om content delete a/b
om: missing-resource: No resource available at given URI.
om: invalid content_id "a/b": character "/" is not allowed
om-admin
om-admin works directly on the OM database (MySQL) and cache (Redis), without the Account API.
It needs no API key, but it must run on a manager node (a node that has the manager role), where
the tool is installed:
- It reads the etcd endpoints from
/etc/edgeware/origin-manager/etcd_hostsand takes the MySQL and Redis connection details and the storage settings from the OM configuration in etcd. It needssecret.keyon the node, so that it can decrypt the passwords. The key belongs toedgewareand has mode 0600. Runom-adminas root or as the useredgeware, because both can read the key andetcd_hosts. Runstorage repairasedgeware, see storage. - It exits with status 1 and an error message when etcd, MySQL or Redis cannot be reached, or when the topology has no Redis host.
om-admin synopsis
om-admin <group> <subcommand> [args]
om-admin --version
--version works only as the single argument. With no arguments, om-admin prints the usage
text to standard error and exits with status 2. Any other failure, including an unknown group or
subcommand and a wrong number of arguments, is printed as om-admin: <message> on standard error
and the exit status is 1. A command that works exits with status 0. One exception: account list
ignores extra arguments, so om-admin account list extra lists the accounts and exits with
status 0.
Arguments written as [account/]name take an optional account name before a slash. Without it
the default account is used. There are no flags other than those listed below.
account
| Subcommand | Description |
|---|---|
account create <name> [cachehost] [-N] | Create an account |
account delete <name> | Delete an account |
account rename <old> <new> | Rename an account |
account list [-v] | List accounts |
account set-domain <name> <domain> | Set the serving domain of the account, which is the cache name of its default distribution |
account set-default <name> | Make the account the default account of the whole system |
account reset-default | Remove the default account setting |
account set-param <name> <param> <value> | Set a parameter |
account show-param <name> <param> | Show a parameter |
account reset-param <name> token-secret | Reset the token secret |
An account can have several distributions. A distribution links a cache name to origin servers, see Distributions. The default distribution of an account is the first distribution of the account that has no origin servers. “First” means the one with the lowest id. A distribution with external origin servers is skipped. So a distribution that you give origin servers through the API stops being the default distribution of its account, and a distribution without origin servers can be the default distribution.
Data that Convoy wrote can also count as having no origin servers: origins that are missing or empty, or an origin without a host. The API does not create these.
An account that has no default distribution is listed with an empty domain= by account list -v.
account set-domain creates a default distribution for it.
Notes on the subcommands:
- An account name starts with a lowercase letter, followed by lowercase letters, digits, dots or
hyphens. Another name fails with
om-admin: account: invalid name. A name that exists fails withom-admin: account: already exists. account createalso creates a distribution without origin servers. This is the default distribution of the new account.cachehostis the cache name of that distribution. The Request Router matches the cache name against theHostheader of a request to choose the account. If you leavecachehostout, the cache name is the account name. Add-Nor--no-default-distribution(in any position) to skip the distribution. A cache name is unique in the deployment. If a distribution with that cache name already exists, the account is still created, without a distribution, and a warning is printed. The command prints the API key of the new account. See Serving the Content of an Account through the Request Router.account deletealso deletes all distributions of the account, so its cache host can be used for a new distribution afterwards. Delete the channels and content of the account before you delete the account.account listmarks the default account with*. The other lines start with two spaces. With-veach line also shows theapi-keyand thedomain, separated by tabs. Thedomainis the cache name of the default distribution of the account. It is empty when the account has no default distribution, for example when it was created with-N, or when all its distributions have origin servers. Warning:-vprints the API key of every account. Run it only where nobody else can read the output, and do not paste the output into tickets or chat.account set-domainrenames the default distribution of the account: it changes the cache name, and leaves its origin servers and the other distributions of the account as they are. If the account has no default distribution, it creates a distribution without origin servers with that cache name. The old cache name stops selecting the account. A name that another distribution already has fails withom-admin: account: already exists, and nothing is changed. If someone else changes the distribution afterom-adminhas read it and before it updates it, the command fails withom-admin: account: distribution was changed by someone else; retryand exits with status 1. Run it again. If the distribution is deleted in that time,set-domaincreates a new one.account renamechanges only the name of the account. The cache names of its distributions stay as they are.account set-defaultchanges the default account for the whole system. The Request Router serves every request whoseHostheader matches no cache name for the default account, so after the change all those requests see the channels and content of the new default account.- The parameters for
set-paramandshow-paramareapi-key,token-secretandenable-floating-sessions. An empty name ("") inshow-paramselects the default account. Onlytoken-secretcan be reset.
Create an account, and show it:
om-admin account create example-account
om-admin account list -v
created account "example-account" (api-key 3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77)
example-account api-key=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77 domain=example-account
account create does not make the new account the default account, so its line starts with two
spaces. After om-admin account set-default example-account the line starts with * instead.
If a distribution with the cache host already exists, om-admin still creates the account and
prints a warning before the result:
warning: there was already a distribution called example-account; use 'om-admin account set-domain' to fix
created account "example-account" (api-key 3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77)
Create an account without a default distribution, or with a named cache host:
om-admin account create other-account -N
om-admin account create third-account cache-3.example.invalid
created account "other-account" (api-key 9c2e7a40-1b6d-4f08-8d35-2a7f5e1c9b64)
created account "third-account" (api-key 0e5d1f93-7a24-4c6b-b1e8-4d9a3c7f2085)
other-account has no distribution, so no host name selects it. The cache name of third-account
is cache-3.example.invalid: the Request Router serves a request with the header
Host: cache-3.example.invalid for third-account.
account list -v shows an empty domain= for other-account, because it has no default
distribution:
om-admin account list -v
example-account api-key=3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77 domain=example-account
other-account api-key=9c2e7a40-1b6d-4f08-8d35-2a7f5e1c9b64 domain=
third-account api-key=0e5d1f93-7a24-4c6b-b1e8-4d9a3c7f2085 domain=cache-3.example.invalid
account set-domain creates a default distribution for other-account. For third-account it
renames the default distribution that account create made:
om-admin account set-domain other-account other.example.invalid
om-admin account set-domain third-account cache-4.example.invalid
set domain of "other-account" to "other.example.invalid"
set domain of "third-account" to "cache-4.example.invalid"
A cache name that another distribution already has is refused, and nothing is changed. The command exits with status 1:
om-admin account set-domain third-account other.example.invalid
om-admin: account: already exists
If someone else changes the distribution at the same moment, for example with a PUT to the
Account API, the command fails with the message below and exits with status 1. Run it again:
om-admin: account: distribution was changed by someone else; retry
Other account commands and what they print:
om-admin account set-default example-account
om-admin account set-domain example-account media.example.invalid
om-admin account rename other-account spare-account
om-admin account set-param example-account api-key 6a1d9f27-3c58-4e0b-a7d4-8b2e5c1f9a30
om-admin account show-param example-account api-key
om-admin account reset-param example-account token-secret
om-admin account delete spare-account
om-admin account reset-default
default account is now "example-account"
set domain of "example-account" to "media.example.invalid"
renamed "other-account" to "spare-account"
set api-key on "example-account"
6a1d9f27-3c58-4e0b-a7d4-8b2e5c1f9a30
reset token-secret on "example-account"
deleted account "spare-account"
default account cleared
reset-param works only for token-secret. For another parameter, such as api-key, it fails with
om-admin: account: unknown param, although the parameter exists.
operator
| Subcommand | Description |
|---|---|
operator create <email> | Create an operator with a random API key |
operator delete <email> | Delete an operator |
operator list | List operators |
operator show <email> | Show one operator |
operator set config <email> <key> <value> | Set an operator preference |
operator set api-key <email> [key] | Set the API key. A new one is generated if you leave it out |
operator passwd <email> <password> | Set the password of the operator |
operator list and operator show print <email> with API key <key>, followed by one indented
<key> = <value> line for each preference, sorted by key. A new operator has no password until
you run operator passwd. operator set config prints set config <key> on "<email>", for
example set config theme on "admin@example.invalid".
om-admin operator create admin@example.invalid
om-admin operator passwd admin@example.invalid change-me
om-admin operator show admin@example.invalid
created operator "admin@example.invalid" with API key 7d1e4b92-0a6c-4f35-9e18-5c2a8d3b6f01
set password for "admin@example.invalid"
admin@example.invalid with API key 7d1e4b92-0a6c-4f35-9e18-5c2a8d3b6f01
Replace the API key of an operator. The old key stops working at once:
om-admin operator set api-key admin@example.invalid
api-key for "admin@example.invalid" is now b4e8c1d7-2f90-4a53-86d1-0c7e3a9f5b22
om-admin content
These commands only read the database. They do not change anything.
| Subcommand | Description |
|---|---|
content list [-n] | List the content of all accounts |
content show [-n] <[account/]file> | Show one content item |
content storage-name <[account/]file> | Print the internal storage name |
content external-name <storage_name> | Print the external name for a storage name |
list and show print one line for each item: file (title) for the default account, or
account/file (title) for other accounts. With -n or --no-resolve the account is printed for
the default account too. Content of an account that no longer exists shows the account
[ORPHANED account_id=<id>].
storage-name prints the internal name, which OM creates when the content is created and which
differs from the file name. external-name goes the other way: it prints file for the default
account and account/file for any other account.
om-admin content list
om-admin content show example-account/clip-1
om-admin content storage-name example-account/clip-1
om-admin content external-name v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05
example-account/clip-1 (Trailer clip)
example-account/news-1 (News One live)
example-account/clip-1 (Trailer clip)
v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05
example-account/clip-1
storage
All storage subcommands take the content as [account/]content and work on the storage name of
that content.
| Subcommand | Description |
|---|---|
storage inspect <[account/]content> | Show the storage entry and the cached origin servers |
storage assign <[account/]content> <system>... [-c cap] | Assign storage systems |
storage repair <[account/]content> | Repair the content, or copy it to more storage systems |
storage clean | Remove leftover storage directories of failed operations |
storage inspectprints the linesstorage,storage systems,origin servers,required capability,required roleandcache.cacheis the origin servers as stored in the cache. It is empty when nothing is cached.storage assignneeds at least one storage system.-cor--required-capability(in any position) sets the capability that origin servers must have. The default ishttp. The required role is not an option. It follows the source of the content.storage inspectshows the storage systems and origin servers that were assigned when the content was created. It does not show which copies exist. A content item keeps its assigned storage systems when a copy fails, so runstorage repairto bring the copy back. The order of the origin servers can differ from one content item to the next.storage repairmakes sure that the files are complete on every storage system that holds them and copies them to more storage systems until thereplication_factorof the source is reached.storage cleanremoves storage directories that no content refers to.assignandrepairrefuse some content and exit with status 1: external content (it has no storage entry), archived recordings, and content of the kindchannel. Buffered live content, the content that OM creates for a channel, is another kind and is not refused. See the limitation below.
om-admin storage inspect example-account/clip-1
storage: v/d/a/4/v_clip1_da4f0f18c13b71a8baf988bb7878ba05
storage systems: nas-1, ftp-1
origin servers: origin-1, origin-2
required capability: http
required role: upload
cache: origin-1,origin-2
om-admin storage assign example-account/clip-1 nas-1 ftp-1 -c http
runuser -u edgeware -- om-admin storage repair example-account/clip-1
om-admin storage clean
assigned "example-account/clip-1" to origin servers: origin-1, origin-2
repaired content "example-account/clip-1"
storage clean complete
The guard messages are:
om-admin: cannot assign storage for external content
om-admin: cannot repair external content
om-admin: cannot assign storage for a channel
om-admin: cannot repair a channel
om-admin: cannot assign storage for an archived recording
om-admin: cannot repair an archived recording
Known limitation: buffered live content. Buffered live content has no storage, but
storage assign and storage repair do not refuse it. They print success and create a storage
entry for it, with required role: buffered_live. The delivery URLs do not change and no files
are written. Do not run these commands on buffered live content. The entry is removed when the
content is deleted.
Known limitation: do not run storage repair as root. storage repair writes the files with
the identity of the user that runs it. Run as root, it creates the repaired copy, and any new hash
directory, owned by root (tested). The services run as edgeware, so a later delete of that content
fails with permission denied and the item stays in the pending deletes list. The root-owned
directory also blocks later content that hashes to it. Run the command as edgeware instead:
runuser -u edgeware -- om-admin storage repair example-account/clip-1
runuser -u edgeware -- runs the same om-admin program under another user. The base directory of
every local storage system must exist on this node and be writable by edgeware.
To recover from a repair that ran as root, remove the root-owned files and directories by hand, or
change their owner to edgeware. See
When the Cleanup Does Not Finish.
om-admin channel
| Subcommand | Description |
|---|---|
channel assign <[account/]channel> <origin>... | Assign a channel to origin servers |
channel assign needs at least one origin server. It finds the channel and the content that has
the same name as the channel, and assigns the origin servers to the storage of that content.
om-admin channel assign example-account/news-1 origin-1
assigned channel "example-account/news-1" to origin servers: origin-1
8 - Releases
ESB3036 - Origin Manager releases
8.1 - Release 1.0.0
Change log
Initial release
Compatibility has been verified with the following products
- Software Repackager - 1.60.2
- Software Live Ingest - 1.50.2
- Convoy - 4.0.0
- Software Streamer - 2.8.2
- VoD Ingest - 1.20.1
Release information
- Build date: 2026-11-26
- Platforms: Red Hat Enterprise Linux 9 (officially supported) and binary compatible distributions (unofficially supported).