Skip to main content

← Overview

OmniNRF Troubleshooting

An NF vanished from discovery even though it is running​

Almost always missed heartbeats. If an NF does not send a PATCH heartbeat within heartbeat_timeout (default 30 s), the background sweep expires it and it disappears from both retrieval and discovery. Check the NRF logs for NRF: Expiring stale NF instance {id}, and confirm the NF is heartbeating well inside the timeout. Raising HEARTBEAT_TIMEOUT gives more slack; the NF should also honour the heartBeatTimer returned in its registration response.

Registration rejected with 400​

The NFProfile is missing a mandatory element or contains a malformed one. The NRF requires both nfType and at least one reachability address (fqdn, ipv4Addresses, or ipv6Addresses). A 400 with MANDATORY_IE_MISSING means nfType/nfStatus were absent from the PUT body; a 400 whose detail mentions reachability means no address was supplied.

Beyond those mandatory elements, the NRF also enforces deep structural validation of the rest of the profile and returns a 400 with cause MANDATORY_IE_INCORRECT when a present element is malformed (per TS 29.510). Common causes:

  • nfServices: each service needs a serviceInstanceId, a serviceName, a valid scheme, a valid nfServiceStatus, and a non-empty versions array where each entry carries apiVersionInUri.
  • sNssais: each entry needs an integer sst in the range 0 to 255, and an sd (when present) of exactly 6 hex digits.
  • plmnList: entries must be well-formed PLMN objects.
  • capacity and priority must be integers in the range 0 to 65535; load must be an integer in the range 0 to 100.

Absent optional elements are accepted; only a present-but-malformed element is rejected. The 400 detail names the offending field, so it points directly at what to correct.

PATCH rejected with 415 Unsupported Media Type​

The PATCH Content-Type was set to something other than application/json-patch+json. Either send that media type for JSON-Patch updates, or send a genuinely empty heartbeat (no Content-Type is tolerated for heartbeats).

Update/heartbeat/delete returns 404​

The nfInstanceId is not in the registry, typically because the NF was already aged out for missed heartbeats, or it never completed registration. Re-register with a PUT before patching or heartbeating.

PUT/PATCH returns 412 Precondition Failed​

An If-Match header was sent whose ETag does not match the currently stored profile (the profile changed underneath the client). Re-GET the instance to obtain the current ETag, then retry.

Discovery returns an empty nfInstances list​

  • Confirm the target NF is registered and its stored nfStatus is REGISTERED (only registered NFs are returned).
  • target-nf-type is matched case-sensitively against the stored nfType.
  • If plmn-id, snssais, or dnn filters are supplied, verify they are well-formed and that the target NF's profile actually advertises them (an NF that advertises none of a given attribute matches any value for it).
  • Ensure requester-nf-type is present. Its absence yields 400, not an empty list.

Status notifications are not being received​

  • Confirm nfStatusNotificationUri in the subscription is reachable from the NRF host.
  • Delivery uses a bounded retry with exponential backoff (up to notification_max_attempts tries, default 4, with a base delay of notification_backoff_ms, default 500 ms, doubling each retry). A retry is logged as NRF: Retrying status notification to .... If every attempt fails, the NRF gives up and logs NRF: Giving up status notification to ... after N attempts. Search the NRF logs for those two lines to see whether delivery was retried and eventually abandoned.
  • If subscrCond.nfType is set, only status changes for that NF type are delivered.

Registry is empty after an NRF restart​

Expected. The NF and subscription stores are in-memory (ETS). After a restart the registry repopulates as NFs re-register on their next registration/heartbeat cycle; there is no persistence to reload.