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

Return to the regular view of this page.

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.