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

Return to the regular view of this page.

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.