theforeman/foreman · error · ProxyException

Unable to create realm entry

Error message

Unable to create realm entry

What it means

Error "Unable to create realm entry" thrown in theforeman/foreman.

Source

Thrown at app/services/proxy_api/realm.rb:14

module ProxyAPI
  class Realm < Resource
    def initialize(args)
      @url = "#{args[:url]}/realm/#{args[:realm_name]}"
      super args
    end

    # Creates a Realm Host entry
    # [+args+] : Hash containing at a minimum :hostname
    # Returns  : JSON Result
    def create(args)
      parse(post(args, ""))
    rescue => e
      raise ProxyException.new(url, e, N_("Unable to create realm entry"))
    end

    # Deletes a Realm Host entry
    # [+key+] : String containing the hostname
    # Returns : Boolean status
    def delete(key)
      parse(super(key))
    rescue
      # maybe the entry was already deleted
      true
    end
  end
end

View on GitHub (pinned to 6b05625475)

When it happens

Trigger: Thrown at app/services/proxy_api/realm.rb:14 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of theforeman/foreman@6b05625475 (2026-08-23). Data as JSON: /api/errors/cd98f4c9003a5f08. Report an issue: GitHub.