ytti/oxidized · error · NoConfig
No source json config, edit #{Oxidized::Config.configfile}
Error message
No source json config, edit #{Oxidized::Config.configfile} What it means
Error "No source json config, edit #{Oxidized::Config.configfile}" thrown in ytti/oxidized.
Source
Thrown at lib/oxidized/source/jsonfile.rb:18
module Oxidized
module Source
class JSONFile < Source
require "json"
def initialize
@cfg = Oxidized.config.source.jsonfile
super
end
def setup
if @cfg.empty?
Oxidized.asetus.user.source.jsonfile.file = File.join(Oxidized::Config::ROOT,
'router.json')
Oxidized.asetus.user.source.jsonfile.map.name = "name"
Oxidized.asetus.user.source.jsonfile.map.model = "model"
Oxidized.asetus.user.source.jsonfile.gpg = false
Oxidized.asetus.save :user
raise NoConfig, "No source json config, edit #{Oxidized::Config.configfile}"
end
require 'gpgme' if @cfg.gpg?
# map.name is mandatory
return if @cfg.map.has_key?('name')
raise InvalidConfig, "map/name is a mandatory source attribute, edit #{Oxidized::Config.configfile}"
end
def load(*)
data = JSON.parse(open_file.read)
data = string_navigate_object(data, @cfg.hosts_location) if @cfg.hosts_location?
transform_json(data)
end
private
View on GitHub (pinned to 687ed4262d)
When it happens
Trigger: Thrown at lib/oxidized/source/jsonfile.rb:18 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ytti/oxidized@687ed4262d (2026-08-23).
Data as JSON: /api/errors/6725392ad3959886.
Report an issue: GitHub.