Log Destination
origin-manager, origin-scheduler, origin-recorder and origin-uploader write their logs to
standard error. Under systemd this goes to the system journal. The services do not create log
files of their own.
View the logs of a service on the node where it runs:
journalctl -u origin-manager -f
journalctl -u origin-recorder --since "1 hour ago"
journalctl -u origin-scheduler -n 100
The units are origin-manager, origin-scheduler, origin-recorder, origin-uploader and
etcd. Retention and rotation of the journal are controlled by the journald configuration of
the host.
The journal stores every OM line with the priority info, whatever the level in the JSON line.
A filter on the journal priority therefore finds no OM line, not even for the errors that the
service logged:
journalctl -u origin-scheduler -p err
-- No entries --
Filter on the JSON level field instead, see Log Format.
What Is Not Logged
- The manager logs nothing for the requests that it serves, at any level. A failed request (400, 401, 404 or 500) leaves no line either.
- The scheduler logs nothing when it dispatches or finishes a recording or an upload without an error. With two schedulers, no line says which one dispatched a task.
- Nothing is logged when the cleanup of a deleted content item works.
- While etcd has no quorum, the running services log nothing about it. They keep working with the last configuration that they have.
Log Format
The OM services write each log entry as one line of JSON. These fields are always present in these lines:
| Field | Description |
|---|---|
level | debug, info, warn or error |
ts | Timestamp in ISO 8601 format, in the time zone of the host |
msg | Log message |
service | Daemon that wrote the line, for example origin-manager |
A line can carry more fields that give context, such as error, path, title or
version. Example, from origin-recorder at start:
{"level":"info","ts":"2026-11-02T10:30:45.123+0700","msg":"origin-recorder starting","service":"origin-recorder","version":"x.y.z (commit <hash>, built <date>)","queue":"recording","concurrency":4}
Other Lines in the Journal
The journal of an OM unit also holds lines that are not in this format. None of them has the
service field, and log_level does not change them:
Plain text start errors. When a service cannot start, it prints one plain text line that starts with the name of the service, and exits. These lines explain why a service does not start:
origin-uploader: config: database secret: secret: decrypt (auth failed or wrong key): cipher: message authentication failed origin-manager: listen tcp :9090: bind: address already in useQueue library lines. The recorder, the uploader and the scheduler use a queue library that writes its own lines, five at every restart of a worker. During a Redis outage it also writes
ERROR:lines, 20 or more per worker in the test:asynq: pid=145136 2026/11/11 10:20:50.151565 INFO: Starting graceful shutdownRedis client lines. They appear when Redis cannot be reached (shortened):
redis: 2026/11/11 09:56:45 ...: redis: connection pool: failed to dial after 5 attempts: dial tcp 192.0.2.20:6379: connect: connection refusedetcd client lines. They are JSON, but they have no
servicefield and thetshas microseconds. They appear when an endpoint inetcd_hostsdoes not answer (shortened):{"level":"warn","ts":"2026-11-11T10:21:59.299101Z","logger":"etcd-client",...,"msg":"retrying of unary invoker failed","target":"etcd-endpoints://0x14a95f630780/192.0.2.11:2999","attempt":0,...}The
etcdunit has its own JSON format, also without aservicefield and with a microsecondts.systemd lines.
journalctl -ualso shows the messages of systemd about the unit, for exampleStarted origin-manager.serviceand/usr/lib/systemd/system/origin-manager.service:4: Invalid URL, ignoring: TBD. The second one is harmless.
Filtering the Log
You can filter the OM lines with standard tools. Use jq with -R and fromjson?, so that it
reads each line as text and skips the lines that are not JSON. For example, show only errors of the
manager:
journalctl -u origin-manager -o cat | jq -cR 'fromjson? | select(.level == "error")'
{"level":"error","ts":"2026-11-11T17:15:20.351+0700","msg":"server failed","service":"origin-manager","error":"listen tcp :9090: bind: address already in use"}
A plain jq 'select(.level == "error")' stops at the first line that is not JSON, and prints
nothing:
parse error: Invalid numeric literal at line 1, column 47
The filter also hides the plain text start errors. To see why a service does not start, read the
journal without jq: journalctl -u <unit> -n 100.
Useful Messages
| Service | Level | Message | Meaning |
|---|---|---|---|
| all | info | starting, origin-recorder starting, origin-uploader starting | The service started. The line shows the version |
| all | warn | config: ignoring invalid /origin/config: <reason> (also /origin/topology) | A live update broke a rule that om-deploy configure checks. The service ignored it and keeps its last configuration. One line per service. See Dynamic Configuration Updates |
| manager, scheduler | info | shutting down | The service got SIGTERM. Not logged at warn or error |
| recorder, uploader | info | worker consuming queue, worker draining | The worker started to take tasks, or got SIGTERM and stops |
origin-manager | info | account API listening | The Account API is about to listen. The addr field shows :9090. The line is logged before the port is opened, so it also appears before server failed |
origin-manager | error | server failed | The API listener failed, for example with address already in use. A plain text line follows and the service exits |
origin-manager | warn | mysql not reachable at startup; will retry on demand, redis not reachable at startup; will retry on demand | A backend could not be reached at start, or refused the credentials. The service keeps running. The error field shows the cause, for example Error 1045 ... Access denied, WRONGPASS, NOAUTH Authentication required, no such host or i/o timeout |
origin-manager | warn | storage system is not configured in storage; not assigned | uploader.storages names a storage system that is not defined in storage. New uploads do not use it |
origin-manager | warn | reclaim: storage systems lookup failed; job will re-resolve | The cleanup of a deleted content item could not look up its storage systems. The line has no content id |
| manager, scheduler | warn | cache write-through: ... failed | A write to the Redis cache failed, for example set content failed |
origin-scheduler | info | scheduler identity matched topology host | The scheduler found itself in the scheduler role. host is the topology entry, and match is ip or hostname |
origin-scheduler | warn | could not match any local address to a topology host; falling back to hostname | No host of the scheduler role equals an IP address of the node or the output of hostname |
origin-scheduler | warn | node is not a member of the scheduler set; will own no work | The scheduler does not find its node in the scheduler role. It starts no recordings and no uploads. A running scheduler can also log it once during om-deploy configure, just before it is restarted |
origin-scheduler | info | reclaim consumer started | The scheduler cleans up deleted content |
origin-scheduler | warn | skipping recording dispatch: invalid catchup buffer manager config, skipping recording poll: invalid catchup buffer manager config | The catchup_buffer_managers section breaks a rule. No recordings start, and running recordings are not finished. Both lines are logged every 30 seconds |
origin-scheduler | warn | redis unavailable; skipping dispatch tick, redis unavailable; skipping upload dispatch tick | Redis could not be reached. The scheduler tries again at the next check |
origin-scheduler | debug | no catchup buffer managers configured; skipping dispatch tick | There are no Catch-up Buffer Managers, so recordings stay pending. Only logged at debug |
origin-scheduler | warn | marked recordings failed: content aged out of the catch-up buffer | The start time of a recording is older than buffer_duration |
origin-scheduler | error | recording dispatch failed | A due recording cannot be dispatched. The error field gives the reason, for example could not meet minimum replication factor: got 1, need 2 |
origin-scheduler | warn | recording promotion left fewer than minimum replication; finalizing error | When the copies ended, fewer copies than the minimum were complete. The recording ends in error. The line has title, done_finals and mrf |
origin-scheduler | warn | remove partial on error failed | The partial files of a failed recording could not be removed |
origin-scheduler | warn | recovery: re-dispatched a recording whose recorder went silent | A recording was queued again because its recorder stopped reporting. It is also logged when no recorder ever took the task, for example when the recorder is stopped |
origin-scheduler | warn | reclaim: job failed | An attempt to clean up a deleted content item failed. retried, max_retry and will_retry show the attempts. The level is error on the last attempt |
origin-scheduler | warn | reclaim: storage system cleanup failed | One storage system could not be cleaned. storage_system and error show which and why |
origin-scheduler | warn | reclaim: storage system is not configured; its files are left in place | A deleted content item still refers to a storage system that is no longer in storage. Its files on that system stay. The content_id field is the internal numeric id |
| scheduler, uploader | warn | FTP server <system>/<host> lacks MFMT/MDTM-write; ... | The FTP server cannot set file times. The message says that the repair of copies may be unreliable. It is logged at every connection to that server |
origin-recorder | info | starting ingest | An ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. timeout is the time limit |
origin-recorder | info | recording done | One copy of a recording is complete on this host |
origin-recorder | error | recording failed | One copy of a recording failed. exit_code, detail and last_line show why |
origin-recorder | error | ew-vodingest rejected its command line | ingest_script has an option that the ingest program does not accept. Logged instead of recording failed |
origin-recorder | error | ingest overran its bound and was aborted | The recording ran longer than recorder.max_process_duration_seconds. Logged instead of recording failed |
origin-recorder | warn | recording interrupted before it concluded — leaving the result key for the retry | The recorder stopped while it recorded. The task goes back to the queue |
origin-uploader | info | starting ingest | An ew-vodingest run starts. args is its command line, with URL passwords replaced by xxxxx. budget is the time limit |
origin-uploader | error | ingest failed | The ingest of an upload failed. ingest_log holds the ingest log, which gives the reason |
origin-uploader | error | upload failed | The upload failed. The comment is general, for example downloading failed: ingest reported status=error. The API shows the same text in additional_state_info, and om content get shows it after the state. The reason is in ingest_log of the ingest failed line before it |
origin-uploader | info | upload done | The upload finished. destinations and failed show how many storage systems got a copy |
origin-uploader | error | upload overran its budget and was aborted | The upload ran longer than uploader.max_process_duration_seconds |
origin-uploader | warn | upload to destination failed, could not remove copies | A copy to one storage system failed, or the partial copy could not be removed. system and error show which and why |
origin-uploader | warn | upload interrupted before it concluded — leaving the row for the retry | The uploader stopped during an upload. The task goes back to the queue |
origin-uploader | warn | upload storage system is not configured on this host | uploader.storages names a storage system that is not defined in storage |
| recorder, uploader | info | retaining ingest log for diagnosis | The ingest log of a task that did not succeed was kept. See Ingest Logs. The recorder line has a state (failed or cancelled), the uploader line has none |
The content_id field of the recorder lines is the internal numeric id of the content item, written
as a string. It is not the content_id of the API.
Log Levels
The log level is the top-level log_level in configuration.yaml:
debug: in this version, one extra message: the scheduler’sno catchup buffer managers configured; skipping dispatch tick. It adds nothing to the manager, the recorder and the uploaderinfo: normal operation (default)warn: unexpected situations that do not stop operationerror: failures
log_level: info
The setting applies to every OM service, but only to the OM lines, not to the lines in
Other Lines in the Journal. If it is empty, the level is info. The
values dpanic, panic and fatal are also accepted. The names are not case-sensitive, and
DEBUG and warning are accepted too. Use the lower case names above. The log of each ingest is
always written at debug level, see Ingest Logs.
om-deploy install, configure and upgrade refuse a log_level that is not a level, and change
nothing:
om-deploy: deploy: invalid configuration "/etc/edgeware/origin-manager/configuration.yaml": log: invalid level "verbose": unrecognized level: "verbose"
A service does not start when it reads such a value from etcd. It prints a plain text line, not JSON, and exits:
origin-manager: log: invalid level "verbose": unrecognized level: "verbose"
Changing the Level at Runtime
Running services read the configuration from etcd and watch it for changes, so a new
log_level applies immediately and without a restart. An update that breaks a rule that
om-deploy configure checks, for example an invalid log_level, is ignored as a whole. The
service keeps its last good configuration and logs one warning, on every service:
{"level":"warn","ts":"2026-11-11T12:47:00.924Z","msg":"config: ignoring invalid /origin/config: log: invalid level \"verbose\": unrecognized level: \"verbose\"","service":"origin-recorder"}
An empty log_level in an update is ignored without a warning, and the previous level stays in
effect. A service that starts while the value is empty uses info.
To change the level:
Edit
log_levelinconfiguration.yaml:log_level: debugPush the configuration:
om-deploy configure --known-hosts ~/.ssh/known_hostsconfigure is completeThis also restarts the OM services, one host at a time. The command prints
configure is completewhen it has checked that they run. To change the level without a restart, change thelog_levelvalue in the JSON document stored at/origin/configin etcd and write the document back. Run these commands on a node that hasetcdctl:ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 get /origin/config --print-value-only > config.jsonEdit
log_levelinconfig.json, and then write the document back:ETCDCTL_API=3 etcdctl --endpoints=192.0.2.11:2379 put /origin/config "$(cat config.json)"The stored document holds the encrypted passwords, so keep
config.jsonprivate and delete it when you are done. The nextom-deploy configurepushes the content of yourconfiguration.yamlto etcd again, so change the file as well.Check the effect. The visible sign of a change is that lines stop. After you set
warnorerror, theinfolines, for exampleupload doneandshutting down, are no longer logged. This counts theupload donelines of the last 5 minutes. It prints0for an upload that finished after the change:journalctl -u origin-uploader --since "5 minutes ago" -o cat | grep -c '"upload done"'debugadds no lines to the recorder, the uploader and the manager. Only the scheduler logs one more message, and only when there are no Catch-up Buffer Managers.
Ingest Logs
The recorder and the uploader run ew-vodingest for every task. OM asks ew-vodingest to write
its own log to a file at debug level. You can change the level with --loglevel in the
ingest_script setting, because the last occurrence of the flag wins:
uploader:
ingest_script: /usr/bin/ew-vodingest --loglevel info
The ingest log is created in /tmp, or in the directory that TMPDIR names for the service. It is
not created in the configured recording_temp_path or upload_temp_path. File names:
| Service | File name pattern |
|---|---|
origin-recorder | ingest-<content id>-<storage>-<random>.log |
origin-uploader | ingest-upload-<upload id>-<random>.log |
In the file name of a recording, <content id> is the internal numeric id of the content item, not
the content_id of the API. For example, ingest-37-nas-1-3857201.log is the log of the copy to
nas-1 of the recording whose internal id is 37.
OM reads the ingest log to decide the result of the task, and handles the file like this:
- When the task finishes successfully, the log is removed.
- In every other case (failed, cancelled, interrupted), the log is kept for diagnosis, and the
service logs
retaining ingest log for diagnosiswith thepathof the file.
OM never deletes the retained logs. Remove old files when you no longer need them.
To find the retained ingest log of a failed task, search the service log for the message and
read the file at the path it shows:
journalctl -u origin-recorder -o cat | grep "retaining ingest log"
The line of the recorder has the recording in content_id, storage_name, channel and
window, and the state of the task:
{"level":"info","ts":"2026-11-11T09:50:35.939Z","msg":"retaining ingest log for diagnosis","service":"origin-recorder","content_id":"1180","storage_name":"nas-1","channel":"sports-1","window":60,"path":"/tmp/ingest-1180-nas-1-2655965567.log","state":"failed"}
The line of the uploader has the upload in upload_id, content_id, asset_path and source, and
no state:
{"level":"info","ts":"2026-11-11T10:18:19.836Z","msg":"retaining ingest log for diagnosis","service":"origin-uploader","upload_id":59,"content_id":1191,"asset_path":"v/a/7/3/v_clip1_<hex>","source":"ftp://user:xxxxx@ftp.example.invalid:2121/clip.smil","path":"/tmp/ingest-upload-59-2932332871.log"}
When OM logs an ingest command line, any password in a URL is replaced by xxxxx.
Troubleshooting
A service does not start: run
journalctl -u <unit> -n 100. The reason is a plain text line, see Other Lines in the Journal. These are the lines that you can see:origin-uploader: read etcd_hosts "/etc/edgeware/origin-manager/etcd_hosts": open /etc/edgeware/origin-manager/etcd_hosts: no such file or directory: the file is missing.om-deploy configurewrites it again.origin-uploader: config: initial load: context deadline exceeded: the service could not read its configuration from etcd within 15 seconds. The line does not name etcd. The etcd client line before it (retrying of unary invoker failed) names the endpoint intarget. Checketcd_hostsand that etcd has a quorum.origin-uploader: config: database secret: secret: decrypt (auth failed or wrong key): cipher: message authentication failed: the key on the node is not the key that encrypted the passwords.origin-recorder: config: database secret: secret: read key "/etc/edgeware/origin-manager/secret.key": open /etc/edgeware/origin-manager/secret.key: permission denied: the key file is missing (no such file or directory) oredgewarecannot read it (permission denied, for example a key that belongs torootwith mode 0600).
A password cannot be decrypted: check that
/etc/edgeware/origin-manager/secret.keyon the node is the key that was used to encrypt the passwords. If the key on the administration machine is intact, runom-deploy configureto copy it to the nodes again. It also sets the owner (edgeware) and the mode (0600). If the key on the administration machine is lost, enter the plain text passwords again and runom-deploy configure. It creates a new key and copies it to all nodes. See Secrets.An ingest fails: find the retained ingest log path in the service log, then read the file on the recorder or uploader host. For an upload, the reason is also in the
ingest_logfield of theingest failedline, which comes just beforeupload failed.log_level: debugdoes not add anything for this.Every recording and upload fails at once: look for
FTL license check errorin thelast_linefield ofrecording failedoringest failed. Theew-vodingestlicense is missing, see ew-vodingest License.Too much output: set
log_leveltowarnorerror. This reduces the OM lines only. The queue library, Redis client and etcd client lines stay, and there can be 20 or more of them per worker during a Redis outage.Check the whole cluster:
om-deploy service statusshows the state of every unit on every host.