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

Return to the regular view of this page.

Logging

Logging in Origin Manager

    Log Destination

    origin-manager, origin-scheduler, origin-recorder and origin-uploader write their logs to standard error. Under systemd this goes to the system journal. The services do not create log files of their own.

    View the logs of a service on the node where it runs:

    journalctl -u origin-manager -f
    journalctl -u origin-recorder --since "1 hour ago"
    journalctl -u origin-scheduler -n 100
    

    The units are origin-manager, origin-scheduler, origin-recorder, origin-uploader and etcd. Retention and rotation of the journal are controlled by the journald configuration of the host.

    The journal stores every OM line with the priority info, whatever the level in the JSON line. A filter on the journal priority therefore finds no OM line, not even for the errors that the service logged:

    journalctl -u origin-scheduler -p err
    
    -- No entries --
    

    Filter on the JSON level field instead, see Log Format.

    What Is Not Logged

    • The manager logs nothing for the requests that it serves, at any level. A failed request (400, 401, 404 or 500) leaves no line either.
    • The scheduler logs nothing when it dispatches or finishes a recording or an upload without an error. With two schedulers, no line says which one dispatched a task.
    • Nothing is logged when the cleanup of a deleted content item works.
    • While etcd has no quorum, the running services log nothing about it. They keep working with the last configuration that they have.

    Log Format

    The OM services write each log entry as one line of JSON. These fields are always present in these lines:

    FieldDescription
    leveldebug, info, warn or error
    tsTimestamp in ISO 8601 format, in the time zone of the host
    msgLog message
    serviceDaemon that wrote the line, for example origin-manager

    A line can carry more fields that give context, such as error, path, title or version. Example, from origin-recorder at start:

    {"level":"info","ts":"2026-11-02T10:30:45.123+0700","msg":"origin-recorder starting","service":"origin-recorder","version":"x.y.z (commit <hash>, built <date>)","queue":"recording","concurrency":4}
    

    Other Lines in the Journal

    The journal of an OM unit also holds lines that are not in this format. None of them has the service field, and log_level does not change them:

    • Plain text start errors. When a service cannot start, it prints one plain text line that starts with the name of the service, and exits. These lines explain why a service does not start:

      origin-uploader: config: database secret: secret: decrypt (auth failed or wrong key): cipher: message authentication failed
      origin-manager: listen tcp :9090: bind: address already in use
      
    • Queue library lines. The recorder, the uploader and the scheduler use a queue library that writes its own lines, five at every restart of a worker. During a Redis outage it also writes ERROR: lines, 20 or more per worker in the test:

      asynq: pid=145136 2026/11/11 10:20:50.151565 INFO: Starting graceful shutdown
      
    • Redis client lines. They appear when Redis cannot be reached (shortened):

      redis: 2026/11/11 09:56:45 ...: redis: connection pool: failed to dial after 5 attempts: dial tcp 192.0.2.20:6379: connect: connection refused
      
    • etcd client lines. They are JSON, but they have no service field and the ts has microseconds. They appear when an endpoint in etcd_hosts does not answer (shortened):

      {"level":"warn","ts":"2026-11-11T10:21:59.299101Z","logger":"etcd-client",...,"msg":"retrying of unary invoker failed","target":"etcd-endpoints://0x14a95f630780/192.0.2.11:2999","attempt":0,...}
      
    • The etcd unit has its own JSON format, also without a service field and with a microsecond ts.

    • systemd lines. journalctl -u also shows the messages of systemd about the unit, for example Started origin-manager.service and /usr/lib/systemd/system/origin-manager.service:4: Invalid URL, ignoring: TBD. The second one is harmless.

    Filtering the Log

    You can filter the OM lines with standard tools. Use jq with -R and fromjson?, so that it reads each line as text and skips the lines that are not JSON. For example, show only errors of the manager:

    journalctl -u origin-manager -o cat | jq -cR 'fromjson? | select(.level == "error")'
    
    {"level":"error","ts":"2026-11-11T17:15:20.351+0700","msg":"server failed","service":"origin-manager","error":"listen tcp :9090: bind: address already in use"}
    

    A plain jq 'select(.level == "error")' stops at the first line that is not JSON, and prints nothing:

    parse error: Invalid numeric literal at line 1, column 47
    

    The filter also hides the plain text start errors. To see why a service does not start, read the journal without jq: journalctl -u <unit> -n 100.

    Useful Messages

    ServiceLevelMessageMeaning
    allinfostarting, origin-recorder starting, origin-uploader startingThe service started. The line shows the version
    allwarnconfig: ignoring invalid /origin/config: <reason> (also /origin/topology)A live update broke a rule that om-deploy configure checks. The service ignored it and keeps its last configuration. One line per service. See Dynamic Configuration Updates
    manager, schedulerinfoshutting downThe service got SIGTERM. Not logged at warn or error
    recorder, uploaderinfoworker consuming queue, worker drainingThe worker started to take tasks, or got SIGTERM and stops
    origin-managerinfoaccount API listeningThe Account API is about to listen. The addr field shows :9090. The line is logged before the port is opened, so it also appears before server failed
    origin-managererrorserver failedThe API listener failed, for example with address already in use. A plain text line follows and the service exits
    origin-managerwarnmysql not reachable at startup; will retry on demand, redis not reachable at startup; will retry on demandA backend could not be reached at start, or refused the credentials. The service keeps running. The error field shows the cause, for example Error 1045 ... Access denied, WRONGPASS, NOAUTH Authentication required, no such host or i/o timeout
    origin-managerwarnstorage system is not configured in storage; not assigneduploader.storages names a storage system that is not defined in storage. New uploads do not use it
    origin-managerwarnreclaim: storage systems lookup failed; job will re-resolveThe cleanup of a deleted content item could not look up its storage systems. The line has no content id
    manager, schedulerwarncache write-through: ... failedA write to the Redis cache failed, for example set content failed
    origin-schedulerinfoscheduler identity matched topology hostThe scheduler found itself in the scheduler role. host is the topology entry, and match is ip or hostname
    origin-schedulerwarncould not match any local address to a topology host; falling back to hostnameNo host of the scheduler role equals an IP address of the node or the output of hostname
    origin-schedulerwarnnode is not a member of the scheduler set; will own no workThe scheduler does not find its node in the scheduler role. It starts no recordings and no uploads. A running scheduler can also log it once during om-deploy configure, just before it is restarted
    origin-schedulerinforeclaim consumer startedThe scheduler cleans up deleted content
    origin-schedulerwarnskipping recording dispatch: invalid catchup buffer manager config, skipping recording poll: invalid catchup buffer manager configThe catchup_buffer_managers section breaks a rule. No recordings start, and running recordings are not finished. Both lines are logged every 30 seconds
    origin-schedulerwarnredis unavailable; skipping dispatch tick, redis unavailable; skipping upload dispatch tickRedis could not be reached. The scheduler tries again at the next check
    origin-schedulerdebugno catchup buffer managers configured; skipping dispatch tickThere are no Catch-up Buffer Managers, so recordings stay pending. Only logged at debug
    origin-schedulerwarnmarked recordings failed: content aged out of the catch-up bufferThe start time of a recording is older than buffer_duration
    origin-schedulererrorrecording dispatch failedA due recording cannot be dispatched. The error field gives the reason, for example could not meet minimum replication factor: got 1, need 2
    origin-schedulerwarnrecording promotion left fewer than minimum replication; finalizing errorWhen the copies ended, fewer copies than the minimum were complete. The recording ends in error. The line has title, done_finals and mrf
    origin-schedulerwarnremove partial on error failedThe partial files of a failed recording could not be removed
    origin-schedulerwarnrecovery: re-dispatched a recording whose recorder went silentA recording was queued again because its recorder stopped reporting. It is also logged when no recorder ever took the task, for example when the recorder is stopped
    origin-schedulerwarnreclaim: job failedAn attempt to clean up a deleted content item failed. retried, max_retry and will_retry show the attempts. The level is error on the last attempt
    origin-schedulerwarnreclaim: storage system cleanup failedOne storage system could not be cleaned. storage_system and error show which and why
    origin-schedulerwarnreclaim: storage system is not configured; its files are left in placeA deleted content item still refers to a storage system that is no longer in storage. Its files on that system stay. The content_id field is the internal numeric id
    scheduler, uploaderwarnFTP server <system>/<host> lacks MFMT/MDTM-write; ...The FTP server cannot set file times. The message says that the repair of copies may be unreliable. It is logged at every connection to that server
    origin-recorderinfostarting ingestAn ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. timeout is the time limit
    origin-recorderinforecording doneOne copy of a recording is complete on this host
    origin-recordererrorrecording failedOne copy of a recording failed. exit_code, detail and last_line show why
    origin-recordererrorew-vodingest rejected its command lineingest_script has an option that the ingest program does not accept. Logged instead of recording failed
    origin-recordererroringest overran its bound and was abortedThe recording ran longer than recorder.max_process_duration_seconds. Logged instead of recording failed
    origin-recorderwarnrecording interrupted before it concluded — leaving the result key for the retryThe recorder stopped while it recorded. The task goes back to the queue
    origin-uploaderinfostarting ingestAn ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. budget is the time limit
    origin-uploadererroringest failedThe ingest of an upload failed. ingest_log holds the ingest log, which gives the reason
    origin-uploadererrorupload failedThe upload failed. The comment is general, for example downloading failed: ingest reported status=error. The API shows the same text in additional_state_info, and om content get shows it after the state. The reason is in ingest_log of the ingest failed line before it
    origin-uploaderinfoupload doneThe upload finished. destinations and failed show how many storage systems got a copy
    origin-uploadererrorupload overran its budget and was abortedThe upload ran longer than uploader.max_process_duration_seconds
    origin-uploaderwarnupload to destination failed, could not remove copiesA copy to one storage system failed, or the partial copy could not be removed. system and error show which and why
    origin-uploaderwarnupload interrupted before it concluded — leaving the row for the retryThe uploader stopped during an upload. The task goes back to the queue
    origin-uploaderwarnupload storage system is not configured on this hostuploader.storages names a storage system that is not defined in storage
    recorder, uploaderinforetaining ingest log for diagnosisThe ingest log of a task that did not succeed was kept. See Ingest Logs. The recorder line has a state (failed or cancelled), the uploader line has none

    The content_id field of the recorder lines is the internal numeric id of the content item, written as a string. It is not the content_id of the API.

    Log Levels

    The log level is the top-level log_level in configuration.yaml:

    • debug: in this version, one extra message: the scheduler’s no catchup buffer managers configured; skipping dispatch tick. It adds nothing to the manager, the recorder and the uploader
    • info: normal operation (default)
    • warn: unexpected situations that do not stop operation
    • error: failures
    log_level: info
    

    The setting applies to every OM service, but only to the OM lines, not to the lines in Other Lines in the Journal. If it is empty, the level is info. The values dpanic, panic and fatal are also accepted. The names are not case-sensitive, and DEBUG and warning are accepted too. Use the lower case names above. The log of each ingest is always written at debug level, see Ingest Logs.

    om-deploy install, configure and upgrade refuse a log_level that is not a level, and change nothing:

    om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": log: invalid level "verbose": unrecognized level: "verbose"
    

    A service does not start when it reads such a value from etcd. It prints a plain text line, not JSON, and exits:

    origin-manager: log: invalid level "verbose": unrecognized level: "verbose"
    

    Changing the Level at Runtime

    Running services read the configuration from etcd and watch it for changes, so a new log_level applies immediately and without a restart. An update that breaks a rule that om-deploy configure checks, for example an invalid log_level, is ignored as a whole. The service keeps its last good configuration and logs one warning, on every service:

    {"level":"warn","ts":"2026-11-11T12:47:00.924Z","msg":"config: ignoring invalid /origin/config: log: invalid level \"verbose\": unrecognized level: \"verbose\"","service":"origin-recorder"}
    

    An empty log_level in an update is ignored without a warning, and the previous level stays in effect. A service that starts while the value is empty uses info.

    To change the level:

    1. Edit log_level in configuration.yaml:

      log_level: debug
      
    2. Push the configuration:

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

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

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

      Edit log_level in config.json, and then write the document back:

      ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 put /origin/config "$(cat config.json)"
      

      The stored document holds the encrypted passwords, so keep config.json private and delete it when you are done. The next om-deploy configure pushes the content of your configuration.yaml to etcd again, so change the file as well.

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

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

      debug adds no lines to the recorder, the uploader and the manager. Only the scheduler logs one more message, and only when there are no Catch-up Buffer Managers.

    Ingest Logs

    The recorder and the uploader run ew-vodingest for every task. OM asks ew-vodingest to write its own log to a file at debug level. You can change the level with --loglevel in the ingest_script setting, because the last occurrence of the flag wins:

    uploader:
      ingest_script: /usr/bin/ew-vodingest --loglevel info
    

    The ingest log is created in /tmp, or in the directory that TMPDIR names for the service. It is not created in the configured recording_temp_path or upload_temp_path. File names:

    ServiceFile name pattern
    origin-recorderingest-<content id>-<storage>-<random>.log
    origin-uploaderingest-upload-<upload id>-<random>.log

    In the file name of a recording, <content id> is the internal numeric id of the content item, not the content_id of the API. For example, ingest-37-nas-1-3857201.log is the log of the copy to nas-1 of the recording whose internal id is 37.

    OM reads the ingest log to decide the result of the task, and handles the file like this:

    • When the task finishes successfully, the log is removed.
    • In every other case (failed, cancelled, interrupted), the log is kept for diagnosis, and the service logs retaining ingest log for diagnosis with the path of the file.

    OM never deletes the retained logs. Remove old files when you no longer need them.

    To find the retained ingest log of a failed task, search the service log for the message and read the file at the path it shows:

    journalctl -u origin-recorder -o cat | grep "retaining ingest log"
    

    The line of the recorder has the recording in content_id, storage_name, channel and window, and the state of the task:

    {"level":"info","ts":"2026-11-11T09:50:35.939Z","msg":"retaining ingest log for diagnosis","service":"origin-recorder","content_id":"1180","storage_name":"nas-1","channel":"sports-1","window":60,"path":"/tmp/ingest-1180-nas-1-2655965567.log","state":"failed"}
    

    The line of the uploader has the upload in upload_id, content_id, asset_path and source, and no state:

    {"level":"info","ts":"2026-11-11T10:18:19.836Z","msg":"retaining ingest log for diagnosis","service":"origin-uploader","upload_id":59,"content_id":1191,"asset_path":"v/a/7/3/v_clip1_<hex>","source":"ftp://user:xxxxx@ftp.example.invalid:2121/clip.smil","path":"/tmp/ingest-upload-59-2932332871.log"}
    

    When OM logs an ingest command line, any password in a URL is replaced by xxxxx.

    Troubleshooting

    1. A service does not start: run journalctl -u <unit> -n 100. The reason is a plain text line, see Other Lines in the Journal. These are the lines that you can see:

      • origin-uploader: read etcd_hosts "/etc/edgeware/origin-manager/etcd_hosts": open /etc/edgeware/origin-manager/etcd_hosts: no such file or directory: the file is missing. om-deploy configure writes it again.
      • origin-uploader: config: initial load: context deadline exceeded: the service could not read its configuration from etcd within 15 seconds. The line does not name etcd. The etcd client line before it (retrying of unary invoker failed) names the endpoint in target. Check etcd_hosts and that etcd has a quorum.
      • origin-uploader: config: database secret: secret: decrypt (auth failed or wrong key): cipher: message authentication failed: the key on the node is not the key that encrypted the passwords.
      • origin-recorder: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: permission denied: the key file is missing (no such file or directory) or edgeware cannot read it (permission denied, for example a key that belongs to root with mode 0600).
    2. A password cannot be decrypted: check that /etc/edgeware/origin-manager/secret.key on the node is the key that was used to encrypt the passwords. If the key on the administration machine is intact, run om-deploy configure to copy it to the nodes again. It also sets the owner (edgeware) and the mode (0600). If the key on the administration machine is lost, enter the plain text passwords again and run om-deploy configure. It creates a new key and copies it to all nodes. See Secrets.

    3. An ingest fails: find the retained ingest log path in the service log, then read the file on the recorder or uploader host. For an upload, the reason is also in the ingest_log field of the ingest failed line, which comes just before upload failed. log_level: debug does not add anything for this.

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

    5. Too much output: set log_level to warn or error. This reduces the OM lines only. The queue library, Redis client and etcd client lines stay, and there can be 20 or more of them per worker during a Redis outage.

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