This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Origin Manager (esb3036)

Origin Manager service for managing, recording and uploading content for HTTP/WebTV delivery

1 - Introduction

Introduction to Origin Manager

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 ftp URL 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 om tool 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:

SourceWhat it isHow you create it
recordingA recording of a channel between a start and a stop timeom content record or POST /api/2/content
uploadMedia files that OM fetches through the URL of a SMIL file and storesom content upload or POST /api/2/content
buffered_liveThe live buffer of a channel. The content ID is the channel nameom content live or POST /api/2/content
externalAn asset that is already hosted elsewherePOST /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:

StateMeaning
pendingA recording is waiting to start, or an upload has not started
ongoingA 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
doneThe recording or upload has finished
errorThe 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/ANothing 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:

ToolUse it to
omManage channels and content through the Account API
om-adminCreate accounts and operators and inspect storage. Run it on a node that has the manager role
om-deployInstall, 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

Installing and running Origin Manager with om-deploy

Installation

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: installs om-deploy on the administration machine.
  • repo: the local yum repository with all OM packages.

Packages per role

RolePackagessystemd unit
etcdetcdetcd.service
managerorigin-manager (also provides the om and om-admin tools, so they are only on nodes that have this role)origin-manager.service
schedulerorigin-schedulerorigin-scheduler.service
recorderorigin-recorder, ew-vodingestorigin-recorder.service
uploaderorigin-uploader, ew-vodingestorigin-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

SubcommandWhat it does
installInstalls packages, sets up etcd, pushes the configuration and starts the services
configurePushes the topology and configuration again and restarts the OM services
upgradeRolling upgrade of all nodes
downgradeRolling downgrade to an earlier version
serviceStarts, stops, restarts or shows the status of the services
uninstallStops the services, removes the packages and cleans up the nodes

Every subcommand that contacts nodes accepts these flags:

FlagDefaultDescription
--ssh-userrootSSH user
--ssh-key~/.ssh/id_rsaSSH private key
--ssh-port22SSH port
--known-hostsnoneknown_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:

FlagSubcommandsDefaultDescription
--topologyall/etc/edgeware/origin-manager/topology.yamlTopology file
--configinstall, configure, upgrade/etc/edgeware/origin-manager/configuration.yamlConfiguration file to push
--repoinstall, upgrade, downgraderepoThe repo directory of the installer
--versiondowngradenoneVersion to install (required)
--roleserviceall rolesLimit 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:

CommandSummary line
installinstall is complete
configureconfigure is complete
upgradeupgrade is complete. It names no version, because it installs the newest build in the offline repository
downgrade --version 0.0.20downgrade to 0.0.20 is complete. It names the version that you gave
uninstalluninstall is complete
service startservices started
service stopservices stopped
service restartservices restarted
service start --role recorderrecorder services started. With --role, the line starts with the role: manager services restarted, recorder services stopped
service statusNo 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

  1. Administration machine: Red Hat 9 (or compatible), where you run install.sh and om-deploy as root. om-deploy keeps secret.key at /etc/edgeware/origin-manager/secret.key on this machine, and the path cannot be changed. As an ordinary user it stops with a permission denied error.
  2. Nodes: Red Hat 9 (or compatible) on every node in the topology. On any other OS om-deploy stops with an unsupported RHEL major error.
  3. SSH access: the administration machine can connect to every node as the configured user (default root) with the configured key.
  4. etcd: om-deploy installs etcd on the hosts in the etcd role. Use at least three hosts. The client port (default 2379) and the peer port (default 2380) must be reachable between the nodes. om-deploy creates the etcd cluster only during install, see Changing a Deployment.
  5. MySQL: a MySQL (MariaDB/Galera) cluster that the OM nodes can reach. It is shared with Convoy and is not installed by om-deploy.
  6. 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).
  7. 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 user edgeware on every recorder, uploader and scheduler node, and on a node where you run om-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-deploy does not create the directory and configure does not check it. An upload to a missing base directory fails with open <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.
  8. 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.
  9. Port 9090: origin-manager listens on port 9090 for the Account API, or on the port of manager.account_api_port when it is set. The port must be free on every node that has the manager role.

Directory Structure

PathContent
/etc/edgeware/origin-manager/etcd_hostsetcd 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.keyKey that decrypts stored passwords. Owner edgeware, mode 0600. Written to every node that runs an OM service
/etc/edgeware/origin-manager/topology.yamlYour topology file, on the administration machine
/etc/edgeware/origin-manager/configuration.yamlYour configuration file, on the administration machine
/etc/edgeware/ew-vodingest/license.jsonLicense 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/etcdetcd data. Owner edgeware, mode 0700
/etc/systemd/system/etcd.service.d/cluster.confetcd 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:

  1. A host that equals one of the IP addresses of its node.
  2. 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

  1. Prepare the administration machine: install om-deploy with install.sh and make sure it can reach all nodes over SSH.

  2. Create topology.yaml as described in Topology.

  3. Create configuration.yaml from configuration.yaml.example and replace every <...> placeholder: storage systems, origin servers and Catch-up Buffer Managers. Enter passwords in plain text. om-deploy encrypts them (see Secrets).

  4. Run the install from the extracted installer directory:

    om-deploy install --known-hosts ~/.ssh/known_hosts
    

    When the install has finished, om-deploy prints install is complete. The ssh: 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 complete
    

    Use --topology, --config and --repo if 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.

  5. om-deploy install does the following, in order:

    1. Checks topology.yaml and configuration.yaml, see Checks before a change.
    2. Creates the user and the group edgeware on every node where they are missing, see System User. If this fails, the command stops with om-deploy: deploy: create edgeware account on <host>: <cause> before it installs anything.
    3. Copies the offline repository to each node and installs the role packages.
    4. Writes the etcd cluster settings, starts etcd on all etcd hosts and waits until the cluster is healthy.
    5. Encrypts the passwords, creates secret.key if needed, and copies the key to every node that runs an OM service.
    6. Writes etcd_hosts on every node that runs an OM service.
    7. Pushes configuration.yaml and the topology to etcd in one transaction.
    8. 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.
    9. Prints install is complete.
  6. On every recorder and uploader host, copy the ew-vodingest license (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 by edgeware (see System User).

  7. Check that all units are active:

    om-deploy service status
    
    192.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   active
    

    The three columns (host, unit, state) are separated by tabs. The state is the output of systemctl is-active. A unit that is not running shows inactive, failed or unknown. A unit that crashes and is restarted by systemd every 5 seconds shows activating.

    If om-deploy cannot connect to a host, service status prints the rows of the other hosts, prints one error line for each unreachable host and exits with status 1. Here 192.0.2.10 is 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 timeout
    
  8. Create 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 -3
    
    openapi: 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 uninstall and a new install. Removing the package saves your license as license.json.rpmsave, and the next install puts the placeholder back. A new .rpmsave replaces 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.json
    
  • On every host that gets a recorder or uploader role later (see Changing a Deployment). install puts 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:

  1. On every etcd host run:

    systemctl start --no-block etcd
    
  2. On 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 health
    
    192.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.626332ms
    
  3. Start the OM services:

    om-deploy service start
    
    services 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-vodingest on recorder and uploader hosts
  • /etc/edgeware/origin-manager, with etcd_hosts and secret.key
  • the etcd data in /var/lib/etcd (and in /var/lib/private/etcd, where builds that used dynamic users kept it), /etc/etcd and the etcd cluster settings
  • the copied repository in /tmp/origin-manager-repo and origin-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-deploy package 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-deploy does not check SSH host keys.
  • The bundled repository is not signed (gpgcheck is 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, run ausearch -m avc,user_avc,selinux_err -ts today.

Troubleshooting

MessageCause 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 deniedinstall.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 hostsroles.etcd.hosts is empty. Add at least one host
om-deploy: deploy: topology has no database hostsroles.database.hosts is empty
om-deploy: deploy: topology database role has no userSet roles.database.user
om-deploy: deploy: topology database role has no passwordSet 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 mismatchThe 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 NThe 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 foundA 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 outetcd 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 directoryThe 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 directoryThe 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

Upgrading Origin Manager to newer versions

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

  1. Read the known limitations and the compatible product versions of the new version on the Releases page.

  2. Make sure that topology.yaml and configuration.yaml on 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 --topology and --config. Without the files om-deploy stops 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 directory
    
    mkdir -p /etc/edgeware/origin-manager
    cp -p /etc/origin-manager/topology.yaml /etc/origin-manager/configuration.yaml \
       /etc/edgeware/origin-manager/
    
  3. 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.json
    
  4. Back up secret.key from /etc/edgeware/origin-manager/. The upgrade reuses the key and never replaces an existing one. cp -p keeps the owner and the mode:

    cp -p /etc/edgeware/origin-manager/secret.key secret.key.bak
    

    A build from before password encryption has no key yet, and cp fails with cannot 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, and upgrade uses the same key step. Enter the plain text passwords again first, see Secrets.

  5. 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 health
    
    192.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.626332ms
    

    Every endpoint must report is healthy. om-deploy upgrade does 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 with deploy: etcd cluster not healthy when 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

  1. Extract the new installer on the administration machine:

    tar xzf origin-manager-installer-x.y.z.tar.gz
    cd origin-manager-installer-x.y.z
    
  2. Install the new om-deploy:

    ./install.sh
    
  3. Run the upgrade from the extracted directory:

    om-deploy upgrade --known-hosts ~/.ssh/known_hosts
    

    On success the command prints the ssh: lines that show the host keys, on standard error, and then upgrade is complete on 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 complete
    

    The line names no version, because upgrade installs the newest build in the offline repository. Use --topology, --config and --repo if 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.

  4. Check that all units are active:

    om-deploy service status
    
  5. Check the version. om-deploy --version shows only the version of om-deploy on the administration machine. It does not show what runs on the nodes:

    om-deploy --version
    
    om-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 version field of the starting line in the log of a service:

    rpm -q origin-manager
    journalctl -u origin-manager -o cat | grep '"msg":"starting"' | tail -n 1
    
    origin-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:

  1. Checks topology.yaml and configuration.yaml, see Checks before a change.
  2. Creates the user and the group edgeware on every node where they are missing, see System User. An existing account is not changed. If this fails for a host, the command stops with om-deploy: deploy: create edgeware account on <host>: <cause>, before it changes a package.
  3. Copies the new offline repository to each node and upgrades the role packages. No service is restarted yet.
  4. Encrypts new plain text passwords in your files and copies the key to the nodes, see Secrets.
  5. Pushes the topology and the configuration to etcd.
  6. Restarts etcd one node at a time, and waits until the cluster is healthy again before it restarts the next node.
  7. Restarts the OM services one host at a time, in role order: origin-manager, origin-scheduler, origin-recorder, origin-uploader.
  8. 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.
  9. 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 manager host 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 in error.
  • The upgrade stops at the first error. Fix the problem and run om-deploy upgrade again. 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_hosts and 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:

  1. 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.
  2. Restarts the OM services in role order.
  3. Waits 5 seconds and checks that every restarted OM unit is active.
  4. 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.key and 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:

  1. 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 etcd
    
  2. Wait until etcdctl endpoint health reports every endpoint healthy, and then do the same on the next etcd host.

  3. When all etcd hosts are done, run om-deploy upgrade again. When it has finished, it prints upgrade 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 50
    
  • Check that /etc/edgeware/origin-manager/etcd_hosts exists on the node and lists etcd endpoints that can be reached.

  • Check that /etc/edgeware/origin-manager/secret.key exists on the node, belongs to edgeware and has mode 0600. A key that edgeware cannot read, for example one that belongs to root with mode 0600 because it was restored from a backup with a plain cp, makes the service fail at its next restart with permission denied. om-deploy configure sets owner and mode again.

The upgrade stops with an etcd health error (deploy: etcd cluster not healthy):

  • Run systemctl status etcd on 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:

The upgrade stops with om-deploy: deploy: create edgeware account on <host>: <cause>:

  • om-deploy could not create the user and the group edgeware on 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.yaml as 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 50 on that host, and run the upgrade again.

3 - Configuration

Configuring Origin Manager

Configuration Overview

Origin Manager (OM) is configured with two YAML files that you keep on the administration machine:

FileWhat it holds
topology.yamlWhich hosts run which role, and how to connect to MySQL and Redis
configuration.yamlEverything 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.yaml is strict. om-deploy rejects a key that it does not know.
  • configuration.yaml is not strict about keys. om-deploy rejects 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 as cache_db: -1 is 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

  1. Edit topology.yaml or configuration.yaml on the administration machine.

  2. 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:

  1. Checks topology.yaml and configuration.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.
  2. Creates the user and the group edgeware on 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 with om-deploy: deploy: create edgeware account on <host>: <cause>. Nothing is copied to the nodes and nothing is written to etcd.
  3. Encrypts any plain text password in the two files (see Password handling) and copies the decryption key to the nodes.
  4. Rewrites the etcd_hosts file on every node that runs an OM service.
  5. 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.
  6. Writes the topology and the configuration to etcd in one transaction.
  7. Restarts all OM services one host at a time, in role order. It then waits 5 seconds and checks that every restarted service is active and that systemd has not restarted it in the meantime. etcd is not checked.
  8. 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_script of 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>
RuleChecked when the topology has<reason>
The file is a YAML mappingalwaysdocument is empty (empty file, only comments, or ~), document is not a mapping (a list or a single value)
Every value has the right typealwaysjson: 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 uploaderalwaysrecorder: minimum_replication_factor (2) exceeds replication_factor (1)
log_level is a valid levelalwayslog: invalid level "verbose": unrecognized level: "verbose"
manager.account_api_port is from 1 to 65535 (0 or no value selects 9090)a manager hostmanager: account_api_port (65536) must be between 1 and 65535
The three Redis database indices differa scheduler, recorder or uploader hostredis: cache_db/queue_db/result_db must differ (got 1/1/2)
The storage section is not emptyan 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 Managersa scheduler or recorder hostconfig: catchup_buffer_managers "cbm-1" and "cbm-2" use the same storage "nas-1"
uploader.ingest_script can be split into wordsan uploader hostuploader: 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 base path exists
  • that a program named in an ingest_script exists (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>.storage and intermediate_storage_for name a storage system (for uploader.storages it 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:

  1. A host that is equal to one of the IP addresses of the node.
  2. If there is none, a host that is exactly equal to the output of hostname on 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.hostsResult
[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:

RoleServiceWhat it does
etcdetcdStores the topology and the configuration
managerorigin-managerServes the Account API
schedulerorigin-schedulerStarts recordings and uploads, collects the results and cleans up deleted content
recorderorigin-recorderRecords channels
uploaderorigin-uploaderFetches 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
KeyTypeDefaultMeaning
roles.etcd.hostslist of stringsnone, requiredHosts 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_portinteger2379etcd client port
roles.etcd.peer_portinteger2380etcd peer port, used when om-deploy sets up the cluster. It must differ from the client port
roles.manager.hostslist of stringsnoneHosts that run origin-manager
roles.scheduler.hostslist of stringsnoneHosts that run origin-scheduler
roles.recorder.hostslist of stringsnoneHosts that run origin-recorder
roles.uploader.hostslist of stringsnoneHosts 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.

KeyTypeDefaultMeaning
roles.database.hostslist of stringsnone, requiredHosts 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.portinteger3306Database port
roles.database.userstringnone, requiredDatabase user
roles.database.passwordstringnone, requiredDatabase password, see Password handling
roles.redis.hostslist of stringsnone, requiredRedis 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.portinteger6379Redis port
roles.redis.passwordstringnoneRedis 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:

TaskWhat to do
Change a passwordReplace "<censored>" with the new plain text password and run om-deploy configure. The old encoded_password is replaced
Remove a passwordClear 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 keyReplace 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

KeyTypeDefaultMeaning
log_levelstringinfoLog 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_secondsinteger60Seconds 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: warn or error and the info lines of the OM services stop, for example upload 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: debug is applied immediately too, but in this version it adds only one message: the scheduler’s no 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_seconds to 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
KeyTypeDefaultMeaning
redis.cache_dbinteger0Database for the cache that the Request Router reads
redis.queue_dbinteger1Database for the work queue between the scheduler, recorders and uploaders
redis.result_dbinteger2Database for recording results
redis.cache_ttl_secondsinteger604800 (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>:

KeyTypeDefaultMeaning
pathstringnoneBase 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
hoststringnoneHost name of an FTP system. Leave out for a local directory
portinteger21FTP port
usernamestringnoneFTP user
passwordstringnoneFTP password. It is encrypted as described in Password handling
data_centerstringnoneData center of the system. Recordings are spread over as many data centers as possible
tagslist of stringsnoneTags that decide which uploads may use the system, see Uploads
intermediate_storage_forstringnoneName of the storage that this system stages recordings for. Must name an entry in storage

Notes:

  • Give an FTP system host, username and password together. A recording treats a system as FTP only when all three are set. With host but without username or password, the recorder treats the system as a local directory and writes to path on its own host instead of the FTP server. In a test that copy failed.

  • The path of 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 /data and data are the same, and / or an empty path is the login directory itself. Recordings, uploads, the cleanup of deleted content and om-admin storage repair all 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_ftp is /srv/ftp/om_ftp on the server, the files are in /srv/ftp/om_ftp/data. om_ftp sees them as /data.
    • On a server that is not chrooted, where the home directory of om_ftp is /home/om_ftp, the files are in /home/om_ftp/data, and not in /data at 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.

  • The services run as the system user edgeware. Make sure that path exists and that edgeware can 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 of edgeware. om-deploy creates the account but does not align the ids, so you must make sure that they match, see System User. recorder.recording_temp_path and uploader.upload_temp_path must exist and be writable by edgeware as well.

  • om-deploy does not check the base directory of a local system. If you mistype path, a recording creates the missing directory and writes its copy there, while an upload to it fails for that destination with open <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-1 on stage-1, a recording that is written to stage-1 is registered against nas-1. When the recording is finished, the longest copy is moved to nas-1 and the other copies are removed:

    storage:
      nas-1:
        path: /srv/origin
      stage-1:
        path: /srv/stage
        intermediate_storage_for: nas-1
    

    Only the check of the setting was tested: the configuration is accepted. The move at the end of a recording was not tested.

  • Set data_center on every system if you use replication_factor above 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>:

KeyTypeDefaultMeaning
hoststringnoneURL of the origin server. OM does not use it when it assigns origin servers
storagestringnoneName of the storage system that the server delivers from
capabilitieslist of stringsnoneWhat the server can deliver. New content needs http
roleslist of stringsall rolesThe 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-1 and ftp-1 gets origin-1 only, and ftp-1 still gets a copy that no origin server delivers.
  • The values of capabilities and roles are case-sensitive. HTTP or Recording match nothing and give a 503.
  • A value in roles other than the documented ones is accepted without a warning.
  • om-deploy does not check that storage of 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>:

KeyTypeDefaultMeaning
hoststringnoneHost of the Catch-up Buffer Manager that the recording is read from
portintegernonePort of the Catch-up Buffer Manager
storagestringnone, requiredStorage system that recordings from this source are written to
channel_groupslist of stringsall groupsChannel groups that this source records. When left out, the source records every channel group
ingest_scriptstringnone, requiredCommand line of the ingest program, see below
buffer_durationinteger, secondsnoneLength 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:

SituationBehavior
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 0The 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:

RuleMessage
Every entry needs a storageconfig: storage is a required parameter for catchup_buffer_managers "cbm-1"
When a storage section exists, the storage must name an entry in itconfig: catchup_buffer_managers "cbm-1" references unknown storage "nas-9"
Two entries must not use the same storageconfig: catchup_buffer_managers "cbm-1" and "cbm-2" use the same storage "nas-1"
Every entry needs an ingest_scriptconfig: ingest_script is a required parameter for catchup_buffer_managers "cbm-1"
All entries must have the same buffer_durationconfig: 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
KeyTypeDefaultMeaning
recorder.number_of_instancesinteger1Recording tasks that one origin-recorder runs at the same time. Each copy of a recording is one task
recorder.recording_temp_pathstringsystem temporary directoryExisting directory under which each recording creates its own working directory. It must be writable by edgeware
recorder.replication_factorinteger1Number of storage systems that one recording is copied to
recorder.minimum_replication_factorinteger1Number of successful copies that a recording needs. It must not be larger than replication_factor
recorder.buffered_schedule_delayinteger, seconds300Time 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_secondsinteger21600 (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. With replication_factor: 2 every recording is two tasks, so that is four channels. A host takes tasks until it has number_of_instances running, and further tasks go to the other recorder hosts.
  • replication_factor: 2 with two matching sources records every channel twice. With minimum_replication_factor: 1 the recording is done when 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
KeyTypeDefaultMeaning
uploader.storageslist of stringsnoneStorage systems that uploads may be placed on. Every name must be defined in storage
uploader.number_of_instancesinteger1Uploads 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_pathstringsystem temporary directoryExisting directory under which each upload creates its own working directory. It must be writable by edgeware
uploader.ingest_scriptstring/usr/bin/ew-vodingestCommand 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_factorinteger1Number 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_factorinteger1Number of storage systems that must receive the file for the upload to succeed. A value below 1 counts as 1
uploader.max_process_duration_secondsinteger21600 (6 hours)Longest time of one upload, from start to the last destination. After that the upload fails
uploader.cancel_poll_interval_secondsinteger30How 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 to nas-1 and ftp-1. With storages: [nas-9] only, creating an upload fails with 503 service-unavailable-error.

  • The uploader logs upload storage system is not configured on this host when 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 logs reclaim: 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: 2 with storages: [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] with minimum_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 is done and 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 inspect and the delivery URIs still name both systems, so a request that is routed to the failed system finds nothing. Run om-admin storage repair <account>/<content> as the user edgeware to 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
KeyTypeDefaultMeaning
scheduler.scheduler_window_sizeinteger, seconds180How far ahead the scheduler looks for recordings to start. A recording that is inside this window can no longer be rescheduled
scheduler.status_polling_intervalinteger, seconds30How often the scheduler checks the result of running recordings
scheduler.recording_straggler_grace_secondsinteger, seconds600Once 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_secondsinteger, seconds21600 (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: PUT answers 412 reschedule is supported only for pending recordings although GET still shows pending. 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:

  1. A Catch-up Buffer Manager is eligible when its channel_groups contain the group of the channel. One without channel_groups is eligible for every channel.
  2. The storage of each eligible Catch-up Buffer Manager is a destination. If that storage has intermediate_storage_for, the storage it names is used instead.
  3. 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 groupEligible sourcesResult
sportscbm-1, cbm-2Two copies, on nas-1 and ftp-1
kidscbm-2One 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.storages that is not defined in storage is never used, see Uploader.

Example, with uploader.storages: [nas-1, ftp-1], nas-1 tagged [sports] and ftp-1 without tags:

Tags of the uploadStorage used
nonenas-1 and ftp-1
sportsnas-1 and ftp-1
newsftp-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.storages and the tags of storage systems: used by origin-manager for every new recording and upload.
  • catchup_buffer_managers (including ingest_script, which applies from the next recording): used by origin-scheduler, and by origin-manager to choose the storage of every new recording.
  • recorder.replication_factor, recorder.minimum_replication_factor, scheduler.scheduler_window_size, scheduler.recording_straggler_grace_seconds and scheduler.recording_job_timeout_seconds: used by origin-scheduler.
  • uploader.minimum_replication_factor: used by origin-uploader for each new upload.
  • The list of hosts of the scheduler role: the schedulers read the new list at their next check.

Requires a restart of the service:

  • The database and Redis connection (the database and redis roles) and the etcd endpoints.
  • redis.cache_db, redis.queue_db, redis.result_db and redis.cache_ttl_seconds.
  • manager.account_api_port, for origin-manager.
  • recorder.number_of_instances, recorder.recording_temp_path, uploader.number_of_instances, uploader.upload_temp_path, uploader.ingest_script and uploader.max_process_duration_seconds.
  • termination_delay_seconds.
  • recorder.buffered_schedule_delay and buffer_duration, for origin-manager.
  • The own host entry of a scheduler. A scheduler finds itself in the list of scheduler hosts once, when it starts, so restart it after you rename its host. om-deploy configure does 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_seconds and scheduler.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:

  1. Read the stored configuration:

    ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/config --print-value-only > config.json
    
  2. Change the value in config.json with an editor, or with jq:

    jq -c '.log_level = "warn"' config.json > config-new.json
    
  3. Store 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

  1. A service exits with redis: cache_db/queue_db/result_db must differ: two of the three Redis database indices are equal. om-deploy rejects such files, so the value reached etcd another way. Give each index a different value. Remember that queue_db and result_db default to 1 and 2.

  2. Recordings stay pending and the scheduler logs two warnings every 30 seconds for an invalid catchup buffer manager config: the warnings are skipping recording poll and skipping recording dispatch. Check the rules in Catch-up Buffer Managers. The error field of the warning names the entry and the rule. Recordings also stay pending when there are no catchup_buffer_managers at all.

  3. A recording ends in error and the recorder logs that ew-vodingest rejected its command line: the ingest program does not accept an option in ingest_script. Remove or correct the option.

  4. A recording ends in error: the API does not say why. Look at the scheduler log:

    • recording dispatch failed with could not meet minimum replication factor: fewer sources serve the channel group than recorder.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 after recording_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.
  5. 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 in uploader.storages matches the tags (for uploads), and that an origin server with the capability http delivers from that storage and has the right roles. The values of capabilities and roles are case-sensitive. A storage name that is not defined in storage is not used, see Uploader.

  6. An upload ends in error within about 30 seconds and the ingest log has SMILToIngAsset failed: open : no such file or directory: the location of the upload is not a SMIL file. For http and https use the URL of a SMIL file, see Uploader.

  7. om-deploy rejects the files with no storage systems configured, or the uploader or recorder does not start with it: add the storage systems to the storage section.

  8. om-deploy configure fails 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 of uploader.ingest_script cannot be found, install the program on the uploader host or correct the first word of ingest_script. Then run om-deploy configure again. The command om-deploy service status shows activating for a service that keeps restarting after crashes.

  9. om-deploy reports invalid configuration "<file>": <reason>: the reason is one of the rules in Configuration checks. Correct the file and run the command again. For minimum_replication_factor ... exceeds replication_factor, lower the minimum or raise the factor in the named section (recorder or uploader). A value that is not set counts as 1.

  10. A service reports no redis host configured in topology: the redis role has no host. om-deploy itself rejects such a topology (topology has no redis hosts), so you see this line only when /origin/topology was edited by hand and a service was restarted. Add a host and run om-deploy configure.

  11. A service does not start and the log mentions secret:: a password cannot be decrypted. If the key on the administration machine is intact, run om-deploy configure. It copies that key to all nodes and sets the owner edgeware and the mode 0600. If the key on the administration machine is lost, enter the plain text passwords again and run om-deploy configure, see Password handling.

  12. 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 configure does for you. If you changed the stored document with etcdctl, look for config: ignoring invalid in the logs of the services: the value was rejected.

  13. The scheduler logs node is not a member of the scheduler set; will own no work, or could not match any local address to a topology host; falling back to hostname: the scheduler could not find its node in the scheduler role. List the node by IPv4 address, or use the exact output of hostname, as described in Minimal topology, then run om-deploy configure. Until then no recordings or uploads are started.

  14. The database or Redis cannot be reached: om-deploy configure accepts a wrong password or an unresolvable host, and the services stay active. Look for these causes in the error field of the logs:

    • Error 1045 (28000): Access denied for user ...: wrong database user or password.
    • WRONGPASS invalid username-password pair or user is disabled. or NOAUTH Authentication required.: wrong or missing Redis password.
    • no such host or i/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 500 and the manager logs nothing for it; at start the manager logs mysql not reachable at startup; will retry on demand. With a wrong Redis, requests to create content still return 201 but nothing runs, the content stays pending, and the scheduler logs redis 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. Check hosts, port and credentials in the database and redis roles from each OM node, then run om-deploy configure to push the corrected topology.

  15. 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 lost its quorum, and configure waits for it. It has no time limit and prints no om-deploy: message. Stop it, and on every stopped etcd host run systemctl start --no-block etcd. When etcdctl endpoint health reports every endpoint healthy, run the command again.

  16. A recording or upload ends in error within about 30 seconds and the log has FTL license check error: empty expiry: ew-vodingest has 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 an uninstall, are in ew-vodingest License. To get the file, see Licensing. A message that ends in open /etc/edgeware/ew-vodingest/license.json: no such file or directory means the file is missing.

4 - Logging

Logging in Origin Manager

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:

FieldDescription
leveldebug, info, warn or error
tsTimestamp in ISO 8601 format, in the time zone of the host
msgLog message
serviceDaemon 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 use
    
  • Queue 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 shutdown
    
  • Redis 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 refused
    
  • etcd client lines. They are JSON, but they have no service field and the ts has microseconds. They appear when an endpoint in etcd_hosts does 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 etcd unit has its own JSON format, also without a service field and with a microsecond ts.

  • systemd lines. journalctl -u also shows the messages of systemd about the unit, for example Started origin-manager.service and /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

ServiceLevelMessageMeaning
allinfostarting, origin-recorder starting, origin-uploader startingThe service started. The line shows the version
allwarnconfig: 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, schedulerinfoshutting downThe service got SIGTERM. Not logged at warn or error
recorder, uploaderinfoworker consuming queue, worker drainingThe worker started to take tasks, or got SIGTERM and stops
origin-managerinfoaccount API listeningThe 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-managererrorserver failedThe API listener failed, for example with address already in use. A plain text line follows and the service exits
origin-managerwarnmysql not reachable at startup; will retry on demand, redis not reachable at startup; will retry on demandA 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-managerwarnstorage system is not configured in storage; not assigneduploader.storages names a storage system that is not defined in storage. New uploads do not use it
origin-managerwarnreclaim: storage systems lookup failed; job will re-resolveThe cleanup of a deleted content item could not look up its storage systems. The line has no content id
manager, schedulerwarncache write-through: ... failedA write to the Redis cache failed, for example set content failed
origin-schedulerinfoscheduler identity matched topology hostThe scheduler found itself in the scheduler role. host is the topology entry, and match is ip or hostname
origin-schedulerwarncould not match any local address to a topology host; falling back to hostnameNo host of the scheduler role equals an IP address of the node or the output of hostname
origin-schedulerwarnnode is not a member of the scheduler set; will own no workThe 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-schedulerinforeclaim consumer startedThe scheduler cleans up deleted content
origin-schedulerwarnskipping recording dispatch: invalid catchup buffer manager config, skipping recording poll: invalid catchup buffer manager configThe catchup_buffer_managers section breaks a rule. No recordings start, and running recordings are not finished. Both lines are logged every 30 seconds
origin-schedulerwarnredis unavailable; skipping dispatch tick, redis unavailable; skipping upload dispatch tickRedis could not be reached. The scheduler tries again at the next check
origin-schedulerdebugno catchup buffer managers configured; skipping dispatch tickThere are no Catch-up Buffer Managers, so recordings stay pending. Only logged at debug
origin-schedulerwarnmarked recordings failed: content aged out of the catch-up bufferThe start time of a recording is older than buffer_duration
origin-schedulererrorrecording dispatch failedA due recording cannot be dispatched. The error field gives the reason, for example could not meet minimum replication factor: got 1, need 2
origin-schedulerwarnrecording promotion left fewer than minimum replication; finalizing errorWhen the copies ended, fewer copies than the minimum were complete. The recording ends in error. The line has title, done_finals and mrf
origin-schedulerwarnremove partial on error failedThe partial files of a failed recording could not be removed
origin-schedulerwarnrecovery: re-dispatched a recording whose recorder went silentA 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-schedulerwarnreclaim: job failedAn 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-schedulerwarnreclaim: storage system cleanup failedOne storage system could not be cleaned. storage_system and error show which and why
origin-schedulerwarnreclaim: storage system is not configured; its files are left in placeA 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, uploaderwarnFTP 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-recorderinfostarting ingestAn ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. timeout is the time limit
origin-recorderinforecording doneOne copy of a recording is complete on this host
origin-recordererrorrecording failedOne copy of a recording failed. exit_code, detail and last_line show why
origin-recordererrorew-vodingest rejected its command lineingest_script has an option that the ingest program does not accept. Logged instead of recording failed
origin-recordererroringest overran its bound and was abortedThe recording ran longer than recorder.max_process_duration_seconds. Logged instead of recording failed
origin-recorderwarnrecording interrupted before it concluded — leaving the result key for the retryThe recorder stopped while it recorded. The task goes back to the queue
origin-uploaderinfostarting ingestAn ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. budget is the time limit
origin-uploadererroringest failedThe ingest of an upload failed. ingest_log holds the ingest log, which gives the reason
origin-uploadererrorupload failedThe 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-uploaderinfoupload doneThe upload finished. destinations and failed show how many storage systems got a copy
origin-uploadererrorupload overran its budget and was abortedThe upload ran longer than uploader.max_process_duration_seconds
origin-uploaderwarnupload to destination failed, could not remove copiesA copy to one storage system failed, or the partial copy could not be removed. system and error show which and why
origin-uploaderwarnupload interrupted before it concluded — leaving the row for the retryThe uploader stopped during an upload. The task goes back to the queue
origin-uploaderwarnupload storage system is not configured on this hostuploader.storages names a storage system that is not defined in storage
recorder, uploaderinforetaining ingest log for diagnosisThe 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’s no catchup buffer managers configured; skipping dispatch tick. It adds nothing to the manager, the recorder and the uploader
  • info: normal operation (default)
  • warn: unexpected situations that do not stop operation
  • error: 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:

  1. Edit log_level in configuration.yaml:

    log_level: debug
    
  2. Push the configuration:

    om-deploy configure --known-hosts ~/.ssh/known_hosts
    
    configure is complete
    

    This also restarts the OM services, one host at a time. The command prints configure is complete when it has checked that they run. To change the level without a restart, change the log_level value in the JSON document stored at /origin/config in etcd and write the document back. Run these commands on a node that has etcdctl:

    ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/config --print-value-only > config.json
    

    Edit log_level in config.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.json private and delete it when you are done. The next om-deploy configure pushes the content of your configuration.yaml to etcd again, so change the file as well.

  3. Check the effect. The visible sign of a change is that lines stop. After you set warn or error, the info lines, for example upload done and shutting down, are no longer logged. This counts the upload done lines of the last 5 minutes. It prints 0 for an upload that finished after the change:

    journalctl -u origin-uploader --since "5 minutes ago" -o cat | grep -c '"upload done"'
    

    debug adds 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:

ServiceFile name pattern
origin-recorderingest-<content id>-<storage>-<random>.log
origin-uploaderingest-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 diagnosis with the path of 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

  1. 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 configure writes 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 in target. Check etcd_hosts and 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) or edgeware cannot read it (permission denied, for example a key that belongs to root with mode 0600).
  2. A password cannot be decrypted: check that /etc/edgeware/origin-manager/secret.key on the node is the key that was used to encrypt the passwords. If the key on the administration machine is intact, run om-deploy configure to 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 run om-deploy configure. It creates a new key and copies it to all nodes. See Secrets.

  3. 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_log field of the ingest failed line, which comes just before upload failed. log_level: debug does not add anything for this.

  4. Every recording and upload fails at once: look for FTL license check error in the last_line field of recording failed or ingest failed. The ew-vodingest license is missing, see ew-vodingest License.

  5. Too much output: set log_level to warn or error. 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.

  6. Check the whole cluster: om-deploy service status shows the state of every unit on every host.

5 - How-To Guides

Step-by-step guides for common Origin Manager tasks

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):

SetupStart timeWhen the recording runs
With a catch-up bufferIn the past or in the future, but not before the start of the bufferAfter 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 bufferAt least 5 seconds in the futureAt 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:

ErrorCause
om: bad-request: Bad request: Channel does not exist: news-9The channel does not exist in your account
om: bad-request: Bad request: Stop time must be greater than start timeThe 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 futureNo 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 systemsNo 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:

StateMeaning
pendingWaiting to be started
ongoingRecording
doneFinished. A recording is done when at least recorder.minimum_replication_factor copies are complete, also when OM cancelled the other copies
errorFailed
N/ANot 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:

ServicemsgMeaning
origin-schedulerrecording dispatch failedThe recording could not be started. The error field has the reason, for example could not meet minimum replication factor: got 1, need 2
origin-schedulerrecording promotion left fewer than minimum replication; finalizing errorFewer 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-schedulermarked recordings failed: content aged out of the catch-up bufferThe start of the recording left the catch-up buffer before the recording started
origin-recorderrecording failedOne copy failed. last_line is the last line of the ingest log
origin-recorderew-vodingest rejected its command lineThe ingest_script has a flag that ew-vodingest does not accept
origin-recorderingest overran its bound and was abortedA 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:

StatusmessageNote
400Bad request: Rescheduling of finished HTTP recordings is not supported
400Bad request: Rescheduling of live HTTP recordings is not supportedNo catch-up buffer is configured
400Bad request: Stop time must be greater than start time
404No resource available at given URI.There is no such content, or it is not a recording
412reschedule is supported only for pending recordingsThe scheduler has already claimed the recording (scheduler_window_size seconds before it is due), while om content get still shows pending
412etag mismatchThe 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:

StateMeaning
pendingWaiting to be picked up
ongoingDownloading, checking or storing
doneFinished
errorFailed 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:

ErrorCause
om: bad-request: Bad request: Content ID (live-news) and channel name (news-1) must be the sameThe content_id is not the channel name
om: bad-request: Bad request: Channel does not exist: news-9The 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:

ParameterValues
sourcerecording, upload, buffered_live, external
serviceHTTP
statepending, ongoing, done, error
titleA part of the title. Upper and lower case are the same
limitPage size, default 100, at most 1000
offsetNumber 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:

SourceWhat happens
recordingThe 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
uploadThe same as for a recording, with a running upload cancelled
buffered_liveThe item is marked deleted and delivery stops. The cleanup runs. There are no files to remove
externalThe 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 list marks 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.invalid
    

    Then 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.mpd
    
  • A 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 Host header 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.

  1. Create an account on a manager node and note the key:

    om-admin account create example-account
    
    created account "example-account" (api-key 3f2b8c1e-5d4a-4e7b-9a10-6c8d2e4f1a77)
    
  2. Tell om where 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-6c8d2e4f1a77
    
  3. Create the channel. The group sports must be served by a Catch-up Buffer Manager:

    om channel add sports-1 -t "Sports One" -g sports
    
  4. Schedule 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:00Z
    
  5. Check the state. It is pending until the recording is due. The last line is the entity tag:

    om content get final-1
    
    title:    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-000000000001
    
  6. The match is delayed by 30 minutes. Move the recording while it is still pending, and more than scheduler_window_size seconds 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:00Z
    
  7. When the recording has run, the state is done, the recording is playable, and modified: shows when the recording job finished. The window is the new one:

    om content get final-1
    
    title:    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-3d6f0a1c7e92
    
  8. Read the delivery URLs from the delivery URIs: lines of the same output. The group sports is served by both Catch-up Buffer Managers, so the recording is on nas-1 and ftp-1. The player URL is the address of the repackager followed by one of the paths, here hls:

    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.m3u8
    
    http://repackager.example.invalid/__cl/s:nas-1,ftp-1/__c/r/a/9/1/r_final1_a91c4e07b35d286f1e0c7d94a2b6f358/__op/hls-default/__f/index.m3u8
    

    See Delivery URIs for the other protocols.

  9. 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 total
    
    final-1 is deleted
      "total": 1
    

    When the cleanup is done, total is 0.

Uploading a file and publishing it

  1. Create the upload. The location is a SMIL file, because it is an https URL. The tag sports limits 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"}}'
    
  2. 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-2
    
    title:    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-000000000021
    
  3. When the state is done, the file is on the storage systems and the delivery 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.m3u8
    
  4. Give the player the address of the repackager, followed by the hls value:

    http://repackager.example.invalid/__cl/s:nas-1,ftp-1/__c/v/b/7/e/v_clip2_b7e1c0f94a2d3865e1f07c9a4b3d6a82/__op/hls-default/__f/index.m3u8
    

    See Delivery URIs for what each part of the URL means.

Registering and updating hosted content

  1. 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}}'
    
  2. Correct the title later. If-Match is 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)"}'
    
  3. 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-0042
    
    HTTP/1.1 204 No Content
    

Troubleshooting

401 Unauthorized

The API answers 401 with {"tag":"unauthorized", ...}. The message tells you why:

MessageCause
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 invalidThe account key is not known. A key that was replaced stops working at once
Missing account name when authenticating with Operator API keyAn operator key was sent without the X-Account header
Operator API key is invalidThe operator key is not known
Account name is invalidThe 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 list to 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 stays pending for a few minutes after the stop time. The scheduler picks it up scheduler.scheduler_window_size seconds (180 by default) before that time. Without a catch-up buffer it is queued scheduler_window_size seconds before the start time, and then ends in error (see Scheduling a Recording). The scheduler looks for recordings every 30 seconds.
  • origin-scheduler is not running. Run om-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 work and starts nothing. List the node in roles.scheduler.hosts by one of its IP addresses, or by exactly the output of hostname on that node. The comparison with hostname is case sensitive, and a fully qualified name does not match a short hostname. A host that is only listed in another role, for example etcd, 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 config and skipping recording dispatch: invalid catchup buffer manager config. The rule that is broken is in the error field (see the Configuration page).
  • No Catch-up Buffer Manager is configured at all. The scheduler logs nothing at the info level, so the recording stays pending without a message. At log_level: debug it logs no catchup buffer managers configured; skipping dispatch tick.
  • origin-recorder is not running, or all recorders are busy. A recorder runs recorder.number_of_instances recording copies at the same time, and the others wait. A recording has one copy for each storage system, up to recorder.replication_factor. With replication_factor: 2, the 8 copies of number_of_instances: 8 are 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-scheduler is not running, or it does not find its node in the topology (see above). It starts the pending uploads.

  • origin-uploader is not running. It refuses to start when no storage systems are configured:

    uploader: no storage systems configured
    

    Check that the storage section is set, and that the service is active.

  • All uploaders are busy. An uploader runs uploader.number_of_instances uploads 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/distribution and use one of them as the host name of the URL, or as the Host header. 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 Host header. Make the cache name resolve to the RR, see Testing with a Browser Player.

6 - API Reference

API documentation for Origin Manager: channels, content, content pending deletes and distributions

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: 9090 by default, set with manager.account_api_port
  • Content type: application/json for 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

ResourceRoutes
ChannelsPOST /api/2/channel, GET /api/2/channel, GET /api/2/channel/{channel_id}, DELETE /api/2/channel/{channel_id}
ContentPOST /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 deletesGET /api/1/content-pending-deletes
DistributionsPOST /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 descriptionGET /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-Key is present it is used and X-Operator-API-Key is ignored. A wrong account key gives 401, even when a valid operator key is sent too. A header with an empty value counts as absent.
  • If only X-Operator-API-Key is present, X-Account is required. The account name in X-Account is matched without regard to case: X-Account: EXAMPLE-ACCOUNT finds example-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
}
SituationMessage
No key header at allBad or missing API key.
Account key not foundAccount API key is invalid
Operator key used without X-AccountMissing account name when authenticating with Operator API key
Operator key not foundOperator API key is invalid
X-Account names an unknown accountAccount 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 with 409 data-exists. It must not be empty, start with __, contain a space or /, or be . or ... Other ids with dots, such as trailer.mp4, are valid.
  • title (string, required): display title. An empty title is accepted for a channel.
  • channel_type (string, required): must be mbr_ts_multicast.
  • mbr_ts_multicast (object, required): data for the channel type. The key is named after the value of channel_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. Default default. The group decides which Catch-up Buffer Managers record the channel. An empty string "" is stored as an empty group, not replaced by default.
  • egress_encryption (object, optional): DRM settings.
    • drm_content_id_source: api_defined (needs drm_content_id) or auto_generated (OM generates the id). Without a source, a drm_content_id that you send is stored as api_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_id already exists, in your account or in another one: 409 Conflict. If you cannot see the channel (GET gives 404), it belongs to another account.

    {
      "tag": "data-exists",
      "message": "Data already exists.",
      "details": null
    }
    
  • The channel_id is not valid, here news/1: 400 Bad Request.

    {
      "tag": "bad-repr",
      "message": "Bad resource representation (syntax error): \"/\" not allowed in ID",
      "details": null
    }
    
  • The channel_id is . 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:

Causemessage ends with
channel_id is emptyID must not be empty
channel_id starts with __"^__" not allowed in ID
channel_id contains a space" " not allowed in ID
channel_id is missingchannel_id is required
title is missingtitle is required
title is not a stringtitle must be a string
channel_type is missingchannel_type is required
channel_type is another typechannel_type must be mbr_ts_multicast
The mbr_ts_multicast object is missingfield 'mbr_ts_multicast' is missing
drm_content_id_source is not api_defined or auto_generatedinvalid drm_content_id_source
drm_content_id is emptydrm_content_id must be at least 1 character
drm_content_id is longer than 128 charactersdrm_content_id must be at most 128 characters
api_defined without a drm_content_iddrm_content_id_source is api_defined, but no drm_content_id was specified.
The body is not valid JSONmalformed 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:

SourceMeaning
recordingA scheduled recording of a channel over a time window
uploadA file that OM fetches from a URL and stores
buffered_liveThe live buffer of a channel, addressed by the channel name
externalAn 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 as trailer.mp4, are valid.
  • title (string, required): display title.
  • service (string, required): HTTP.
  • source (string, required): recording, upload, buffered_live or external.
  • 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"]. For external content a tag must not contain , or ;, see External.
  • ad_marker_detection (object, optional): {"enabled": true}. Not used for external content.
  • egress_encryption (object, optional): DRM settings, as for channels. Without a drm_content_id_source it is auto_generated, and a drm_content_id that you send is dropped and replaced by a generated one (a channel keeps it as api_defined). Send "drm_content_id_source": "api_defined" with your drm_content_id to keep it. For recording and buffered_live content the source can also be inherited_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:

Causemessage 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 ASCIIOnly ASCII characters allowed in "content_id"
service is not HTTP (the check is case sensitive)invalid service
source is not one of the fourinvalid source
title is empty or not a stringtitle must be a non-empty string
tag is not an array of stringsinvalid tag
ad_marker_detection is not validinvalid ad_marker_detection
drm_content_id_source is api_defined without an iddrm_content_id missing
inherited_from_channel for an upload or external contentdrm_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 JSONmalformed 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_time and recording.stop_time are 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_time must be later than start_time.
  • With a catch-up buffer (buffer_duration is set), start_time must not be earlier than the start of the buffer. Without a catch-up buffer, start_time must 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:

CauseStatusmessage
Channel does not exist400Bad request: Channel does not exist: nope
stop_time is not after start_time400Bad 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 buffer400Bad request: Scheduling HTTP recordings is not allowed earlier than 5 seconds in the future
Start is before the start of the catch-up buffer400Bad request: Cannot schedule HTTP recording to start before the start of the catch-up buffer.
recording is missing400Bad resource representation (syntax error): recording is required
channel is missing400Bad resource representation (syntax error): channel is required
start_time is missing400Bad resource representation (syntax error): start_time is required
stop_time is missing400Bad resource representation (syntax error): stop_time is required
A time cannot be read400Bad resource representation (syntax error): invalid start_time (or invalid stop_time)
No storage or origin server for the channel group503no 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 be http, https or ftp.
    • For http and https the location must be a SMIL file. The media files are fetched from the paths in the SMIL file. A bare media URL such as clip.mp4 is accepted with 201, but the upload then ends in error. See the SMIL manifest page of ew-vodingest, and the How-To page for an example.
    • 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.
    • With another scheme (for example file or s3) the request is accepted, but the upload ends in error. Its comment in the uploader log, and its additional_state_info, then is downloading failed: uploader: source scheme "s3" is not allowed (allowed: http, https, ftp).
  • OM chooses the storage from uploader.storages, taking the tag values into account. In the example setup the tag promo matches ftp-1 only, because nas-1 is tagged sports.
  • The response has an upload object with the location. A password in the location is removed from the response: for ftp://ingest:change-me@ftp.example.invalid/vod/promo.smil it shows ftp://ingest@ftp.example.invalid/vod/promo.smil. A location that has no host name and contains @, such as user:password@ftp.example.invalid/file.ts, is not shown at all: location is an empty string.
  • When an upload ends in error, additional_state_info gives a short reason, see Content state. The details are in the ingest_log field of the ingest failed line in the log of origin-uploader, see the How-To page.

Errors that are specific to uploads:

CauseStatusmessage
upload is missing400Bad resource representation (syntax error): upload is required
upload.location is missing400Bad resource representation (syntax error): location is required
upload.location is empty or not a string400Bad resource representation (syntax error): location must be a non-empty string
No storage or origin server matches503no 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_id must be the same as the channel name.
  • No storage system is needed, so the request does not depend on the storage configuration. The delivery URLs use the channel group (cg:default).
  • The content has the state N/A and can be played at once.
  • The response has a buffered_live object with the channel.

Errors that are specific to buffered live content:

CauseStatusmessage
content_id differs from the channel name400Bad request: Content ID (live-news) and channel name (news-1) must be the same
Channel does not exist400Bad request: Channel does not exist: nope
buffered_live is missing400Bad resource representation (syntax error): buffered_live is required
buffered_live.channel is missing400Bad 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 external object is optional. When it is present, external.storage_name is required, with 1 to 255 characters.
  • If storage_name contains 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 in external.storage_name. The stored name must not be longer than 255 characters.
  • If the external object is left out, the storage name is the content_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_ms has no minimum, and it wins over the top-level content_duration_ms. A top-level content_duration_ms on 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 state N/A. playable is false for external content.

Errors that are specific to external content:

CauseStatusmessage
The content_id or the stored storage_name is already used409Data already exists.
storage_name is empty400Bad resource representation (syntax error): storage_name must not be empty
storage_name is not a string400Bad resource representation (syntax error): invalid storage_name
The stored storage_name is longer than 255 characters400Bad resource representation (syntax error): storage_name must be at most 255 characters
external is present without storage_name400Bad resource representation (syntax error): storage_name is required
A tag contains , or ;400Bad resource representation (syntax error): tag must not contain "," or ";"
A top-level content_duration_ms below 1400Bad 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, service and source: as given when the content was created.
  • state (string): see Content state.
  • playable (boolean): true when 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 URLs mss, hls and dash. 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 for recording content, 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_time and stop_time (UTC, for example 2026-12-01T20:00:00Z).
  • upload (object or string): only for upload content, from the upload job. It holds location, the URL that the upload was created with. A password in the URL is removed: ftp://ingest:change-me@ftp.example.invalid/vod/promo.smil is shown as ftp://ingest@ftp.example.invalid/vod/promo.smil. A location that has no host name and contains @, such as user:password@ftp.example.invalid/file.ts, is withheld: location is 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 for buffered_live content. It holds channel, the channel name, which is the same as the content_id.
  • external (object): only for external content. It holds storage_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 or null): always present. It holds tag:<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_information has the same text and is present only when it is not empty.
  • creation_time and modification_time (string): time stamps in UTC. For a recording, modification_time is 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:

KeyProtocolOutput profilePresentation file
mssMicrosoft Smooth Streamingmss-defaultManifest
hlsHLShls-defaultindex.m3u8
dashMPEG-DASHdash-defaultmanifest.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:

OrderPartIn the exampleMeaning
1/__cl/<location>/__cl/s:ftp-1Content 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_c52e8a07d91b34f6a8e0b7253c9d1f48Name of the content on that location. It can contain /
3/__op/<profile>/__op/hls-defaultOutput profile of the protocol
4/__dci/<drm content id>noneOnly for content with a DRM content id. Left out otherwise
5/__f/<file>/__f/index.m3u8Presentation file of the protocol. Always the last part

The location and the content name depend on the source:

Source__cl__c
recordings: and the storage systems of the recording, separated by commasThe storage name that OM generated. It starts with r/
uploads: and the storage systems of the upload, separated by commasThe storage name that OM generated. It starts with v/
buffered_livecg: and the channel group of the channelThe content_id, which is the channel name
externals: 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:

SituationResult
The service of the content is not HTTP. OM creates only HTTP content, but the database can hold content that was created elsewhere200, no delivery_uris
A recording or an upload whose storage entry no longer exists200, no delivery_uris
Looking up the storage systems (for buffered live content, the channel) fails for another reason, such as a database errorThe 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 update400 with the message Bad request: Channel "news-1" does not exist
Buffered live content whose channel was deleted. List200, 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:

StateMeaning
pendingThe recording is waiting to start or has been handed to a recorder, or the upload has not started
ongoingThe recording is in progress, or the upload is being downloaded, checked or stored
doneThe 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
errorThe recording failed, or the upload failed or was cancelled
N/ANothing 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.

CommentStateMeaning
downloading failed: <detail>errorThe 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 signalerrorA signal that OM did not send ended the ingest program
downloading failed: ingest exited <n>; last log line: <line>errorThe 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>errorThe ingest ran, but the result is not valid, for example staged output holds no files
<n> of <m> destinations succeeded, minimum_replication_factor=<k>errorFewer storage systems than uploader.minimum_replication_factor got a copy
uploading partially done, failed on destinations: <systems>doneThe 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:

ParameterValues
sourcerecording, upload, buffered_live or external
serviceHTTP
statepending, ongoing, done or error. This is the content state, and N/A is not accepted
titleA part of the title
offsetPosition of the first item. Default 0
limitItems 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 in ETag (with or without the quotes). If it is not the current tag, the request fails with 412 Precondition Failed. * matches any current tag, and several tags separated by commas match if one of them is current. Without If-Match, the update is still refused with 412 if someone else changed the item after OM read it. A reschedule does not check If-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 gives Bad resource representation (syntax error): invalid title.
  • content_duration_ms (integer, optional).
  • Every successful PUT gives the content a new entity tag, also a PUT with 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 external object is present, storage_name is required, and the same rules as for create apply. Renaming to a storage name that is already used gives 409 Conflict.
  • A duration is applied only when it is at least 1000 ms. From 1 to 999 ms it is ignored. A value of 0 is refused with 400 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 for external content: for the other sources a comma splits a tag on create (see Create content).
  • For other sources external and tag are 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_time and stop_time are both optional. A value that you leave out keeps its current value. An empty object ("recording": {}) changes no times. A title or content_duration_ms in 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_duration is set. Without it the request fails.
  • If-Match is not checked on this path: a stale or invented tag is accepted. The command om content reschedule requires -E, but the value has no effect. OM refuses the change with 412 if someone else changed the item at the same moment.
  • A reschedule fails with 412 once the scheduler has claimed the recording. That happens scheduler.scheduler_window_size seconds (180 by default) before the recording is due to run, which is its stop time plus recorder.buffered_schedule_delay. GET still shows pending then. Reschedule earlier than that.
  • A recording object for content that is not a recording (upload, buffered_live) gives 404 Not Found. For external content it is ignored.
CauseStatusmessage
The scheduler has already claimed the recording (scheduler_window_size seconds before it is due) while GET still shows pending412reschedule 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)412etag mismatch
The recording has finished or failed400Bad request: Rescheduling of finished HTTP recordings is not supported
There is no catch-up buffer400Bad request: Rescheduling of live HTTP recordings is not supported
The new stop is not after the new start400Bad request: Stop time must be greater than start time
The new start is before the start of the buffer400Bad 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:

RoutesField 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/distributioncache_host
GET /api/2/distributioncache_name

Create a distribution

POST /api/1/distribution
  • cache_host (string, required).
  • origins (array, optional): each origin needs host. port is 1 to 65535 and defaults to 80. timeout is 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:

CauseStatusmessage
The cache_host exists409Data already exists.
cache_host is missing400Bad resource representation (syntax error): cache_host is required
A port is outside 1 to 65535400Bad resource representation (syntax error): origin port out of range
A timeout is outside 1 to 65535400Bad resource representation (syntax error): origin timeout out of range
An origin has no host400Bad resource representation (syntax error): origin host is required
The body is not valid JSON400Bad 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 is null for 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.

TagHTTP statusTypical causes
unauthorized401Missing or wrong API key, operator key without X-Account, unknown account name
bad-request400A 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-repr400Malformed 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-resource404The channel, content item or distribution does not exist, was deleted, or belongs to another account
data-exists409A channel, content item (content_id or external storage name) or distribution (cache_host) already exists
precondition-failed412The 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-error500An 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-implemented501POST /api/2/distribution
service-unavailable-error503No storage or origin server is available for a new recording or upload

7 - Command Line Tools

Reference for the om and om-admin command line tools

Overview

Origin Manager (OM) has three command line tools:

ToolUse it toTalks to
omManage channels and contentThe Account API, over HTTP
om-adminManage accounts, operators and storage, and look up contentThe database and cache directly
om-deployInstall, configure, upgrade, downgrade, control and uninstall OMThe 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.

FlagEnvironment variableDefaultDescription
-k, --api-key <key>ACCT_CLI_APIKEYnoneAccount API key
-H, --host <host>ACCT_CLI_HOSTlocalhost:9090Address of the Account API
--versionPrint the version and exit
-h, --helpPrint 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 list and channel get print a table. content get prints a detail view of one content item, see content. channel list and content list accept --csv to print CSV with a header row instead. Both list commands follow the next links 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 State column of content list is colored: error is red, and pending and ongoing are yellow. There is no color when the output goes to a pipe or a file, with --csv, or when the environment variable NO_COLOR is set to a value that is not empty.

  • content get prints the line etag: <value> as the last line of its output. om needs the entity tag for content update and content reschedule. Only content update checks it.

  • Commands that create or change something (add, record, live, upload, reschedule and update) print the response body, followed by an etag: <value> line when the response has an ETag header.

  • channel delete and content delete print one line, <id> is deleted, on standard output. <id> is the id that you gave. om prints the line when the API answers 204. 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 mismatch
    

    A 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 om without 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_id must not be empty and must not contain /, ?, #, % or ..
  • A content_id must not be empty, must not contain /, ?, # or %, and must not be . or ... A content_id is 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

SubcommandDescription
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.

FlagDescription
-t, --titleChannel title. Required
-g, --groupChannel group. Optional. The API uses default when it is left out
-T, --typeChannel 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

SubcommandDescription
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 STOPSchedule a recording
content live <content_id> -t TITLE -c CHANNELCreate buffered live content
content upload <content_id> -t TITLE -l LOCATIONCreate 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.

CommandFlagDescription
record-t, --titleTitle. Required
record-c, --channelChannel to record. Required
record-b, --startStart time, RFC 3339. Required
record-e, --stopStop time, RFC 3339. Required
live-t, --titleTitle. Required
live-c, --channelChannel. Required. The content_id must be the same as the channel name
upload-t, --titleTitle. Required
upload-l, --locationURL 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, --etagEntity tag from content get. Required by om, but the API does not check it
reschedule-b, --startNew start time, RFC 3339
reschedule-e, --stopNew stop time, RFC 3339
update-E, --etagEntity tag from content get. Required
update-t, --titleNew title
update-d, --durationNew 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:

LineMeaning
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_hosts and takes the MySQL and Redis connection details and the storage settings from the OM configuration in etcd. It needs secret.key on the node, so that it can decrypt the passwords. The key belongs to edgeware and has mode 0600. Run om-admin as root or as the user edgeware, because both can read the key and etcd_hosts. Run storage repair as edgeware, 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

SubcommandDescription
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-defaultRemove 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-secretReset 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 with om-admin: account: already exists.
  • account create also creates a distribution without origin servers. This is the default distribution of the new account. cachehost is the cache name of that distribution. The Request Router matches the cache name against the Host header of a request to choose the account. If you leave cachehost out, the cache name is the account name. Add -N or --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 delete also 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 list marks the default account with *. The other lines start with two spaces. With -v each line also shows the api-key and the domain, separated by tabs. The domain is 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: -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.
  • account set-domain renames 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 with om-admin: account: already exists, and nothing is changed. If someone else changes the distribution after om-admin has read it and before it updates it, the command fails with om-admin: account: distribution was changed by someone else; retry and exits with status 1. Run it again. If the distribution is deleted in that time, set-domain creates a new one.
  • account rename changes only the name of the account. The cache names of its distributions stay as they are.
  • account set-default changes the default account for the whole system. The Request Router serves every request whose Host header 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-param and show-param are api-key, token-secret and enable-floating-sessions. An empty name ("") in show-param selects the default account. Only token-secret can 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

SubcommandDescription
operator create <email>Create an operator with a random API key
operator delete <email>Delete an operator
operator listList 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.

SubcommandDescription
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.

SubcommandDescription
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 cleanRemove leftover storage directories of failed operations
  • storage inspect prints the lines storage, storage systems, origin servers, required capability, required role and cache. cache is the origin servers as stored in the cache. It is empty when nothing is cached.
  • storage assign needs at least one storage system. -c or --required-capability (in any position) sets the capability that origin servers must have. The default is http. The required role is not an option. It follows the source of the content.
  • storage inspect shows 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 run storage repair to bring the copy back. The order of the origin servers can differ from one content item to the next.
  • storage repair makes sure that the files are complete on every storage system that holds them and copies them to more storage systems until the replication_factor of the source is reached. storage clean removes storage directories that no content refers to.
  • assign and repair refuse some content and exit with status 1: external content (it has no storage entry), archived recordings, and content of the kind channel. 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

SubcommandDescription
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

Initial release

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).